/* FuturLeague — portada (modo noche de estadio) */
body.home {
  --bg: #060a1c;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --ink: #eef2ff;
  --ink-2: #c8d0ea;
  --muted: #97a3c7;
  --line: rgba(255, 255, 255, .09);
  --brand: #6f8bff;
  --brand-soft: rgba(111, 139, 255, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
}
body.home .site-footer { background: #04071a; border-top: 1px solid var(--line); margin-top: 0; }

/* cabecera transparente sobre el hero */
body.home .site-header { background: transparent; transition: background .3s, box-shadow .3s; }
body.home .site-header.solid { background: rgba(6, 10, 28, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }

/* ---------- hero ---------- */
.hx { position: relative; min-height: min(100svh, 900px); margin-top: -60px; padding: 120px 0 64px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--bg)); }
.hx-grid { position: absolute; inset: -40% -10% 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 64px 64px;
  transform: perspective(700px) rotateX(58deg) translateY(28%); transform-origin: 50% 100%; mask-image: linear-gradient(to top, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%); animation: gridmove 14s linear infinite; }
@keyframes gridmove { to { background-position: 0 64px, 0 0; } }
.hx-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hx-glow.g1 { width: 620px; height: 620px; background: #2f55ff; top: -260px; right: -120px; animation: drift 16s var(--ease) infinite alternate; }
.hx-glow.g2 { width: 420px; height: 420px; background: #7c5cff; bottom: -220px; left: -160px; opacity: .35; animation: drift 19s var(--ease) infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }
.hx-spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(198, 244, 50, .09), transparent 60%); transition: opacity .4s; }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .06; mix-blend-mode: overlay; }

