/* Escuela de Música Rebeca González — estilos compartidos (landing + blog).
   Tokens según DISENO.md. Si se cambia este archivo, subir ?v= en index.html
   y V_CSS en scripts/blog.mjs. */

/* ============================================================ TOKENS */
:root {
  --ink: #141112;
  --paper: #FBF7F1;
  --sand: #EFE8DD;
  --white: #FFFFFF;
  --red: #D11F2B;
  --red-deep: #9C1420;
  --red-on-dark: #FF5A52;
  --muted: #5E5752;
  --muted-on-dark: #B9B0A8;
  --rosa: #FF6FA8;
  --plum: #2A1640;
  --amarillo: #FFC21A;
  --wa: #25D366;
  --line: rgb(20 17 18 / .14);
  --line-dark: rgb(255 255 255 / .16);

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --fs-xs:   clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --fs-sm:   clamp(0.9375rem, 0.91rem + 0.12vw, 1rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-xl:   clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-3xl:  clamp(2.5rem, 1.7rem + 3.6vw, 5rem);
  --fs-hand: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: clamp(56px, 8vw, 112px);
  --gutter: 16px;
  --container: 1200px;
  --measure: 62ch;

  --r-sm: 6px; --r-md: 14px; --r-lg: 28px; --r-pill: 999px;
  --r-foto: var(--r-lg) var(--r-lg) var(--r-lg) 4px;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-red: 6px 6px 0 var(--red);
  --shadow-soft: 0 8px 24px rgb(20 17 18 / .12);

  --header-h: 76px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 100px; } }

/* ============================================================ BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; }
/* Doble anillo: amarillo adentro (se ve sobre oscuro/rojo) + tinta afuera (se ve sobre claro/rosa). */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--amarillo); border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amarillo); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.hand { font-family: var(--hand); font-weight: 600; font-size: var(--fs-hand); line-height: 1.15; letter-spacing: 0; }
.icon { width: 20px; height: 20px; flex: none; }
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: var(--s-7); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head .hand { margin-top: var(--s-3); }
.lead { font-size: var(--fs-lg); }

/* ============================================================ BOTONES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  background: var(--red); color: var(--white);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; text-align: center;
  border: 2px solid transparent; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms, color 150ms, transform 150ms, box-shadow 150ms;
}
.btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #000; }
.btn--invert { background: var(--white); color: var(--red); }
.btn--invert:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; font-size: var(--fs-sm); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.btn-link .icon { transition: transform 150ms; }
.btn-link:hover .icon { transform: translateX(3px); }

/* ============================================================ TIP (etiqueta con corchete) */
.tip {
  position: relative; display: inline-block;
  padding: 4px 10px 4px 14px; margin-left: 6px;
  background: var(--white); color: var(--ink);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.3;
}
.tip::before {
  content: ""; position: absolute; left: -6px; top: -6px; bottom: -6px; width: 8px;
  border: 3px solid var(--amarillo); border-right: 0;
}
.tip--amarillo { background: var(--amarillo); }
.tip--amarillo::before { border-color: var(--ink); }

/* ============================================================ PENTAGRAMA */
.staff {
  --gap: 7px;
  --c: var(--line);
  position: relative;
  height: calc(var(--gap) * 4 + 1px);
  background: repeating-linear-gradient(to bottom, var(--c) 0 1px, transparent 1px var(--gap));
}
.on-dark .staff, .staff--dark { --c: var(--line-dark); }
.staff .nota {
  position: absolute; width: 14px; height: 28px;
  left: var(--x, 60%);
  top: calc(var(--l, 2) * var(--gap) - 23px);
  fill: var(--red);
}
.on-dark .staff .nota { fill: var(--red-on-dark); }
.staff--corto { width: 120px; margin: 24px 0 var(--s-5); }
.staff--largo { width: 100%; }

/* ============================================================ HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--white);
  transition: box-shadow 200ms;
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }
.header-sentinel { position: absolute; top: 80px; height: 1px; width: 1px; }
.header-inner { display: flex; align-items: center; gap: var(--s-3); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); margin-right: auto; min-width: 0; }
.brand .logo { width: 64px; height: 64px; flex: none; border-radius: 50%; }
@media (min-width: 1024px) { .brand .logo { width: 88px; height: 88px; } .brand-l1 { font-size: var(--fs-sm); } .brand-l2 { font-size: 26px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; white-space: nowrap; }
.brand-l1 { font-weight: 600; font-size: var(--fs-xs); }
.brand-l2 { font-family: var(--hand); font-weight: 600; font-size: 20px; line-height: 1; }
@media (max-width: 1023px) { .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: var(--s-5); }
@media (max-width: 1023px) { .header-inner { gap: var(--s-2); } .site-nav a { padding-inline: 4px; } }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--white); font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
  background: linear-gradient(var(--red-on-dark), var(--red-on-dark)) 0 calc(100% - 10px) / 0 2px no-repeat;
  transition: background-size 150ms, color 150ms;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 2px; color: var(--white); }
.nav-desk { display: none; }
.header-cta { min-height: 40px; padding: 0 16px; position: relative; }
.header-cta::after { content: ""; position: absolute; inset: -4px 0; }
.cta-largo { display: none; }
@media (min-width: 1024px) {
  .nav-desk { display: list-item; }
  .site-nav a { color: var(--muted-on-dark); }
  .site-nav { margin-right: var(--s-5); }
  .header-cta { min-height: 48px; padding: 0 24px; }
  .cta-largo { display: inline; }
}

/* ============================================================ HERO */
.hero { background: var(--ink); color: var(--white); padding-top: var(--s-7); position: relative; }
.hero-grid { display: grid; gap: var(--s-6); }
.hero h1 { font-size: var(--fs-3xl); }
.kicker {
  display: block; margin-bottom: var(--s-4);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-on-dark); line-height: 1.35;
}
.subrayado { position: relative; display: inline-block; white-space: nowrap; }
.hero-underline { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: .28em; overflow: visible; pointer-events: none; }
.hero-underline path { fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; }
/* Se dibuja de izquierda a derecha con clip-path: dasharray + pathLength + non-scaling-stroke dejaba un hueco en Chrome. */
.hero-underline { clip-path: inset(-60% 100% -60% -4%); animation: trazo 700ms ease-out 300ms forwards; }
@keyframes trazo { to { clip-path: inset(-60% -4% -60% -4%); } }
.hero-lead { margin-top: var(--s-5); font-size: var(--fs-lg); color: var(--muted-on-dark); max-width: 40ch; }
.hero-actions { margin-top: var(--s-6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.hero-actions .btn { width: 100%; }
.hero-actions .btn-link { color: var(--white); }
.hero-nota { display: flex; align-items: flex-end; gap: 6px; margin-top: var(--s-3); color: var(--amarillo); transform: rotate(-4deg); transform-origin: left; }
.hero-nota svg { width: 44px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-14px); }
.hero-foto { position: relative; margin: 0; z-index: 2; }
.hero-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-foto); box-shadow: var(--shadow-hard-red); background: var(--sand); }
.hero-foto .tip { position: absolute; left: 22px; bottom: 22px; }
.hero-datos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-xs); color: var(--muted-on-dark); }
.hero-datos li { display: inline-flex; align-items: center; gap: 10px; }
.hero-datos li + li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red-on-dark); }
.hero-staff { margin-top: var(--s-7); padding-bottom: var(--s-6); }
.clave { position: absolute; left: var(--gutter); top: -18px; width: 26px; height: 64px; fill: none; stroke: var(--red-on-dark); stroke-width: 2.4; stroke-linecap: round; }
.hero-staff .staff { margin-left: calc(var(--gutter) + 34px); width: auto; }

@media (min-width: 768px) {
  .hero-actions { flex-direction: row; align-items: center; gap: var(--s-5); }
  .hero-actions .btn { width: auto; }
  /* En fila, la flecha subida pisaba el subrayado de "Ver clases". */
  .hero-nota svg { transform: none; }
}
@media (min-width: 1024px) {
  .hero { padding-top: var(--s-8); }
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--s-6); align-items: start; }
  .hero-text { grid-column: 1 / 8; grid-row: 1; padding-top: var(--s-6); }
  .hero-foto { grid-column: 8 / 13; grid-row: 1 / 3; margin-bottom: -48px; }
  .reserva { grid-column: 8 / 13; grid-row: 1 / 3; align-self: start; margin-top: var(--s-6); }
  .hero-datos { grid-column: 1 / 8; grid-row: 2; align-self: end; }
  .hero-staff .staff { width: 58%; }
}

/* ============================================================ OFERTAS */
.ofertas-intro { padding-top: var(--section-y); padding-bottom: var(--s-7); }
.ofertas-intro h2 { font-size: var(--fs-2xl); }
.ofertas-intro .hand { margin-top: var(--s-3); color: var(--muted); }
.oferta { padding-block: var(--section-y); position: relative; overflow: hidden; }
.oferta-grid { display: grid; gap: var(--s-6); align-items: center; position: relative; }
.oferta-grid > *, .hero-grid > * { min-width: 0; }
.oferta h3 { font-size: var(--fs-2xl); }
.oferta-bajada { margin-top: var(--s-3); font-size: var(--fs-lg); font-weight: 600; }
.oferta-texto > p:not(.oferta-bajada):not(.pista) { margin-top: var(--s-4); max-width: var(--measure); }
.oferta-quien { font-size: var(--fs-sm); }
.oferta-quien strong { font-weight: 600; }
.oferta-texto .btn { margin-top: var(--s-6); }
.pista {
  display: block; font-size: var(--fs-3xl); font-weight: 800; line-height: .9; letter-spacing: -0.02em;
  color: transparent !important; -webkit-text-stroke: 1.5px var(--pista, var(--ink)); margin-bottom: var(--s-3);
}
.foto { width: 100%; object-fit: cover; border-radius: var(--r-foto); background: var(--sand); }

