/* Groovity · Clases de batería con Pablo Trangol — estilos v2
   Dirección: estudio técnico oscuro. Base Medianoche, crema para el texto, oro como señal.
   Outfit para leer, JetBrains Mono para datos y etiquetas (como la pantalla de un instrumento).
   Sin sombras ni degradados; un solo aro grande (el logo del inicio). */
:root {
  --bg: #0a1624;          /* fondo general */
  --bg-2: #0c1a2b;        /* Medianoche (secciones alternas) */
  --raised: #11233a;      /* paneles */
  --raised-2: #152a43;
  --line: #1c3352;        /* líneas finas */
  --line-strong: #27508a; /* azul de marca */
  --grid: rgba(39, 80, 138, .16);
  --ink: #f1ece0;         /* crema */
  --muted: #a9b6c8;
  --dim: #6f819a;
  --gold: #e2b657;
  --gold-deep: #c9962b;
  --gold-dim: #5c4a22;
  --blue: #4f7bbd;
  --cell: #132840;
  --cell-alt: #0f2135;
  --on-gold: #0c1a2b;
  --logo-blue: #4f7bbd;
  --logo-gold: #e2b657;
  --logo-dot: #e2b657;
  --topbar-bg: rgba(10, 22, 36, .86);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 4px;
  --r-lg: 10px;
  --gutter-x: clamp(16px, 4vw, 56px);
  --pad-left: max(var(--gutter-x), env(safe-area-inset-left, 0px));
  --pad-right: max(var(--gutter-x), env(safe-area-inset-right, 0px));
  --beat: 3.4286s;        /* un compás a 70 BPM */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--pad-left); padding-right: var(--pad-right); }

/* Etiquetas técnicas */
.kicker, .tag, .panel__label, .readout dt, .seq__head, .seq__lbl, .seq__ticks, .nav span, .bpm,
.hours, .creds span, .cam, figcaption, .footer__data dt, .footer__legal, .ig__fallback-kicker, .point__num, .incluye li > span, .steps li span {
  font-family: var(--mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem;
}
.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.kicker span { color: var(--gold); }
.kicker::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--line-strong); }

