/* ============================================================
   FACTOR PARTIDO — Estilos principales
   ============================================================ */
:root {
  --bg:       #0a0d14;
  --bg2:      #111622;
  --bg3:      #161d2e;
  --card:     #131929;
  --border:   rgba(255,255,255,0.07);
  --cyan:     #00c2c7;
  --cyan2:    #00e5eb;
  --white:    #f0f4ff;
  --gray:     #8896b3;
  --gray2:    #5a6a8a;
  --green:    #22c55e;
  --yellow:   #eab308;
  --red:      #ef4444;
  --orange:   #f97316;
  --font-h:   'Barlow Condensed', sans-serif;
  --font-b:   'Barlow', sans-serif;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--font-b); font-size: 14px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(10,13,20,0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 62px; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-h); font-size: 20px; font-weight: 600; white-space: nowrap;
}
.fp-icon { background: var(--cyan); color: #000; font-size: 12px; font-weight: 800; padding: 4px 7px; border-radius: 5px; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a { padding: 6px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--gray); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav-right { flex-shrink: 0; }
.nav-search { background: var(--bg3); border: 1px solid var(--border); color: var(--white); padding: 7px 14px; border-radius: 8px; font-size: 13px; outline: none; width: 190px; font-family: var(--font-b); transition: border-color .2s; }
.nav-search:focus { border-color: var(--cyan); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

/* ── HERO ── */
.hero {
  margin-top: 62px; position: relative; overflow: hidden;
  min-height: 370px; display: flex; align-items: center; padding: 52px 48px;
  background: linear-gradient(135deg, #080b12 0%, #0c1525 60%, #06111e 100%);
}
.hero-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1553778263-73a83bab9b0c?w=1600&q=70') center/cover no-repeat; opacity: .1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,18,.97) 38%, rgba(8,11,18,.4) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cyan); }
.hero h1 { font-family: var(--font-h); font-size: clamp(38px,5.5vw,68px); font-weight: 800; line-height: 1.02; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--cyan); display: block; }
.hero-desc { color: var(--gray); font-size: 15px; margin: 18px 0 30px; max-width: 440px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.hero-stat { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; padding: 12px 20px; text-align: right; }
.hero-stat .num { font-family: var(--font-h); font-size: 32px; font-weight: 800; color: var(--cyan); display: block; line-height: 1; }
.hero-stat .lbl { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-b); transition: all .2s; }
.btn-primary { background: var(--cyan); color: #000; }
.btn-primary:hover { background: var(--cyan2); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.22); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 7px 16px; font-size: 12px; border-radius: 6px; }
.btn-cyan-ghost { background: rgba(0,194,199,.1); border: 1px solid rgba(0,194,199,.3); color: var(--cyan); }
.btn-cyan-ghost:hover { background: rgba(0,194,199,.2); }

/* ── LIVE TICKER ── */
.ticker { background: var(--bg3); border-bottom: 1px solid var(--border); padding: 9px 32px; display: flex; align-items: center; gap: 16px; }
.ticker-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 4px; letter-spacing: .5px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ticker-badge::before { content:''; width:6px; height:6px; background:#fff; border-radius:50%; animation: blink 1s infinite; }
.ticker-scroll { display: flex; gap: 36px; overflow-x: auto; scrollbar-width: none; }
.ticker-scroll::-webkit-scrollbar { display: none; }
.ticker-item { white-space: nowrap; font-size: 13px; color: var(--gray); display: flex; gap: 6px; }
.ticker-item .score { color: var(--white); font-weight: 700; font-family: var(--font-h); font-size: 15px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── SECTION ── */
.section { padding: 44px 48px; }
.section-alt { background: var(--bg2); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-family: var(--font-h); font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.view-all { font-size: 13px; color: var(--cyan); font-weight: 500; transition: gap .2s; display: flex; align-items: center; gap: 4px; }
.view-all:hover { gap: 8px; }

/* ── MATCH CARDS ── */
.match-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.match-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: border-color .25s; position: relative; overflow: hidden;
}
.match-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--cyan); transform:scaleX(0); transition:transform .3s; }
.match-card:hover { border-color: rgba(0,194,199,.35); }
.match-card:hover::before { transform:scaleX(1); }
.match-league { font-size: 11px; color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.match-league .time { color: var(--gray); font-weight: 400; font-size: 11px; }
.match-live { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.match-live::before { content:''; width:6px; height:6px; background:var(--red); border-radius:50%; animation:blink 1s infinite; }
.match-teams { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 8px; }
.match-team { text-align: center; flex: 1; }
.match-logo { width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: 12px; font-weight: 700; background: var(--bg3); }
.match-name { font-family: var(--font-h); font-size: 15px; font-weight: 700; }
.match-vs { color: var(--gray2); font-family: var(--font-h); font-weight: 600; font-size: 13px; padding: 0 4px; }
.match-score { font-family: var(--font-h); font-size: 28px; font-weight: 800; text-align: center; }
.match-probs-label { font-size: 11px; color: var(--gray); margin-bottom: 7px; }
.probs-row { display: flex; gap: 6px; margin-bottom: 14px; }
.prob-item { flex: 1; background: rgba(255,255,255,.04); border-radius: 6px; padding: 7px 4px; text-align: center; }
.prob-pct { display: block; font-family: var(--font-h); font-size: 20px; font-weight: 700; color: var(--cyan); }
.prob-lbl { font-size: 10px; color: var(--gray); }
.form-label { font-size: 11px; color: var(--gray); margin-bottom: 6px; }
.form-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.form-dot { width: 27px; height: 27px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.form-dot.G { background: rgba(34,197,94,.2);  color: var(--green);  border: 1.5px solid var(--green); }
.form-dot.E { background: rgba(234,179,8,.2);  color: var(--yellow); border: 1.5px solid var(--yellow); }
.form-dot.P { background: rgba(239,68,68,.2);  color: var(--red);    border: 1.5px solid var(--red); }
.match-insight { font-size: 12px; color: var(--cyan); border-top: 1px solid var(--border); padding-top: 10px; }
.match-insight strong { color: var(--cyan); }

/* ── SEMÁFORO ── */
.semaforo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.sem-card { border-radius: var(--radius); padding: 20px; border: 1px solid transparent; }
.sem-card.baja  { background: rgba(34,197,94,.06);  border-color: rgba(34,197,94,.2); }
.sem-card.media { background: rgba(234,179,8,.06);  border-color: rgba(234,179,8,.2); }
.sem-card.alta  { background: rgba(239,68,68,.06);  border-color: rgba(239,68,68,.2); }
.sem-badge { font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.sem-badge::before { content:''; width:8px; height:8px; border-radius:50%; }
.sem-badge.baja  { background: rgba(34,197,94,.15); color: var(--green);  } .sem-badge.baja::before  { background: var(--green); }
.sem-badge.media { background: rgba(234,179,8,.15); color: var(--yellow); } .sem-badge.media::before { background: var(--yellow); }
.sem-badge.alta  { background: rgba(239,68,68,.15); color: var(--red);    } .sem-badge.alta::before  { background: var(--red); }
.sem-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sem-icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.sem-icon.baja  { background: rgba(34,197,94,.1); }
.sem-icon.media { background: rgba(234,179,8,.1); }
.sem-icon.alta  { background: rgba(239,68,68,.1); }
.sem-teams { font-family: var(--font-h); font-size: 17px; font-weight: 700; }
.sem-sub { font-size: 12px; color: var(--gray); line-height: 1.5; }

/* ── VARIABLES ── */
.vars-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.var-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 12px; text-align: center; cursor: pointer; transition: all .2s; }
.var-card:hover { border-color: rgba(0,194,199,.4); background: rgba(0,194,199,.05); transform: translateY(-2px); }
.var-icon { font-size: 30px; margin-bottom: 10px; display: block; }
.var-name { font-family: var(--font-h); font-size: 14px; font-weight: 700; }

/* ── BOTTOM GRID ── */
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 48px 48px; }

/* ── NEWS ── */
.news-stack { display: flex; flex-direction: column; gap: 12px; }
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; transition: border-color .2s; }
.news-card:hover { border-color: rgba(0,194,199,.3); }
.news-thumb { width: 92px; height: 82px; flex-shrink: 0; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 10px 14px; flex: 1; }
.news-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--cyan); margin-bottom: 4px; }
.news-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.news-time { font-size: 11px; color: var(--gray2); }

/* ── PARTIDOS LIST ── */
.partidos-list { display: flex; flex-direction: column; gap: 8px; }
.partido-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: border-color .2s; }
.partido-item:hover { border-color: rgba(0,194,199,.3); }
.partido-meta { font-size: 11px; color: var(--gray); margin-bottom: 3px; }
.partido-name { font-family: var(--font-h); font-size: 16px; font-weight: 700; }
.partido-score { font-family: var(--font-h); font-size: 22px; font-weight: 800; color: var(--cyan); white-space: nowrap; }
.partido-prob { font-size: 11px; color: var(--gray); text-align: right; white-space: nowrap; }