/* 01 · Instrumento */
.oferta--instrumento { background: var(--ink); color: var(--white); }
.oferta--instrumento .pista { --pista: var(--muted-on-dark); }
.oferta--instrumento .oferta-texto > p:not(.oferta-bajada) { color: var(--muted-on-dark); }
.oferta--instrumento .foto { aspect-ratio: 4 / 3; }
.teclado-wrap { position: relative; margin-top: var(--s-6); }
.teclado-wrap::after {
  content: ""; position: absolute; right: 0; top: 34px; bottom: 0; width: 40px; pointer-events: none;
  background: linear-gradient(to right, rgb(20 17 18 / 0), var(--ink));
}
.teclado { list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 40px 4px 0; scrollbar-width: none; }
.teclado::-webkit-scrollbar { display: none; }
.teclado li {
  position: relative; flex: 0 0 88px; height: 140px;
  display: flex; align-items: flex-end; justify-content: center; padding: 10px 6px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0 0 8px 8px;
  font-weight: 600; font-size: var(--fs-xs); line-height: 1.15; text-align: center;
  scroll-snap-align: start; transition: background 120ms;
}
.teclado li span { transition: transform 120ms; }
/* Teclas negras: reales (suenan su alteración, no llevan a ningún lado) */
.teclado .tecla-negra { position: absolute; z-index: 3; right: -12px; top: -1px; width: 22px; height: 56%; background: linear-gradient(#2B2627, var(--ink) 30%); border-radius: 0 0 4px 4px; cursor: pointer; box-shadow: inset 0 -3px 0 #3A3435; transition: background 120ms, box-shadow 120ms, transform 90ms; transform-origin: top center; touch-action: manipulation; }
.teclado .tecla-negra:hover { background: linear-gradient(#3A3435, #1E1A1B 40%); }
.teclado .tecla-negra.is-pressed { background: #000; box-shadow: inset 0 -1px 0 #3A3435; transform: scaleY(.97); }
.teclado .tecla-negra.is-pressed::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--red-on-dark); }
.teclado .nota { position: absolute; top: -32px; left: 50%; width: 12px; height: 24px; margin-left: -6px; fill: var(--muted-on-dark); transition: fill 120ms; }
/* Cada tecla es un link a WhatsApp (y suena con js/main.js). El ::before cubre toda la tecla. */
.teclado a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.teclado a::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.teclado a:focus-visible { outline: 0; box-shadow: none; }
.teclado li:has(a:focus-visible) { outline: 3px solid var(--amarillo); outline-offset: 2px; z-index: 3; }
.teclado .tecla-nota { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; line-height: 1; }
.teclado li:hover, .teclado li:has(a:focus-visible) { background: linear-gradient(#E6DED3, var(--white) 22%); }
.teclado li.is-pressed { background: linear-gradient(#D6CCBF, #EFE9E1 35%); box-shadow: inset 0 5px 8px rgb(20 17 18 / .28); }
.teclado li.is-pressed .nota { fill: var(--red-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .teclado li { transform-origin: top center; transition: background 120ms, box-shadow 120ms, transform 90ms; }
  .teclado li.is-pressed { transform: scaleY(.975); }
}
.teclado li:hover span { transform: translateY(3px); }
.teclado li:hover .nota { fill: var(--red-on-dark); }

/* 02 · Canto */
.oferta--canto { background: var(--paper); }
.canto-visual { position: relative; justify-self: center; }
.circulo {
  width: 260px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  outline: 6px solid var(--red); outline-offset: 6px; background: var(--sand);
}
.circulo img { width: 100%; height: 100%; object-fit: cover; }
.ondas { position: absolute; top: 50%; right: -46px; width: 40px; height: 120px; margin-top: -60px; fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.oferta--canto .tip { margin-top: var(--s-5); }

/* 03 · Coro */
.oferta--coro { background: var(--rosa); color: var(--plum); }
.coro-frase { font-size: calc(var(--fs-2xl) * 1.2); color: var(--plum); max-width: 18ch; margin-bottom: var(--s-7); }
.sin-corte { white-space: nowrap; }
.caja { position: relative; display: inline-block; background: var(--ink); color: var(--white); padding: 0 .18em .06em; }
.tachado { position: absolute; left: 4%; top: 50%; width: 92%; height: .5em; margin-top: -.22em; overflow: visible; }
.tachado path { fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; }
.oferta--coro .foto { aspect-ratio: 16 / 9; box-shadow: 6px 6px 0 var(--plum); }
.oferta--coro .pista { --pista: var(--plum); }
.coro-sub { font-weight: 600; margin-top: var(--s-2); }
.oferta--coro a:not(.btn) { color: var(--plum); font-weight: 600; text-underline-offset: 3px; }

/* 04 · Iniciación */
.oferta--iniciacion { background: var(--paper); }
.oferta--iniciacion::before {
  content: ""; position: absolute; inset: 0; background: var(--amarillo);
  clip-path: polygon(0 58%, 100% 30%, 100% 52%, 0 80%);
}
.oferta--iniciacion .hand { color: var(--red-deep); margin-top: var(--s-2); }
.collage { position: relative; height: 300px; max-width: 420px; width: 100%; justify-self: center; }
.collage figure { position: absolute; margin: 0; background: var(--white); padding: 8px; box-shadow: 0 2px 0 var(--line); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { left: 0; top: 24px; width: 54%; aspect-ratio: 1; transform: rotate(-3deg); }
.collage .c2 { right: 0; top: 0; width: 46%; aspect-ratio: 4 / 5; transform: rotate(2deg); }
.cinta { position: absolute; top: -12px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: rgb(255 194 26 / .85); transform: rotate(-6deg); }
.c2 .cinta { transform: rotate(5deg); }
.collage .suelta { position: absolute; width: 18px; height: 26px; }
.collage .s1 { left: 6%; bottom: 6px; fill: var(--red); transform: rotate(-12deg); }
.collage .s2 { right: 10%; bottom: 0; fill: var(--ink); transform: rotate(8deg); }
.collage .s3 { left: 52%; top: -18px; fill: var(--rosa); }

@media (min-width: 768px) {
  .circulo { width: 340px; }
  .collage { height: 380px; }
}
@media (min-width: 1024px) {
  .oferta-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--s-6); }
  .oferta--instrumento .oferta-media { grid-column: 1 / 6; }
  .oferta--instrumento .oferta-texto { grid-column: 6 / 13; }
  .teclado-wrap::after { display: none; }
  .teclado { overflow: visible; padding-right: 0; }
  .teclado li { flex: 1 1 0; height: 200px; padding: 14px 4px; }
  .teclado li span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .teclado li:hover span { transform: rotate(180deg) translateY(-3px); }
  .teclado li .tecla-nota, .teclado li:hover .tecla-nota { writing-mode: horizontal-tb; transform: none; }
  .oferta--canto .oferta-texto { grid-column: 1 / 7; grid-row: 1; }
  .oferta--canto .canto-visual { grid-column: 7 / 13; grid-row: 1; }
  .circulo { width: 420px; }
  .ondas { right: auto; left: -64px; transform: scaleX(-1); }
  .coro-frase { grid-column: 1 / 13; }
  .oferta--coro .oferta-media { grid-column: 1 / 8; }
  .oferta--coro .oferta-texto { grid-column: 8 / 13; }
  .oferta--iniciacion .oferta-texto { grid-column: 1 / 7; grid-row: 1; }
  .oferta--iniciacion .collage { grid-column: 7 / 13; grid-row: 1; }
}

/* ============================================================ PARA QUIÉN */
.edades { background: var(--sand); }
.edades-lista {
  list-style: none; display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s-2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.edades-lista::-webkit-scrollbar { display: none; }
.edades-lista li { flex: 0 0 78%; scroll-snap-align: start; }
.edades-lista figure { position: relative; margin: 0; }
.edades-lista img { aspect-ratio: 3 / 4; }
.edades-lista .tip { position: absolute; left: 20px; bottom: 20px; background: var(--amarillo); }
.edades-lista .tip::before { border-color: var(--ink); }
.edades-lista p { margin-top: var(--s-4); }
@media (min-width: 768px) {
  .edades-lista { overflow: visible; margin-inline: 0; padding-inline: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); padding-bottom: var(--s-7); }
  .edades-lista li:nth-child(2) { translate: 0 48px; }
}

/* ============================================================ POR QUÉ + PRIMERA CLASE */
.porque { background: var(--paper); }
.razones { list-style: none; display: grid; }
.razones li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); padding-block: var(--s-6) var(--s-6); position: relative; }
.razones li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 29px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 7px);
}
.razones li { padding-bottom: calc(var(--s-6) + 29px); }
.razon-num { font-size: var(--fs-3xl); font-weight: 800; color: var(--red); line-height: .85; min-width: 1.1em; }
.razones h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.01em; }
.razones p { margin-top: var(--s-2); color: var(--muted); max-width: 46ch; }
.razones .cita { font-family: var(--hand); font-size: var(--fs-hand); color: var(--ink); line-height: 1.2; margin-top: var(--s-3); }
@media (min-width: 1024px) { .razones { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }

.primera { margin-top: var(--s-9); }
.primera h2 { font-size: var(--fs-2xl); }
.compas { list-style: none; position: relative; display: grid; gap: var(--s-6); margin-top: var(--s-7); padding: var(--s-2) 0 var(--s-5); }
.compas::before {
  content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 29px;
  background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 7px);
  border-top: 3px solid var(--ink);
}
.compas::after { content: ""; position: absolute; left: 10px; bottom: 0; width: 29px; height: 8px; border-top: 1px solid var(--ink); border-bottom: 4px solid var(--ink); }
.compas li { position: relative; padding-left: 68px; min-height: 48px; }
.compas-num {
  position: absolute; left: 6px; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-lg);
}
.compas h3 { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.01em; padding-top: 6px; }
.compas p { margin-top: var(--s-2); color: var(--muted); }
.primera-cierre { margin-top: var(--s-7); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.primera-cierre .hand { color: var(--red-deep); transform: rotate(-2deg); }
@media (min-width: 768px) {
  .compas { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); padding: 0 var(--s-6) 0 0; }
  .compas::before { left: 0; right: 0; top: 4px; bottom: auto; width: auto; height: 29px; border-top: 0; border-left: 3px solid var(--ink);
    background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 7px); }
  .compas::after { left: auto; right: 0; top: 4px; bottom: auto; width: 8px; height: 29px; border: 0; border-left: 1px solid var(--ink); border-right: 4px solid var(--ink); }
  .compas li { padding-left: 0; padding-top: 64px; }
  .compas-num { left: 24px; top: 0; }
  .primera-cierre { flex-direction: row; align-items: center; gap: var(--s-6); }
}

/* ============================================================ SEDES */
.sedes { background: var(--ink); color: var(--white); }
.sedes-grid { display: grid; gap: var(--s-8); }
.sede-foto { position: relative; margin: 0; }
.sede-foto img { aspect-ratio: 4 / 3; }
.sede-foto::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-foto); background: linear-gradient(to top, rgb(20 17 18 / .7), transparent 60%); pointer-events: none; }
.cartel { position: absolute; left: 20px; bottom: 18px; z-index: 1; transform: skewX(-8deg); color: var(--white); text-shadow: 3px 3px 0 var(--ink); }
.cartel h3 { font-size: var(--fs-2xl); display: flex; align-items: center; gap: 10px; }
.cartel span { display: block; font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.bandera { width: 30px; height: 20px; flex: none; }
.sede-datos { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.sede-datos li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--white); }
.sede-datos .icon { color: var(--red-on-dark); margin-top: 3px; width: 22px; height: 22px; }
.sede-datos small { display: block; color: var(--muted-on-dark); font-size: var(--fs-sm); }
.sede-acciones { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.mapa { display: block; margin-top: var(--s-5); border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; }
.mapa svg { width: 100%; height: auto; }
@media (min-width: 1024px) { .sedes-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

/* ============================================================ PRUEBA SOCIAL */
.social { background: var(--paper); }
.social-banda { display: grid; gap: var(--s-4); align-items: end; padding-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.social-banda .social-num { max-width: none; font-size: var(--fs-3xl); font-weight: 800; line-height: .9; letter-spacing: -0.03em; }
.social-banda p { font-size: var(--fs-lg); max-width: 28ch; }
.social-banda .btn { overflow-wrap: anywhere; height: auto; padding-block: 10px; }
.resenas { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.resena {
  margin: 0; padding: var(--s-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
}
.resena figure { margin: 0; }
.resena .comilla { width: 28px; height: 22px; fill: var(--red); margin-bottom: var(--s-3); }
.resena[data-placeholder] {
  border: 2px dashed var(--red); color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--white) 0 12px, #F6F0E8 12px 24px);
}
.resena[data-placeholder] p { font-weight: 600; }
.resena[data-placeholder] small { display: block; margin-top: var(--s-2); font-size: var(--fs-xs); }
.resena:nth-child(2)[data-placeholder] { padding-block: var(--s-7); }
@media (min-width: 768px) {
  .social-banda { grid-template-columns: auto 1fr auto; gap: var(--s-6); }
  .resenas { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}
@media (min-width: 1024px) { .resenas { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================ COLONIA */
.colonia { background: var(--sand); }
.ticket {
  --m: 18px;
  position: relative; max-width: 960px; margin-inline: auto;
  display: grid; background: var(--rosa); color: var(--plum); border-radius: var(--r-md);
  overflow: hidden;
}
.ticket-main { padding: var(--s-6) var(--s-5) var(--s-5); }
.ticket-main h2 { font-size: var(--fs-2xl); color: var(--plum); max-width: 16ch; }
.ticket-main p { margin-top: var(--s-4); max-width: 52ch; }
.ticket-talon { position: relative; padding: var(--s-5); border-top: 3px dashed rgb(42 22 64 / .45); display: grid; gap: var(--s-3); align-content: center; justify-items: start; }
.ticket-talon::before, .ticket-talon::after { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--sand); top: -19px; }
.ticket-talon::before { left: -18px; }
.ticket-talon::after { right: -18px; }
.ticket-talon p { font-weight: 600; }
.colonia-foto { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 4px solid var(--paper); margin: calc(var(--s-6) * -1 - 20px) 0 var(--s-3) auto; background: var(--sand); }
.colonia-foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .ticket { grid-template-columns: 1fr 300px; }
  .ticket-main { padding: var(--s-7) var(--s-6); }
  .ticket-talon { border-top: 0; border-left: 3px dashed rgb(42 22 64 / .45); padding: var(--s-6); }
  .ticket-talon::before { left: -19px; top: -18px; }
  .ticket-talon::after { right: auto; left: -19px; top: auto; bottom: -18px; }
  .colonia-foto { margin: 0 0 var(--s-2); }
}

/* ============================================================ FAQ */
.faq { background: var(--paper); }
.faq-inner { max-width: 760px; }
.faq-lista { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding-block: var(--s-3); font-weight: 600; font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 14px; height: 28px; flex: none; fill: var(--ink); transition: transform 200ms, fill 200ms; }
.faq details[open] summary svg { transform: rotate(30deg); fill: var(--red); }
.faq-resp { padding-bottom: var(--s-5); color: var(--muted); max-width: var(--measure); }
.faq-resp a { color: var(--red-deep); font-weight: 600; text-underline-offset: 3px; }

/* ============================================================ CTA FINAL */
.cta-final { background: var(--red); color: var(--white); position: relative; overflow: hidden; }
.cta-final .staff { --c: rgb(255 255 255 / .25); position: absolute; left: 0; right: 0; top: 50%; }
/* En móvil el pentagrama cruzaba el párrafo: se sube al margen superior. */
@media (max-width: 1023px) { .cta-final .staff { top: 8px; } }
.cta-final .staff .nota { fill: rgb(255 255 255 / .35); }
.cta-grid { position: relative; display: grid; gap: var(--s-5); text-align: center; justify-items: center; }
.cta-final .hand { font-size: calc(var(--fs-hand) * 1.15); }
.cta-final h2 { font-size: var(--fs-3xl); }
.cta-final p { font-size: var(--fs-lg); max-width: 44ch; }
.cta-datos { font-size: var(--fs-sm) !important; opacity: .95; }
.cta-datos a { color: var(--white); }
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: repeat(12, 1fr); text-align: left; justify-items: start; align-items: center; column-gap: var(--s-6); }
  .cta-texto { grid-column: 1 / 9; }
  .cta-accion { grid-column: 9 / 13; justify-self: end; text-align: right; }
}
.cta-texto > * + * { margin-top: var(--s-4); }
.cta-accion .cta-datos { margin-top: var(--s-4); }

/* ============================================================ FOOTER */
.site-footer { background: var(--ink); color: var(--muted-on-dark); font-size: var(--fs-sm); padding: var(--s-8) 0 96px; }
.footer-grid { display: grid; gap: var(--s-7); }
.footer-brand .logo { width: 180px; height: 180px; border-radius: 50%; }
.footer-nombre { color: var(--white); font-weight: 800; font-size: var(--fs-lg); margin-top: var(--s-4); line-height: 1.15; }
.footer-brand .hand { color: var(--white); margin-top: var(--s-2); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-4); }
.footer-nav a, .footer-list a { color: var(--white); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; gap: 10px; }
.footer-title { color: var(--white); font-size: var(--fs-base); font-weight: 800; margin-bottom: var(--s-3); letter-spacing: 0; }
.footer-list { list-style: none; display: grid; gap: var(--s-1); }
.footer-list .icon { color: var(--red-on-dark); }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; font-size: var(--fs-xs); }
.footer-bottom a { color: var(--white); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .site-footer { padding-bottom: var(--s-7); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
}

/* ============================================================ FLOTANTE WHATSAPP */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: var(--ink); box-shadow: var(--shadow-soft);
  transition: opacity 200ms, transform 200ms, visibility 200ms;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none; }
@media (min-width: 768px) { .wa-float { display: none; } }

/* ============================================================ PLACEHOLDERS (fotos que faltan) */
img[data-placeholder] { background: var(--sand); }

/* ============================================================ REVELADO */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 450ms ease-out, transform 450ms ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Sombra dura que se levanta (solo escritorio con mouse) */
@media (hover: hover) and (min-width: 1024px) {
  .levanta { transition: transform 150ms, box-shadow 150ms; }
  .levanta:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
}

/* ============================================================ BLOG */
.blog-cabecera { background: var(--ink); color: var(--white); padding-top: var(--s-8); }
.migas { font-size: var(--fs-xs); color: var(--muted-on-dark); display: flex; flex-wrap: wrap; gap: 6px; }
.migas a { color: inherit; text-underline-offset: 3px; }
.migas a:hover { color: var(--white); }
.blog-cabecera .kicker { margin: var(--s-5) 0 var(--s-3); }
.blog-cabecera h1 { font-size: var(--fs-2xl); max-width: 22ch; margin-top: var(--s-5); }
.blog-cabecera .kicker + h1 { margin-top: 0; }
.blog-cabecera .hand { color: var(--amarillo); margin-top: var(--s-3); }
.blog-cabecera .lead { color: var(--muted-on-dark); margin-top: var(--s-4); max-width: 56ch; }
.blog-cabecera .staff { margin-top: var(--s-7); --c: var(--line-dark); }
.blog-cabecera .staff .nota { fill: var(--red-on-dark); }
.blog-cabecera .staff-pie { padding-bottom: var(--s-6); }

.temas { background: var(--paper); padding-top: var(--s-5); }
.temas-fila { position: relative; }
.temas-fila::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 24px; pointer-events: none; background: linear-gradient(to right, rgb(251 247 241 / 0), var(--paper)); }
.temas ul { list-style: none; display: flex; gap: var(--s-2); overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 24px 8px 4px; scrollbar-width: none; }
.temas ul::-webkit-scrollbar { display: none; }
.temas li { flex: none; scroll-snap-align: start; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-block: 4px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: var(--r-pill); color: var(--ink); background: transparent;
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap;
}
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tema, var(--ink)); box-shadow: 0 0 0 1px rgb(20 17 18 / .2); }
.chip--todos::before { display: none; }
.chip:hover { background: var(--sand); }
.chip[aria-current="page"] { background: var(--ink); color: var(--white); }
.chip[aria-current="page"]::before { box-shadow: 0 0 0 1px rgb(255 255 255 / .5); }
@media (min-width: 1024px) {
  .temas ul { flex-wrap: wrap; overflow: visible; padding-right: 0; }
  .temas-fila::after { display: none; }
}

