
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --verde: #00d68f; --verde-dim: #00a86b; --verde-glow: rgba(0,214,143,0.15);
  --rojo: #ff4757; --amarillo: #ffa502;
  --bg: #080c10; --surface: #0f1419; --card: #151c24; --card2: #1a2332;
  --borde: #1e2d3d; --borde2: #243447;
  --texto: #f0f4f8; --muted: #7a8fa6; --muted2: #4a5f75;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

body { background: var(--bg); color: var(--texto); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.6; min-height: 100vh; }
a { color: var(--verde); text-decoration: none; }
a:hover { color: #33ffaa; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ── */
header {
  background: rgba(8,12,16,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
  padding: 0;
  position: sticky; top: 0; z-index: 200;
}
header .inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-size: 1.15rem; font-weight: 900; color: var(--texto); letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 30px; height: 30px; background: var(--verde); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.logo span { color: var(--verde); }
nav { display: flex; gap: 4px; }
nav a {
  color: var(--muted); font-size: 0.82rem; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  transition: all 0.15s;
}
nav a:hover { color: var(--texto); background: var(--card); }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--borde);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,214,143,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--verde-glow); border: 1px solid rgba(0,214,143,0.3); color: var(--verde); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.hero h1 .accent { color: var(--verde); }
.hero p { color: var(--muted); font-size: 1rem; max-width: 520px; line-height: 1.7; margin-bottom: 32px; }
.stats-bar { display: flex; gap: 0; }
.stat { padding: 16px 24px; background: var(--card); border: 1px solid var(--borde); text-align: center; }
.stat:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.stat:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.stat + .stat { border-left: none; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--verde); line-height: 1; }
.stat small { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; display: block; }

/* ── EMAIL BOX ── */
.email-box {
  background: linear-gradient(135deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid rgba(0,214,143,0.25);
  border-radius: var(--radius);
  padding: 32px;
  margin: 28px 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.email-box::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: var(--verde-glow);
  border-radius: 50%;
  pointer-events: none;
}
.email-box h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.email-box p { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }
.email-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.email-form input {
  flex: 1; min-width: 200px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--borde2);
  background: var(--bg);
  color: var(--texto); font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s;
}
.email-form input:focus { outline: none; border-color: var(--verde); }
.btn {
  padding: 11px 22px;
  background: var(--verde);
  color: #060d0a; font-weight: 800; font-size: 0.9rem;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: all 0.15s; letter-spacing: 0.01em;
}
.btn:hover { background: #33ffaa; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,214,143,0.3); }

/* ── SECTION ── */
.section { padding: 40px 0 20px; }
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 20px;
}
.section-title::before { content: ''; width: 3px; height: 16px; background: var(--verde); border-radius: 2px; flex-shrink: 0; }

