/* BetsTalent — tema oscuro premium. Paleta derivada del logo (cyan #00a8e8). */
:root {
  --bg: #0a0e16;
  --bg2: #0d1320;
  --surface: #121a2b;
  --surface2: #18223a;
  --border: #243049;
  --text: #e8eef7;
  --muted: #8da3c0;
  --cyan: #00a8e8;
  --cyan-d: #0089c2;
  --blue: #2f6bff;
  --green: #1fc77d;
  --green-bg: rgba(31, 199, 125, .12);
  --red: #ff5d73;
  --red-bg: rgba(255, 93, 115, .12);
  --amber: #f6b13d;
  --amber-bg: rgba(246, 177, 61, .12);
  --gold: #e7c14b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #16243f 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 22, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand img { height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: 14px; transition: .15s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.lang a { padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang a.active { background: var(--cyan); color: #04121d; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; box-shadow: 0 6px 18px rgba(0, 124, 200, .35); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface2); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { filter: brightness(1.07); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* Hero */
.hero { padding: 64px 0 36px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--cyan), #6fb6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #cdd9ec; font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 900; }

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted); max-width: 640px; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Sport tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs a { padding: 9px 16px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs a.active { background: var(--cyan); border-color: var(--cyan); color: #04121d; }

/* Cards grid (predictions / value) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  transition: .15s;
}
.card:hover { border-color: #33456b; transform: translateY(-2px); }
.card.value { border-color: rgba(231, 193, 75, .4); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.card-league { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.team { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 16px; }
.team .nm { display: flex; align-items: center; gap: 8px; }

/* Probability bar 1X2 */
.probbar { display: flex; height: 30px; border-radius: 9px; overflow: hidden; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.probbar span { display: flex; align-items: center; justify-content: center; color: #06121f; min-width: 26px; }
.probbar .ph { background: var(--cyan); }
.probbar .pd { background: #5b6b8c; color: #fff; }
.probbar .pa { background: #6fb6ff; }
.probrow { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 14px; }

/* Pick / pills */
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface2); border: 1px solid var(--border); }
.pill.main { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; border: 0; }
.pill.green { background: var(--green-bg); color: var(--green); border-color: rgba(31,199,125,.3); }
.pill.amber { background: var(--amber-bg); color: var(--amber); border-color: rgba(246,177,61,.3); }
.pill.value { background: rgba(231,193,75,.14); color: var(--gold); border-color: rgba(231,193,75,.4); }
.conf-dot { width: 8px; height: 8px; border-radius: 50%; }
.conf-alta { background: var(--green); } .conf-media { background: var(--amber); } .conf-baja { background: var(--muted); }
.reason { font-size: 13px; color: #bccadf; border-top: 1px solid var(--border); padding-top: 11px; margin-top: 2px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.odds-mini { display: flex; gap: 6px; }
.odds-mini b { background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 700; }

/* Stats table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.stats { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
table.stats th, table.stats td { padding: 10px 12px; text-align: center; white-space: nowrap; }
table.stats thead th { background: var(--bg2); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; border-bottom: 1px solid var(--border); }
table.stats tbody tr { border-top: 1px solid var(--border); }
table.stats tbody tr:hover { background: var(--surface2); }
table.stats td.match { text-align: left; font-weight: 700; }
table.stats td.lg { text-align: left; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.diff-hi { color: var(--gold); font-weight: 800; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.tag.s1 { background: var(--cyan); color: #04121d; } .tag.s2 { background: #6fb6ff; color: #04121d; } .tag.sX { background: #5b6b8c; color: #fff; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters select, .filters input {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-family: inherit;
}
.filters input { min-width: 220px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.plan.pro { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 20px 40px rgba(0,124,200,.18); position: relative; }
.plan .price { font-size: 40px; font-weight: 900; margin: 6px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 9px; color: #cdd9ec; font-size: 15px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 900; }
.badge-pop { position: absolute; top: -12px; right: 20px; background: var(--gold); color: #1a1404; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.how .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.how .num { width: 34px; height: 34px; border-radius: 10px; background: var(--cyan); color: #04121d; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Newsletter / CTA band */
.band { background: linear-gradient(135deg, #11203a, #0c1526); border: 1px solid var(--border); border-radius: 20px; padding: 30px; text-align: center; }
.news-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.news-form input { background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 12px 14px; border-radius: 11px; min-width: 260px; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 50px; padding: 34px 0; color: var(--muted); font-size: 13px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.site-footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.disclaimer { border-top: 1px solid var(--border); padding-top: 16px; font-size: 12px; }

.plus18 { display: inline-block; border: 1px solid var(--muted); border-radius: 6px; padding: 1px 6px; font-weight: 800; font-size: 11px; }

/* Herramienta de estadísticas — filtros compactos min/máx */
.fbar { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; align-items: end; }
.fb { display: flex; flex-direction: column; gap: 3px; }
.fb label { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.fb select, .fb input { background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 7px 9px; border-radius: 8px; font-size: 13px; font-family: inherit; width: 100%; }
.fb select:focus, .fb input:focus { outline: none; border-color: var(--cyan); }
.fb .mm { display: flex; gap: 5px; } .fb .mm input { width: 50%; padding: 7px 6px; text-align: center; }
.fb.fchk label { flex-direction: row; align-items: center; gap: 6px; text-transform: none; font-size: 13px; color: var(--text); cursor: pointer; }
.filter-count { font-size: 12px; margin-bottom: 12px; font-weight: 800; color: var(--cyan); }
.fav { background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--amber); line-height: 1; padding: 0; }
.fav.on { filter: drop-shadow(0 0 4px rgba(246, 177, 61, .6)); }

/* Tabla estilo BetsTalent original: cada partido = local + visitante + TOTAL */
table.bt-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
table.bt-table thead th { background: var(--bg2); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 8px; text-align: center; position: sticky; top: 0; border-bottom: 2px solid var(--border); }
table.bt-table tbody.mrow { border-bottom: 3px solid var(--bg); }
table.bt-table td { padding: 7px 8px; text-align: center; white-space: nowrap; border-top: 1px solid var(--border); }
table.bt-table .fecha, table.bt-table .lg, table.bt-table .odds, table.bt-table .ln { vertical-align: middle; }
table.bt-table .fecha a { color: var(--cyan); font-weight: 700; }
table.bt-table .lg { text-align: left; color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
table.bt-table td.team { text-align: left; font-weight: 700; }
table.bt-table tr.rtotal td { background: rgba(0, 168, 232, .10); color: var(--cyan); font-weight: 800; border-top: 1px solid rgba(0, 168, 232, .3); }
table.bt-table tr.rtotal td.team { letter-spacing: .03em; font-size: 11px; }
table.bt-table td.odds, table.bt-table td.ln { font-size: 12px; color: var(--muted); line-height: 1.55; }
table.bt-table td.odds b, table.bt-table td.ln b { color: var(--text); }
table.bt-table .diff-hi b { color: var(--gold); }

/* Página de detalle del partido */
.teams-link { display: block; color: inherit; }
.teams-link:hover .nm { color: var(--cyan); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
table.compare th, table.compare td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: center; }
table.compare thead th { color: var(--muted); font-size: 12px; }
table.compare td:first-child, table.compare th:first-child { text-align: left; color: var(--muted); }
.odds-big { display: flex; gap: 10px; margin-bottom: 10px; }
.odds-big > div { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.odds-big span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.odds-big b { font-size: 18px; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }

/* Etiquetas de victoria/derrota dentro de la tabla comparativa */
.res-w-t { color: var(--green); font-weight: 800; }
.res-l-t { color: var(--red); font-weight: 800; }

/* Historial de últimos partidos (detalle del partido) */
.history-section { margin-top: 26px; }
.history-section > h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.history-section > p.muted { margin: 0 0 16px; font-size: 13.5px; max-width: 760px; }
.hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.hist-card .hist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.hist-card .hist-head h3 { margin: 0; font-size: 17px; }
.formbar { display: flex; gap: 4px; }
.fdot { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.resb { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; }
.res-w { background: var(--green); color: #04121d; }
.res-l { background: var(--red); color: #fff; }
.res-d { background: #5b6b8c; color: #fff; }
table.hist { width: 100%; border-collapse: collapse; font-size: 13px; }
table.hist thead th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.hist td { padding: 7px 8px; text-align: center; border-top: 1px solid var(--border); white-space: nowrap; }
table.hist td.rival { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
table.hist tbody tr:hover { background: var(--surface2); }
table.hist tr.ht-zero td { background: rgba(141, 163, 192, .09); }
@media (max-width: 820px) { .hist-grid { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  .nav { display: none; }
  .hero { padding: 40px 0 20px; }
}