.t-practicar { --tema: var(--red); --tema-txt: var(--white); }
.t-instrumentos { --tema: var(--ink); --tema-txt: var(--white); }
.t-canto-y-coro { --tema: var(--rosa); --tema-txt: var(--ink); }
.t-ninos { --tema: var(--amarillo); --tema-txt: var(--ink); }
.t-adultos { --tema: var(--plum); --tema-txt: var(--white); }
.t-la-escuela { --tema: var(--red-deep); --tema-txt: var(--white); }

/* Placeholder de marca cuando un artículo no tiene foto */
.ph-marca {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--tema, var(--ink)); color: var(--tema-txt, var(--white));
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-5);
}
.ph-marca .staff { --c: currentColor; position: absolute; left: 0; right: 0; top: 30%; opacity: .35; }
.ph-marca .staff .nota { fill: currentColor; }
.ph-marca-titulo { position: relative; font-weight: 800; font-size: var(--fs-xl); line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; }
.ph-marca-tema { position: relative; font-family: var(--hand); font-weight: 600; font-size: 22px; line-height: 1; margin-bottom: var(--s-2); }

.blog-main { padding-block: var(--s-7) var(--section-y); }
.destacado { position: relative; display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.destacado-media img, .destacado-media .ph-marca { border-radius: var(--r-foto); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.destacado h2 { font-size: var(--fs-xl); margin-top: var(--s-4); }
.destacado h2 a { text-decoration: none; }
.destacado h2 a::after { content: ""; position: absolute; inset: 0; }
.destacado h2 a:focus-visible { outline: 0; box-shadow: none; }
.destacado:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: var(--r-sm); }
.destacado-resumen { margin-top: var(--s-3); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-3); }
.leer { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-4); font-weight: 600; color: var(--red-deep); }
.leer .icon { transition: transform 150ms; }
.destacado:hover .leer .icon { transform: translateX(3px); }
.tip--tema { font-size: var(--fs-xs); }
@media (min-width: 1024px) {
  .destacado { grid-template-columns: repeat(12, 1fr); column-gap: var(--s-6); align-items: center; }
  .destacado-media { grid-column: 1 / 8; }
  .destacado-media img, .destacado-media .ph-marca { box-shadow: var(--shadow-hard-red); }
  .destacado-texto { grid-column: 8 / 13; }
}

