/* ============================================================
   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; }
}