/* Logo SVG: colores desde CSS */
.lg-ink { fill: var(--ink); }
.lg-dot { fill: var(--logo-dot); }
.lg-bs { stroke: var(--logo-blue); }
.lg-gs { stroke: var(--logo-gold); }
.lg-gf { fill: var(--logo-gold); }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.topbar.is-solid { background: var(--topbar-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.topbar__inner { max-width: 1240px; margin: 0 auto; padding: 14px var(--pad-right) 14px var(--pad-left); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; text-decoration: none; }
.gword { height: 26px; width: auto; display: block; }
.topbar .brand { opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; pointer-events: none; }
.topbar.is-solid .brand, .no-js .topbar .brand { opacity: 1; transform: none; pointer-events: auto; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; display: inline-flex; gap: 8px; align-items: baseline; transition: color .2s; }
.nav a span { color: var(--dim); font-size: .66rem; }
.nav a:hover { color: var(--ink); }
.topbar__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.bpm { display: none; align-items: center; gap: 8px; color: var(--dim); padding-right: 14px; border-right: 1px solid var(--line); }
.bpm i, .tag__dot, .seq__led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.topbar__ig { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.topbar__ig:hover { color: var(--ink); border-color: var(--line-strong); }
.topbar__cta { text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 999px; background: var(--gold); color: var(--on-gold); }
.topbar__cta:hover { background: var(--ink); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn--wa { background: var(--gold); color: var(--on-gold); }
.btn--wa:hover { background: var(--ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 17px 30px; font-size: 1.06rem; }
.linkbtn { font: inherit; color: var(--gold); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Inicio ---------- */
.hero { position: relative; isolation: isolate; margin-top: -65px; padding-block: calc(65px + clamp(28px, 6vw, 72px)) clamp(56px, 8vw, 104px);
  background-color: var(--bg); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 85%); }
.js .hero::before { animation: gFade 2.4s .2s cubic-bezier(.2,.7,.2,1) both; }

/* Entrada del inicio: cada pieza aparece desde un leve desenfoque, una tras otra */
.js .hero__copy > *, .js .seq { animation: gFadeUp 1.1s cubic-bezier(.2,.7,.2,1) both; }
.js .hero__copy > :nth-child(1) { animation-delay: .05s; }
.js .hero__copy > :nth-child(2) { animation-delay: .25s; }
.js .hero__copy > :nth-child(3) { animation-delay: .38s; }
.js .hero__copy > :nth-child(4) { animation-delay: .52s; }
.js .hero__copy > :nth-child(5) { animation-delay: .66s; }
.js .hero__copy > :nth-child(6) { animation-delay: .8s; }
.js .seq { animation-duration: 1.4s; animation-delay: .9s; }
.js .topbar__inner { animation: gFade 1.2s .1s ease both; }
@keyframes gFadeUp { from { opacity: 0; transform: translateY(18px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes gFade { from { opacity: 0; } to { opacity: 1; } }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__brand { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.glogo { display: block; width: min(190px, 52vw); height: auto; margin-left: -10px; }
.firma { font-size: .88rem; color: var(--muted); }
.firma strong { color: var(--ink); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 20px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.hero h1 { font-size: clamp(2.5rem, 7.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; max-width: 13ch; }
.hl { color: var(--gold); }
.lead { margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 300; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Secuenciador */
.seq { min-width: 0; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 26px); }
.seq__head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.seq__title { color: var(--ink); }
.seq__meta { display: inline-flex; align-items: center; gap: 8px; }
.seq__grid { display: grid; gap: 8px; }
.seq__row { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; }
.seq__lbl { color: var(--dim); font-size: .66rem; }
.seq__cells { display: grid; grid-template-columns: repeat(16, 1fr); gap: clamp(3px, .5vw, 5px); }
.seq__ticks span { text-align: center; color: var(--dim); font-size: .62rem; line-height: 1; }
.seq__ticks span.b { color: var(--gold); }
.seq__c { position: relative; aspect-ratio: 1 / 1.25; border-radius: 3px; background: var(--cell); overflow: hidden; }
.seq__c:nth-child(n+5):nth-child(-n+8), .seq__c:nth-child(n+13) { background: var(--cell-alt); }
.seq__c.gh { background: #24406a; }
.seq__c.on { background: var(--gold-dim); }
.seq__c::after { content: ""; position: absolute; inset: 0; background: var(--blue); opacity: 0; }
.seq__c.on::after { display: none; }
.readout { display: grid; grid-template-columns: repeat(2, 1fr); margin: clamp(36px, 5vw, 52px) 0 0; max-width: 580px; border-top: 1px solid var(--line); }
.readout div { padding: 14px 0 0; }
.readout div:nth-child(n+3) { padding-top: 14px; }
.readout dt { color: var(--dim); font-size: .64rem; }
.readout dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.readout small { font-family: var(--mono); font-size: .66rem; color: var(--muted); margin-left: 4px; letter-spacing: .04em; font-weight: 400; }

/* Ritmo: todo late al mismo compás (70 BPM = 0,857 s por negra, 0,214 s por semicorchea).
   El compás arranca a los 3,43 s, igual que el pulso del logo, así que van juntos. */
.js .seq__c::after { animation: gSweep var(--beat) calc(var(--i) * .2143s) infinite; }
.js .seq__c.on { animation: gHit var(--beat) calc(var(--i) * .2143s) infinite; }
.js .seq__c.gh { animation: gGhost var(--beat) calc(var(--i) * .2143s) infinite; }
.js .bpm i, .js .tag__dot, .js .seq__led { animation: gBlink .857s infinite; }
.seq.is-paused *, .seq.is-paused *::after { animation-play-state: paused !important; }
@keyframes gSweep { 0% { opacity: .55; } 6.25%, 100% { opacity: 0; } }
@keyframes gHit { 0% { background: var(--gold); transform: scaleY(1.08); } 35%, 100% { background: var(--gold-dim); transform: none; } }
@keyframes gGhost { 0% { background: var(--blue); } 30%, 100% { background: #24406a; } }
@keyframes gBlink { 0% { opacity: 1; } 25%, 100% { opacity: .25; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2, .exp__copy h2, .cta h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; max-width: 18ch; }
.sub { color: var(--muted); font-weight: 300; font-size: 1.1rem; max-width: 58ch; }

/* Las clases */
.points { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 72px); }
.point { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.point__num { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--gold); font-size: .78rem; }
.point h3 { font-size: 1.25rem; }
.point p { color: var(--muted); }
.clases__grid { display: grid; gap: 24px; }
.clases__side { display: grid; gap: 24px; min-width: 0; }

/* Marco técnico para fotos y videos */
.frame { position: relative; border-radius: var(--r); overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; z-index: 2; pointer-events: none; }
.frame::before { top: 8px; left: 8px; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.frame::after { bottom: 8px; right: 8px; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.photo img { aspect-ratio: 4 / 5; }
figcaption { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--raised); border-top: 1px solid var(--line); color: var(--muted); }
figcaption span { color: var(--gold); }

.panel { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); min-width: 0; }
.panel__label { display: flex; align-items: center; gap: 10px; color: var(--gold); margin-bottom: 14px; }
.panel__label::before { content: ""; width: 7px; height: 7px; background: var(--gold); border-radius: 1px; }
.panel h3 { font-size: 1.4rem; margin-bottom: 8px; }
.panel > p { color: var(--muted); }
.incluye ul { margin-top: 20px; border-top: 1px solid var(--line); }
.incluye li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.incluye li:last-child { border-bottom: 0; padding-bottom: 0; }
.incluye li > span { color: var(--dim); padding-top: 4px; }
.incluye li strong { color: var(--ink); font-weight: 600; }
.steps ol { display: grid; gap: 0; }
.steps li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.steps li:first-child { padding-top: 0; }
.steps li span { color: var(--gold); font-size: .66rem; }

/* Horario como pista de tiempo */
.hours { margin-top: 22px; display: grid; gap: 10px; text-transform: none; }
.hours__row, .hours__scale { display: grid; grid-template-columns: 62px 1fr 46px; align-items: center; gap: 12px; }
.hours__row > span:first-child { color: var(--muted); text-transform: uppercase; }
.hours__track { position: relative; height: 10px; border-radius: 2px; background: var(--cell); }
.hours__track i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--gold);
  left: calc((var(--from) - 8) / 14 * 100%); width: calc((var(--to) - var(--from)) / 14 * 100%); }
.hours__time { color: var(--ink); text-align: right; }
.hours__scale div { position: relative; height: 12px; }
.hours__scale b { position: absolute; top: 0; font-weight: 400; color: var(--dim); font-size: .62rem; transform: translateX(-50%); }
.hours__scale b:nth-child(1) { left: 0; transform: none; }
.hours__scale b:nth-child(2) { left: 28.57%; }
.hours__scale b:nth-child(3) { left: 57.14%; }
.hours__scale b:nth-child(4) { left: 85.71%; }

/* El profe */
.experiencia { background: var(--bg-2); }
.exp__grid { display: grid; gap: clamp(48px, 7vw, 88px); align-items: center; }
.exp__photos { position: relative; padding-bottom: 18%; padding-right: 12%; }
.exp__main img { aspect-ratio: 4 / 5; }
.exp__second { position: absolute; right: 0; bottom: 0; width: 52%; border: 6px solid var(--bg-2); border-radius: var(--r-lg); }
.exp__second::before, .exp__second::after { display: none; }
.exp__second img { aspect-ratio: 3 / 2; }
.exp__copy { min-width: 0; display: grid; gap: 20px; }
.exp__copy > p:not(.kicker) { color: var(--muted); font-weight: 300; font-size: 1.12rem; max-width: 52ch; }
.creds { margin-top: 12px; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.creds span { color: var(--dim); padding-top: 4px; }

/* El estudio */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(180px, 46vw, 300px); gap: 12px; }
.gallery__item--hero { grid-column: span 2; grid-row: span 1; }
.cam { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg); color: var(--ink); border-radius: var(--r); font-size: .62rem; }
.cam i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.gallery__note { margin-top: 16px; color: var(--dim); font-size: .9rem; }

/* Instagram */
.ig__head { display: grid; gap: 24px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.ig__head .sec-head { margin-bottom: 0; }
.ig__follow { justify-self: start; }
.ig__grid { display: grid; gap: 16px; }
.ig__post { min-width: 0; }
.ig__post .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: var(--r-lg) !important; }
.ig__fallback { display: grid; gap: 10px; align-content: space-between; min-height: 220px; padding: 26px; text-decoration: none; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s; }
.ig__fallback:hover { border-color: var(--gold); }
.ig__fallback-kicker { color: var(--dim); }
.ig__fallback-title { font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.ig__fallback-link { color: var(--gold); font-weight: 600; }

/* Cierre */
.cta__box { position: relative; padding: clamp(32px, 6vw, 72px); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--raised); display: grid; gap: 20px; }
.count { display: flex; gap: 6px; margin-bottom: 6px; }
.count i { width: 22px; height: 6px; border-radius: 1px; background: var(--cell); }
.js .count i { animation: gCount var(--beat) infinite; }
.js .count i:nth-child(2) { animation-delay: .857s; }
.js .count i:nth-child(3) { animation-delay: 1.714s; }
.js .count i:nth-child(4) { animation-delay: 2.571s; }
@keyframes gCount { 0% { background: var(--gold); } 25%, 100% { background: var(--cell); } }
.cta h2 { max-width: 22ch; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 12px; }
.cta__phone { color: var(--muted); }
.cta__phone a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* Pie */
.footer { padding-block: 56px 28px; }
.footer__inner { display: grid; gap: 36px; }
.footer .gword { height: 30px; }
.footer__brand .firma { margin-top: 12px; }
.footer__data { display: grid; gap: 20px; margin: 0; }
.footer__data dt { color: var(--dim); margin-bottom: 6px; }
.footer__data dd { margin: 0; color: var(--muted); }
.footer__data a { color: var(--ink); text-decoration: none; }
.footer__data a:hover { color: var(--gold); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); }

/* Botón fijo móvil */
.wa-float { position: fixed; z-index: 40; left: var(--pad-left); right: var(--pad-right); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold); font-weight: 600; text-decoration: none;
  transform: translateY(160%); transition: transform .35s cubic-bezier(.2,.8,.3,1); }
.wa-float.is-visible { transform: none; }

/* Aparición */
.js .reveal { transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1.1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-pre { opacity: 0; transform: translateY(28px); filter: blur(8px); }
.js .points .point:nth-child(2), .js .gallery .reveal:nth-child(2), .js .ig__grid > :nth-child(2) { transition-delay: .12s; }
.js .points .point:nth-child(3), .js .gallery .reveal:nth-child(3) { transition-delay: .24s; }
.js .gallery .reveal:nth-child(4) { transition-delay: .36s; }
.js .gallery .reveal:nth-child(5) { transition-delay: .48s; }
.js .exp__copy .reveal:nth-child(2) { transition-delay: .1s; }
.js .exp__copy .reveal:nth-child(3) { transition-delay: .2s; }
.js .exp__copy .reveal:nth-child(4) { transition-delay: .3s; }
/* Las fotos además se aclaran desde un leve zoom */
.frame img, .frame video { transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-pre .frame img, .js .reveal.is-pre.frame img, .js .reveal.is-pre.frame video { transform: scale(1.06); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .readout { grid-template-columns: repeat(4, 1fr); }
  .readout div + div { padding-left: 16px; border-left: 1px solid var(--line); }
  .points { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 24px; }
  .point { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--line-strong); padding-top: 24px; }
  .point__num { grid-row: auto; margin-bottom: 10px; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 20vw, 260px); }
  .gallery__item--hero { grid-column: span 2; grid-row: span 2; }
  .ig__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__data { grid-template-columns: repeat(3, 1fr); }
  .wa-float { left: auto; right: max(24px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .nav, .bpm { display: inline-flex; }
  .topbar__actions { margin-left: 0; }
  .hero { min-height: min(100vh, 860px); display: flex; align-items: center; padding-block: calc(65px + 24px) 64px; }
  .hero__brand { flex-direction: row; align-items: center; gap: 18px; margin-bottom: 22px; }
  .glogo { width: 150px; margin-left: -8px; }
  .hero__brand .firma { max-width: 16ch; line-height: 1.4; }
  .hero h1 { font-size: clamp(2.6rem, 4.6vw, 3.9rem); }
  .hero__brand { margin-bottom: 18px; }
  .lead { margin-top: 18px; }
  .hero__actions { margin-top: 26px; }
  .hero__copy .readout { margin-top: 32px; }
  .hero__copy .readout dd { font-size: 1.45rem; }
  /* El secuenciador, solo y más grande */
  .seq { padding: 30px 30px 34px; }
  .seq__grid { gap: 12px; }
  .seq__row { grid-template-columns: 34px 1fr; }
  .seq__cells { gap: 6px; }
  .seq__c { aspect-ratio: 1 / 1.5; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .sec-head { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .sec-head .kicker { grid-column: 1 / 4; align-self: start; padding-top: 14px; }
  .sec-head h2, .sec-head .sub { grid-column: 4 / 13; }
  .clases__grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .photo { position: sticky; top: 96px; }
  .exp__grid { grid-template-columns: 1fr 1fr; }
  .ig__head { grid-template-columns: 1fr auto; }
  .footer__inner { grid-template-columns: 1fr 2fr; align-items: start; }
  .wa-float { display: none; }
}

/* Movimiento reducido: todo queda quieto y legible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-pre { opacity: 1; transform: none; filter: none; transition: none; }
  .js .hero::before, .js .hero__copy > *, .js .seq, .js .topbar__inner { animation: none !important; }
  .js .reveal.is-pre.frame img, .js .reveal.is-pre.frame video { transform: none; }
  .js .glogo__dot, .js .glogo__rings, .js .glogo__rip, .js .seq__c, .js .seq__c::after,
  .js .bpm i, .js .tag__dot, .js .seq__led, .js .count i { animation: none !important; }
  .count i:first-child { background: var(--gold); }
}

/* Logo animado: cae, golpea la i, rebota y queda en órbita (3,26 s, al tempo de 70 BPM).
   Luego, desde el compás 2 (3,43 s), late con We Will Rock You: pisotón, pisotón, aplauso.
   Pisotones: el punto se hunde y salen aros azules. Aplausos: el punto salta y salen aros dorados. */
.glogo__dot { transform-box: fill-box; transform-origin: center; }
.glogo__rings, .glogo__rip { transform-box: view-box; transform-origin: 320px 200px; }
.glogo__rip { opacity: 0; }
.js .glogo__dot { animation: gDotIn 3.26s both, gDotPulse var(--beat) var(--beat) infinite; }
.js .glogo__rings { animation: gShakeIn 3.26s both, gShakePulse var(--beat) var(--beat) infinite; }
.js .glogo__rip--1 { animation: gRip1 3.26s both; }
.js .glogo__rip--2 { animation: gRip2 3.26s both; }
.js .glogo__rip--b1 { animation: gRipB1 var(--beat) var(--beat) infinite; }
.js .glogo__rip--b2 { animation: gRipB2 var(--beat) var(--beat) infinite; }
.js .glogo__rip--b3 { animation: gRipB3 var(--beat) var(--beat) infinite; }
.js .glogo__rip--b4 { animation: gRipB4 var(--beat) var(--beat) infinite; }
.glogo.is-paused * { animation-play-state: paused !important; }

@keyframes gDotIn {
  0% { transform: translateY(-260px) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  26.3% { transform: translateY(19.3px) scale(1.18, .76); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  30.3% { transform: translateY(17.8px) scale(1, 1); animation-timing-function: cubic-bezier(0,.55,.45,1); }
  47.4% { transform: translateY(-46px) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  63.2% { transform: translateY(18.8px) scale(1.1, .86); }
  65.8% { transform: translateY(17.8px) scale(1, 1); animation-timing-function: cubic-bezier(0,.55,.45,1); }
  84.2%, 100% { transform: translateY(0) scale(1, 1); }
}
@keyframes gDotPulse {
  0% { transform: translateY(9px) scale(1.07, .9); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  7% { transform: translateY(0) scale(1, 1); }
  11% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  12.5% { transform: translateY(9px) scale(1.07, .9); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  19.5% { transform: translateY(0) scale(1, 1); }
  23.5% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  25% { transform: translateY(-8px) scale(.94, 1.08); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  34% { transform: translateY(0) scale(1, 1); }
  48.5% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  50% { transform: translateY(9px) scale(1.07, .9); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  57% { transform: translateY(0) scale(1, 1); }
  61% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  62.5% { transform: translateY(9px) scale(1.07, .9); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  69.5% { transform: translateY(0) scale(1, 1); }
  73.5% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  75% { transform: translateY(-8px) scale(.94, 1.08); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  84% { transform: translateY(0) scale(1, 1); }
  98.5% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  100% { transform: translateY(9px) scale(1.07, .9); }
}
@keyframes gShakeIn {
  0%, 26.3% { transform: scale(1); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  30.3% { transform: scale(1.03); }
  36.8% { transform: scale(.9865); }
  44.7% { transform: scale(1.006); }
  52.6%, 63.2% { transform: scale(1); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  67.1% { transform: scale(1.012); }
  73.7% { transform: scale(.9946); }
  81.6% { transform: scale(1.0024); }
  89.5%, 100% { transform: scale(1); }
}
@keyframes gShakePulse {
  0% { transform: scale(1.01); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  3% { transform: scale(0.9955); }
  7% { transform: scale(1.002); }
  10.5% { transform: scale(1); }
  12.5% { transform: scale(1.01); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  15.5% { transform: scale(0.9955); }
  19.5% { transform: scale(1.002); }
  23% { transform: scale(1); }
  25% { transform: scale(1.016); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  28% { transform: scale(0.993); }
  32% { transform: scale(1.003); }
  35.5% { transform: scale(1); }
  49.9% { transform: scale(1); }
  50% { transform: scale(1.01); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  53% { transform: scale(0.9955); }
  57% { transform: scale(1.002); }
  60.5% { transform: scale(1); }
  62.5% { transform: scale(1.01); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  65.5% { transform: scale(0.9955); }
  69.5% { transform: scale(1.002); }
  73% { transform: scale(1); }
  75% { transform: scale(1.016); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  78% { transform: scale(0.993); }
  82% { transform: scale(1.003); }
  85.5% { transform: scale(1); }
  99.9% { transform: scale(1); }
  100% { transform: scale(1.01); }
}
@keyframes gRip1 {
  0%, 26.2% { opacity: 0; transform: scale(1); stroke-width: 4px; }
  26.3% { opacity: .9; transform: scale(1); stroke-width: 4px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  94.7%, 100% { opacity: 0; transform: scale(1.547); stroke-width: 1px; }
}
@keyframes gRip2 {
  0%, 63.1% { opacity: 0; transform: scale(1); stroke-width: 3px; }
  63.2% { opacity: .45; transform: scale(1); stroke-width: 3px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  100% { opacity: 0; transform: scale(1.433); stroke-width: 1px; }
}
@keyframes gRipB1 {
  0% { opacity: 0.35; transform: scale(1); stroke-width: 2.5px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  20%, 49.9% { opacity: 0; transform: scale(1.3); stroke-width: 1px; }
  50% { opacity: 0.35; transform: scale(1); stroke-width: 2.5px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  70%, 100% { opacity: 0; transform: scale(1.3); stroke-width: 1px; }
}
@keyframes gRipB2 {
  0%, 24.9% { opacity: 0; transform: scale(1); stroke-width: 3px; }
  25% { opacity: 0.45; transform: scale(1); stroke-width: 3px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  49%, 100% { opacity: 0; transform: scale(1.42); stroke-width: 1px; }
}
@keyframes gRipB3 {
  0%, 12.4% { opacity: 0; transform: scale(1); stroke-width: 2.5px; }
  12.5% { opacity: 0.3; transform: scale(1); stroke-width: 2.5px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  32.5%, 62.4% { opacity: 0; transform: scale(1.27); stroke-width: 1px; }
  62.5% { opacity: 0.3; transform: scale(1); stroke-width: 2.5px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  82.5%, 100% { opacity: 0; transform: scale(1.27); stroke-width: 1px; }
}
@keyframes gRipB4 {
  0%, 74.9% { opacity: 0; transform: scale(1); stroke-width: 3px; }
  75% { opacity: 0.45; transform: scale(1); stroke-width: 3px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  99%, 100% { opacity: 0; transform: scale(1.42); stroke-width: 1px; }
}

/* fin */

/* ==========================================================
   Color dinámico: degradados suaves de luz de estudio.
   Azul de marca y oro como fuentes de luz sobre Medianoche.
   ========================================================== */
:root {
  --glow-blue: rgba(39, 80, 138, .55);
  --glow-blue-soft: rgba(79, 123, 189, .22);
  --glow-gold: rgba(226, 182, 87, .16);
  --glow-gold-soft: rgba(226, 182, 87, .08);
  --panel-grad: linear-gradient(155deg, #173356 0%, #11233a 42%, #0d1c30 100%);
  --gold-grad: linear-gradient(135deg, #f0cd78 0%, #e2b657 45%, #c9962b 100%);
}

/* Inicio: dos luces que respiran lento detrás de la grilla */
.hero { overflow-x: clip; }
.hero::after { content: ""; position: absolute; inset: -10% -5% 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 55% at 78% 38%, var(--glow-blue) 0%, transparent 70%),
    radial-gradient(30% 40% at 62% 70%, var(--glow-gold) 0%, transparent 70%),
    radial-gradient(38% 50% at 8% 12%, var(--glow-blue-soft) 0%, transparent 70%); }
.js .hero::after { animation: gFade 2.6s .1s ease both, gDrift 18s 2.6s ease-in-out infinite alternate; }
@keyframes gDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }

/* Título: el oro con brillo, como metal de platillo */
.hl { background: linear-gradient(100deg, #f5d98f 0%, #e2b657 40%, #c9962b 75%, #e9c46e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* Paneles con volumen */
.seq, .panel, .ig__fallback { background: var(--panel-grad); border-color: #1f3a5e; }
.seq { position: relative; }
.seq::before, .panel::before, .cta__box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(226, 182, 87, .55) 30%, rgba(143, 176, 221, .45) 70%, transparent 100%); }
.panel { position: relative; overflow: hidden; }
figcaption { background: linear-gradient(90deg, #13294a 0%, #11233a 100%); }

/* Botones dorados con brillo */
.btn--wa, .topbar__cta, .wa-float { background: var(--gold-grad); }
.btn--wa:hover, .topbar__cta:hover { background: var(--ink); }

/* Secciones: cada una con su propia luz */
.clases { background:
  radial-gradient(50% 40% at 100% 0%, var(--glow-blue-soft) 0%, transparent 70%), var(--bg); }
.experiencia { background:
  radial-gradient(60% 70% at 0% 45%, rgba(39, 80, 138, .6) 0%, transparent 70%),
  radial-gradient(35% 45% at 95% 90%, var(--glow-gold-soft) 0%, transparent 70%),
  linear-gradient(180deg, #0c1a2b 0%, #0a1726 100%); }
.espacio { background:
  radial-gradient(45% 40% at 85% 10%, var(--glow-gold-soft) 0%, transparent 70%), var(--bg); }
.ig { background:
  radial-gradient(50% 50% at 10% 100%, var(--glow-blue-soft) 0%, transparent 70%), var(--bg); }

/* Separadores que se desvanecen en los bordes */
.section, .hero { border-bottom: 0; }
.section { position: relative; }
.section + .section::before, .clases::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, #27508a 30%, #27508a 70%, transparent 100%); opacity: .7; }

/* Cierre: tarjeta con luz azul y un toque de oro */
.cta__box { overflow: hidden; border-color: #2a568f; background:
  radial-gradient(60% 90% at 100% 0%, rgba(79, 123, 189, .35) 0%, transparent 65%),
  radial-gradient(45% 70% at 0% 100%, rgba(226, 182, 87, .14) 0%, transparent 65%),
  linear-gradient(150deg, #173356 0%, #11233a 50%, #0d1c30 100%); }

/* Pie: se apaga hacia abajo */
.footer { background: linear-gradient(180deg, var(--bg) 0%, #08111c 100%); }

@media (prefers-reduced-motion: reduce) {
  .js .hero::after { animation: none !important; }
}

/* Video en vivo bajo la bio: se carga YouTube solo al hacer clic */
.live { margin-top: clamp(56px, 8vw, 96px); }
.live__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.live__head .panel__label { margin-bottom: 0; }
.live__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; }
.live__player { display: block; aspect-ratio: 16 / 9; text-decoration: none; cursor: pointer;
  background:
    radial-gradient(60% 80% at 30% 40%, rgba(39, 80, 138, .55) 0%, transparent 70%),
    radial-gradient(40% 60% at 80% 70%, rgba(226, 182, 87, .18) 0%, transparent 70%),
    #0d1c30; }
.live__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.live__player:hover .live__thumb { transform: scale(1.03); }
.live__play { position: absolute; left: 50%; top: 50%; z-index: 3; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px; color: var(--on-gold); background: var(--gold-grad); transition: transform .25s; }
.live__player:hover .live__play { transform: scale(1.08); }
.live__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.live__player.is-playing::before, .live__player.is-playing::after, .live__player.is-playing .cam { display: none; }
.live__note { margin-top: 14px; color: var(--dim); font-size: .9rem; }
.live__note a { color: var(--gold); text-underline-offset: 3px; }

/* Sesiones en vivo: carrusel horizontal con scroll */
.live__head { align-items: end; margin-bottom: 22px; }
.live__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.1; letter-spacing: -.025em; margin-top: 2px; }
.live__intro { color: var(--muted); font-weight: 300; margin-top: 8px; max-width: 46ch; }
.live__nav { display: flex; align-items: center; gap: 10px; }
.live__count { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--dim); margin-right: 6px; }
.live__count b { color: var(--gold); font-weight: 400; }
.live__arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid var(--line-strong); transition: border-color .2s, color .2s, opacity .2s; }
.live__arrow:hover { border-color: var(--gold); color: var(--gold); }
.live__arrow:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--dim); }
.live__track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px; }
.live__track::-webkit-scrollbar { display: none; }
.live__track:focus-visible { outline-offset: 6px; }
.live__card { scroll-snap-align: start; min-width: 0; }
.live__meta { padding: 14px 2px 0; }
.live__song { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.live__place { color: var(--dim); font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }
.live__bar { position: relative; height: 2px; margin-top: 22px; background: var(--line); border-radius: 2px; overflow: hidden; }
.live__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; border-radius: 2px; background: var(--gold-grad); transition: transform .15s linear; }
.live__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (min-width: 640px) { .live__track { grid-auto-columns: 62%; gap: 20px; } }
@media (min-width: 960px) { .live__track { grid-auto-columns: calc((100% - 40px) / 2.35); gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .live__track { scroll-behavior: auto; } }


/* Horario a la vista en el inicio */
.hero__hours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 22px; padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: rgba(17, 35, 58, .7); width: fit-content; max-width: 100%; color: var(--muted); font-size: .98rem; }
.hero__hours strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.hero__hours-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hero__hours-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.js .hero__copy > :nth-child(7) { animation-delay: .9s; }

/* Horario más claro en "Cómo partir" */
.hours__title { margin-top: 24px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hours { margin-top: 12px; gap: 16px; }
.hours__row { grid-template-columns: 1fr auto; grid-template-areas: "day time" "track track"; row-gap: 8px; }
.hours__row > span:first-child { grid-area: day; font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); }
.hours__time { grid-area: time; font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 1.1rem; font-weight: 600; color: var(--gold); }
.hours__track { grid-area: track; height: 8px; }
.hours__scale { grid-template-columns: 1fr; margin-top: -6px; }
.hours__scale > span { display: none; }
@media (max-width: 559px) { .hero__hours-label { flex-basis: 100%; } .hero__hours { width: 100%; } }

/* Preguntas frecuentes */
.faq__list { max-width: 880px; margin-left: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 28px; align-items: center; gap: 12px; padding: 20px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__n { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--dim); }
.faq__q { font-size: clamp(1.02rem, 2vw, 1.2rem); font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.faq__item summary:hover .faq__q { color: var(--gold); }
.faq__icon { position: relative; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--gold); transition: transform .3s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item[open] .faq__n { color: var(--gold); }
.faq__item p { padding: 0 40px 22px 52px; color: var(--muted); font-weight: 300; max-width: 64ch; }
@media (max-width: 559px) { .faq__item summary { grid-template-columns: 30px 1fr 28px; } .faq__item p { padding: 0 0 20px 42px; } }
@media (min-width: 960px) { .faq__list { margin-left: calc(25% + 6px); } }

/* ==========================================================
   Gift card de Navidad (solo en index-con-giftcard.html)
   ========================================================== */
.gc { background:
  radial-gradient(45% 60% at 20% 50%, rgba(226, 182, 87, .16) 0%, transparent 70%),
  radial-gradient(40% 50% at 90% 10%, rgba(79, 123, 189, .3) 0%, transparent 70%), var(--bg-2); }
.gc__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.gc__copy { min-width: 0; display: grid; gap: 18px; }
.gc .kicker span { color: var(--gold); }
.gc h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; max-width: 16ch; }

/* Ilustración: la gift card impresa (frente y reverso) con sus baquetas */
.gc__visual { position: relative; width: min(100%, 480px); aspect-ratio: 1 / 1; margin: 0 auto; --coral: #ff5a4a; }
.gc__face { position: absolute; top: 4%; width: 54%; aspect-ratio: 397 / 559; container-type: inline-size; overflow: hidden;
  border-radius: 10px; background: #f1ece0; color: #0c1a2b; font-family: var(--font); }
.gc__in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 10cqw 10cqw 9cqw; }
.gc__in p { margin: 0; }
.gc__back { left: 2%; transform: rotate(-7deg); }
.gc__back .gc__in { gap: 2.4cqw; }
.gc__front { right: 2%; top: 9%; transform: rotate(5deg); }
.gcf__top { display: flex; justify-content: space-between; align-items: center; }
.gcf__pill { font-size: 3cqw; line-height: 1.3; font-weight: 600; letter-spacing: .25cqw; text-transform: uppercase; background: var(--coral); color: #0c1a2b; border-radius: 999px; padding: 1.3cqw 3cqw; }
.gcf__season { font-size: 3cqw; font-weight: 600; letter-spacing: .25cqw; text-transform: uppercase; color: #8a6514; }
.gcf__logo { flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.gcf__logo img { width: 76cqw; height: auto; }
.gcf__for { margin: 0 0 2.5cqw; font-size: 5.6cqw; font-weight: 600; }
.gcf__line { display: block; height: 8.5cqw; border-bottom: .5cqw solid var(--coral); }
.gcf__sig { margin-top: 7cqw; font-size: 3cqw; color: #4b5a6e; }
.gcf__sig b { color: #0c1a2b; font-weight: 600; }
.gcb__word { width: 28cqw; height: auto; }
.gcb__big { margin-top: 3cqw; font-size: 16cqw; line-height: .95; font-weight: 700; letter-spacing: -.25cqw; }
.gcb__sub { font-size: 5cqw; font-weight: 600; }
.gcb__desc { font-size: 3.3cqw; line-height: 1.45; color: #4b5a6e; }
.gcb__rule { display: block; width: 12cqw; border-top: .75cqw solid var(--coral); margin: 1.5cqw 0; }
.gcb__data { display: grid; grid-template-columns: 21cqw 1fr; gap: 3cqw; align-items: center; }
.gcb__data span { font-size: 3cqw; font-weight: 600; letter-spacing: .25cqw; text-transform: uppercase; color: #4b5a6e; }
.gcb__data i { display: block; width: 30cqw; height: 6.5cqw; border: .5cqw solid var(--coral); border-radius: 999px; }
.gcb__data b { font-size: 3.5cqw; font-weight: 600; color: #a82a1d; }
.gc__sticks { position: absolute; left: 0; bottom: 6%; width: 100%; height: 30px; transform: rotate(-12deg); }
.gc__sticks i { position: absolute; left: 0; right: 0; height: 9px; border-radius: 6px 50% 50% 6px;
  background: linear-gradient(180deg, #e9cf9f 0%, #c99a5b 100%); }
.gc__sticks i:last-child { top: 16px; left: 6%; right: -4%; }

/* Opciones */
.gc__options { display: grid; gap: 12px; margin-top: 6px; }
.gc__opt { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "inc cta"; gap: 4px 16px; align-items: baseline;
  padding: 18px 20px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); background: var(--panel-grad); border: 1px solid #1f3a5e; transition: border-color .2s, transform .2s; }
.gc__opt:hover { border-color: var(--gold); transform: translateY(-2px); }
.gc__opt--main { border-color: rgba(226, 182, 87, .55); }
.gc__opt-name { grid-area: name; font-weight: 600; font-size: 1.1rem; }
.gc__opt-inc { grid-area: inc; color: var(--muted); font-size: .92rem; font-weight: 300; }
.gc__opt-price { grid-area: price; font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: var(--gold); text-align: right; }
.gc__opt-cta { grid-area: cta; font-weight: 600; font-size: .9rem; color: var(--gold); text-align: right; }
.gc__terms { display: grid; gap: 0; margin-top: 6px; border-top: 1px solid var(--line); }
.gc__terms li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.gc__terms span { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.gc__fine { color: var(--dim); font-size: .85rem; }
@media (min-width: 960px) { .gc__grid { grid-template-columns: .9fr 1.1fr; } }
/* Galería: las tomas nuevas son verticales; en el celular el video principal gana altura */
@media (max-width: 639px) { .gallery__item--hero { grid-row: span 2; } }
/* Secuenciador: nombres de los tambores en palabras simples */
.seq__row { grid-template-columns: 52px 1fr; }
@media (min-width: 960px) { .seq__row { grid-template-columns: 58px 1fr; } }

/* ==========================================================
   Cómo empezar: los dos productos como libros de tapa dura
   Lomo, cantos de página, tela con textura, estampado en oro,
   cinta marcapáginas y una leve flotación.
   ========================================================== */
.formatos { background:
  radial-gradient(45% 55% at 50% 55%, rgba(39, 80, 138, .34) 0%, transparent 70%), var(--bg); }
.books { --bw: clamp(132px, 36vw, 262px); --bt: clamp(14px, 3.2vw, 26px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 7vw, 120px);
  justify-items: center; align-items: stretch; max-width: 900px; margin: 0 auto; }
.book { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center; text-decoration: none; color: var(--ink); min-width: 0; }

/* Escenario: luz suave detrás de cada libro */
.book__stage { position: relative; display: grid; place-items: center; padding: clamp(18px, 4vw, 36px) clamp(10px, 3vw, 30px) 0; perspective: 1400px; }
.book__stage::before { content: ""; position: absolute; left: 50%; top: 46%; width: calc(var(--bw) * 1.5); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, var(--halo) 0%, transparent 70%); }
.book__float { transform-style: preserve-3d; }
.js .book__float { animation: gBookFloat 6s ease-in-out infinite; }
.js .book--monthly .book__float { animation-delay: -3s; }
@keyframes gBookFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.book__obj { position: relative; width: var(--bw); aspect-ratio: 3 / 4.2; transform-style: preserve-3d;
  transform: rotateY(24deg) rotateX(-7deg); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.book:hover .book__obj, .book:focus-visible .book__obj { transform: rotateY(10deg) rotateX(-4deg) translateZ(18px); }

/* Caras del volumen */
.book__cover, .book__back { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; }
.book__back { transform: translateZ(calc(var(--bt) / -2)); background: var(--board-dark); }
.book__spine { position: absolute; top: 0; bottom: 0; left: 0; width: var(--bt); transform: translateX(calc(var(--bt) / -2)) rotateY(-90deg);
  background: linear-gradient(90deg, var(--board-dark) 0%, var(--board) 45%, var(--board-dark) 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.book__spine span { writing-mode: vertical-rl; font-family: var(--mono); font-size: clamp(.42rem, 1.1vw, .58rem); letter-spacing: .22em; text-transform: uppercase; color: var(--foil-flat); white-space: nowrap; }
.book__spine::before, .book__spine::after { content: ""; position: absolute; left: 18%; right: 18%; height: 1px; background: var(--foil-flat); opacity: .7; }
.book__spine::before { top: 9%; } .book__spine::after { bottom: 9%; }
.book__top { position: absolute; left: 2px; right: 5px; top: 0; height: calc(var(--bt) - 4px); transform: translateY(calc((var(--bt) - 4px) / -2)) rotateX(90deg);
  background: repeating-linear-gradient(180deg, #f3ecdc 0 1px, #d7ccb3 1px 2.5px); }

/* Tapa: tela con textura, brillo y bisagra */
.book__cover { transform: translateZ(calc(var(--bt) / 2)); overflow: hidden; color: var(--cover-ink);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px),
    var(--cover-bg); }
.book__cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .04) 26%, transparent 46%, transparent 72%, rgba(0, 0, 0, .18) 100%); }
.book__cover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 7%; width: 3px; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .14)); }
.book__in { position: absolute; inset: 0; container-type: inline-size; }
.book__layout { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 11cqw 10cqw 9cqw 16cqw; }

/* Estampado: el aro de la marca, recortado por el borde de la tapa */
.book__ring { position: absolute; right: -30cqw; top: 14cqw; width: 92cqw; aspect-ratio: 1; border-radius: 50%; border: .7cqw solid var(--foil-flat); opacity: .55; }
.book__ring::before { content: ""; position: absolute; inset: 7cqw; border-radius: 50%; border: .5cqw solid var(--foil-flat); opacity: .6; }
.book__ring::after { content: ""; position: absolute; left: 14cqw; top: 9cqw; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--foil); }
.book__brand { position: relative; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 4.2cqw; letter-spacing: .26em; text-transform: uppercase; color: var(--cover-soft); }
.book__brand b { font-weight: 500; color: var(--foil-flat); letter-spacing: .12em; }
.book__name { position: relative; margin-top: auto; font-size: 13.5cqw; line-height: .98; font-weight: 700; letter-spacing: -.04em;
  background: var(--title-fill); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.book__mark { position: relative; display: flex; gap: 2cqw; margin: 6cqw 0 auto; }
.book__mark i { width: 9cqw; height: 1.8cqw; border-radius: .6cqw; background: var(--foil); }
.book__foot { position: relative; display: flex; align-items: center; gap: 4cqw; padding-top: 5cqw; border-top: .4cqw solid var(--rule); }
.book__seal { width: 15cqw; height: auto; }
.book__foot span { font-family: var(--mono); font-size: 3.2cqw; letter-spacing: .12em; color: var(--cover-soft); }

/* Cinta marcapáginas */
.book__ribbon { position: absolute; left: 70%; bottom: -22px; width: clamp(8px, 1.6vw, 12px); height: 44px; transform: translateZ(calc(var(--bt) / 2 - 1px));
  background: var(--ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }

/* Sombra en el piso, sigue la flotación */
.book__shadow { width: calc(var(--bw) * 1.05); height: 30px; margin-top: 14px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .6) 0%, transparent 70%); }
.js .book__shadow { animation: gBookShadow 6s ease-in-out infinite; }
.js .book--monthly .book__shadow { animation-delay: -3s; }
@keyframes gBookShadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }

.book__desc { display: block; align-self: start; max-width: 30ch; margin-top: 10px; text-align: center; color: var(--muted); font-weight: 300; font-size: clamp(.84rem, 2.2vw, .98rem); line-height: 1.5; }
.book__cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: clamp(.82rem, 2.2vw, .95rem);
  color: var(--gold); border: 1px solid rgba(226, 182, 87, .45); transition: background .2s, color .2s, border-color .2s; }
.book:hover .book__cta, .book:focus-visible .book__cta { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }

/* Colores de cada edición */
.book--monthly { --halo: rgba(226, 182, 87, .2); --board: #18355a; --board-dark: #0a1727;
  --cover-bg: radial-gradient(90% 70% at 85% 0%, rgba(79, 123, 189, .45) 0%, transparent 70%), linear-gradient(160deg, #1b3b64 0%, #10243c 55%, #0a1727 100%);
  --cover-ink: #f1ece0; --cover-soft: rgba(241, 236, 224, .62); --rule: rgba(226, 182, 87, .35);
  --foil: linear-gradient(100deg, #f5d98f 0%, #e2b657 45%, #b8892b 100%); --foil-flat: #e2b657;
  --title-fill: linear-gradient(100deg, #f8e3a6 0%, #e2b657 45%, #c9962b 80%, #edca76 100%); --ribbon: linear-gradient(180deg, #e2b657, #b8892b); }
.book--trial { --halo: rgba(143, 176, 221, .24); --board: #e8dfcc; --board-dark: #cdbf9f;
  --cover-bg: radial-gradient(90% 70% at 85% 0%, rgba(255, 255, 255, .75) 0%, transparent 70%), linear-gradient(160deg, #f7f2e7 0%, #ece4d2 60%, #ddd2bb 100%);
  --cover-ink: #0c1a2b; --cover-soft: rgba(12, 26, 43, .6); --rule: rgba(39, 80, 138, .3);
  --foil: linear-gradient(100deg, #e9c46e 0%, #c9962b 50%, #8a6514 100%); --foil-flat: #b8892b;
  --title-fill: linear-gradient(100deg, #10243c 0%, #0c1a2b 60%, #27508a 100%); --ribbon: linear-gradient(180deg, #27508a, #183a66); }
.book--trial .book__ring { opacity: .45; }

.js .books .book:nth-child(2) { transition-delay: .15s; }
@media (max-width: 559px) { .book__cta-x { display: none; } .book__cta { padding: 8px 14px; } }
@media (prefers-reduced-motion: reduce) {
  .js .book__float, .js .book__shadow { animation: none; }
  .book__obj { transition: none; }
}
.formatos { overflow-x: clip; }

/* Campaña: enlace destacado en el menú y dos botones fijos en el celular */
.nav a.nav__gift { color: var(--gold); }
.nav a.nav__gift span { color: var(--gold); }
.wa-dock { background: none; padding: 0; gap: 8px; display: grid; grid-template-columns: auto 1fr; border-radius: 0; }
.wa-dock__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; background: var(--gold-grad); color: var(--on-gold); }
.wa-dock__btn--alt { background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); }
.wa-dock__btn svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 640px) { .wa-dock { grid-template-columns: auto auto; } }

/* Galería del estudio: cuatro piezas del mismo tamaño (sin video grande) */
.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(220px, 62vw, 340px); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(260px, 30vw, 420px); } }

/* Las clases: la foto es más chica y la galería tiene tres piezas */
.photo { width: min(100%, 360px); justify-self: center; }
@media (min-width: 960px) { .clases__grid { grid-template-columns: 360px 1fr; gap: 40px; } .photo { justify-self: start; } }
.gallery { grid-template-columns: repeat(2, 1fr); }
.gallery > li:first-child { grid-column: span 2; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery > li:first-child { grid-column: auto; } }
@media (max-width: 959px) { .photo { width: min(78%, 320px); } }

/* Pie de la foto de Las clases: más visible */
.photo figcaption { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); padding: 14px 18px; }
.photo figcaption span { font-family: var(--mono); font-size: .68rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
/* La foto no debe tapar su pie: alto según su proporción, no el 100% del marco */
.photo img { height: auto; aspect-ratio: 4 / 5; }
.photo { align-self: start; }