.fichas { list-style: none; display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .fichas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fichas { grid-template-columns: repeat(3, 1fr); } }
.ficha {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--tema, var(--ink));
  border-radius: var(--r-md); overflow: hidden;
  transition: transform 150ms, box-shadow 150ms;
}
@media (hover: hover) and (min-width: 1024px) {
  .ficha:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
}
.ficha:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.ficha-media img, .ficha-media .ph-marca { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ficha-media .ph-marca { padding: var(--s-4); }
.ficha-cuerpo { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.chip-mini { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; }
.chip-mini::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tema); box-shadow: 0 0 0 1px rgb(20 17 18 / .2); }
.ficha h3 { font-size: var(--fs-lg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.1; }
.ficha h3 a { text-decoration: none; }
.ficha h3 a::after { content: ""; position: absolute; inset: 0; }
.ficha h3 a:focus-visible { outline: 0; box-shadow: none; }
.ficha-resumen { font-size: var(--fs-sm); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ficha .meta { margin-top: auto; padding-top: var(--s-2); }
.ficha-papelito { display: none; }
/* Cada 5.ª ficha es un papelito de color, sin foto */
.fichas > .ficha:nth-child(5n) { background: var(--tema); color: var(--tema-txt); border-left-color: var(--tema); }
.fichas > .ficha:nth-child(5n) .ficha-media { display: none; }
.fichas > .ficha:nth-child(5n) .ficha-papelito { display: block; font-family: var(--hand); font-weight: 600; font-size: var(--fs-hand); line-height: 1.15; padding: var(--s-5) var(--s-5) 0; }
.fichas > .ficha:nth-child(5n) .ficha-resumen,
.fichas > .ficha:nth-child(5n) .meta { color: inherit; opacity: .9; }
.fichas > .ficha:nth-child(5n) .chip-mini::before { background: currentColor; }

.paginacion { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); }
.vacio { padding: var(--s-7) 0; }
.vacio .hand { font-size: calc(var(--fs-hand) * 1.2); }
.vacio a { display: inline-block; margin-top: var(--s-4); color: var(--red-deep); font-weight: 600; }

.cta-blog { background: var(--red); color: var(--white); border-radius: var(--r-md); padding: var(--s-7) var(--s-5); margin-top: var(--s-8); text-align: center; display: grid; gap: var(--s-4); justify-items: center; position: relative; overflow: hidden; }
.cta-blog .staff { --c: rgb(255 255 255 / .25); position: absolute; left: 0; right: 0; top: 24px; }
.cta-blog .staff .nota { fill: rgb(255 255 255 / .35); }
.cta-blog > :not(.staff) { position: relative; }
.cta-blog h2 { font-size: var(--fs-2xl); max-width: 24ch; }
.cta-blog p { max-width: 50ch; }
.cta-blog .nap { font-size: var(--fs-xs); opacity: .95; }

/* Artículo */
.post-cabecera { background: var(--paper); padding-top: var(--s-6); }
.post-angosto { max-width: calc(68ch + var(--gutter) * 2); }
.post-cabecera .migas { color: var(--muted); }
.post-cabecera .migas a:hover { color: var(--ink); }
.post-cabecera .tip { margin-top: var(--s-5); font-size: var(--fs-xs); }
.post-cabecera h1 { font-size: var(--fs-2xl); margin-top: var(--s-4); max-width: 20ch; }
.post-cabecera .meta { margin-top: var(--s-4); }
.post-foto { margin: var(--s-6) 0 0; }
.post-foto img, .post-foto .ph-marca { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-foto); }
.post-foto figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-2); }
.en-pocas {
  margin-top: var(--s-6); padding: var(--s-5); background: var(--sand);
  border-left: 4px solid var(--red); border-radius: var(--r-sm);
}
.en-pocas-titulo { font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--red-deep); margin-bottom: var(--s-2); }
.prosa { line-height: 1.7; padding-bottom: var(--s-7); }
.prosa > * { margin-block: 0 1.1em; }
.prosa > p:first-child { margin-top: var(--s-6); }
.prosa h2 { font-size: var(--fs-xl); margin-top: 2em; position: relative; padding-top: 52px; }
.prosa h2::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 120px; height: 29px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 7px);
}
.prosa h2::after {
  content: ""; position: absolute; left: 72px; width: 14px; height: 28px;
  top: calc(18px + var(--l, 2) * 7px - 23px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 40' fill='%23D11F2B'%3E%3Cellipse cx='7' cy='33' rx='7' ry='5' transform='rotate(-20 7 33)'/%3E%3Crect x='12.5' y='2' width='1.8' height='31'/%3E%3C/svg%3E") no-repeat center / contain;
}
.prosa h2:nth-of-type(5n+1) { --l: 3; }
.prosa h2:nth-of-type(5n+2) { --l: 2; }
.prosa h2:nth-of-type(5n+3) { --l: 1; }
.prosa h2:nth-of-type(5n+4) { --l: 4; }
.prosa h2:nth-of-type(5n) { --l: 0; }
.prosa h3 { font-size: var(--fs-lg); font-weight: 600; margin-top: 1.6em; letter-spacing: -0.01em; line-height: 1.2; }
.prosa a { color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prosa a:hover { color: var(--red-deep); }
.prosa a.btn, .prosa a.btn:hover { color: var(--white); text-decoration: none; }
.prosa strong { font-weight: 600; }
.prosa ul { list-style: none; padding-left: 0; }
.prosa ul li { position: relative; padding-left: 28px; margin-bottom: .45em; }
.prosa ul li::before {
  content: ""; position: absolute; left: 4px; top: .2em; width: 11px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 40' fill='%23D11F2B'%3E%3Cellipse cx='7' cy='33' rx='7' ry='5' transform='rotate(-20 7 33)'/%3E%3Crect x='12.5' y='2' width='1.8' height='31'/%3E%3C/svg%3E") no-repeat center / contain;
}
.prosa ol { padding-left: 0; list-style: none; counter-reset: paso; }
.prosa ol li { counter-increment: paso; position: relative; padding-left: 34px; margin-bottom: .55em; }
.prosa ol li::before { content: counter(paso) "."; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 800; }
.prosa blockquote { margin: 1.4em 0; padding-left: 48px; position: relative; font-family: var(--hand); font-weight: 600; font-size: var(--fs-hand); line-height: 1.25; }
.prosa blockquote::before { content: "\201C"; position: absolute; left: 0; top: -.15em; font-size: 3.2em; line-height: 1; color: var(--red); font-family: var(--font); font-weight: 800; }
.prosa .tabla { overflow-x: auto; }
.prosa table { border-collapse: collapse; font-size: var(--fs-sm); width: 100%; }
.prosa th, .prosa td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }

.cta-medio {
  display: grid; gap: var(--s-4); align-items: center; margin: 2em 0 !important;
  padding: var(--s-5); padding-left: calc(var(--s-5) + 26px); position: relative;
  background: var(--ink); color: var(--white); border-radius: var(--r-md);
}
.cta-medio .nota { position: absolute; left: 16px; top: 24px; width: 14px; height: 28px; fill: var(--red-on-dark); }
.cta-medio p { font-weight: 600; font-size: var(--fs-base); line-height: 1.35; }
.cta-medio .btn { width: 100%; }
@media (min-width: 768px) {
  .cta-medio { grid-template-columns: 1fr auto; }
  .cta-medio .btn { width: auto; }
}

.compartir { border-top: 1px solid var(--line); padding-top: var(--s-5); margin-top: var(--s-6); text-align: center; }
.compartir-titulo { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.compartir ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.compartir a, .compartir button {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background 150ms, color 150ms;
}
.compartir a:hover, .compartir button:hover { background: var(--ink); color: var(--white); }
.compartir .icon { width: 22px; height: 22px; }
.compartir-aviso { font-family: var(--hand); font-weight: 600; font-size: 22px; min-height: 1.3em; margin-top: var(--s-2); color: var(--red-deep); }
@media (min-width: 768px) { .compartir { text-align: left; } .compartir ul { justify-content: flex-start; } }

.post-firma { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-5); }
.seguir { background: var(--sand); padding-block: var(--section-y); }
.seguir h2 { font-size: var(--fs-2xl); }
.seguir .fichas > .ficha:nth-child(5n) { background: var(--white); color: var(--ink); border-left-color: var(--tema); }
.seguir-todos { display: inline-flex; margin-top: var(--s-6); }

/* 404 */
.p404 { background: var(--ink); color: var(--white); padding-block: var(--s-9); }
.p404 h1 { font-size: var(--fs-3xl); }
.p404 p { margin-top: var(--s-4); font-size: var(--fs-lg); color: var(--muted-on-dark); max-width: 44ch; }
.p404 .hero-actions { margin-top: var(--s-6); }

/* ============================================================ MOVIMIENTO REDUCIDO */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-underline { clip-path: none !important; animation: none !important; }
}

