/* CLUSTER — negro, blanco y rojo. Minimalista. */
:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --white: #f4f4f2;
  --grey: #8a8a8a;
  --line: #262626;
  --red: #e3241b;
  --yellow: #ffe100;
  --blue: #2f8cff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --body: "General Sans", system-ui, sans-serif;
  --title: "General Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { background: var(--black); color: var(--white); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, .brand, .big, .amount, .giant, .num { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.label { display: inline-block; color: var(--grey); margin-bottom: 20px; }
.red { color: var(--red); }

/* Huecos pendientes de rellenar (quitar la clase .ph al poner el dato real) */
.ph { outline: 1px dashed rgba(227,36,27,.6); outline-offset: 3px; }

/* Botones */
.btn { display: inline-block; background: var(--red); color: #fff; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 18px 28px; transition: background .2s, color .2s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn-line { background: transparent; border: 1px solid var(--white); padding: 11px 16px; font-size: 11px; }
.btn-line:hover { background: var(--white); color: var(--black); }

/* Fondo fotográfico provisional: gris con grano. Se sustituye por fotos B/N del box. */
.photo {
  background-color: #1a1a1a;
  background-image:
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 18px var(--gutter); background: linear-gradient(rgba(10,10,10,.85), rgba(10,10,10,0)); }
.brand { font-size: 28px; letter-spacing: .04em; }
.nav { justify-content: space-between; }
.nav { transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(10,10,10,.97) !important; border-bottom-color: var(--line); }
.nav nav { display: flex; gap: clamp(26px, 3.4vw, 52px); margin-left: auto; }
.nav nav a { position: relative; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #bdbdbd; padding: 8px 0; white-space: nowrap; transition: color .2s; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.nav nav a:hover, .nav nav a.active { color: var(--white); }
.nav nav a:hover::after, .nav nav a.active::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 215px var(--gutter) 100px; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(1) contrast(1.1) brightness(.9); opacity: 0; transition: opacity .8s ease; }
.hero-video.is-on { opacity: 1; }
.brand { display: block; line-height: 0; }
.brand img { height: 86px; width: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero { background: url("fotos/portada-poster.jpg") center / cover no-repeat; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92) 25%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.15)), linear-gradient(180deg, rgba(10,10,10,.6), rgba(10,10,10,0) 25%, rgba(10,10,10,0) 75%, rgba(10,10,10,.85)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { font-size: clamp(54px, 10vw, 128px); margin-bottom: 28px; }
.lead { color: #c8c8c8; font-size: 17px; max-width: 460px; margin-bottom: 40px; }
.corner { position: absolute; z-index: 2; color: #a8a8a8; }
.corner .red { margin: 0 6px; }
.tl { top: 142px; left: var(--gutter); }
.tr { top: 142px; right: var(--gutter); }
.bl { bottom: 32px; left: var(--gutter); }
.br { bottom: 32px; right: var(--gutter); }

/* Sello "Box afiliado HYROX" */
.affil { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(244,244,242,.25); padding: 8px 16px; color: var(--white); }
.affil .mono { color: #bdbdbd; }
.affil-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.affil strong { font: 800 26px/1 var(--display); letter-spacing: .06em; margin-right: -.06em; }
/* Centrado óptico: recorta el hueco de acentos y descendentes para que las mayúsculas queden al mismo nivel */
.nav-affil { padding: 7px 14px; }
@supports (text-box: trim-both cap alphabetic) {
  .affil .mono, .affil strong { text-box: trim-both cap alphabetic; }
  .affil { padding: 13px 16px; }
  .nav-affil { padding: 11px 14px; }
}
.nav-affil strong { font-size: 22px; }

/* Cinta en movimiento */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.track { display: flex; gap: 36px; width: max-content; animation: slide 28s linear infinite; font: 800 clamp(40px, 6vw, 72px)/1 var(--display); text-transform: uppercase; color: #2c2c2c; }
.track i { font-style: normal; color: var(--red); font-size: .45em; align-self: center; }
.track i.dash { color: inherit; font-size: .7em; line-height: 1; transform: translateY(-.04em); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

.marquee-rev .track { animation-direction: reverse; }

/* Tarjetas de clases con foto, escalonadas */
.showcase { padding: 40px 0; }
.cards { display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter); }
.card-photo { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.card-photo .img { width: 100%; background-size: 320%; background-repeat: no-repeat; filter: grayscale(1) contrast(1.15) brightness(.9); transition: filter .4s, transform .4s; }
.card-photo.h-sm .img { height: 230px; }
.card-photo.h-md .img { height: 290px; }
.card-photo.h-lg .img { height: 350px; }
.card-photo:hover .img { filter: grayscale(1) contrast(1.2) brightness(1.05); transform: translateY(-4px); }
.card-photo h3 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 16px; }
.card-photo .link { color: #bdbdbd; text-decoration: underline; text-underline-offset: 4px; margin-top: 8px; }
.card-photo:hover .link { color: var(--red); }

/* Secciones */
.section { padding: 120px var(--gutter); }
.dark-alt { background: var(--black-2); }
.section-head { margin-bottom: 64px; }
.section h2, .cta h2 { font-size: clamp(44px, 7vw, 88px); }
.note { color: var(--grey); margin-top: 40px; }

/* Método */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.num { display: block; font-size: 22px; color: var(--red); margin-bottom: 18px; }
.step h3 { font-size: 34px; margin-bottom: 10px; }
.step p { color: #a9a9a9; max-width: 300px; }

/* Árbol de clases */
.trees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.tree h3 { font-size: 40px; margin-bottom: 22px; }
.tree ul { position: relative; padding-left: 28px; display: grid; gap: 12px; }
.tree ul::before { content: ""; position: absolute; left: 0; top: 0; bottom: 22px; width: 1px; background: var(--red); }
.tree li { position: relative; border: 1px solid var(--red); border-radius: 999px; padding: 12px 18px; text-align: center; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tree li::before { content: ""; position: absolute; left: -29px; top: 50%; width: 28px; height: 1px; background: var(--red); }

/* Horario */
.schedule { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row .big { font-size: 52px; }
.row .mono { font-size: 14px; color: #cfcfcf; }
.row.muted { opacity: .4; }

/* Horario */
.sch-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 28px; color: #cfcfcf; font-size: 13px; }
.sch-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sch-legend i { width: 10px; height: 10px; display: inline-block; }
.k-ct { background: var(--red); } .k-hy { background: var(--yellow); } .k-hf { background: var(--white); } .k-en { background: var(--blue); }
.sch-table-wrap { overflow-x: auto; }
.sch-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sch-table th { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); text-align: left; padding: 0 8px 14px; }
.sch-table tbody th { font: 800 22px/1 var(--display); color: #d8d8d8; padding: 0 16px 0 0; width: 90px; letter-spacing: .02em; }
.sch-table td { padding: 4px 4px; border-top: 1px solid #1b1b1b; }
.sch-cls { display: block; padding: 9px 12px; border-left: 2px solid; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-ct { border-color: var(--red); color: var(--white); }
.sch-hy { border-color: var(--yellow); color: var(--yellow); }
.sch-hf { border-color: var(--white); color: var(--white); }
.sch-cls small { font-size: .92em; opacity: .85; margin-left: 4px; letter-spacing: .02em; }
.sch-table .sch-en { white-space: normal; }
.sch-table .sch-en small { display: block; margin: 4px 0 0; }
.sch-en { border-color: var(--blue); color: var(--blue); }
.sch-empty { display: block; padding: 9px 12px; color: transparent; font-family: var(--mono); }
.sch-days, .sch-list { display: none; }
.sch-short { display: none; }
.sch-extra { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.sch-box { background: var(--black); padding: 32px; }
.sch-box .label { margin-bottom: 10px; }
.sch-box h3 { font-size: clamp(40px, 5vw, 64px); }
.sch-box p { margin-top: 12px; display: flex; gap: 12px; font-size: 14px; color: #cfcfcf; }
.sch-box p b { border: 1px solid var(--red); padding: 8px 14px; font: 800 22px/1 var(--display); color: var(--white); }

/* Tarifas (nuevas) */
.price-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; }
.price-head p { color: #c3c3c3; max-width: 420px; }
.bill-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.bill-bar .group-title { margin: 0; }
.bill { display: inline-flex; border: 1px solid var(--line); }
.bill button { background: none; border: 0; color: var(--grey); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 18px; cursor: pointer; transition: background .2s, color .2s; }
.bill button + button { border-left: 1px solid var(--line); }
.bill button b { color: var(--red); font-weight: 500; margin-left: 4px; }
.bill button[aria-selected="true"] { background: var(--white); color: var(--black); }
.plan-bill { color: var(--grey); font-size: 12px; margin-bottom: 6px; min-height: 1.4em; }
.plan-top .plan-bill { color: #666; }
.plan-price b { font: inherit; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--black); padding: 36px 32px 32px; transition: border-color .25s, transform .25s; }
.plan:hover { border-color: #444; transform: translateY(-4px); }
.plan-name { color: var(--grey); font-size: 13px; letter-spacing: .12em; }
.plan-price { font: 500 clamp(84px, 8.6vw, 122px)/.85 var(--title); margin: 22px 0 10px; letter-spacing: -.045em; }
.plan-price span { font-size: .45em; vertical-align: top; margin-left: 4px; }
.plan-price small { font-size: 13px; color: var(--grey); margin-left: 6px; letter-spacing: .06em; }
.plan-unit { color: var(--red); font-size: 13px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-list { display: grid; gap: 12px; margin: 24px 0 32px; flex: 1; }
.plan-list li { position: relative; padding-left: 22px; color: #d0d0d0; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--red); }
.plan .btn { text-align: center; }
.plan-top { background: var(--white); color: var(--black); border-color: var(--white); }
.plan-top:hover { border-color: var(--white); }
.plan-top .plan-name, .plan-top .plan-price small { color: #555; }
.plan-top .plan-list li { color: #222; }
.plan-top .plan-unit { border-color: #ddd; }
.plan-top .btn:hover { background: var(--black); color: var(--white); }
.plan-badge { position: absolute; top: -12px; left: 32px; background: var(--red); color: #fff; font-size: 11px; padding: 5px 12px; }
.hy-dark { color: #a38f00; }
.plans + .group-title, .packs + .group-title { margin-top: 72px; }
.packs { border-top: 1px solid var(--line); }
.pack { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: baseline; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pack-n { font: 500 60px/.9 var(--title); letter-spacing: -.04em; }
.pack-label { color: #cfcfcf; font-size: 14px; }
.pack-dots { border-bottom: 1px dashed #333; transform: translateY(-6px); }
.pack-unit { color: var(--red); font-size: 13px; }
.pack-price { font: 500 52px/.9 var(--title); letter-spacing: -.04em; }

/* Tarifas */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price { background: var(--black-2); padding: 44px 36px; }
.price .label { margin-bottom: 28px; }
.amount { font-size: 88px; }
.price .mono { color: var(--grey); margin-top: 10px; }
.price.featured { background: var(--black); box-shadow: inset 0 3px 0 var(--red); }

/* Coaches: carrusel */
#coaches { overflow: hidden; }
.cslider { display: grid; grid-template-columns: 1fr minmax(280px, 400px) 1fr; align-items: center; margin: 0 calc(var(--gutter) * -1); }
.cs-left { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cs-left .cs-band { align-self: stretch; }
.cs-band { border-block: 1px solid var(--white); padding: 18px var(--gutter); }
.cs-name { text-align: center; }
.cs-name h3 { font-size: clamp(30px, 3.4vw, 48px); }
.cs-arrow { background: none; border: 0; color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; padding: 8px 16px; transition: color .2s, transform .2s; }
.cs-arrow:hover { color: var(--red); transform: scale(1.15); }
.cs-photo { aspect-ratio: 4 / 5; background-size: cover; background-repeat: no-repeat; border-radius: 12px; filter: grayscale(1) contrast(1.12) brightness(.95); }
.cs-right { align-self: start; padding-top: 0; }
.cs-role { padding-left: 28px; }
.cs-role .mono { font: 800 clamp(26px, 2.8vw, 38px)/1 var(--display); letter-spacing: .03em; }
.cs-desc { color: #e0e0e0; padding: 24px var(--gutter) 0 28px; max-width: 480px; font-size: 19px; line-height: 1.55; }
.cs-count { color: var(--grey); padding: 18px 0 0 28px; }
.cs-anim .cs-photo, .cs-anim .cs-band h3, .cs-anim .cs-role span, .cs-anim .cs-desc { animation: csIn .55s cubic-bezier(.22, 1, .36, 1); }
@keyframes csIn { from { transform: translateY(30px); opacity: .2; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cs-anim * { animation: none !important; } }

/* Coaches */
.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coach-photo { aspect-ratio: 4 / 5; margin-bottom: 20px; background-size: cover; background-repeat: no-repeat; filter: grayscale(1) contrast(1.12) brightness(.92); transition: filter .4s; }
.coach:hover .coach-photo { filter: grayscale(1) contrast(1.18) brightness(1.02); }
.coach h3 { font-size: 32px; margin-bottom: 6px; }
.coach .mono.head { color: var(--red); }
.coach .mono { color: var(--grey); }

/* CTA */
.cta { padding: 140px var(--gutter); text-align: center; border-block: 1px solid var(--line); }
.cta h2 { margin-bottom: 24px; }
.cta p { color: #bdbdbd; max-width: 440px; margin: 0 auto 40px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact h2 { margin-bottom: 40px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.contact-list li span:first-child { color: var(--grey); }
.map { min-height: 380px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--grey); text-align: center; padding: 24px; }

/* Lista de clases (línea roja + ramas) */
.classes { position: relative; padding-left: 36px; display: grid; gap: 14px; max-width: 920px; }
.classes::before { content: ""; position: absolute; left: 0; top: 0; bottom: 34px; width: 1px; background: var(--red); }
.classes li { position: relative; border: 1px solid var(--red); border-radius: 999px; padding: 18px 30px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.classes li::before { content: ""; position: absolute; left: -37px; top: 50%; width: 36px; height: 1px; background: var(--red); }
.classes h3 { font-size: 32px; }
.classes p { color: #bdbdbd; }

/* HYROX siempre en amarillo */
.hy { color: var(--yellow) !important; }
.wod-hy { box-shadow: inset 0 3px 0 var(--yellow); }
.wod-hy .wod-num, .wod-hy .wod-list b, .wod-hy .wod-top span:first-child { color: var(--yellow); }
#hyrox .tree-mini::before { background: linear-gradient(var(--yellow), rgba(255,225,0,.25)); }
#hyrox .tree-mini li::before { background: var(--yellow); }

/* Comunidad: arriba fotos + reseña; abajo filas vídeo | reseña | vídeo */
.gallery-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.gallery-top .g-item { aspect-ratio: auto; min-height: 340px; }
.gallery-top .g-review { grid-row: auto; justify-content: center; }
.vr { display: grid; gap: 10px; }
.vr { gap: 34px; }
.vr-row { display: grid; gap: 18px; align-items: start; }
.vr-row .g-video { aspect-ratio: 16 / 10; }
/* Collage irregular: a veces un vídeo, a veces dos */
.r1 { grid-template-columns: 1.7fr 1fr; }
.r1 .g-review { margin-top: 90px; }
.r2 { grid-template-columns: 1fr 1.1fr .9fr; }
.r2 .g-video:nth-child(2) { margin-top: 60px; aspect-ratio: 4 / 5; }
.r2 .g-video:nth-child(3) { margin-top: -40px; aspect-ratio: 1; }
.r3 { grid-template-columns: 1.1fr 1fr; width: 82%; margin-left: auto; }
.r3 .g-review { margin-top: 40px; }
.r3 .g-video { aspect-ratio: 16 / 9; }
.r4 { grid-template-columns: .9fr 1.3fr 1fr; }
.r4 .g-video:nth-child(1) { aspect-ratio: 4 / 5; margin-top: 30px; }
.r4 .g-review { margin-top: 140px; }
.r5 { grid-template-columns: 1.2fr 1fr; width: 90%; }
.r5 .g-video:nth-child(2) { margin-top: 80px; aspect-ratio: 4 / 5; }
.vr-row .g-review { grid-row: auto; padding: 20px; }
.vr-row .g-review blockquote { font-size: 15px; }

/* Comunidad: galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 10px; }
.g-item { position: relative; overflow: hidden; margin: 0; background: #151515; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.g-item:hover img, .g-item:hover video { transform: scale(1.03); }
.g-review { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 24px; background: var(--black-2); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--red); }
.g-stars { color: var(--red); letter-spacing: .15em; font-size: 18px; }
.g-review blockquote { margin: 0; font-size: 16px; line-height: 1.5; color: #e6e6e6; font-style: italic; }
.g-review blockquote::before { content: "“"; display: block; font: 800 54px/.5 var(--display); color: var(--red); margin-bottom: 10px; }
.g-review figcaption { font-size: 11px; color: var(--grey); }
.g-review figcaption b { color: var(--white); font-weight: 500; }
.g-head-right { display: grid; gap: 22px; }
.g-badge { display: inline-flex; align-items: center; gap: 16px; justify-self: start; border: 1px solid var(--line); padding: 12px 18px; transition: border-color .2s; }
.g-badge:hover { border-color: var(--red); }
.g-badge-n { font: 800 48px/1 var(--display); }
.g-badge .g-stars { display: block; font-size: 16px; }
.g-badge .mono { color: #cfcfcf; font-size: 12px; }
.g-play { position: absolute; left: 12px; bottom: 12px; font-size: 11px; color: #fff; background: rgba(10,10,10,.6); padding: 5px 9px; }

/* Programación: día de ejemplo */
.prog { display: grid; grid-template-columns: 1fr; gap: 56px; }
.prog-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.prog-copy .label { grid-column: 1 / -1; margin-bottom: 0; }
.prog-copy p { margin: 0 !important; grid-column: 2; }
.prog-copy h2 { grid-column: 1; grid-row: 2 / span 2; }
.prog-copy .btn { grid-column: 2; justify-self: start; }
.wods { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.wod-h-sm { font-size: clamp(24px, 2.6vw, 30px) !important; margin-top: 16px; }
.prog-copy p { color: #c3c3c3; max-width: 440px; margin: 28px 0 36px; }
.wod { position: relative; background: var(--black-2); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--red); padding: 28px clamp(20px, 3vw, 40px) 32px; }
.wod-top { display: flex; justify-content: space-between; color: var(--red); font-size: 12px; }
.wod-top span:last-child { color: var(--grey); }
.wod-day { display: flex; align-items: center; gap: 16px; margin: 22px 0 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.wod-num { font: 800 64px/0.8 var(--display); color: var(--red); }
.wod-day .mono { display: block; color: #bdbdbd; font-size: 13px; margin-bottom: 4px; }
.wod-day strong { font: 800 clamp(34px, 4vw, 48px)/1 var(--display); text-transform: uppercase; }
.wod-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.wod-block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.wod-tag { display: block; color: var(--white); font-size: 16px; font-weight: 500; letter-spacing: .08em; margin-bottom: 10px; }
.wod-block h3 { font-size: clamp(34px, 4vw, 46px); }
.wod-big { font: 800 30px/1 var(--display); color: var(--white); margin-top: 6px; }
.wod-list { margin-top: 12px; display: grid; gap: 10px; font-size: 15px; }
.wod-list li { display: flex; gap: 14px; align-items: baseline; }
.wod-list b { font: 800 22px/1 var(--display); color: var(--red); min-width: 52px; white-space: nowrap; }
.wod-sub { color: #cfcfcf; font-size: 14px; margin-top: 8px; }
.wod-note { margin-top: 22px; color: #bdbdbd; font-size: 14px; }
.wod-note .mono { display: block; font-size: 11px; margin-bottom: 6px; }

/* Fichas de cada clase */
.cls { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.cls.rev .cls-photo { order: 2; }
.cls-photo { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; background-size: cover; background-repeat: no-repeat; filter: grayscale(1) contrast(1.15) brightness(.92); }
.cls-body h3 { font-size: clamp(48px, 6vw, 80px); margin-bottom: 20px; }
.cls-body p { color: #c3c3c3; max-width: 520px; margin-bottom: 28px; }
.cls:target .cls-body h3 { color: var(--red); transition: color .6s; }
.tree-mini { position: relative; padding-left: 30px; display: grid; gap: 0; margin-bottom: 36px; max-width: 420px; }
.tree-mini::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 22px; width: 1px; background: linear-gradient(var(--red), rgba(227,36,27,.25)); }
.tree-mini li { position: relative; padding: 14px 0 14px 4px; border-bottom: 1px solid var(--line); font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #e6e6e6; }
.tree-mini li::before { content: ""; position: absolute; left: -27px; top: 50%; width: 18px; height: 1px; background: var(--red); }

/* Grupos de tarifas */
.group-title { color: #cfcfcf; margin: 0 0 18px; }
.group-title .red { margin-right: 8px; }
.prices + .group-title { margin-top: 64px; }
.prices.two { grid-template-columns: repeat(2, 1fr); max-width: 66.6%; }

/* Formulario clase gratis */
.trial { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; border-block: 1px solid var(--line); }
.trial-copy p { color: #bdbdbd; max-width: 420px; margin-top: 24px; }
.trial-form { display: grid; gap: 22px; }
.trial-form label > .mono, .trial-form fieldset > .mono { display: block; color: #cfcfcf; margin-bottom: 8px; }
.trial-form fieldset { border: 0; }
.trial-form input:not([type=radio]), .trial-form select { width: 100%; background: var(--black-2); border: 1px solid var(--line); color: var(--white); font: 15px var(--body); padding: 14px; border-radius: 0; appearance: none; }
.trial-form select { background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.trial-form input:focus, .trial-form select:focus { outline: none; border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: border-color .15s, background .15s; }
.chips label:hover span { border-color: #555; }
.chips input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.form-error { color: var(--red); min-height: 1em; }
.trial-form .btn { border: 0; cursor: pointer; justify-self: start; }

/* Mapa */
iframe.map { width: 100%; padding: 0; border: 1px solid var(--line); }
.maps-link { margin-top: 28px; }

/* Ventana emergente: tarjeta discreta abajo a la derecha, sin bloquear la web */
.popup { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 300px; opacity: 0; transform: translateX(calc(100% + 40px)); transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .6s ease; }
@media (prefers-reduced-motion: reduce) { .popup { transition: opacity .4s ease; transform: none; } }
.popup[hidden] { display: none; }
.popup.open { opacity: 1; transform: none; }
.popup-card { position: relative; overflow: hidden; background: var(--black); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.popup-photo { display: block; width: 100%; height: 150px; object-fit: cover; object-position: 50% 58%; filter: grayscale(1) contrast(1.15); }
.popup-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,.25) 0, rgba(10,10,10,0) 40px, rgba(10,10,10,0) 90px, var(--black) 150px); }
.popup-body { position: relative; z-index: 1; margin-top: -26px; padding: 0 18px 16px; display: grid; gap: 10px; }
.popup-body > .mono { color: var(--grey); font-size: 10px; }
.popup-body > .mono .red { margin: 0 5px; }
.popup-body h2 { font-size: 24px; }
.popup-body .btn { padding: 12px 16px; font-size: 11px; text-align: center; margin-top: 4px; }
.popup-no { background: none; border: 0; color: var(--grey); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.popup-no:hover { color: var(--white); }
.popup-x { position: absolute; z-index: 2; top: 6px; right: 8px; background: rgba(10,10,10,.5); border: 0; color: var(--white); font-size: 12px; width: 24px; height: 24px; cursor: pointer; }
@media (max-width: 560px) {
  .popup { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: 340px; margin-left: auto; transform: translateY(calc(100% + 30px)); }
  .popup-photo, .popup-card::after { height: 120px; }
  .popup-card::after { background: linear-gradient(180deg, rgba(10,10,10,.25) 0, rgba(10,10,10,0) 30px, rgba(10,10,10,0) 60px, var(--black) 120px); }
  .popup-body > .mono { display: none; }
  .popup-body { margin-top: -18px; }
}

/* Footer */
.footer { padding: 48px var(--gutter) 0; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--grey); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.giant { font-size: 25vw; line-height: .78; letter-spacing: -.01em; margin-top: 24px; white-space: nowrap; }
.giant sup { font-size: .18em; vertical-align: top; position: relative; top: .35em; color: var(--red); }

/* Móvil */
@media (max-width: 820px) {
  .nav { gap: 14px; padding: 12px 0 12px 16px; background: rgba(10,10,10,.92); }
  .nav nav { flex: 1 1 auto; min-width: 0; margin: 0; padding-right: 16px; gap: 26px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a:first-child { margin-left: auto; padding-left: 14px; }
  .nav nav a { font-size: 11px; letter-spacing: .06em; padding: 10px 0; }
  html { scroll-padding-top: 30px; }
  .cls { scroll-margin-top: 80px; }
  .tl, .tr { top: 108px; }
  .hero { padding-top: 185px; }
  .brand { flex: 0 0 auto; }
  .brand img { height: 50px; }
  .tr { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 6px; }
  .gallery-top { grid-template-columns: 1fr 1fr; gap: 6px; }
  .gallery-top .g-main { grid-column: 1 / -1; min-height: 220px; }
  .gallery-top .g-item { min-height: 200px; }
  .gallery-top .g-review { grid-column: auto !important; grid-row: auto !important; padding: 14px; }
  .gallery-top .g-review blockquote { font-size: 12.5px; }
  .gallery-top .g-review blockquote::before { font-size: 36px; margin-bottom: 4px; }
  .vr, .vr-row { gap: 6px; }
  .vr-row { grid-template-columns: 1fr 1fr !important; }
  .vr-row { width: 100% !important; }
  .vr-row > * { margin-top: 0 !important; }
  .vr-row .g-video { aspect-ratio: 4 / 5 !important; }
  .r1 .g-review, .r3 .g-review { margin-top: 30px !important; }
  .r2 .g-video:nth-child(3), .r5 .g-video:nth-child(2) { margin-top: 36px !important; }
  .r4 .g-review { grid-column: 1 / -1; }
  .vr-row .g-video { aspect-ratio: 4 / 5; }
  .vr-row .g-review { grid-row: auto !important; padding: 14px; }
  .r1 .g-review, .r3 .g-review { grid-column: auto !important; }
  .r2 .g-review { grid-column: 1 / -1 !important; }
  .vr-row .g-review blockquote { font-size: 12.5px; }
  .vr-row .g-review blockquote::before { font-size: 36px; margin-bottom: 4px; }
  .g-review { grid-column: span 2; grid-row: span 2; padding: 20px; }
  .g-review blockquote { font-size: 15px; }
  .cslider { grid-template-columns: 1fr 42vw 1fr; margin: 0 -16px; }
  .cs-left { gap: 14px; }
  .cs-band { padding: 10px 8px; }
  .cs-name { padding-left: 6px; padding-right: 6px; }
  .cs-name h3 { font-size: clamp(18px, 5.4vw, 30px); }
  .cs-arrow { font-size: 20px; padding: 4px 10px; }
  .cs-photo { border-radius: 8px; }
  .cs-role { padding-left: 10px; }
  .cs-role .mono { font-size: 17px; letter-spacing: .02em; }
  .cs-desc { font-size: 13.5px; line-height: 1.45; padding: 12px 10px 0; }
  .cs-count { font-size: 10px; padding: 10px 0 0 10px; }
  .price-head { grid-template-columns: 1fr; }
  .bill { width: 100%; }
  .bill button { flex: 1; padding: 12px 6px; font-size: 11px; }
  .plans { grid-template-columns: 1fr; gap: 28px; }
  .plan { padding: 30px 24px 26px; }
  .pack { grid-template-columns: auto auto 1fr auto; gap: 10px 14px; }
  .pack-unit { grid-column: 1 / -1; grid-row: 2; }
  .pack-n { font-size: 52px; } .pack-price { font-size: 46px; }
  .sch-full { display: none; }
  .sch-short { display: inline; }
  .sch-table { table-layout: fixed; }
  .sch-table th { font-size: 10px; padding: 0 2px 10px; text-align: center; letter-spacing: .04em; }
  .sch-table tbody th { font-size: 15px; width: 40px; padding: 0 4px 0 0; text-align: left; }
  .sch-table thead th:last-child { width: 58px; }
  .sch-table .sch-en .sch-short { letter-spacing: 0; }
  .sch-table td { padding: 3px 2px; }
  .sch-table .sch-cls, .sch-table .sch-empty { padding: 9px 0; text-align: center; font-size: 9px; letter-spacing: .02em; border-left-width: 0; }
  .sch-table .sch-ct { background: transparent; border: 1px solid rgba(227,36,27,.7); color: #fff; }
  .sch-table .sch-hy { background: transparent; border: 1px solid rgba(255,225,0,.7); color: var(--yellow) !important; }
  .sch-table .sch-hf { background: transparent; border: 1px solid rgba(244,244,242,.7); color: var(--white); }
  .sch-table .sch-en { background: transparent; border: 1px solid rgba(47,140,255,.8); color: var(--blue); }
  .sch-table .sch-empty { color: transparent; }
  .sch-days { display: none !important; }
  .sch-days button { background: none; border: 1px solid var(--line); color: var(--grey); font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 12px 0; cursor: pointer; }
  .sch-days button[aria-selected="true"] { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
  .sch-list { display: none !important; }
  .sch-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; }
  .sch-row > .mono { font: 800 22px/1 var(--display); color: var(--white); }
  .sch-row .sch-cls { font-size: 13px; padding: 13px 14px; }
  .sch-extra { grid-template-columns: 1fr; }
  .sch-box { padding: 24px; }
  .prog-copy, .wods { grid-template-columns: 1fr; }
  .prog-copy { gap: 20px; }
  .prog-copy p, .prog-copy h2, .prog-copy .btn { grid-column: 1; grid-row: auto; }
  .cls { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .cls.rev .cls-photo { order: 0; }
  .cls-photo { aspect-ratio: 4 / 3; }
  .cards { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 8px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card-photo { flex: 0 0 62%; scroll-snap-align: center; }
  .affil strong { font-size: 22px; }
  .section { padding: 88px 16px; }
  .steps, .trees, .prices, .prices.two, .coaches, .contact, .trial { grid-template-columns: 1fr; }
  .prices.two { max-width: none; }
  .trial { gap: 40px; }
  .classes { padding-left: 20px; }
  .classes li::before { left: -21px; width: 20px; }
  .classes li { border-radius: 24px; padding: 16px 20px; flex-direction: column; gap: 4px; }
  .classes h3 { font-size: 26px; }
  .step, .step + .step { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .trees { gap: 56px; }
  .row { grid-template-columns: 80px 1fr; gap: 6px 16px; }
  .row .big { font-size: 36px; grid-row: span 2; }
  .amount { font-size: 72px; }
}

/* Móviles muy estrechos (≤ 350 px): horario más compacto */
@media (max-width: 350px) {
  .sch-table tbody th { width: 34px; font-size: 13px; }
  .sch-table .sch-cls { font-size: 7.6px; letter-spacing: -.01em; }
  .sch-table thead th:last-child { width: 54px; }
}

/* Títulos de sección con letra tipo Training Culture (General Sans) */
.section h2, .cta h2 { font-family: var(--title); font-weight: 500; letter-spacing: -.025em; line-height: 1; font-size: clamp(36px, 5.2vw, 72px); }
.section h2 .red, .cta h2 .red { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; text-transform: uppercase; letter-spacing: .035em; font-size: 1.12em; line-height: .9; }

/* Todos los títulos con la misma pareja de letras: General Sans + palabras en rojo en serif cursiva */
h1, h2, h3 { font-family: var(--title); font-weight: 500; letter-spacing: -.025em; line-height: 1; }
h1 .red, h2 .red, h3 .red { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; text-transform: uppercase; letter-spacing: .035em; font-size: 1.12em; line-height: .9; }
.hero h1 { font-size: clamp(46px, 8.2vw, 112px); line-height: .98; }
.card-photo h3 { font-size: clamp(18px, 1.8vw, 24px); }
.cls-body h3 { font-size: clamp(34px, 4.4vw, 60px); }
.cs-name h3 { font-size: clamp(22px, 2.6vw, 38px); }
.wod-block h3 { font-size: clamp(28px, 3vw, 40px); }
.wod-day strong { font-family: var(--title); font-weight: 500; letter-spacing: -.02em; }
.sch-box h3 { font-size: clamp(34px, 4vw, 52px); }
.coach h3, .tree h3 { font-weight: 500; }
@media (max-width: 820px) {
  .cs-name h3 { font-size: clamp(15px, 4.4vw, 26px); }
  .card-photo h3 { font-size: 20px; }
}
.track { font-family: var(--title); font-weight: 500; letter-spacing: -.02em; }

/* Logo original grande en el pie */
.footer-logo { display: block; width: min(100%, 1100px); height: auto; margin: 40px auto 48px; }

/* Preguntas frecuentes */
.faq-list { border-top: 1px solid var(--line); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 500 clamp(17px, 1.6vw, 21px)/1.3 var(--title); letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 300 26px/1 var(--title); color: var(--red); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: #c3c3c3; padding: 0 0 24px; max-width: 720px; }

/* Test para novatos (dentro de Contacto, cerrado por defecto) */
.quiz { grid-column: 1 / -1; border: 1px solid var(--line); background: var(--black-2); box-shadow: inset 0 3px 0 var(--red); }
.quiz-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 32px clamp(20px, 3vw, 40px); }
.quiz-head .label { margin-bottom: 12px; }
.quiz-head h3 { font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; }
.quiz-head h3 .red { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; letter-spacing: .035em; font-size: 1.12em; }
.quiz-head p { color: #bdbdbd; margin-top: 12px; max-width: 560px; }
.quiz-open { flex-shrink: 0; cursor: pointer; color: var(--white); padding: 16px 24px; font-size: 12px; }
.quiz.open .quiz-open { border-color: var(--red); }
.quiz-body { border-top: 1px solid var(--line); padding: 28px clamp(20px, 3vw, 40px) 36px; }
.quiz-top { display: flex; justify-content: space-between; color: var(--red); }
.quiz-close { background: none; border: 0; color: var(--grey); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.quiz-close:hover { color: var(--white); }
.quiz-bar { height: 2px; background: var(--line); margin: 14px 0 28px; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .35s; }
.quiz-q { font: 500 clamp(22px, 2.4vw, 32px)/1.15 var(--title); letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 22px; }
.quiz-q .red { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; letter-spacing: .035em; font-size: 1.12em; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-opt { background: none; border: 1px solid var(--line); color: var(--white); padding: 13px 20px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-opt:hover { border-color: #555; }
.quiz-opt.on { border-color: var(--red); background: var(--red); color: #fff; }
.quiz-ans { margin-top: 26px; padding-left: 20px; border-left: 2px solid var(--red); max-width: 760px; }
.quiz-ans p { color: #e2e2e2; font-size: 17px; line-height: 1.55; }
.quiz-ans p span { color: var(--grey); }

.quiz-ans.in { animation: quizIn .35s ease; }
@keyframes quizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-plan { border-top: 1px solid var(--line); max-width: 640px; }
.quiz-plan li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.quiz-plan li span:first-child { color: var(--grey); }
.quiz-plan li:last-child span:last-child { color: var(--red); }
.quiz-bring { color: #bdbdbd; margin: 22px 0 26px; max-width: 640px; }
.quiz-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.quiz-cta .btn-line { padding: 17px 24px; font-size: 13px; }
.quiz-again { background: none; border: 0; color: var(--grey); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.trial-test { display: inline-block; color: var(--grey); margin-top: 22px; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.trial-test:hover { color: var(--white); border-color: var(--red); }
@media (max-width: 760px) {
  .quiz-head { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 20px; }
  .quiz-body { padding: 22px 20px 28px; }
  .quiz-opt { padding: 12px 16px; }
  .quiz-plan li { grid-template-columns: 110px 1fr; }
  .quiz-cta .btn { width: 100%; text-align: center; }
}

/* Test con más presencia: bloque grande al principio de Contacto */
.quiz-head { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); }
.quiz-head .label { margin-bottom: 20px; }
.quiz-copy p { color: #c3c3c3; font-size: 17px; margin: 22px 0 30px; max-width: 560px; }
.quiz-open { border: 0; cursor: pointer; color: #fff; padding: 20px 32px; font-size: 14px; }
.quiz.open .quiz-open { background: var(--white); color: var(--black); }
.quiz-facts { border-top: 1px solid var(--line); }
.quiz-facts li { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.quiz-facts b { font: 800 clamp(48px, 5vw, 72px)/.9 var(--display); color: var(--red); min-width: 1.6em; }
.quiz-facts .mono { color: #cfcfcf; }
@media (max-width: 760px) {
  .quiz-head { grid-template-columns: 1fr; display: grid; gap: 28px; padding: 32px 20px; }
  .quiz-open { width: 100%; text-align: center; }
  .quiz-facts b { font-size: 48px; }
}

/* Test: volver atrás */
.quiz-nav { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.quiz-nav .btn { border: 0; cursor: pointer; }
.quiz-back { background: none; border: 0; color: var(--grey); cursor: pointer; padding: 8px 0; transition: color .2s; }
.quiz-back:hover { color: var(--white); }

.quiz [hidden] { display: none !important; }

/* Test como ventana emergente: fondo desenfocado y la ventana en primer plano */
html.quiz-lock, html.quiz-lock body { overflow: hidden; }
.quiz-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(6,6,6,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .25s ease; }
.quiz-modal.in { opacity: 1; }
.quiz-modal .quiz-body { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; background: var(--black-2); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--red), 0 30px 80px rgba(0,0,0,.6); padding: 30px clamp(20px, 4vw, 44px) 36px; transform: translateY(16px) scale(.98); transition: transform .3s ease; }
.quiz-modal.in .quiz-body { transform: none; }
.quiz-modal .quiz-close { font-size: 12px; padding: 6px 0; }
@media (max-width: 760px) {
  .quiz-modal { padding: 9dvh 12px 12px; place-items: start center; }
  .quiz-modal .quiz-body { width: 100%; max-height: calc(91dvh - 12px); padding: 22px 18px 26px; transform: translateY(24px); }
}
.quiz-modal[hidden], .quiz-modal [hidden] { display: none !important; }

/* Botón volver arriba */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; display: grid; place-items: center; background: rgba(10,10,10,.8); color: #fff; border: 1px solid var(--line); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s, border-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--red); border-color: var(--red); }
@media (max-width: 760px) { .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; } }