.hx-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #dfe5ff; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 244, 50, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(198, 244, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 244, 50, 0); } }
.hx-title { font: 800 clamp(46px, 5.9vw, 86px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin: 22px 0 22px; color: #fff; }
.hx-title .ln { display: block; }
.hx-title .acc .w { background: linear-gradient(180deg, #e4ff7a 0%, var(--accent) 55%, #9be01c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.wm .w { display: inline-block; transform: translateY(105%); animation: rise .8s var(--ease) forwards; animation-delay: calc(250ms + var(--i) * 70ms); }
@keyframes rise { to { transform: none; } }
.hx-lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: var(--ink-2); max-width: 520px; margin: 0; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-glow { background: var(--accent); color: #0b1433; box-shadow: 0 10px 40px -8px rgba(198, 244, 50, .55); }
.btn-glow svg { transition: transform .3s var(--ease); }
.btn-glow:hover svg { transform: translateX(4px); }
.btn-line { background: rgba(255, 255, 255, .04); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn-line:hover { background: rgba(255, 255, 255, .09); filter: none; }
.hx-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; font-size: 13.5px; color: var(--muted); }
.hx-proof li { display: flex; align-items: center; gap: 8px; }
.hx-proof svg { width: 16px; height: 16px; color: var(--accent); }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeup .8s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* cuadro animado */
.hx-stage { position: relative; }
.hx-stage::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 32px; background: radial-gradient(closest-side, rgba(47, 85, 255, .22), transparent); filter: blur(10px); z-index: -1; }
#bx { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
#bx .card { opacity: 0; transform: translateX(-14px); transform-box: fill-box; transition: opacity .5s var(--ease), transform .5s var(--ease); }
#bx .card.on { opacity: 1; transform: none; }
#bx .card rect.bg { fill: rgba(16, 24, 56, .82); stroke: rgba(255, 255, 255, .12); }
#bx .card.final rect.bg { stroke: rgba(245, 179, 1, .7); }
#bx .card line { stroke: rgba(255, 255, 255, .08); }
#bx .nm { fill: #c9d1ee; font-size: 13px; font-weight: 600; transition: fill .4s, opacity .4s; }
#bx .sc { fill: #c9d1ee; font-size: 14px; font-weight: 800; text-anchor: end; font-variant-numeric: tabular-nums; }
#bx .row.win .nm, #bx .row.win .sc { fill: var(--accent); }
#bx .row.lose .nm, #bx .row.lose .sc { opacity: .4; }
#bx .row rect.hl { fill: rgba(198, 244, 50, 0); transition: fill .4s; }
#bx .row.win rect.hl { fill: rgba(198, 244, 50, .1); }
#bx .ln { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
#bx .ln.lit { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s var(--ease); filter: drop-shadow(0 0 4px rgba(198, 244, 50, .7)); }
#bx .ln.lit.go { stroke-dashoffset: 0; }
#bx .rh { fill: #6f7ba3; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; }
#bx .trophy { opacity: .22; transform-box: fill-box; transform-origin: center; transition: opacity .6s, transform .6s var(--ease); color: #f5b301; }
#bx .trophy.on { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 16px rgba(245, 179, 1, .8)); }
#bx .champ { fill: #fff; font: 800 22px var(--display); text-anchor: middle; text-transform: uppercase; letter-spacing: .5px; opacity: 0; transition: opacity .5s; }
#bx .champ-l { fill: #f5b301; font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-anchor: middle; opacity: 0; transition: opacity .5s; }
#bx .champ.on, #bx .champ-l.on { opacity: 1; }
#bx.out .card, #bx.out .ln.lit, #bx.out .champ, #bx.out .champ-l { opacity: 0 !important; transition-duration: .6s; }

/* ---------- cinta de deportes ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden; padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq-track span { font: 700 24px var(--display); text-transform: uppercase; letter-spacing: .5px; color: #aab4d6; padding: 0 22px; display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.mq-track span::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee:hover .mq-track { animation-play-state: paused; }

/* ---------- secciones ---------- */
.hsec { padding: 96px 0 24px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hsec h2 { font-size: clamp(34px, 4.6vw, 58px); text-transform: uppercase; letter-spacing: -.005em; line-height: .95; color: #fff; }
.hsec .sub { color: var(--muted); font-size: 17px; max-width: 560px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
.fc[data-reveal].in:hover { transform: translateY(-6px); }

/* ---------- tarjetas de formato ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fc { --h: #6f8bff; position: relative; display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line); color: var(--ink); overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), opacity .8s var(--ease), border-color .4s, box-shadow .5s var(--ease); transition-delay: var(--d, 0ms); }
.fc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0%), color-mix(in srgb, var(--h) 28%, transparent), transparent 45%); }
.fc:hover { text-decoration: none; transform: translateY(-6px); border-color: color-mix(in srgb, var(--h) 55%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--h) 70%, transparent); }
.fc:hover::before { opacity: 1; }
.fc-viz { height: 150px; position: relative; border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--h) 22%, transparent), transparent 70%); }
.fc-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--h); overflow: visible; }
.fc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fc-top { display: flex; align-items: center; gap: 12px; }
.fc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--h) 18%, transparent); color: var(--h); flex: none; }
.fc-ic svg { width: 21px; height: 21px; }
.fc h3 { margin: 0; font-size: 26px; text-transform: uppercase; color: #fff; }
.fc p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.fc-go { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 14px; color: var(--h); display: inline-flex; align-items: center; gap: 8px; }
.fc-go svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.fc:hover .fc-go svg { transform: translateX(5px); }

/* animaciones de las mini-ilustraciones (solo corren cuando la tarjeta está a la vista) */
.viz * { animation-play-state: paused !important; }
.fc.play .viz * { animation-play-state: running !important; }
.viz .dim { opacity: .25; }
.viz .stroke { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.viz .soft { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viz .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 4s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.viz .pop { transform-box: fill-box; transform-origin: center; animation: pop2 4s var(--ease) infinite; }
@keyframes pop2 { 0%, 28% { transform: scale(0); } 38%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
.viz .bar { transform-box: fill-box; transform-origin: left; animation: bar 4.5s var(--ease) infinite; }
@keyframes bar { 0% { transform: scaleX(.15); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(.15); } }
.viz .up { animation: up 4.5s var(--ease) infinite; }
.viz .down { animation: down 4.5s var(--ease) infinite; }
@keyframes up { 0%, 40% { transform: none; } 55%, 90% { transform: translateY(-24px); } 100% { transform: none; } }
@keyframes down { 0%, 40% { transform: none; } 55%, 90% { transform: translateY(24px); } 100% { transform: none; } }
.viz .blink { animation: blink 3.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: .2; } 40%, 70% { opacity: 1; } }
.viz .setA, .viz .setB, .viz .setC { opacity: 0; animation: sets 6s ease-in-out infinite; }
.viz .setB { animation-delay: 2s; }
.viz .setC { animation-delay: 4s; }
@keyframes sets { 0% { opacity: 0; } 8%, 30% { opacity: 1; } 38%, 100% { opacity: 0; } }
.viz .car { animation: car 3.4s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes car { 0% { transform: translateX(0); } 75%, 100% { transform: translateX(var(--to)); } }
.viz .fall { animation: fall 4s var(--ease) infinite; }
@keyframes fall { 0%, 30% { transform: none; opacity: 0; } 35% { opacity: 1; } 60%, 85% { transform: translate(-6px, 46px); opacity: 1; } 100% { transform: translate(-6px, 46px); opacity: 0; } }

/* ---------- cómo funciona ---------- */
.steps2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.step2 { position: relative; padding: 26px 24px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.step2 .num { font: 800 84px/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(198, 244, 50, .55); display: block; margin-bottom: 18px; }
.step2 h3 { font-size: 26px; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.step2 p { color: var(--muted); margin: 0; }

/* ---------- tarjetas de competiciones ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.cc { --h: #6f8bff; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; overflow: hidden; isolation: isolate; color: var(--ink);
  background: linear-gradient(160deg, color-mix(in srgb, var(--h) 16%, transparent), transparent 55%), var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); min-height: 172px; }
.cc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--h), transparent 80%); }
.cc:hover { text-decoration: none; transform: translateY(-5px); border-color: color-mix(in srgb, var(--h) 55%, transparent); box-shadow: 0 26px 50px -28px color-mix(in srgb, var(--h) 80%, transparent); }
.cc-wm { position: absolute; right: -18px; bottom: -22px; width: 120px; height: 120px; color: var(--h); opacity: .1; z-index: -1; transition: transform .6s var(--ease), opacity .4s; }
.cc-wm svg { width: 100%; height: 100%; }
.cc:hover .cc-wm { transform: rotate(-10deg) scale(1.1); opacity: .2; }
.cc-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; }
.cc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--h) 22%, transparent); color: var(--h); }
.cc-ic svg { width: 19px; height: 19px; }
.cc-type { color: var(--h); text-transform: uppercase; letter-spacing: 1px; }
.cc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.cc-live.on { color: #7dffb0; }
.cc-live.on i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: ping 2s infinite; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
.cc-name { font: 800 25px/1.02 var(--display); text-transform: uppercase; letter-spacing: .2px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.cc-chip { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.cc-chip svg { width: 13px; height: 13px; }
.cc-go { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--h); color: #fff; opacity: 0; transform: translate(-6px, 6px) scale(.8); transition: opacity .35s, transform .45s var(--ease); }
.cc-go svg { width: 16px; height: 16px; }
.cc:hover .cc-go { opacity: 1; transform: none; }
.cc:hover .cc-live { opacity: 0; }
.cc.skel { pointer-events: none; }
.cc.skel i { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.search { position: relative; }
.search input { padding-left: 40px; border-radius: 99px; background: rgba(255, 255, 255, .05); border-color: var(--line); color: #fff; min-width: 260px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }

/* ---------- CTA final y FAQ ---------- */
.final-cta { margin: 96px auto 0; text-align: center; padding: 64px 24px; border-radius: 30px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 120% at 50% 0%, rgba(47, 85, 255, .45), transparent 70%), rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(36px, 5.4vw, 70px); text-transform: uppercase; color: #fff; }
.final-cta p { color: var(--ink-2); margin: 0 auto 26px; max-width: 480px; }
body.home .faq details { background: rgba(255, 255, 255, .03); border-color: var(--line); border-radius: 16px; padding: 18px 20px; transition: background .3s; }
body.home .faq details[open] { background: rgba(255, 255, 255, .06); }
body.home .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; }
body.home .faq summary::-webkit-details-marker { display: none; }
body.home .faq summary::after { content: "+"; font: 400 26px/1 var(--font); color: var(--accent); transition: transform .3s var(--ease); }
body.home .faq details[open] summary::after { transform: rotate(45deg); }
body.home .faq details p { color: var(--ink-2); }
body.home .ad-slot.placeholder { background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, .025) 10px 20px); }

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 96px; }
.faq-grid .sub { margin-top: 16px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } .faq-grid > div:first-child { position: static; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hx-in { gap: 24px; }
  .hx { min-height: 0; padding: 104px 0 56px; }
  .hx-title { font-size: clamp(40px, 6.6vw, 64px); }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hx-in { grid-template-columns: 1fr; gap: 36px; }
  .hx-title { font-size: clamp(44px, 12.5vw, 72px); }
  .hx-stage { max-width: 520px; width: 100%; margin: 0 auto; }
  #bx .nm { font-size: 16px; }
  #bx .sc { font-size: 17px; }
  #bx .rh { font-size: 13px; }
  #bx .champ { font-size: 27px; }
}
@media (max-width: 640px) {
  .fgrid, .steps2 { grid-template-columns: 1fr; }
  .hsec { padding-top: 72px; }
  .fc-viz { height: 128px; }
  .search input { min-width: 0; width: 100%; }
  .search { width: 100%; }
  .mq-track span { font-size: 20px; gap: 32px; padding: 0 16px; }
}
@media (hover: none) { .hx-spot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .wm .w, .fade-up { animation: none; transform: none; opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
  .hx-grid, .hx-glow, .mq-track, .viz * { animation: none !important; }
  .viz .draw { stroke-dashoffset: 0; }
}
