/* ==========================================================================
   Stars Music School — "backstage" design system
   Stage black + logo red + marquee yellow. Archivo (condensed for posters,
   normal width for reading) + a marker hand for Fernando's notes.
   ========================================================================== */

:root {
  --stage: #19141c;
  --stage-2: #231c27;
  --stage-3: #2e2533;
  --red: #e3202b;
  --red-deep: #b5121c;
  --marquee: #fdd053;
  --paper: #f2ede3;
  --paper-2: #e6dfd1;
  --ink: #19141c;
  --led: #c13bff;
  --on-dark: #f7f3ee;
  --muted-dark: #b3a9b8;
  --muted-light: #5e5663;
  --line-dark: rgba(247, 243, 238, .14);
  --line-light: rgba(25, 20, 28, .14);
  --ok: #2fbf71;

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Nothing You Could Do", "Comic Sans MS", cursive;

  /* Escala tipográfica (razón ~1.25, display más agresivo) */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --t-3xl: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  --t-hero: clamp(3.1rem, 1.2rem + 6.2vw, 7.25rem);

  --gap: clamp(1rem, .6rem + 1.6vw, 2rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --wrap: 1240px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--stage); color: var(--on-dark);
  font-family: var(--f-sans); font-size: var(--t-base); line-height: 1.6;
  font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--marquee); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--marquee); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * clamp(16px, 4vw, 40px), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .muted { color: var(--muted-light); }