/* ── CARDS ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--verde) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.2s;
}
.card:hover { border-color: var(--borde2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.grupo-badge {
  background: var(--card2); color: var(--muted);
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--borde2);
  letter-spacing: 0.04em;
}
.riesgo-badge {
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
  letter-spacing: 0.03em;
}
.riesgo-badge.green { background: rgba(0,214,143,0.12); color: var(--verde); border: 1px solid rgba(0,214,143,0.25); }
.riesgo-badge.yellow { background: rgba(255,165,2,0.12); color: var(--amarillo); border: 1px solid rgba(255,165,2,0.25); }
.riesgo-badge.red { background: rgba(255,71,87,0.12); color: var(--rojo); border: 1px solid rgba(255,71,87,0.25); }

.partido-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 3px; letter-spacing: -0.01em; line-height: 1.3; }
.partido-meta { color: var(--muted2); font-size: 0.78rem; margin-bottom: 14px; font-weight: 500; }

.pick-row { background: var(--card2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.pick-label { font-size: 0.68rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.07em; font-weight: 600; margin-bottom: 3px; }
.pick-value { font-size: 0.95rem; font-weight: 700; color: var(--texto); }

.card-stats { display: flex; gap: 8px; margin-bottom: 14px; }
.card-stat { flex: 1; background: var(--card2); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.card-stat-label { font-size: 0.65rem; text-transform: uppercase; color: var(--muted2); letter-spacing: 0.05em; font-weight: 600; }
.card-stat-value { font-size: 1.05rem; font-weight: 800; margin-top: 2px; }

.prob-bar-wrap { margin-bottom: 14px; }
.prob-bar-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; font-weight: 500; }
.prob-bar-bg { background: var(--borde2); border-radius: 99px; height: 6px; overflow: hidden; }
.prob-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--verde-dim), var(--verde)); transition: width 0.6s ease; }
.prob-bar-fill.yellow { background: linear-gradient(90deg, #cc8400, var(--amarillo)); }
.prob-bar-fill.red { background: linear-gradient(90deg, #cc2233, var(--rojo)); }

.card-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: auto;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--borde2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 700; color: var(--verde);
  transition: all 0.15s;
}
.card-link:hover { background: var(--verde-glow); border-color: rgba(0,214,143,0.4); text-decoration: none; }

/* ── MATCH PAGE ── */
.breadcrumb { padding: 14px 0; font-size: 0.8rem; color: var(--muted2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--verde); }

.match-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--borde);
  padding: 40px 0;
  position: relative; overflow: hidden;
}
.match-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,214,143,0.06) 0%, transparent 70%);
}
.match-teams {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 20px; flex-wrap: wrap; position: relative;
}
.team-box { flex: 1; min-width: 120px; }
.team-name { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; }
.vs-wrap { text-align: center; }
.vs-label {
  display: inline-block;
  background: var(--card2); border: 1px solid var(--borde2);
  color: var(--muted); font-size: 0.85rem; font-weight: 800;
  padding: 6px 14px; border-radius: 8px; letter-spacing: 0.05em;
}
.match-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.match-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--borde); border-radius: 8px;
  padding: 8px 14px; font-size: 0.82rem; color: var(--muted);
}
.match-badge strong { color: var(--texto); font-weight: 700; }

.pick-card {
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  padding: 28px; margin: 24px 0;
  position: relative; overflow: hidden;
}
.pick-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--verde), #00a86b);
}
.pick-card-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.pick-main { font-size: 1.6rem; font-weight: 900; color: var(--verde); margin-bottom: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.pick-item { background: var(--card2); border-radius: var(--radius-sm); padding: 14px; }
.pick-item label { font-size: 0.65rem; text-transform: uppercase; color: var(--muted2); letter-spacing: 0.07em; font-weight: 700; display: block; margin-bottom: 5px; }
.pick-item strong { font-size: 1.05rem; font-weight: 800; }
.disclaimer { background: var(--card2); border-left: 3px solid var(--borde2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

/* ── RELATED ── */
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--borde);
  padding: 48px 0 24px;
  margin-top: 60px;
  color: var(--muted); font-size: 0.85rem;
}
footer .footer-inner { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 32px; }
footer h4 { color: var(--texto); font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; }
footer a { color: var(--muted); display: block; margin-bottom: 6px; font-size: 0.82rem; transition: color 0.15s; }
footer a:hover { color: var(--verde); text-decoration: none; }
.footer-logo { font-size: 1.1rem; font-weight: 900; color: var(--texto); margin-bottom: 10px; }
.footer-logo span { color: var(--verde); }
.footer-desc { color: var(--muted); font-size: 0.82rem; line-height: 1.7; max-width: 220px; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--borde);
  font-size: 0.75rem; color: var(--muted2);
  line-height: 1.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .cards, .related-list { grid-template-columns: 1fr; }
  .stats-bar { gap: 0; }
  .stat { padding: 12px 16px; }
  nav { display: none; }
  .hero { padding: 40px 0 32px; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .match-teams { gap: 12px; }
  .footer-inner { gap: 28px; }
}