/* ── FOOTER ── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 48px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-h); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: var(--gray); line-height: 1.65; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; transition: all .2s; }
.social-btn:hover { border-color: var(--cyan); background: rgba(0,194,199,.1); }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray2); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: var(--gray); transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: var(--gray2); }
.legal { max-width: 480px; line-height: 1.55; }

/* ── PAGE HERO ── */
.page-hero { margin-top: 62px; background: var(--bg2); padding: 40px 48px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-h); font-size: 36px; font-weight: 800; margin-bottom: 6px; }
.page-hero p  { color: var(--gray); font-size: 15px; }
.breadcrumb   { font-size: 12px; color: var(--gray2); margin-bottom: 10px; }
.breadcrumb a { color: var(--cyan); }

/* ── ADMIN ── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--bg2); border-right: 1px solid var(--border); padding: 24px 0; flex-shrink: 0; position: fixed; top: 0; bottom: 0; overflow-y: auto; }
.admin-logo { padding: 0 20px 24px; border-bottom: 1px solid var(--border); font-family: var(--font-h); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.admin-menu { padding: 16px 0; }
.admin-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; color: var(--gray); transition: all .2s; }
.admin-menu a:hover, .admin-menu a.active { color: var(--white); background: rgba(0,194,199,.08); border-left: 2px solid var(--cyan); }
.admin-content { margin-left: 240px; flex: 1; padding: 32px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-topbar h2 { font-family: var(--font-h); font-size: 26px; font-weight: 800; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.admin-card h3 { font-family: var(--font-h); font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--gray); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.form-input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--white); padding: 10px 14px; border-radius: 8px; font-size: 14px; font-family: var(--font-b); outline: none; transition: border-color .2s; }
.form-input:focus { border-color: var(--cyan); }
.form-select { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--white); padding: 10px 14px; border-radius: 8px; font-size: 14px; font-family: var(--font-b); outline: none; cursor: pointer; }
.form-textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--white); padding: 10px 14px; border-radius: 8px; font-size: 14px; font-family: var(--font-b); outline: none; min-height: 140px; resize: vertical; line-height: 1.6; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray2); padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.badge { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-green { background: rgba(34,197,94,.15); color: var(--green); }
.badge-gray  { background: rgba(88,106,138,.2); color: var(--gray); }
.badge-red   { background: rgba(239,68,68,.15);  color: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-box .num { font-family: var(--font-h); font-size: 36px; font-weight: 800; color: var(--cyan); }
.stat-box .lbl { font-size: 12px; color: var(--gray); margin-top: 2px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: var(--green); }
.alert-error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--red); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .navbar { padding: 0 20px; }
  .section, .page-hero { padding-left: 20px; padding-right: 20px; }
  .bottom-grid { padding: 0 20px 40px; }
  .site-footer { padding: 40px 20px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vars-grid { grid-template-columns: repeat(3,1fr); }
  .match-grid, .semaforo-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 24px; }
  .hero-stats { position: static; transform: none; flex-direction: row; margin-top: 32px; }
  .hero-content { max-width: 100%; }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 62px; left: 0; right: 0; background: var(--bg2); padding: 20px; border-bottom: 1px solid var(--border); z-index: 998; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
}


/* ============================================================
   FIX HEADER FACTOR PARTIDO - DESKTOP / TABLET / MOBILE
   ============================================================ */