/* ============================================================ LOGO PROTAGONISTA (pedido de Elizabeth 03/11) */
.hero-marca { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-5); flex-wrap: wrap; }
.hero-logo {
  display: block; width: 210px; height: auto; flex: none; border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .10), 0 24px 70px -18px rgb(214 32 47 / .55);
}
.hero-lema { color: var(--white); font-size: clamp(24px, 7vw, 38px); line-height: 1.1; margin: 0; max-width: none; white-space: nowrap; transform: rotate(-3deg); }
@media (min-width: 1024px) {
  .hero-logo { width: 300px; margin-left: -12px; }
  .hero-lema { font-size: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: logo-entra 900ms cubic-bezier(.2,.8,.2,1) both; }
  .hero-lema { animation: lema-entra 700ms 450ms ease-out both; }
  @keyframes logo-entra { from { opacity: 0; transform: scale(.88) rotate(-8deg); } to { opacity: 1; transform: none; } }
  @keyframes lema-entra { from { opacity: 0; transform: translateY(8px) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }
}
/* En la home el logo chico del encabezado aparece recién al bajar (arriba ya está el grande) */
.home .site-header .brand { transition: opacity 250ms, visibility 250ms; }
.home .site-header:not(.is-scrolled) .brand { opacity: 0; visibility: hidden; }
/* Reseñas reales de Google */
.google-nota { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-7); }
.google-nota p { font-size: var(--fs-lg); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.google-nota strong { font-size: var(--fs-2xl); font-weight: 800; line-height: 1; }
.google-nota span:last-child { color: var(--muted); font-size: var(--fs-base); }
.estrellas { color: #C8102E; letter-spacing: 2px; }
.google-nota + .resenas { margin-top: var(--s-5); }
.resena blockquote { margin: var(--s-4) 0 0; }
.resena blockquote p { font-size: var(--fs-base); line-height: 1.5; }
.resena figcaption { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.resena figcaption .estrellas { margin-right: 6px; }
/* Avatares con inicial (estilo Google) */
.resena figcaption { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.resena figcaption .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 18px; }
.avatar.a1 { background: #1A73E8; } .avatar.a2 { background: #C8102E; } .avatar.a3 { background: #7B1FA2; }
.avatar.a4 { background: #137333; } .avatar.a5 { background: #A84300; } .avatar.a6 { background: #00695C; }
.resena .quien { display: flex; flex-direction: column; line-height: 1.25; }
.resena .quien b { font-weight: 700; }
.resena .quien .estrellas { font-size: 13px; margin: 0; }
.resena .g-logo { margin-left: auto; }
/* ============================================================ BARRA SUPERIOR (todas las páginas, no sticky) */
.topbar { background: #3B0A10; color: var(--white); font-size: var(--fs-xs); line-height: 1.2; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 36px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar .icon { width: 16px; height: 16px; }
.topbar a[href="/#sedes"] .icon { color: var(--red-on-dark); }
.topbar-sep { width: 1px; height: 14px; background: rgb(255 255 255 / .35); }
@media (min-width: 768px) { .topbar-inner { justify-content: flex-end; gap: var(--s-4); } }

/* ============================================================ RESERVÁ TU CLASE (widget del hero) */
.reserva {
  position: relative; z-index: 2;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-foto); box-shadow: var(--shadow-hard-red);
  padding: var(--s-5) var(--s-5) var(--s-5);
  display: grid; gap: var(--s-4);
}
.reserva-titulo { font-size: var(--fs-xl); }
.reserva-bajada { font-size: var(--fs-sm); color: var(--muted); margin-top: calc(var(--s-3) * -1); }
.reserva-campo { display: grid; gap: 6px; }
.reserva-campo label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-sm); }
.reserva-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 800; flex: none; }
.reserva select {
  appearance: none; -webkit-appearance: none;
  width: 100%; min-height: 48px; padding: 0 44px 0 14px;
  font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23141112' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px 20px;
  border: 2px solid var(--ink); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color 150ms;
}
.reserva select:hover { border-color: var(--red); }
.reserva select:focus-visible { border-radius: var(--r-sm); }
.reserva-preview { font-size: var(--fs-sm); line-height: 1.45; background: var(--white); border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.reserva-preview span { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.reserva-preview[hidden] { display: none; }
.reserva-btn { margin-top: var(--s-1); }
.reserva-nota { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin-top: calc(var(--s-2) * -1); }
@media (min-width: 1024px) { .reserva { padding: var(--s-6); } }

/* ============================================================ SOBRE REBECA */
.sobre { background: var(--sand); }
.sobre-grid { display: grid; gap: var(--s-7); }
.sobre-foto { position: relative; margin: 0; max-width: 340px; }
.sobre-foto img { aspect-ratio: 4 / 5; box-shadow: var(--shadow-hard); background: var(--paper); }
.sobre-foto .tip { position: absolute; left: 22px; bottom: 22px; margin: 0; }
.sobre-texto h2 { font-size: var(--fs-2xl); }
.sobre-texto .staff--corto { margin-top: 0; }
.sobre-lema { color: var(--red-deep); margin-top: var(--s-3); }
.sobre-texto > p:not(.hand) { margin-top: var(--s-4); max-width: var(--measure); }
.sobre-tips { list-style: none; margin-top: var(--s-3); display: grid; gap: 6px; }
.sobre-tips li { display: flex; align-items: center; gap: 10px; }
.sobre-tips .nota { width: 12px; height: 24px; fill: var(--red); flex: none; }
.sobre-tips a { font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; min-height: 32px; display: inline-flex; align-items: center; }
.sobre-tips a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }
.sobre-acciones { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 479px) { .sobre-acciones .btn { width: 100%; } }
@media (min-width: 1024px) {
  .sobre-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--s-6); align-items: center; }
  .sobre-foto { grid-column: 1 / 6; max-width: none; }
  .sobre-texto { grid-column: 6 / 13; }
}

/* ============================================================ DEL BLOG (home, lo genera scripts/blog.mjs) */
.blog-home { background: var(--sand); }
.blog-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.blog-home-head h2 { font-size: var(--fs-2xl); }
.blog-home-head .hand { margin-top: var(--s-3); color: var(--red-deep); }
@media (min-width: 768px) and (max-width: 1023px) { .fichas--home > .ficha:nth-child(3) { display: none; } }

/* ============================================================ EXÁMENES Y DIPLOMAS FEEL · YAMAHA */
.diplomas { background: var(--ink); color: var(--white); }
.diplomas-grid { display: grid; gap: var(--s-7); align-items: center; }
.diplomas .kicker { color: var(--amarillo); }
.diplomas h2 { max-width: 18ch; }
.sello-txt { color: var(--amarillo); white-space: nowrap; }
.diplomas-lead { font-size: var(--fs-lg); margin-top: var(--s-4); max-width: 46ch; color: #EDE6DC; }
.diplomas-lista { list-style: none; display: grid; gap: var(--s-4); margin: var(--s-6) 0; padding: 0; }
.diplomas-lista li { display: flex; gap: var(--s-4); align-items: flex-start; }
.diplomas-lista h3 { font-size: var(--fs-lg); margin: 0; }
.diplomas-lista p { margin: 4px 0 0; color: #D9D1C7; }
.diplomas-num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--amarillo); color: var(--ink); }
.diplomas-fotos { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.diplomas-entrega { aspect-ratio: 4 / 5; box-shadow: 10px 10px 0 var(--amarillo); }
.diplomas-sello { position: absolute; left: -18px; bottom: -28px; width: 78%; margin: 0; background: #fff; padding: 8px 8px 6px; border-radius: 10px; transform: rotate(-4deg); box-shadow: 0 18px 40px -12px rgb(0 0 0 / .6); }
.diplomas-sello img { width: 100%; height: auto; display: block; border-radius: 6px; }
.diplomas-sello figcaption { color: var(--ink); font-size: var(--fs-xs); font-weight: 700; text-align: center; margin-top: 6px; }
@media (min-width: 1024px) {
  .diplomas-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-8, 64px); }
  .diplomas-sello { left: -48px; }
}
@media (max-width: 480px) { .diplomas-sello { left: -6px; width: 86%; } .sello-txt { white-space: normal; } }
/* Sello FEEL · Yamaha (como la vidriera de la escuela: "Diploma reconocido por FEEL YAMAHA") */
.feel-sello { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 18px; margin-bottom: var(--s-5); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: 16px; }
.feel-sello-txt { font-size: var(--fs-xs); color: #D9D1C7; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.feel-marcas { display: inline-flex; align-items: center; gap: 12px; }
.feel-marcas img { height: 48px; width: auto; border-radius: 8px; }
.yamaha-txt { font-weight: 800; font-size: 26px; letter-spacing: .12em; color: var(--white); line-height: 1; }
/* Diploma ilustrado (reemplaza la foto de la sección diplomas) */
.diploma-ilus { position: relative; max-width: 460px; margin: 0 auto; transform: rotate(-2.5deg); filter: drop-shadow(0 30px 50px rgb(0 0 0 / .55)); }
.diploma-marco {
  position: relative; background: #FBF6EA; color: #2A2320; text-align: center;
  padding: 34px 30px 26px; border-radius: 4px;
  background-image: radial-gradient(120% 90% at 50% 0%, #FFFDF7 0%, #F6EEDB 70%, #EFE3C8 100%);
  outline: 2px solid #C9A227; outline-offset: -12px;
  box-shadow: inset 0 0 0 16px #FBF6EA, inset 0 0 0 17px #C9A227;
}
.diploma-marco::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgb(201 162 39 / .5); pointer-events: none; }
.diploma-logo { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 6px; display: block; }
.diploma-titulo { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 7vw, 46px); letter-spacing: .06em; margin: 0; color: #2A2320; line-height: 1.05; }
.diploma-otorga { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: #8A7B62; margin: 10px 0 2px; }
.diploma-nombre { font-family: var(--hand); font-size: 30px; color: var(--red); margin: 0 auto; padding: 0 12px 2px; border-bottom: 1px solid #BCA77A; display: inline-block; min-width: 70%; }
.diploma-motivo { font-family: Georgia, serif; font-style: italic; font-size: 13px; color: #5E5245; margin: 10px 0 18px; }
.diploma-pie { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-right: 26px; }
.diploma-firma { display: flex; flex-direction: column; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #8A7B62; border-top: 1px solid #BCA77A; padding-top: 4px; min-width: 38%; }
.diploma-firma span { font-family: var(--hand); font-size: 20px; text-transform: none; letter-spacing: 0; color: #2A2320; order: -1; margin-bottom: 2px; }
.diploma-marcas { display: inline-flex; align-items: center; gap: 8px; }
.diploma-marcas img { height: 26px; width: auto; border-radius: 4px; }
.diploma-marcas b { font-size: 13px; letter-spacing: .14em; color: #2A2320; }
.diploma-sello { position: absolute; right: -22px; bottom: 58px; width: 96px; height: 96px; transform: rotate(10deg); z-index: 2; }
.diploma-sello svg { width: 100%; height: 100%; overflow: visible; }
.diploma-sello circle { fill: #C9A227; }
.diploma-sello circle.aro { fill: none; stroke: #8C6A0E; stroke-width: 1.2; stroke-dasharray: 2 2.5; }
.diploma-sello text { font-size: 8.4px; font-weight: 800; letter-spacing: .12em; fill: #3B2C05; }
.diploma-sello .sol { fill: #FFF3C4; }
.diploma-sello { background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .35), transparent 55%); border-radius: 50%; }
.diploma-cinta { position: absolute; right: -24px; bottom: -2px; width: 40px; height: 76px; z-index: 1; background: linear-gradient(90deg, var(--red) 0 48%, #A3141F 52% 100%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); transform: rotate(10deg); }
@media (prefers-reduced-motion: no-preference) {
  .diploma-ilus { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .diploma-ilus:hover { transform: rotate(0deg) translateY(-4px); }
}
@media (max-width: 480px) { .diploma-marco { padding: 30px 22px 22px; } .diploma-sello { right: -8px; width: 80px; height: 80px; } }
/* FEEL · Yamaha bien visible: encabezado del diploma */
.diploma-aval { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgb(201 162 39 / .55); }
.diploma-aval-txt { font-size: 10px; text-transform: uppercase; letter-spacing: .24em; color: #8A7B62; font-weight: 600; }
.diploma-aval-marcas { display: inline-flex; align-items: center; gap: 12px; }
.diploma-aval-marcas img { height: 46px; width: auto; border-radius: 6px; }
.diploma-aval-marcas b { font-size: 26px; font-weight: 800; letter-spacing: .16em; color: #1C1714; }
.diploma-pie { padding-right: 34px; }
.diploma-pie .diploma-logo { width: 44px; height: 44px; margin: 0; }
.diploma-sello text { font-size: 9px; }
.diplomas { overflow-x: clip; }
@media (max-width: 480px) {
  .diploma-aval-marcas img { height: 38px; } .diploma-aval-marcas b { font-size: 21px; }
  .diploma-cinta { right: -10px; } .diploma-sello { right: -4px; }
}
/* Que los estilos del texto de las teclas blancas no muevan ni giren las negras */
.teclado li span.tecla-negra, .teclado li:hover span.tecla-negra { writing-mode: horizontal-tb; transform: none; }
.teclado li span.tecla-negra.is-pressed, .teclado li:hover span.tecla-negra.is-pressed { transform: scaleY(.97); }
/* ============================================================ Y ADEMÁS (solfeo, composición, comedia musical) */
.mas-clases { padding-block: var(--s-8) var(--s-4); display: grid; gap: var(--s-4); justify-items: start; }
.mas-clases-titulo { font-size: var(--fs-hand); color: var(--red); }
.mas-clases-lista { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.mas-clases-lista a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px;
  border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--white); color: var(--ink);
  font-weight: 700; font-size: var(--fs-lg); text-decoration: none; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mas-clases-lista a:hover { background: var(--amarillo); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.mas-clases-lista a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.mas-clases-nota { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .mas-clases-lista a { transition: none; } .mas-clases-lista a:hover { transform: none; } }

/* ============================================================ MUESTRAS */
.muestras .lead { margin-top: var(--s-4); max-width: 60ch; }
.muestras-grid { display: grid; gap: var(--s-6); margin-top: var(--s-7); }
.muestra { margin: 0; position: relative; }
.muestra .foto { display: block; aspect-ratio: 3 / 2; }
.muestra--grande .foto { aspect-ratio: 1400 / 595; box-shadow: var(--shadow-hard-red); }
.muestra figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.muestra--grande figcaption { position: absolute; left: 20px; bottom: 20px; margin: 0; color: var(--ink); }
@media (max-width: 599px) {
  .muestra--grande .foto { aspect-ratio: 4 / 3; object-position: 30% 50%; }
  .muestra--grande figcaption { position: static; margin-top: var(--s-4); margin-left: 6px; }
}
@media (min-width: 768px) {
  .muestras-grid { grid-template-columns: 1fr 1fr; }
  .muestra--grande { grid-column: 1 / -1; }
}

/* ============================================================ SOBRE REBECA: cita */
.sobre-cita { font-family: var(--hand); font-size: var(--fs-hand); line-height: 1.2; color: var(--ink); border-left: 4px solid var(--red); padding-left: var(--s-4); }
/* Sello + cinta como una sola pieza (la cinta cuelga del centro del sello y se mueve con él) */
.diploma-cinta { display: none; }
.diploma-sello::before, .diploma-sello::after {
  content: ""; position: absolute; top: 58%; width: 30%; height: 78%; z-index: -1;
  background: linear-gradient(90deg, var(--red) 0 50%, #A3141F 50% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  transform-origin: 50% 0;
}
.diploma-sello::before { left: 22%; transform: rotate(14deg); }
.diploma-sello::after { right: 22%; transform: rotate(-14deg); }
.diploma-sello svg { position: relative; z-index: 1; }

/* ============================================================ VIDEO DE FONDO DEL HERO (04/11/2026)
   Los videos salen de reels (calidad media): en vez de mostrarlos "tal cual", se tratan como atmósfera.
   Capas, de abajo hacia arriba:
   1. video en blanco y negro, un poco más contrastado y apenas desenfocado (solo en pantallas grandes);
   2. ::before → duotono de marca: multiplica el gris por tinta + rojo (las luces quedan rojas, las sombras negras);
   3. ::after  → grano fino (SVG inline), viñeta y velo oscuro más fuerte detrás del texto.
   El póster (movimiento reducido) recibe el mismo tratamiento porque el filtro está en el <video>. */
.hero { overflow: hidden; isolation: isolate; }
.hero-fondo { position: absolute; inset: 0; z-index: -1; background: var(--ink); isolation: isolate; overflow: hidden; }
.hero-fondo video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block;
  filter: saturate(.85) contrast(1.05) brightness(1.05);
}
/* Celular: el video cubre la primera pantalla (logo, lema y título) y después funde a negro */
@media (max-width: 767px) { .hero-fondo { bottom: auto; height: min(100%, 100svh); } }
/* Escritorio: el video se estira más y es donde se nota la baja resolución. Un desenfoque leve la vuelve
   "a propósito"; la escala tapa el borde que deja el blur. 2px es barato frente a 8–10px. */
@media (min-width: 1024px) {
  .hero-fondo video { filter: saturate(.92) contrast(1.05) brightness(1.05); }
}
/* Sin tinte de color sobre el video (pedido de Elizabeth 04/11): solo velo oscuro y grano */
/* Grano + viñeta + velo para el texto (celular: el texto ocupa todo el ancho, el velo es parejo y funde a negro) */
.hero-fondo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.3'/%3E%3C/svg%3E"),
    radial-gradient(140% 100% at 50% 30%, transparent 40%, rgb(20 17 18 / .45) 100%),
    linear-gradient(180deg, rgb(20 17 18 / .5) 0%, rgb(20 17 18 / .5) 40%, rgb(20 17 18 / .78) 78%, var(--ink) 100%);
  background-size: 180px 180px, auto, auto;
  opacity: 1;
}
@media (min-width: 1024px) {
  /* Escritorio: velo fuerte a la izquierda (logo, título, botones) y más abierto hacia el formulario */
  .hero-fondo::after {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.3'/%3E%3C/svg%3E"),
      radial-gradient(120% 110% at 70% 40%, transparent 35%, rgb(20 17 18 / .5) 100%),
      linear-gradient(90deg, rgb(20 17 18 / .7) 0%, rgb(20 17 18 / .54) 38%, rgb(20 17 18 / .24) 64%, rgb(20 17 18 / .14) 100%),
      linear-gradient(180deg, rgb(20 17 18 / .35) 0%, transparent 25%, transparent 70%, var(--ink) 100%);
    background-size: 180px 180px, auto, auto, auto;
  }
}

/* Jerarquía del texto sobre el video */
.hero-text h1 { text-shadow: 0 1px 2px rgb(0 0 0 / .45), 0 6px 30px rgb(0 0 0 / .55); }
.hero-lead, .hero-lema, .hero-nota, .hero-datos { text-shadow: 0 1px 2px rgb(0 0 0 / .55), 0 2px 16px rgb(0 0 0 / .5); }
/* El kicker es texto chico: sobre el duotono rojo el --red-on-dark quedaba cerca de 3.7:1; este tono más claro pasa 4.5:1 en el peor cuadro. */
.hero-text .kicker { color: #FF8A80; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.hero-lead { color: rgb(255 255 255 / .88); }
.hero-datos { color: rgb(255 255 255 / .85); }
.hero-logo { box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 20px 60px -14px rgb(0 0 0 / .75), 0 24px 70px -18px rgb(214 32 47 / .5); }
@media (min-width: 1024px) {
  .hero h1 { font-size: clamp(4.25rem, 1.6rem + 4.4vw, 5.5rem); line-height: .96; letter-spacing: -0.03em; }
  .hero h1 .kicker { letter-spacing: .08em; }
  .hero-lead { font-size: clamp(1.25rem, 1rem + .4vw, 1.5rem); max-width: 36ch; }
}
.hero-video-btn {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .3); cursor: pointer;
  background: rgb(20 17 18 / .6); color: var(--white);
}
.hero-video-btn[hidden] { display: none; }
.hero-video-btn svg { width: 20px; height: 20px; }
.hero-video-btn .i-play, .hero-video-btn.is-paused .i-pausa { display: none; }
.hero-video-btn.is-paused .i-play { display: block; }
.hero-video-btn:hover { background: rgb(20 17 18 / .85); }
.hero-video-btn:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }


/* ============================================================ HERO: LOGO CON MOVIMIENTO + RESERVA ABAJO (04/11/2026) */
.hero-logo-wrap { position: relative; display: grid; place-items: center; flex: none; width: max-content; justify-self: start; }
.hero-logo-wrap .hero-logo { position: relative; z-index: 1; }
/* Aro de pentagrama girando alrededor del logo */
.hero-logo-aro {
  position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  border: 2px dashed rgb(255 255 255 / .45);
}
.hero-logo-aro::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--red-on-dark); border-right-color: var(--red-on-dark);
}
@media (min-width: 1024px) {
  .hero-logo { width: 360px; margin-left: 0; }
  .hero-logo-aro { inset: -18px; }
  /* La placa de reserva baja hasta el borde inferior del hero */
  .reserva { align-self: end; margin-top: 0; margin-bottom: calc(var(--s-7) * -1); }
  .hero-staff { position: relative; z-index: 0; }
}
@media (max-width: 1023px) {
  .hero-logo { width: 230px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-logo-wrap { animation: logo-flota 6s ease-in-out 1s infinite; }
  .hero-logo-aro { animation: aro-gira 26s linear infinite; }
  .hero-logo-aro::after { animation: aro-gira 9s linear infinite reverse; }
  .hero-logo { transition: rotate .5s cubic-bezier(.2,.8,.2,1), scale .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; }
  .hero-logo-wrap:hover .hero-logo { rotate: -6deg; scale: 1.04; box-shadow: 0 0 0 1px rgb(255 255 255 / .2), 0 30px 80px -14px rgb(214 32 47 / .75); }
  @keyframes logo-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
  @keyframes aro-gira { to { rotate: 360deg; } }
  /* Pulso suave de luz roja detrás del logo */
  .hero-logo-wrap::before {
    content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, rgb(255 90 82 / .55), transparent 70%);
    filter: blur(24px); animation: logo-pulso 3.2s ease-in-out infinite;
  }
  @keyframes logo-pulso { 0%, 100% { opacity: .35; scale: .92; } 50% { opacity: .8; scale: 1.08; } }
}

@media (max-width: 767px) { .hero-text .kicker { color: #FFC9C4; } }


/* ============================================================ HERO MÁS COMPACTO EN ESCRITORIO (04/11/2026)
   Menos alto = el video se estira menos y se ve más nítido. */
@media (min-width: 1024px) {
  .hero { padding-top: var(--s-6); }
  .hero-text { padding-top: var(--s-4); }
  .hero-marca { flex-wrap: nowrap; gap: var(--s-6); margin-bottom: var(--s-4); }
  .hero-logo { width: 250px; }
  .hero-logo-aro { inset: -14px; }
  .hero h1 { font-size: clamp(3.25rem, 1.4rem + 3.2vw, 4.25rem); }
  .hero-lead { margin-top: var(--s-4); font-size: clamp(1.125rem, 1rem + .25vw, 1.3rem); }
  .hero-actions { margin-top: var(--s-5); }
  .hero-staff { margin-top: var(--s-5); padding-bottom: var(--s-4); }
  .reserva { margin-bottom: calc(var(--s-5) * -1); }
}
/* Segunda pasada (04/11): más compacto todavía para pantallas con zoom 90% */
@media (min-width: 1024px) {
  .hero { padding-top: var(--s-5); }
  .hero-text { padding-top: var(--s-2); }
  .hero-marca { margin-bottom: var(--s-3); gap: var(--s-5); }
  .hero-logo { width: 190px; }
  .hero-logo-aro { inset: -11px; }
  .hero-lema { font-size: clamp(1.5rem, 1rem + 1vw, 2rem); }
  .hero h1 { font-size: clamp(2.75rem, 1.2rem + 2.6vw, 3.6rem); }
  .hero h1 .kicker { margin-bottom: var(--s-2); }
  .hero-lead { margin-top: var(--s-3); font-size: 1.125rem; }
  .hero-actions { margin-top: var(--s-4); }
  .hero-nota { margin-top: var(--s-2); }
  .hero-staff { margin-top: var(--s-4); padding-bottom: var(--s-3); }
  .reserva { padding: var(--s-5); gap: var(--s-3); margin-bottom: calc(var(--s-4) * -1); }
  .reserva select { min-height: 44px; }
  .reserva-titulo { font-size: var(--fs-lg); }
}

/* ============================================================ SECCIONES MÁS COMPACTAS (04/11/2026)
   Pedido de Elizabeth: todo se veía muy estirado. Menos aire vertical y títulos de sección algo menores. */
:root { --section-y: clamp(44px, 5.5vw, 72px); --fs-2xl: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
@media (min-width: 1024px) {
  :root { --s-7: 36px; --s-8: 48px; --s-9: 64px; }
  .ofertas-intro { padding-bottom: var(--s-5); }
  .sedes-grid { gap: var(--s-7); }
}/* Fotos menos altas en escritorio (eran lo que más estiraba las secciones) */
@media (min-width: 1024px) {
  .edades-lista .foto { aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: 50% 30%; }
  .muestras-grid .muestra:first-child .foto { aspect-ratio: 21 / 8; height: auto; object-fit: cover; }
  .muestras-grid .muestra:not(:first-child) .foto { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
  .sede .foto { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
  .sobre-foto { max-width: 380px; }
}

/* ============================================================ HERO: RESERVA A LA DERECHA + CONTROLES (04/11/2026)
   El video de escritorio muestra la toma en el centro (42,2% del ancho) y relleno desenfocado a los costados.
   La placa se corre hasta el borde derecho para tapar ese relleno. */
.hero-controles { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 8px; align-items: center; }
.hero-controles .hero-video-btn { position: static; }
.hero-musica-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .3); background: rgb(20 17 18 / .6); color: var(--white);
  font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
}
.hero-musica-btn[hidden] { display: none; }
.hero-musica-btn svg { width: 18px; height: 18px; }
.hero-musica-btn:hover { background: rgb(20 17 18 / .85); }
.hero-musica-btn.is-on { background: var(--red); border-color: var(--red); }
.hero-musica-btn:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-musica-btn.is-on svg { animation: nota-late 1.07s ease-in-out infinite; }
  @keyframes nota-late { 50% { scale: 1.18; } }
}
@media (min-width: 1024px) {
  .hero-controles { top: 16px; bottom: auto; }
  .reserva {
    justify-self: end;
    width: clamp(340px, 28.9vw - 20px, 470px);
    margin-right: calc((100vw - min(100vw, var(--container))) / -2 + 8px);
  }
}

/* ============================================================ RESERVÁ TU CLASE: VERSIÓN NUEVA (04/11/2026)
   Vidrio oscuro sobre el video, borde en degradé, chips para sede y "para quién", barra de avance,
   mensaje como globo de chat. Reemplaza la placa clara con sombra roja desplazada. */
.reserva {
  --vidrio-borde: rgb(255 255 255 / .16);
  color: var(--white);
  background:
    radial-gradient(120% 60% at 100% 0%, rgb(214 32 47 / .28), transparent 60%),
    linear-gradient(165deg, rgb(255 255 255 / .10), rgb(255 255 255 / .03) 55%),
    rgb(20 17 18 / .62);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
          backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--vidrio-borde);
  border-radius: 24px;
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .14);
  isolation: isolate;
}
/* Borde en degradé (rojo arriba a la izquierda, rosado abajo a la derecha) */
.reserva::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(140deg, #FF5A52, rgb(255 90 82 / 0) 38%, rgb(255 255 255 / 0) 62%, rgb(255 201 196 / .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.reserva-cabeza { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.reserva-titulo { color: var(--white); letter-spacing: -0.01em; }
.reserva-pasos {
  flex: none; font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid var(--vidrio-borde);
  color: rgb(255 255 255 / .85);
}
.reserva[data-pasos="3"] .reserva-pasos { background: var(--red); border-color: var(--red); color: var(--white); }
.reserva-bajada { color: rgb(255 255 255 / .74); }
.reserva-progreso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: calc(var(--s-1) * -1); }
.reserva-progreso span { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .14); position: relative; overflow: hidden; }
.reserva-progreso span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #FF8A80); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.reserva[data-pasos="1"] .reserva-progreso span:nth-child(-n+1)::after,
.reserva[data-pasos="2"] .reserva-progreso span:nth-child(-n+2)::after,
.reserva[data-pasos="3"] .reserva-progreso span::after { transform: scaleX(1); }

fieldset.reserva-campo { border: 0; margin: 0; padding: 0; min-width: 0; }
.reserva-campo legend, .reserva-campo > label {
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 8px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--white);
}
.reserva-campo { gap: 0; }
.reserva-num {
  width: 22px; height: 22px; font-size: 12px; background: transparent; color: var(--white);
  border: 1.5px solid rgb(255 255 255 / .45); transition: background .25s, border-color .25s;
}
.reserva-campo.is-ok .reserva-num { background: var(--red); border-color: var(--red); }

.reserva-chips { display: grid; gap: 8px; }
.reserva-chips--2 { grid-template-columns: 1fr 1fr; }
.reserva-chips--3 { grid-template-columns: repeat(3, 1fr); }
.rchip { position: relative; display: block; cursor: pointer; }
.rchip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rchip > span {
  display: grid; align-content: center; gap: 1px; min-height: 44px; height: 100%; padding: 8px 12px;
  border-radius: 12px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06);
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.reserva-chips--3 .rchip > span { text-align: center; justify-items: center; }
.rchip b { font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; }
.rchip small { font-size: 12px; color: rgb(255 255 255 / .66); line-height: 1.25; }
.rchip:hover > span { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .38); }
.rchip input:checked + span {
  background: linear-gradient(135deg, #E5323F, var(--red)); border-color: transparent;
  box-shadow: 0 8px 22px -8px rgb(214 32 47 / .9);
}
.rchip input:checked + span small { color: rgb(255 255 255 / .88); }
.rchip input:focus-visible + span { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.rchip input:disabled + span { opacity: .35; cursor: not-allowed; }
.rchip:has(input:disabled) { cursor: not-allowed; }

.reserva select {
  min-height: 46px; color: var(--white); border: 1px solid rgb(255 255 255 / .2); border-radius: 12px;
  background: rgb(255 255 255 / .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px;
}
.reserva select:hover { border-color: rgb(255 255 255 / .38); background-color: rgb(255 255 255 / .12); }
.reserva-campo.is-ok select { border-color: rgb(255 138 128 / .7); }
.reserva select option, .reserva select optgroup { color: var(--ink); background: var(--white); }
.reserva select:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }

/* Mensaje como globo de chat */
.reserva-preview {
  position: relative; background: rgb(255 255 255 / .94); color: var(--ink); border: 0;
  border-radius: 16px 16px 16px 4px; padding: 10px 14px; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .8);
}
.reserva-preview span { color: var(--red-deep, #A3121F); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.reserva-preview q { quotes: none; }

.reserva-btn {
  border-radius: 999px; min-height: 52px; border: 0;
  background: linear-gradient(135deg, #EE3B47, var(--red) 60%, #B3141F);
  box-shadow: 0 14px 30px -12px rgb(214 32 47 / .95), inset 0 1px 0 rgb(255 255 255 / .25);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.reserva-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 36px -12px rgb(214 32 47 / 1), inset 0 1px 0 rgb(255 255 255 / .25); }
.reserva-nota { color: rgb(255 255 255 / .62); }
@media (prefers-reduced-motion: reduce) {
  .reserva-progreso span::after, .rchip > span, .reserva-btn { transition: none; }
  .reserva-btn:hover { transform: none; }
}
@media (min-width: 1024px) {
  .reserva { gap: 14px; }
}
.reserva-chips, .reserva-campo { min-width: 0; }
.rchip > span { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  /* Los botones de música y pausa van abajo, a la izquierda de la placa */
  .hero-controles { top: auto; bottom: 16px; right: calc(clamp(340px, 28.9vw - 20px, 470px) + 44px); }
}
/* El estilo general de los labels del formulario no aplica a los chips */
.reserva-campo label.rchip { display: block; margin: 0; padding: 0; gap: 0; font-weight: inherit; }
.rchip > span { width: 100%; }
.reserva-preview { font-size: var(--fs-xs); line-height: 1.45; }
/* Botón de música: solo la corchea en un círculo (como el de pausa). Apagada = tachada. */
.hero-musica-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; gap: 0; }
.hero-musica-btn svg { width: 22px; height: 22px; overflow: visible; }
.hero-musica-btn .musica-tachado { stroke: #FF8A80; filter: drop-shadow(0 0 1.5px rgb(20 17 18)); transition: opacity .2s; }
.hero-musica-btn.is-on { background: rgb(20 17 18 / .6); border-color: rgb(255 255 255 / .5); }
.hero-musica-btn.is-on .musica-tachado { opacity: 0; }
/* La placa ocupa exactamente la franja desenfocada derecha del video (js/main.js mide y pone --zona-w / --zona-mr).
   Va pegada al borde derecho de la pantalla, por eso las esquinas derechas son rectas. */
@media (min-width: 1024px) {
  .reserva.is-zona {
    width: var(--zona-w); margin-right: var(--zona-mr);
    border-radius: 24px 0 0 24px; border-right: 0;
  }
  .reserva.is-zona::before { border-radius: 24px 0 0 24px; }
  .hero-controles { right: calc(var(--zona-ancho-total, 400px) + 16px); }
}
/* Hero a la medida de la placa (pedido 04/11): mismo aire arriba y abajo de la placa, bordes completos visibles.
   El pentagrama decorativo pasa a ir apoyado abajo a la izquierda, sin sumar altura. */
@media (min-width: 1024px) {
  .hero { padding-top: 28px; padding-bottom: 28px; }
  .hero-text { padding-top: 0; }
  .hero-datos { margin-bottom: 24px; }
  .hero-staff { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; padding: 0; z-index: 0; pointer-events: none; }
  .reserva, .reserva.is-zona { align-self: start; margin-top: 0; margin-bottom: 0; }
  .reserva.is-zona {
    width: calc(var(--zona-w) - 16px); margin-right: calc(var(--zona-mr) + 16px);
    border-radius: 24px; border-right: 1px solid var(--vidrio-borde);
  }
  .reserva.is-zona::before { border-radius: inherit; }
  .hero-controles { right: calc(var(--zona-ancho-total, 400px) + 16px); bottom: 20px; }
}
/* Altura EXACTA: el hero mide lo mismo que la placa (sin aire arriba ni abajo de ella).
   El aire lo lleva solo la columna de texto; la placa se estira a toda la altura de la grilla. */
@media (min-width: 1024px) {
  .hero { padding-top: 0; padding-bottom: 0; }
  .hero-text { padding-top: 24px; }
  .hero-datos { margin-bottom: 54px; }   /* deja lugar al pentagrama de abajo */
  .reserva, .reserva.is-zona { align-self: stretch; align-content: center; }
}
/* Clave de sol entera: pentagrama, datos y botones suben juntos 16 px */
@media (min-width: 1024px) {
  .hero-staff { bottom: 26px; }
  .hero-datos { margin-bottom: 72px; }
  .hero-controles { bottom: 38px; }
}
/* Placa: todo arriba y con ritmo parejo (16 px entre bloques, 8 px entre etiqueta y opciones,
   todas las opciones de 52 px). El botón queda apoyado abajo; el globo del mensaje aparece encima. */
@media (min-width: 1024px) {
  .reserva, .reserva.is-zona {
    display: flex; flex-direction: column; justify-content: flex-start; gap: 16px;
    padding: 24px;
  }
  .reserva-cabeza { min-height: 32px; }
  .reserva-progreso { margin-top: -4px; }
  .reserva-btn { margin-top: auto; }
}
.reserva-campo legend, .reserva-campo > label { margin-bottom: 8px; }
.rchip > span { min-height: 52px; }
.reserva select { min-height: 52px; }
.reserva-chips { gap: 8px; }
/* El botón va enseguida de "Clase" (no apoyado abajo) */
@media (min-width: 1024px) { .reserva-btn { margin-top: 8px; } }@media (min-width: 1024px) {
  .reserva, .reserva.is-zona { gap: 22px; padding: 28px 24px; }
  .reserva-progreso { margin-top: -10px; }
}
/* Barra negra de arriba más fina en escritorio, y aire para que el aro del logo (que flota) no se corte */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .hero-text { padding-top: 40px; }
}
/* Flotante de WhatsApp también en escritorio, y logo del header visible siempre (también sobre el hero) */
@media (min-width: 768px) {
  .wa-float { display: grid; right: 24px; bottom: 24px; width: 64px; height: 64px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .55); }
  .wa-float svg { width: 32px; height: 32px; }
}
.wa-float:hover { transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .wa-float:not(.is-hidden) { animation: wa-llama 2.6s ease-out 1.2s 2; }
  @keyframes wa-llama { 0% { box-shadow: 0 0 0 0 rgb(37 211 102 / .55); } 70%, 100% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); } }
}
.home .site-header:not(.is-scrolled) .brand { opacity: 1; visibility: visible; }
/* Teclado de instrumentos en celular y tablet: las 8 teclas entran enteras (sin scroll lateral),
   con el nombre en vertical como en escritorio. */
@media (max-width: 1023px) {
  .teclado-wrap::after { display: none; }
  .teclado { overflow: visible; padding-right: 0; scroll-snap-type: none; }
  .teclado li { flex: 1 1 0; min-width: 0; height: 190px; padding: 12px 2px; font-size: 13px; }
  .teclado li span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  .teclado li:hover span { transform: rotate(180deg) translateY(-3px); }
  .teclado .tecla-negra { width: 16px; right: -9px; height: 52%; }
  .teclado .nota { width: 10px; height: 20px; margin-left: -5px; top: -28px; }
}
/* Fotos de las sedes: recortes nuevos con menos zoom (04/11); se muestran enteras en 4:3, sin recorte extra */
.sede .foto { aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 50%; }
/* ============================================================ MENÚ DE TRES LÍNEAS EN CELULAR Y TABLET (04/11/2026)
   Abre un panel debajo del header con todas las secciones (Clases, Sedes, Preguntas, Blog). */
.menu-btn { display: none; }
@media (max-width: 1023px) {
  .menu-btn {
    display: grid; place-content: center; gap: 5px; flex: none;
    width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
    background: transparent; border: 1px solid rgb(255 255 255 / .28); color: var(--white);
  }
  .menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
  .site-header.menu-abierto .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-abierto .menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.menu-abierto .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-btn:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--ink); border-top: 1px solid rgb(255 255 255 / .1);
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / .8);
  }
  .site-header.menu-abierto .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 16px; }
  .site-nav .nav-desk { display: list-item; }
  .site-nav a {
    display: flex; min-height: 54px; padding-inline: 0; font-size: var(--fs-lg);
    border-bottom: 1px solid rgb(255 255 255 / .08); background-position: 0 calc(100% - 12px);
  }
  .site-nav li:last-child a { border-bottom: 0; }
  /* "Ver clases →" confunde en el celular (pedido de Elizabeth): solo queda el botón de WhatsApp */
  .hero-actions .btn-link { display: none; }
}
/* 05/11: placa con 4 pasos (sede, para quién, clase, individual o grupal) */
.reserva-progreso { grid-template-columns: repeat(4, 1fr); }
.reserva[data-pasos="4"] .reserva-pasos { background: var(--red); border-color: var(--red); color: var(--white); }
.reserva[data-pasos="3"] .reserva-pasos { background: rgb(255 255 255 / .08); border-color: var(--vidrio-borde); color: rgb(255 255 255 / .85); }
.reserva[data-pasos="3"] .reserva-progreso span::after { transform: scaleX(0); }
.reserva[data-pasos="3"] .reserva-progreso span:nth-child(-n+3)::after,
.reserva[data-pasos="4"] .reserva-progreso span::after { transform: scaleX(1); }
.reserva-chips--3 .rchip > span { padding: 8px 6px; }