.section--yellow { background: var(--marquee); color: var(--ink); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.muted { color: var(--muted-dark); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: .95; font-weight: 900; letter-spacing: -.01em; text-wrap: balance; }
.display, h1, h2 { font-variation-settings: "wdth" 62; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); font-variation-settings: "wdth" 75; line-height: 1.05; }
h4 { font-size: var(--t-lg); font-variation-settings: "wdth" 85; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
.lead { font-size: var(--t-lg); line-height: 1.5; max-width: 56ch; }
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: .01em; line-height: 1.2; }
.kicker { font-family: var(--f-hand); font-size: 1.5rem; color: var(--marquee); display: inline-block; transform: rotate(-2deg); margin-bottom: .4rem; }
.section--paper .kicker, .section--yellow .kicker { color: var(--red); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { margin: 0; max-width: 44ch; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease);
  box-shadow: 0 0 0 0 rgba(227, 32, 43, 0);
}
.btn:hover { transform: translateY(-2px); background: var(--red-deep); box-shadow: 0 10px 30px -10px rgba(227, 32, 43, .7); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); box-shadow: none; }
.section--paper .btn--ghost:hover, .section--yellow .btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--yellow { --bg: var(--marquee); --fg: var(--ink); }
.btn--yellow:hover { background: #ffe08a; box-shadow: 0 10px 30px -10px rgba(253, 208, 83, .7); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--ink:hover { background: #000; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link-arrow:hover { color: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.site-header.is-solid { background: rgba(25, 20, 28, .92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand span { font-weight: 900; font-variation-settings: "wdth" 70; font-size: 1.35rem; line-height: 1; letter-spacing: .005em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; padding: .5rem .7rem; border-radius: 8px; font-weight: 600; font-size: .9375rem; color: rgba(247, 243, 238, .86); position: relative; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; background: var(--red); border-radius: 2px; }
.header-cta { margin-left: .5rem; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 23px; } .menu-btn span:nth-child(3) { top: 29px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem clamp(16px, 4vw, 40px) 2rem; background: var(--stage); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav a { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem); font-weight: 900; font-variation-settings: "wdth" 62; padding: .55rem 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a[aria-current="page"] { color: var(--marquee); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-book { display: flex !important; margin-top: 1.5rem; font-size: 1.125rem; font-variation-settings: "wdth" 100; border: 0; justify-content: center; }
  .menu-open { overflow: hidden; }
  /* El desenfoque (backdrop-filter) y el transform de la barra convierten la barra en el
     contenedor del menú fijo, y el menú quedaba recortado a 72 px. Se quitan al abrirlo. */
  .menu-open .site-header { background: var(--stage); backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .nav { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overscroll-behavior: contain; }
}
.nav .nav-book { display: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 80% 20%, rgba(193, 59, 255, .28), transparent 70%),
  linear-gradient(90deg, rgba(25, 20, 28, .94) 0%, rgba(25, 20, 28, .72) 45%, rgba(25, 20, 28, .25) 100%),
  linear-gradient(0deg, var(--stage) 0%, transparent 35%); }
.hero__content { align-self: center; padding-top: calc(var(--header-h) + clamp(1.5rem, 4vh, 3rem)); padding-bottom: clamp(3.5rem, 6vh, 4.5rem); }
@media (hover: none) { .hide-touch { display: none; } }
.hero h1 { font-size: var(--t-hero); line-height: .86; margin-bottom: .3em; max-width: 14ch; letter-spacing: -.015em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: block; animation: lineUp .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero__sub { font-size: var(--t-lg); max-width: 40ch; color: rgba(247, 243, 238, .9); animation: fadeIn 1s .4s both; }
.hero .btn-row { animation: fadeIn 1s .55s both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero__proof { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: var(--t-sm); color: rgba(247, 243, 238, .82); animation: fadeIn 1s .7s both; }
.hero__proof b { color: var(--marquee); }
.hero__proof .stars { font-size: 1rem; }

/* ---------- Piano jugable ---------- */
.piano-dock { position: relative; padding-bottom: clamp(1rem, 2vw, 2rem); animation: fadeIn 1s .9s both; }
.piano-note { display: flex; align-items: flex-end; gap: .4rem; font-family: var(--f-hand); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1; color: var(--marquee); transform: rotate(-2deg); pointer-events: none; transition: opacity .6s; margin: 0; }
.piano-note svg { width: 46px; height: 34px; transform: translateY(12px); flex: none; }
.piano-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.piano-bar .muted { font-size: var(--t-xs); }
.piano-bar kbd { font-family: inherit; font-size: .75rem; background: rgba(255,255,255,.1); border: 1px solid var(--line-dark); padding: .05rem .35rem; border-radius: 4px; }
.piano-tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); padding: .45rem .9rem; border-radius: 999px; font-size: var(--t-sm); font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s; display: inline-flex; gap: .4rem; align-items: center; }
.chip-btn:hover, .chip-btn[aria-pressed="true"] { background: var(--marquee); color: var(--ink); border-color: var(--marquee); }
.piano {
  position: relative; display: flex; height: clamp(120px, 16vw, 170px); user-select: none; -webkit-user-select: none; touch-action: none;
  border-radius: 10px 10px 14px 14px; padding: 10px 10px 0; background: linear-gradient(#0d0a0f, #19141c);
  box-shadow: 0 -1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
}
.piano::before { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 3px; background: var(--red); border-radius: 2px; box-shadow: 0 0 12px var(--red); }
.key { position: relative; flex: 1; border: 0; padding: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; font-size: .7rem; font-weight: 700; color: rgba(25,20,28,.45); }
.key--white { background: linear-gradient(#fff 0%, #f1ece4 85%, #ddd5c8 100%); border-radius: 0 0 7px 7px; margin: 0 1px; padding-bottom: .5rem; box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); transition: background .08s, transform .08s; transform-origin: top; }
.key--black { position: absolute; top: 10px; width: calc((100% - 20px) / var(--whites) * .62); height: 60%; z-index: 2; background: linear-gradient(#2c2430, #0b080d); border-radius: 0 0 5px 5px; box-shadow: inset 0 -5px 0 rgba(255,255,255,.08), 0 3px 6px rgba(0,0,0,.5); color: rgba(255,255,255,.4); padding-bottom: .35rem; transition: background .08s; }
.key.is-down.key--white { background: linear-gradient(#ffe7a0, var(--marquee)); transform: scaleY(.985); box-shadow: inset 0 -3px 0 rgba(0,0,0,.1), 0 0 24px rgba(253, 208, 83, .7); }
.key.is-down.key--black { background: linear-gradient(var(--red), var(--red-deep)); box-shadow: 0 0 20px var(--red); }
.key.is-hint.key--white { background: linear-gradient(#fff, #f6d8ff); }
.key.is-hint.key--black { background: linear-gradient(#6a2a86, #3d1650); }
.key span { pointer-events: none; }
.piano-burst { position: absolute; pointer-events: none; font-size: 1.25rem; color: var(--marquee); animation: burst 1s var(--ease) forwards; z-index: 5; text-shadow: 0 0 12px rgba(253,208,83,.8); }
@keyframes burst { from { opacity: 1; transform: translate(-50%, 0) scale(.6); } to { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -90px) scale(1.2) rotate(var(--rot, 0deg)); } }

/* ---------- Marquesina de reseñas ---------- */
.ticker { background: var(--red); color: #fff; overflow: hidden; border-block: 3px solid var(--ink); }
.ticker__track { display: flex; gap: 3rem; width: max-content; padding-block: .85rem; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: .75rem; font-weight: 700; white-space: nowrap; font-size: var(--t-sm); }
.ticker__item::before { content: "★"; color: var(--marquee); font-size: 1.1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Instrumentos ---------- */
.inst-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(220px, 22vw, 300px); gap: var(--gap); }
.inst-card { position: relative; overflow: hidden; border-radius: var(--r-md); text-decoration: none; color: #fff; isolation: isolate; grid-column: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1rem, .8rem + 1vw, 1.75rem); }
.inst-card:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.inst-card:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.inst-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9); }
.inst-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(25,20,28,.92) 0%, rgba(25,20,28,.25) 55%, transparent 100%); transition: background .4s; }
.inst-card:hover img { transform: scale(1.06); filter: saturate(1.1); }
.inst-card:hover::after { background: linear-gradient(0deg, rgba(181,18,28,.92) 0%, rgba(25,20,28,.25) 60%, transparent 100%); }
.inst-card h3 { font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.5rem); font-variation-settings: "wdth" 62; margin: 0; line-height: .9; }
.inst-card:nth-child(n+3) h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.inst-card p { margin: .4rem 0 0; font-size: var(--t-sm); color: rgba(255,255,255,.85); max-width: 36ch; }
.inst-card .age { position: absolute; top: 1rem; right: 1rem; font-family: var(--f-hand); font-size: 1.25rem; background: var(--marquee); color: var(--ink); padding: .1rem .7rem; border-radius: 4px; transform: rotate(4deg); }
@media (max-width: 900px) {
  .inst-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .inst-card, .inst-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .inst-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .inst-card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 520px) { .inst-grid { grid-auto-rows: 210px; } }

/* ---------- Setlist (cómo funciona) ---------- */
.setlist-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.setlist {
  position: relative; background: #fbf8f2; color: var(--ink); padding: clamp(1.75rem, 1rem + 3vw, 3rem) clamp(1.5rem, 1rem + 2.5vw, 3rem);
  transform: rotate(-1.4deg); box-shadow: 0 30px 60px -25px rgba(0,0,0,.45), 0 2px 0 rgba(0,0,0,.05);
  background-image: repeating-linear-gradient(transparent 0 2.45rem, rgba(25,20,28,.07) 2.45rem calc(2.45rem + 1px));
}
.setlist::before, .setlist::after { content: ""; position: absolute; width: 110px; height: 30px; background: rgba(253, 208, 83, .78); top: -14px; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.setlist::before { left: 18px; transform: rotate(-6deg); }
.setlist::after { right: 22px; transform: rotate(5deg); }
.setlist h3 { font-family: var(--f-hand); font-weight: 400; font-size: 2.1rem; font-variation-settings: normal; margin-bottom: 1rem; color: var(--red); }
.setlist ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.setlist li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: .25rem 1rem; padding: .55rem 0; }
.setlist li::before { content: counter(s); font-family: var(--f-hand); font-size: 2rem; line-height: 1; color: var(--red); grid-row: span 2; }
.setlist li strong { font-family: var(--f-hand); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.setlist li span { font-size: var(--t-sm); color: var(--muted-light); }
@media (max-width: 860px) { .setlist-wrap { grid-template-columns: 1fr; } .setlist { transform: rotate(-.8deg); } }

/* ---------- Formatos ---------- */
.formats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-light); }
.format { padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid var(--line-light); }
.format + .format { padding-left: 1.5rem; }
.format:last-child { border-right: 0; }
.format svg { width: 34px; height: 34px; color: var(--red); margin-bottom: .75rem; }
.format h4 { margin-bottom: .35rem; }
.format p { font-size: var(--t-sm); margin: 0; }
.section:not(.section--paper) .formats { border-color: var(--line-dark); }
.section:not(.section--paper) .format { border-color: var(--line-dark); }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } .format, .format + .format { padding: 1.25rem 0; border-right: 0; border-bottom: 1px solid var(--line-light); } }

/* ---------- Fernando ---------- */
.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.polaroid { background: #fff; padding: 12px 12px 56px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); transform: rotate(2deg); position: relative; max-width: 480px; justify-self: center; }
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.polaroid figcaption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: var(--ink); font-family: var(--f-hand); font-size: 1.6rem; }
.polaroid--b { transform: rotate(-2.5deg); }
.signature { font-family: var(--f-hand); font-size: 2.4rem; color: var(--marquee); transform: rotate(-4deg); display: inline-block; margin-top: .5rem; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1rem 2.5rem; justify-content: start; margin: 1.75rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line-dark); }
.facts div { font-size: var(--t-sm); color: var(--muted-dark); }
.facts b { display: block; font-size: 2.25rem; line-height: 1; color: var(--on-dark); font-weight: 900; font-variation-settings: "wdth" 62; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

/* ---------- Reseñas ---------- */
.stars { color: var(--marquee); letter-spacing: .08em; white-space: nowrap; }
.stars__off { color: rgba(179, 169, 184, .35); }
.section--paper .stars { color: #e0a800; }
.section--paper .stars__off { color: rgba(25,20,28,.18); }
.quotes { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); }
.quote { margin: 0; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--r-md); background: var(--stage-2); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 1rem; }
.section--paper .quote { background: #fff; border-color: var(--line-light); }
.quote blockquote { margin: 0; font-size: var(--t-lg); line-height: 1.45; font-weight: 500; }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--red); font-weight: 900; height: .4em; }
.quote figcaption { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--t-sm); }
.quote figcaption b { display: block; font-size: 1rem; }
.quote--big { grid-row: span 2; justify-content: center; }
.quote--big blockquote { font-size: var(--t-xl); font-variation-settings: "wdth" 85; font-weight: 700; line-height: 1.2; }
.masonry { columns: 3 320px; column-gap: var(--gap); }
.masonry .quote { break-inside: avoid; margin-bottom: var(--gap); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quote--big { grid-row: auto; } }
.rating-summary { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.rating-summary .big { font-size: clamp(4rem, 3rem + 4vw, 7rem); font-weight: 900; font-variation-settings: "wdth" 62; line-height: .85; }
.rating-summary .stars { font-size: 1.6rem; }

/* ---------- Video ---------- */
.yt { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: #000; cursor: pointer; isolation: isolate; border: 0; padding: 0; width: 100%; display: block; color: #fff; text-align: left; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; opacity: .85; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 55%); z-index: 1; }
.yt:hover img { transform: scale(1.05); opacity: 1; }
.yt .play { position: absolute; left: 50%; top: 50%; width: clamp(56px, 7vw, 84px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(227,32,43,.6); transition: transform .3s var(--ease); animation: pulse 2.4s infinite; }
.yt:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.yt .play svg { width: 40%; height: 40%; margin-left: 8%; fill: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,32,43,.55); } 70% { box-shadow: 0 0 0 22px rgba(227,32,43,0); } 100% { box-shadow: 0 0 0 0 rgba(227,32,43,0); } }
.yt .yt-title { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2; font-weight: 800; font-size: var(--t-sm); line-height: 1.25; }
.yt .yt-cat { font-family: var(--f-hand); color: var(--marquee); font-weight: 400; font-size: 1.1rem; display: block; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.yt.is-playing::after, .yt.is-playing .play, .yt.is-playing .yt-title { display: none; }
.video-stage { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.video-stage .yt--main .yt-title { font-size: var(--t-xl); font-variation-settings: "wdth" 75; font-weight: 900; bottom: 1.25rem; left: 1.25rem; }
.video-stage__side { display: grid; gap: var(--gap); align-content: start; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .video-stage { grid-template-columns: 1fr; } .video-stage__side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .video-stage__side { grid-template-columns: 1fr; } }
.theater { position: relative; background: #000; padding-block: calc(var(--header-h) + 2rem) 2.5rem; overflow: hidden; isolation: isolate; }
.theater__glow { position: absolute; inset: -20%; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.6); opacity: .45; transition: background-image .6s; }
.theater .yt { box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); border-radius: var(--r-lg); }
.theater__meta { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-top: 1.25rem; flex-wrap: wrap; }
.theater__meta h1 { font-size: var(--t-2xl); margin: 0; }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { border: 1px solid var(--line-dark); background: transparent; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: var(--t-sm); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--on-dark); }
.filters button[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.filters button small { opacity: .6; margin-left: .3rem; font-weight: 600; }

/* ---------- Galería ---------- */
.gallery { columns: 4 240px; column-gap: 12px; }
.gallery__item { break-inside: avoid; margin: 0 0 12px; position: relative; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--stage-2); display: block; width: 100%; border: 0; padding: 0; }
.gallery__item img { width: 100%; transition: transform .7s var(--ease), filter .4s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .7rem; font-size: var(--t-xs); font-weight: 700; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); text-align: left; }
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery__item.is-hidden { display: none; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.strip > * { flex: 0 0 clamp(240px, 30vw, 380px); scroll-snap-align: start; }
.strip img { aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; width: 100%; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 8, 12, .96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(16px, 3vw, 32px); font-size: var(--t-sm); }
.lightbox__stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lightbox__stage img { max-height: calc(100svh - 160px); max-width: calc(100vw - 32px); width: auto; object-fit: contain; border-radius: 6px; transition: transform .35s var(--ease), opacity .25s; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__cap { text-align: center; padding: 1rem; font-weight: 700; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: clamp(8px, 2vw, 24px); } .lb-next { right: clamp(8px, 2vw, 24px); }
@media (max-width: 640px) { .lb-prev, .lb-next { display: none; } }

/* ---------- Page hero (interiores) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem)); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--stage) 10%, rgba(25,20,28,.6) 70%, rgba(25,20,28,.3)), linear-gradient(0deg, var(--stage), transparent 50%); }
.page-hero h1 { max-width: 13ch; }
.page-hero .lead { color: rgba(247,243,238,.88); }
.crumbs { display: flex; gap: .4rem; font-size: var(--t-xs); color: var(--muted-dark); margin-bottom: 1.25rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Instrumento (landing) ---------- */
.learn-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
.learn-list li { padding: .85rem 0 .85rem 2rem; border-bottom: 1px solid var(--line-light); position: relative; font-weight: 600; }
.learn-list li::before { content: "♪"; position: absolute; left: 0; color: var(--red); font-size: 1.2rem; top: .7rem; }
@media (max-width: 680px) { .learn-list { grid-template-columns: 1fr; } }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: lv; }
.level { padding: 1.75rem 1.5rem 1.75rem 0; border-top: 3px solid var(--line-dark); position: relative; counter-increment: lv; }
.level + .level { padding-left: 1.5rem; }
.level::before { content: ""; position: absolute; top: -3px; left: 0; height: 3px; background: var(--red); width: calc(33% * counter(lv)); }
.level:nth-child(1)::before { width: 33%; } .level:nth-child(2)::before { width: 66%; } .level:nth-child(3)::before { width: 100%; }
.level .step { font-family: var(--f-hand); color: var(--marquee); font-size: 1.3rem; }
.level h3 { margin: .25rem 0 .5rem; }
.level p { font-size: var(--t-sm); color: var(--muted-dark); margin: 0; }
@media (max-width: 760px) { .levels { grid-template-columns: 1fr; } .level, .level + .level { padding: 1.5rem 0; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split img.cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.other-inst { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Precios ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.plan { position: relative; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-radius: var(--r-lg); background: #fff; color: var(--ink); border: 1px solid var(--line-light); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.5rem; font-variation-settings: "wdth" 85; }
.plan .price { font-size: clamp(3.25rem, 2.5rem + 3vw, 4.75rem); font-weight: 900; font-variation-settings: "wdth" 62; line-height: .9; margin: .5rem 0 .25rem; }
.plan .price sup { font-size: .45em; vertical-align: top; position: relative; top: .3em; margin-right: .05em; }
.plan .unit { color: var(--muted-light); font-size: var(--t-sm); margin-bottom: 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; }
.plan li { padding-left: 1.6rem; position: relative; font-size: var(--t-sm); }
.plan li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: .55rem; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--ink); color: var(--paper); transform: translateY(-14px); box-shadow: 0 40px 80px -30px rgba(25,20,28,.6); border-color: var(--ink); }
.plan--featured .unit { color: var(--muted-dark); }
.plan--featured li::before { border-color: var(--marquee); }
.plan .tag { position: absolute; top: -16px; right: 24px; background: var(--marquee); color: var(--ink); font-family: var(--f-hand); font-size: 1.3rem; padding: .15rem .9rem; transform: rotate(3deg); border-radius: 3px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } .plan--featured { transform: none; } }

/* ---------- Ticket (Hope) ---------- */
.ticket { display: grid; grid-template-columns: 1fr auto; border-radius: var(--r-md); background: var(--paper); color: var(--ink); overflow: hidden; position: relative; }
.ticket__main { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.ticket__stub { padding: 1.5rem; border-left: 3px dashed var(--paper-2); display: grid; place-items: center; background: #fff; min-width: 200px; }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--marquee); right: calc(200px + 3rem - 14px); }
.ticket::before { top: -14px; } .ticket::after { bottom: -14px; }
.section--yellow .ticket::before, .section--yellow .ticket::after { background: var(--marquee); }
.section:not(.section--yellow) .ticket::before, .section:not(.section--yellow) .ticket::after { background: var(--stage); }
.ticket__stub img { width: 160px; }
@media (max-width: 700px) { .ticket { grid-template-columns: 1fr; } .ticket__stub { border-left: 0; border-top: 3px dashed var(--paper-2); } .ticket::before, .ticket::after { display: none; } }

/* ---------- Pagos ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); }
.pay { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.5rem; border-radius: var(--r-md); background: #fff; color: var(--ink); text-decoration: none; text-align: center; border: 1px solid var(--line-light); transition: transform .3s var(--ease), box-shadow .3s; }
.pay:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
.pay img { width: 120px; height: 140px; object-fit: contain; }
.pay b { font-size: 1.1rem; }
.pay small { color: var(--muted-light); }
.pay--cash { justify-content: center; }
.pay--cash .cash { font-size: 4rem; line-height: 1; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; font-weight: 800; font-size: var(--t-lg); position: relative; font-variation-settings: "wdth" 90; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: 14px; height: 14px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 3rem 1.5rem 0; color: var(--muted-light); animation: fadeIn .35s var(--ease); }
.section:not(.section--paper) .faq, .section:not(.section--paper) .faq details { border-color: var(--line-dark); }
.section:not(.section--paper) .faq details > div { color: var(--muted-dark); }

/* ---------- Formularios ---------- */
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); box-shadow: 0 40px 100px -40px rgba(0,0,0,.7); position: relative; }
.form-card h2, .form-card h3 { color: var(--ink); }
.field { position: relative; margin-bottom: 1.1rem; }
.field label, .field .label { display: block; font-weight: 800; font-size: var(--t-sm); margin-bottom: .4rem; }
.field label small, .field .label small { font-weight: 500; color: var(--muted-light); }
.input, .field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 54px; padding: .85rem 1rem; border-radius: 12px; border: 2px solid var(--paper-2); background: #fff; color: var(--ink);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319141c' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc6b5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(253, 208, 83, .6); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field .err { display: none; color: var(--red-deep); font-size: var(--t-xs); font-weight: 700; margin-top: .35rem; }
.field.has-error .err { display: block; }
.field.is-valid input { border-color: var(--ok); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--t-xs); color: var(--muted-light); margin-top: 1rem; }
.form-note a { color: inherit; }

/* Tarjetas de opción (radio/checkbox) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.choice .box { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: .9rem 1rem; border-radius: 12px; border: 2px solid var(--paper-2); background: #fff; min-height: 100%; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.choice .box b { font-size: 1rem; }
.choice .box small { color: var(--muted-light); font-size: var(--t-xs); line-height: 1.35; }
.choice:hover .box { border-color: #cfc6b5; }
.choice input:checked + .box { border-color: var(--ink); background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.choice input:checked + .box small { color: var(--muted-dark); }
.choice input:focus-visible + .box { outline: 3px solid var(--marquee); outline-offset: 2px; }
.choice--img .box { padding: 0; overflow: hidden; }
.choice--img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: filter .3s; }
.choice--img .box b { padding: .6rem .8rem .7rem; font-size: 1.1rem; font-variation-settings: "wdth" 75; font-weight: 900; }
.choice--img input:not(:checked) + .box img { filter: grayscale(.4); }
.days { display: flex; flex-wrap: wrap; gap: .5rem; }
.days .choice .box { padding: .6rem .9rem; flex-direction: row; min-width: 64px; justify-content: center; }

/* Estrellas en formulario */
.rate { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rate input { position: absolute; opacity: 0; width: 1px; }
.rate label { font-size: 2.4rem; line-height: 1; color: #d8d0c2; cursor: pointer; transition: color .15s, transform .2s var(--ease); }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: #f2b705; }
.rate label:hover { transform: scale(1.15) rotate(-6deg); }
.rate input:focus-visible + label { outline: 3px solid var(--marquee); border-radius: 4px; }

/* Wizard de reserva */
.wizard__progress { display: flex; gap: .4rem; margin-bottom: 1.75rem; }
.wizard__progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; position: relative; }
.wizard__progress span::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.wizard__progress span.is-done::after { transform: scaleX(1); }
.wizard__count { font-family: var(--f-hand); font-size: 1.3rem; color: var(--red); }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.step h3:focus { outline: none; }
.split--book { grid-template-columns: 1.35fr .85fr; }
.split--book aside { display: grid; gap: var(--gap); position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 860px) { .split--book { grid-template-columns: 1fr; } .split--book aside { position: static; } }
.step h3 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-variation-settings: "wdth" 62; margin-bottom: 1.25rem; }
.wizard__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.wizard__nav .btn--ghost { color: var(--ink); }
.summary { background: #fff; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: var(--t-sm); display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.summary dt { color: var(--muted-light); }
.summary dd { margin: 0; font-weight: 700; }
.toggle { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; padding: 1rem; border-radius: 12px; background: #fff; border: 2px solid var(--paper-2); }
.toggle input { width: 22px; height: 22px; accent-color: var(--red); margin-top: .1rem; flex: none; }

/* Mensajes */
.alert { padding: 1rem 1.25rem; border-radius: 12px; font-weight: 700; margin-bottom: 1.25rem; }
.alert--ok { background: #e2f6ea; color: #136b3c; }
.alert--err { background: #fde5e6; color: var(--red-deep); }
.success-panel { text-align: center; padding: 2rem 0; }
.success-panel .big-check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin: 0 auto 1.25rem; animation: pop .6s var(--ease); }
.success-panel .big-check svg { width: 44px; height: 44px; stroke: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s forwards; }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Quiz ---------- */
.quiz { max-width: 760px; }
.quiz__q { display: none; }
.quiz__q.is-active { display: block; animation: stepIn .4s var(--ease); }
.quiz__q h2 { font-size: var(--t-2xl); margin-bottom: 1.5rem; }
.quiz__answers { display: grid; gap: .75rem; }
.quiz__answers button { text-align: left; padding: 1.1rem 1.4rem; border-radius: 14px; border: 2px solid var(--line-dark); background: var(--stage-2); font-weight: 800; font-size: var(--t-lg); cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.quiz__answers button:hover { border-color: var(--marquee); transform: translateX(6px); }
.quiz__answers button.is-picked { background: var(--marquee); color: var(--ink); border-color: var(--marquee); }
.quiz__result { display: none; }
.quiz__result.is-active { display: grid; animation: stepIn .5s var(--ease); }
.quiz__bar { height: 4px; background: var(--line-dark); border-radius: 2px; margin-bottom: 2.5rem; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--marquee); transition: width .5s var(--ease); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; isolation: isolate; text-align: left; }
.cta-final__bg { position: absolute; inset: 0; z-index: -1; }
.cta-final__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta-final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 0% 100%, rgba(227, 32, 43, .55), transparent 70%), linear-gradient(90deg, var(--stage) 20%, rgba(25,20,28,.5)); }
.cta-final h2 { font-size: var(--t-3xl); max-width: 12ch; }

/* ---------- Footer ---------- */
.site-footer { background: #0f0c11; padding: clamp(3.5rem, 2rem + 4vw, 6rem) 0 calc(2rem + env(safe-area-inset-bottom)); font-size: var(--t-sm); color: var(--muted-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer h3 { font-size: 1rem; color: var(--on-dark); font-variation-settings: "wdth" 100; font-weight: 800; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 84px; margin-bottom: 1rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: background .2s, border-color .2s, transform .25s var(--ease); }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); text-decoration: none; }
.socials svg { width: 20px; height: 20px; fill: currentColor; color: #fff; }
.newsletter { display: flex; gap: .5rem; margin-top: .75rem; }
.newsletter input { flex: 1; min-width: 0; min-height: 48px; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); color: #fff; }
.newsletter input:focus { outline: none; border-color: var(--marquee); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--t-xs); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Flotantes ---------- */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .3s var(--ease); }
.fab-wa:hover { transform: scale(1.08) rotate(-6deg); }
.fab-wa svg { width: 32px; height: 32px; fill: #fff; }
.fab-wa .bubble { position: absolute; right: 72px; background: #fff; color: var(--ink); padding: .5rem .9rem; border-radius: 12px 12px 2px 12px; font-size: var(--t-xs); font-weight: 700; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.fab-wa.show-bubble .bubble, .fab-wa:hover .bubble { opacity: 1; transform: none; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .fab-wa { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(15,12,17,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform .4s var(--ease); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: .9375rem; background: rgba(255,255,255,.08); }
  .mobile-bar a svg { width: 20px; height: 20px; fill: currentColor; }
  .mobile-bar a.wa { color: #25d366; }
  .mobile-bar a.book { background: var(--red); }
  body { padding-bottom: 72px; }
}

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; display: grid; gap: .5rem; width: min(92vw, 440px); }
.toast { background: var(--paper); color: var(--ink); padding: 1rem 1.25rem; border-radius: 14px; font-weight: 700; box-shadow: 0 20px 50px -15px rgba(0,0,0,.6); display: flex; gap: .75rem; align-items: center; animation: toastIn .45s var(--ease); border-left: 5px solid var(--ok); }
.toast--err { border-left-color: var(--red); }
.toast.is-leaving { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
@media (max-width: 760px) { .toasts { bottom: 88px; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 16px; background: rgba(10,8,12,.75); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.modal__box { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 3vw, 3rem); max-width: 520px; width: 100%; position: relative; transform: translateY(20px) rotate(-1deg); transition: transform .45s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.modal h2 { font-size: var(--t-2xl); }

/* Confetti */
.confetti { position: fixed; top: -20px; z-index: 500; pointer-events: none; font-size: 1.4rem; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* Reveal único al hacer scroll (solo títulos de sección) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Utilidades */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; } .center p { margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list a { display: flex; gap: 1rem; align-items: center; text-decoration: none; padding: 1rem 1.25rem; border-radius: 14px; background: var(--stage-2); border: 1px solid var(--line-dark); transition: border-color .2s, transform .25s var(--ease); }
.contact-list a:hover { border-color: var(--marquee); transform: translateX(4px); }
.contact-list svg { width: 26px; height: 26px; color: var(--marquee); fill: currentColor; flex: none; }
.contact-list small { display: block; color: var(--muted-dark); }
.contact-list b { font-size: 1.1rem; }
.map { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line-dark); background: var(--stage-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
.prose h2 { font-size: var(--t-xl); margin-top: 2rem; font-variation-settings: "wdth" 85; }
.prose p, .prose li { color: var(--muted-light); }
.big-404 { font-size: clamp(8rem, 5rem + 18vw, 20rem); font-weight: 900; font-variation-settings: "wdth" 62; line-height: .8; color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .fab-wa, .mobile-bar, .piano-dock { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Referidos ---------- */
.share-link { display: flex; gap: .5rem; }
.share-link input { flex: 1; min-width: 0; min-height: 48px; padding: .6rem .9rem; border-radius: 12px; border: 2px solid var(--paper-2); background: #fff; font-weight: 700; color: var(--ink); }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.promo-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.promo { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: flex; flex-direction: column; gap: .5rem; min-height: 280px; text-decoration: none; isolation: isolate; transition: transform .35s var(--ease); }
.promo:hover { transform: translateY(-4px); }
.promo h3 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); font-variation-settings: "wdth" 62; margin: 0; }
.promo p { margin: 0; max-width: 34ch; }
.promo .btn { margin-top: auto; align-self: flex-start; }
.promo--ref { background: var(--marquee); color: var(--ink); }
.promo--gift { background: var(--red); color: #fff; }
.promo__icon { position: absolute; right: -10px; bottom: -24px; font-size: 9rem; line-height: 1; opacity: .9; z-index: -1; transform: rotate(-12deg); }
@media (max-width: 760px) { .promo-split { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de regalo ---------- */
.split--gift { grid-template-columns: 1.2fr .8fr; }
.gift-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 860px) { .split--gift { grid-template-columns: 1fr; } .gift-aside { position: static; order: -1; } }
.giftcard { --gc-bg: var(--red); --gc-accent: var(--marquee); background: var(--gc-bg); color: #fff; border: 4px solid var(--gc-accent); border-radius: 22px; padding: 1.5rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transform: rotate(-1.5deg); transition: background .4s, border-color .4s, transform .5s var(--ease); }
.giftcard:hover { transform: rotate(0) scale(1.01); }
.giftcard[data-occasion="christmas"] { --gc-bg: #14532d; --gc-accent: var(--red); }
.giftcard[data-occasion="other"] { --gc-bg: var(--stage-3); --gc-accent: var(--marquee); }
.giftcard__top { display: flex; justify-content: space-between; align-items: center; }
.giftcard__icon { font-size: 2.6rem; }
.giftcard__head { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); font-weight: 900; font-variation-settings: "wdth" 62; margin: 1rem 0 .25rem; line-height: 1; }
.giftcard__names { margin: 0; }
.giftcard__msg { font-family: var(--f-hand); font-size: 1.35rem; margin: .75rem 0 0; line-height: 1.25; word-break: break-word; }
.giftcard__ticket { background: #fff; color: var(--ink); border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1.1rem; display: grid; gap: .05rem; }
.giftcard__ticket small { color: var(--muted-light); font-size: var(--t-xs); }
.giftcard__ticket b { font-size: 1.35rem; font-weight: 900; margin-bottom: .4rem; }
.giftcard__code { color: var(--red); letter-spacing: .12em; }
.giftcard[data-occasion="christmas"] .giftcard__code { color: #14532d; }
@media print {
  .no-print, .site-header, .site-footer, .fab-wa, .mobile-bar { display: none !important; }
  .gift-print { padding: 0 !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ================= v3: piano, reto, guías, invitación ================= */
.level .step { display: block; }
.section--paper .level { border-top-color: var(--line-light); }
.section--paper .level .step { color: var(--red); }
.section--paper .level p { color: var(--muted-light); }

/* Piano en página propia (/piano, /tune, insertado) */
.page-hero--piano { padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); background: radial-gradient(120% 80% at 80% 0%, #3a1a45 0%, var(--stage) 55%); }
.page-hero--piano::after { display: none; }
.page-hero--piano h1 { max-width: 16ch; }
.piano-dock--page { animation: none; padding-bottom: 0; }
.piano-dock--page .piano { height: clamp(150px, 20vw, 230px); }
.piano-help { font-size: var(--t-xs); margin-top: .9rem; }
.piano-help kbd { font-family: inherit; font-size: .75rem; background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); padding: .05rem .4rem; border-radius: 4px; }
.chip-btn--hot { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1.6s ease-in-out 3; }
.chip-btn--hot:hover { background: var(--marquee); }
.chip-btn--light { border-color: var(--line-light); background: #fff; color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(227, 32, 43, .25); } }
.tune-sign input { min-height: 38px; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.08); color: var(--on-dark); font: inherit; font-size: var(--t-sm); width: 11.5rem; }
.tune-sign input::placeholder { color: var(--muted-dark); }
.tune-progress { position: relative; height: 26px; border-radius: 999px; background: var(--stage-3); margin-bottom: .6rem; overflow: hidden; }
.tune-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--red), var(--marquee)); transition: width .2s var(--ease); }
.tune-progress b { position: relative; display: block; text-align: center; font-size: var(--t-xs); line-height: 26px; }
.tune-result { margin-top: 1.5rem; max-width: 640px; }
.tune-result__score { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tune-result__score b { font-size: clamp(3.5rem, 2rem + 6vw, 6rem); font-weight: 900; font-variation-settings: "wdth" 62; line-height: .9; color: var(--red); }
.tune-result__score span { font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.2; }
.code-box { width: 100%; font: .8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: .8rem; border-radius: 12px; border: 2px solid var(--paper-2); background: #fff; color: var(--ink); resize: vertical; margin-top: .5rem; }

/* Guías */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.guide-card { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: inherit; }
.guide-card__img { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3/2; background: var(--stage-2); margin-bottom: .4rem; }
.guide-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.guide-card:hover .guide-card__img img { transform: scale(1.05); }
.guide-card__meta { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.guide-card h3 { margin: 0; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }
.guide-card:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.guide-card p { margin: 0; font-size: var(--t-sm); opacity: .8; }
.page-hero--guide h1 { max-width: 22ch; font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.25rem); }
.guide-byline { display: flex; align-items: center; gap: .75rem; font-size: var(--t-sm); color: var(--muted-dark); margin-top: 1.5rem; }
.guide-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--marquee); }
.guide-byline a { color: var(--on-dark); font-weight: 700; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.guide-aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
@media (max-width: 920px) { .guide-layout { grid-template-columns: 1fr; } .guide-aside { position: static; } }
.prose-guide { max-width: 68ch; font-size: 1.125rem; }
.prose-guide > p:first-child { font-size: 1.25rem; }
.prose-guide h2 { font-size: var(--t-xl); margin: 2.5rem 0 .75rem; font-variation-settings: "wdth" 80; }
.prose-guide h3 { font-size: var(--t-lg); margin: 1.75rem 0 .5rem; }
.prose-guide p, .prose-guide li { color: #3d3541; }
.prose-guide ul, .prose-guide ol { padding-left: 1.3rem; }
.prose-guide li { margin: .35rem 0; }
.prose-guide li::marker { color: var(--red); font-weight: 800; }
.prose-guide a:not(.btn) { color: var(--red-deep); font-weight: 700; }
.prose-guide strong { color: var(--ink); }
.tip { background: var(--marquee); border-radius: var(--r-md); padding: 1.1rem 1.3rem; margin: 1.75rem 0; transform: rotate(-.6deg); box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); }
.tip__who { font-family: var(--f-hand); font-size: 1.2rem; color: var(--red-deep); }
.tip p { margin: .2rem 0 0; color: var(--ink) !important; font-weight: 600; }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-md); padding: 1rem 1.25rem; margin: 2rem 0; }
.guide-cta b { display: block; font-size: 1.15rem; }
.guide-cta span { font-size: var(--t-sm); color: var(--muted-light); }
.guide-cta--dark { background: var(--stage); border-color: var(--stage); color: var(--on-dark); }
.guide-cta--dark span { color: var(--muted-dark); }
.guide-share { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--line-light); margin-top: 2.5rem; padding-top: 1.25rem; font-weight: 700; font-size: var(--t-sm); }
.guide-toc, .guide-box { background: #fff; border-radius: var(--r-md); padding: 1.1rem 1.25rem; border: 1px solid var(--line-light); font-size: var(--t-sm); }
.guide-toc ol { margin: .5rem 0 0; padding-left: 1.1rem; }
.guide-toc li { margin: .3rem 0; }
.guide-toc a { text-decoration: none; } .guide-toc a:hover { color: var(--red); text-decoration: underline; }
.guide-box b { font-size: 1.1rem; display: block; }
.guide-box p { color: var(--muted-light); margin: .4rem 0 .9rem; }