.navbar{
  height: 72px;
  padding: 0 42px;
  gap: 28px;
  background: rgba(7, 12, 22, .96);
  backdrop-filter: blur(18px);
}

.nav-logo{
  min-width: 210px;
  font-size: 22px;
  letter-spacing: .2px;
}

.fp-icon{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  font-size: 12px;
}

.nav-links{
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nav-links a{
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .2px;
}

.nav-links a.active{
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.nav-right{
  min-width: 285px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-search{
  width: 230px;
  height: 46px;
  border-radius: 10px;
  background: #111827;
  font-size: 14px;
}

/* Si los botones de idioma están dentro del nav-right */
.nav-right button,
.nav-right .lang-btn,
.nav-right a.lang-btn{
  height: 40px;
  min-width: 48px;
  border-radius: 10px;
}

/* Ajuste para que el contenido no quede debajo del menú fijo */
body{
  padding-top: 72px;
}

/* Si el hero o secciones ya tienen margen por navbar, evita doble espacio */
.hero,
.fp-hero-slider{
  margin-top: 0 !important;
}

/* Pantallas medianas */
@media(max-width:1180px){
  .navbar{
    padding: 0 24px;
    gap: 18px;
  }

  .nav-logo{
    min-width: 185px;
    font-size: 20px;
  }

  .nav-links{
    gap: 2px;
  }

  .nav-links a{
    font-size: 13px;
    padding: 9px 8px;
  }

  .nav-right{
    min-width: 230px;
  }

  .nav-search{
    width: 180px;
  }
}

/* Mobile */
@media(max-width:900px){
  .navbar{
    height: 68px;
    padding: 0 18px;
  }

  body{
    padding-top: 68px;
  }

  .nav-logo{
    min-width: auto;
    font-size: 20px;
  }

  .nav-toggle{
    display: block;
    margin-left: auto;
  }

  .nav-links{
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 14px 18px 18px;
    background: rgba(7, 12, 22, .98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }

  .nav-links.open{
    display: flex;
  }

  .nav-links a{
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 15px;
  }

  .nav-links a.active{
    box-shadow: none;
    color: var(--cyan);
  }

  .nav-right{
    min-width: auto;
    gap: 8px;
  }

  .nav-search{
    display: none;
  }
}

/* Mobile pequeño */
@media(max-width:520px){
  .navbar{
    padding: 0 14px;
  }

  .nav-logo{
    font-size: 18px;
  }

  .fp-icon{
    width: 34px;
    height: 34px;
  }

  .nav-right button,
  .nav-right .lang-btn,
  .nav-right a.lang-btn{
    height: 36px;
    min-width: 42px;
    font-size: 12px;
  }
}


/* ============================================================
   FIX BUSCADOR NAVBAR - FACTOR PARTIDO
   ============================================================ */

.navbar{
  overflow: visible !important;
}

.nav-right{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  min-width: 360px !important;
}

.nav-search{
  width: 270px !important;
  max-width: 270px !important;
  height: 46px !important;
  display: block !important;
  flex-shrink: 0 !important;
  padding: 0 16px 0 42px !important;
  border-radius: 12px !important;
  background: #111827 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #f0f4ff !important;
}

/* Si el icono de lupa está separado o dentro del contenedor */
.nav-search::placeholder{
  color: #7b89a6 !important;
}

/* Ajuste para pantallas tipo laptop */
@media(max-width:1280px){
  .navbar{
    padding: 0 28px !important;
    gap: 20px !important;
  }

  .nav-logo{
    min-width: 220px !important;
  }

  .nav-links{
    gap: 4px !important;
  }

  .nav-links a{
    padding: 9px 9px !important;
    font-size: 13.5px !important;
  }

  .nav-right{
    min-width: 300px !important;
  }

  .nav-search{
    width: 220px !important;
    max-width: 220px !important;
  }
}

/* En pantallas más pequeñas ocultamos el buscador para que no rompa el menú */
@media(max-width:1080px){
  .nav-right{
    min-width: auto !important;
  }

  .nav-search{
    display: none !important;
  }
}


.nav-search-form{
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-search-icon{
  position: absolute;
  left: 14px;
  color: #7b89a6;
  font-size: 14px;
  pointer-events: none;
}

.nav-search-form .nav-search{
  padding-left: 40px !important;
}


<style>
/* ============================================================
   PÁGINA BUSCAR - FACTOR PARTIDO
   ============================================================ */

.fp-search-page{
  min-height: 100vh;
  padding: 118px 48px 70px;
  background:
    radial-gradient(circle at 18% 10%, rgba(0,212,232,.12), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(239,68,68,.08), transparent 30%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--white);
}

.fp-search-wrap{
  max-width: 1180px;
  margin: 0 auto;
}

.fp-search-hero{
  background: linear-gradient(145deg, rgba(17,24,39,.88), rgba(8,13,24,.92));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.fp-search-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,232,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,232,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .55;
  pointer-events: none;
}

.fp-search-hero > *{
  position: relative;
  z-index: 2;
}

.fp-search-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .9px;
  margin-bottom: 14px;
  background: rgba(0,212,232,.08);
  border: 1px solid rgba(0,212,232,.20);
  padding: 7px 14px;
  border-radius: 999px;
}

.fp-search-label::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(0,212,232,.8);
}

.fp-search-title{
  font-family: var(--font-h, 'Barlow Condensed', sans-serif);
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--white);
}

.fp-search-title strong{
  color: var(--cyan);
}

.fp-search-desc{
  color: var(--gray);
  font-size: 16px;
  max-width: 760px;
  line-height: 1.65;
  margin-bottom: 26px;
}

.fp-search-box{
  display: flex;
  gap: 12px;
  max-width: 760px;
}

.fp-search-box input{
  flex: 1;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  color: var(--white);
  padding: 0 18px;
  font-size: 15px;
  outline: none;
  font-family: var(--font-b, 'Barlow', sans-serif);
}

.fp-search-box input:focus{
  border-color: rgba(0,212,232,.55);
  box-shadow: 0 0 0 3px rgba(0,212,232,.08);
}

.fp-search-box input::placeholder{
  color: var(--gray2);
}

.fp-search-box button{
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: var(--cyan);
  color: #020617;
  padding: 0 28px;
  font-family: var(--font-h, 'Barlow Condensed', sans-serif);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  cursor: pointer;
  transition: .22s ease;
}

.fp-search-box button:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0,212,232,.28);
}

.fp-result-section{
  margin-top: 34px;
}

.fp-result-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.fp-result-head h2{
  font-family: var(--font-h, 'Barlow Condensed', sans-serif);
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-result-count{
  color: var(--gray);
  font-size: 13px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.fp-result-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fp-result-card{
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: .22s ease;
  position: relative;
  overflow: hidden;
}

.fp-result-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: .25s ease;
}

.fp-result-card:hover{
  border-color: rgba(0,212,232,.38);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.fp-result-card:hover::before{
  transform: scaleX(1);
}

.fp-result-tag{
  display: inline-flex;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
  background: rgba(0,212,232,.08);
  border: 1px solid rgba(0,212,232,.16);
  border-radius: 999px;
  padding: 4px 10px;
}

.fp-result-title{
  font-family: var(--font-h, 'Barlow Condensed', sans-serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--white);
}

.fp-result-meta{
  color: var(--gray2);
  font-size: 12px;
  margin-bottom: 10px;
}

.fp-result-text{
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
}

.fp-empty{
  background: var(--card);
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 26px;
  color: var(--gray);
  line-height: 1.6;
}

.fp-search-suggestion{
  margin-top: 14px;
  color: var(--gray2);
  font-size: 13px;
}

.fp-search-suggestion span{
  color: var(--cyan);
  font-weight: 700;
}

/* Modo claro */
[data-theme="light"] .fp-search-page{
  background:
    radial-gradient(circle at 18% 10%, rgba(0,120,200,.10), transparent 28%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
}

[data-theme="light"] .fp-search-hero{
  background: linear-gradient(145deg, #ffffff, #f3f7fc);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

[data-theme="light"] .fp-search-box input{
  background: #fff;
}

/* Responsive */
@media(max-width: 900px){
  .fp-search-page{
    padding: 100px 24px 50px;
  }

  .fp-search-hero{
    padding: 26px;
  }

  .fp-result-grid{
    grid-template-columns: 1fr;
  }
}

@media(max-width: 560px){
  .fp-search-page{
    padding: 92px 18px 42px;
  }

  .fp-search-hero{
    padding: 22px;
    border-radius: 20px;
  }

  .fp-search-title{
    font-size: 40px;
  }

  .fp-search-desc{
    font-size: 14.5px;
  }

  .fp-search-box{
    flex-direction: column;
  }

  .fp-search-box button{
    width: 100%;
  }

  .fp-result-head{
    align-items: flex-start;
    flex-direction: column;
  }
}
</style>