/* Alegría y Javier · Danza y Pilates · hoja de estilos (el HTML se genera con tools/build.mjs) */
@property --tint { syntax: "<color>"; inherits: true; initial-value: #2b0c22; }
@property --acc { syntax: "<color>"; inherits: true; initial-value: #f6c1dc; }

:root {
  --gut: clamp(18px, 3.4vw, 52px);
  --td: 900ms;
  --te: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  transition: --tint var(--td) var(--te), --acc var(--td) var(--te);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--tint);
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
p, h1 { margin: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fff; color: #000; padding: 10px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 4px; }

/* Cabecera: logo a la izquierda, «Clase de prueba» subrayado a la derecha */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: calc(var(--gut) * 0.7) var(--gut) 0;
}
.brand img { height: clamp(62px, 7vw, 92px); width: auto; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35)); }
.trial {
  position: relative; margin-top: 10px; padding-bottom: 6px;
  font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.trial::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform-origin: 100% 50%;
  transition: transform 420ms var(--ease-out);
}
.trial:hover::after { animation: redraw 560ms var(--ease-out); }
@keyframes redraw { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 45% { transform: scaleX(0); transform-origin: 100% 50%; } 46% { transform-origin: 0 50%; } 100% { transform: scaleX(1); transform-origin: 0 50%; } }

/* ── Portada: la foto a página entera y el baile encima ── */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: var(--tint); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-photo img.on { opacity: 1; z-index: 2; }
.hero-photo img.was { opacity: 1; z-index: 1; }
.shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 24%),
    linear-gradient(20deg, color-mix(in srgb, var(--tint) 92%, transparent) 0%, color-mix(in srgb, var(--tint) 55%, transparent) 30%, rgba(0, 0, 0, 0) 58%);
}

.hero-text { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(var(--gut) * 0.9); z-index: 4; }
h1 { font-weight: 400; }
.word {
  display: block; height: 1.1em;
  font-size: clamp(5rem, 15vw, 14.5rem); line-height: 1.04;
  white-space: nowrap; color: var(--acc);
}
.word[data-k="ballet"] { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.word[data-k="flamenco"] { font-family: var(--serif); font-weight: 900; letter-spacing: -0.03em; }
.word[data-k="hiphop"] { font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: -0.015em; font-size: clamp(4.2rem, 12.5vw, 12.2rem); line-height: 1.2; }
.word .ch { display: inline-block; white-space: pre; transform-origin: 50% 100%; will-change: transform, opacity; }

/* Elegir baile: texto con línea, sin botones redondos */
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; margin-top: clamp(14px, 2.2vw, 26px); }
.pk {
  position: relative; padding: 6px 0 9px;
  border: 0; background: none; cursor: pointer;
  font-size: 1.02rem; font-weight: 600; letter-spacing: 0.01em; text-transform: capitalize;
  color: rgba(255, 255, 255, 0.62);
  transition: color 200ms ease;
}
.pk:hover, .pk[aria-pressed="true"] { color: #fff; }
.pk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: rgba(255, 255, 255, 0.25); }
.pk i { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; z-index: 1; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; }
.pk[aria-pressed="true"] i { transform: scaleX(1); }
.pause { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: rgba(255, 255, 255, 0.62); transition: color 200ms ease; }
.pause:hover { color: #fff; }
.pause svg { width: 12px; height: 12px; fill: currentColor; }
.pause .p2 { display: none; }
.pause[aria-pressed="true"] .p1 { display: none; }
.pause[aria-pressed="true"] .p2 { display: inline; }

/* Pie */
.foot { background: #1d1119; color: #f4e9ee; padding: clamp(56px, 8vw, 96px) var(--gut) 28px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; max-width: 1240px; margin: 0 auto; }
.foot-in p + p { margin-top: 10px; }
.foot-k { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #f0a8cf; margin-bottom: 14px; }
.foot-big { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.foot-big a { text-decoration: none; }
.foot a:hover { color: #f0a8cf; }
.foot-legal { max-width: 1240px; margin: 56px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: rgba(244, 233, 238, 0.55); }

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .pause { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .trial { margin-top: 6px; font-size: 0.96rem; }
  .shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 22%), linear-gradient(0deg, color-mix(in srgb, var(--tint) 94%, transparent) 0%, color-mix(in srgb, var(--tint) 60%, transparent) 32%, rgba(0, 0, 0, 0) 58%); }
  .word { font-size: clamp(4rem, 21vw, 7rem); }
  .word[data-k="hiphop"] { font-size: clamp(3.4rem, 17vw, 6rem); }
  .picker { gap: 4px 22px; }
  .foot-in { grid-template-columns: 1fr; gap: 32px; }
}

/* ───────── Multipágina: fondo claro, menú, secciones, horario con filtro ───────── */
:root {
  --paper: #f8f1ec;
  --paper-2: #f0e5de;
  --ink: #1d1119;
  --muted: #6b5862;
  --mag: #a3125f;
  --line: rgba(29, 17, 25, 0.14);
}
body { background: var(--paper); color: var(--ink); }
.hero { background: var(--tint); color: #fff; }
h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--mag); }
h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.005em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Cabecera: sobre la foto en la portada; clara y fija en las demás */
.top-act { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.top-act .trial { margin-top: 0; }
.top.over { align-items: flex-start; }
.top.over .top-act { margin-top: 10px; }
.menu-btn {
  position: relative; display: none; padding: 0 0 6px; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; color: inherit;
}
.menu-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; opacity: 0.45; }
.menu-btn.always { display: inline-block; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.menu-btn[aria-expanded="true"]::after { opacity: 1; }

.inner .top {
  position: sticky; top: 0; z-index: 20; align-items: center;
  padding: 14px var(--gut); background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.inner .brand img { height: clamp(34px, 3.2vw, 44px); width: auto; filter: none; }
.inner .trial { text-shadow: none; color: var(--mag); }
.nav { display: flex; gap: clamp(16px, 2vw, 30px); margin: 0 auto 0 clamp(20px, 3.4vw, 56px); }
.nav a { position: relative; padding: 6px 0; font-weight: 500; font-size: 0.96rem; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--mag); transform: scaleX(0); transform-origin: 0 50%; transition: transform 260ms var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.drawer {
  position: fixed; inset: 0; z-index: 9;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--gut) + 110px) var(--gut) calc(28px + env(safe-area-inset-bottom));
  background: #1d1119; color: #f8eef3;
  visibility: hidden; opacity: 0;
  transition: opacity 240ms ease, visibility 0s 240ms;
}
.inner .drawer { z-index: 19; padding-top: 96px; }
.drawer.open { visibility: visible; opacity: 1; transition: opacity 240ms ease; }
.drawer nav { display: grid; }
.drawer nav a {
  padding: 10px 0; font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.1; text-decoration: none;
  opacity: 0; transform: translateY(10px); transition: opacity 300ms ease, transform 420ms var(--ease-out), color 160ms ease;
}
.drawer.open nav a { opacity: 1; transform: none; }
.drawer.open nav a:nth-child(2) { transition-delay: 30ms; }
.drawer.open nav a:nth-child(3) { transition-delay: 60ms; }
.drawer.open nav a:nth-child(4) { transition-delay: 90ms; }
.drawer.open nav a:nth-child(5) { transition-delay: 120ms; }
.drawer.open nav a:nth-child(6) { transition-delay: 150ms; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: #f0a8cf; font-style: italic; }
.drawer-foot { color: rgba(248, 238, 243, 0.6); }
.drawer-foot a { color: #fff; font-weight: 600; }
html.menu-open { overflow: hidden; }
html.menu-open .top { color: #fff; }
html.menu-open .inner .top { background: transparent; border-color: transparent; backdrop-filter: none; }
html.menu-open .inner .brand img { filter: brightness(0) invert(1); }
html.menu-open .inner .trial { color: #fff; }

/* Retícula */
.wrap { width: min(100% - 2 * var(--gut), 1240px); margin: 0 auto; }
.narrow { max-width: 780px; }
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.sec.alt { background: var(--paper-2); }
.sec:not(.alt):not(.find-band) + .sec:not(.alt):not(.find-band) { padding-top: 0; }
.sec p { text-wrap: pretty; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head p { max-width: 52ch; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; text-decoration: none; color: var(--mag); border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.arr { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.link:hover .arr, a:hover > .disc-t .arr { transform: translateX(4px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--mag); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.btn:hover { background: #860d4d; }
.btn:active { transform: scale(0.97); }

.ph { margin: 0; overflow: hidden; background: var(--paper-2); border-radius: 2px; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
a:hover .ph img, .ph:hover img { transform: scale(1.03); }

/* Portada: disciplinas */
.disc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.disc-grid a { display: grid; gap: 10px; text-decoration: none; transition: transform 240ms var(--ease-out); }
.disc-grid a:hover { transform: translateY(-2px); }
.disc-ph { aspect-ratio: 3 / 4; margin-bottom: 8px; }
.disc-t { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.disc-t .arr { color: var(--mag); }
.disc-d { color: var(--muted); font-size: 0.97rem; }
.disc-more { margin-top: 36px; color: var(--muted); }
.disc-more a { color: var(--mag); }

.find-band { background: #1d1119; color: #f8eef3; }
.find-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 72px; align-items: center; }
.find-band h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.find-band h2 em { color: #f0a8cf; }
.finder label { display: block; margin-bottom: 12px; font-weight: 600; }
.finder-row { display: flex; gap: 12px; flex-wrap: wrap; }
.finder select { flex: 1 1 220px; }
.finder .btn { background: #f0a8cf; color: #1d1119; }
.finder .btn:hover { background: #fff; }

select, input, textarea {
  min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fffaf7; border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color 160ms ease;
}
select:hover, input:hover, textarea:hover { border-color: rgba(29, 17, 25, 0.4); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--mag); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.nophoto { grid-template-columns: 1fr; max-width: 860px; }
.split-txt p { margin-top: 18px; max-width: 52ch; }
.split-txt h2 + p { margin-top: 24px; }
.split-ph { aspect-ratio: 4 / 3; }
.split-ph.tall { aspect-ratio: 4 / 5; max-height: 80svh; }
.split.rev > .ph, .split.rev > .camp-grid { order: 2; }

.cta-band { padding: clamp(72px, 9vw, 120px) 0; background: #1d1119; color: #f8eef3; }
.cta-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; }
.cta-in h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.cta-in p { color: rgba(248, 238, 243, 0.72); max-width: 44ch; margin-bottom: 24px; }
.cta-band .btn { background: #f0a8cf; color: #1d1119; }
.cta-band .btn:hover { background: #fff; }

/* Cabecera de las páginas interiores */
.pagehead { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.pagehead-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pagehead.plain .pagehead-in { grid-template-columns: 1fr; }
.kicker { margin-bottom: 18px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mag); }
.pagehead h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.8rem, 6.6vw, 5.8rem); line-height: 0.98; letter-spacing: -0.02em; max-width: 13ch; text-wrap: balance; }
.lead-l { margin-top: 24px; max-width: 50ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); text-wrap: pretty; }
.pagehead-ph { aspect-ratio: 4 / 3; }
.pagehead.nf { padding: clamp(96px, 16vw, 200px) 0; }
.pagehead.nf .btn { margin-top: 32px; }

/* Clases */
.chips-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(48px, 6vw, 80px); }
.chips-nav a { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 0.94rem; text-decoration: none; transition: border-color 160ms ease, color 160ms ease; }
.chips-nav a:hover { border-color: var(--mag); color: var(--mag); }
.disc-sec { scroll-margin-top: 80px; }
.levels { margin-top: 28px; border-top: 1px solid var(--line); }
.levels li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.levels b { font-weight: 600; }
.levels span { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Horario */
.sched-sec { padding-top: 0; }
.filters { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 20px 40px; align-items: end; padding: 24px; background: #fffaf7; border: 1px solid var(--line); border-radius: 16px; }
.filters label, .filters legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 0.92rem; }
.filters select { width: 100%; }
.f-disc { margin: 0; padding: 0; border: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; min-height: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 0.94rem; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.chip:not(:first-child) span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gc); }
.chip:hover span { border-color: rgba(29, 17, 25, 0.4); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--mag); outline-offset: 3px; }
.g-ballet, .c-ballet { --gc: #d4438c; }
.g-espanola, .c-espanola { --gc: #b8231c; }
.g-urban, .c-urban { --gc: #d9a400; }
.g-contem, .c-contem { --gc: #2d7a7e; }
.g-latinos, .c-latinos { --gc: #e06a2c; }
.g-pilates, .c-pilates { --gc: #6d7d3c; }
.count { margin: 28px 0 18px; font-weight: 600; min-height: 1.5em; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.day h3 { position: sticky; top: 72px; z-index: 1; margin: 0 0 10px; padding: 10px 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.day ul { display: grid; gap: 6px; }
.slot { display: grid; gap: 1px; padding: 9px 10px 10px 12px; background: #fffaf7; border-left: 3px solid var(--gc); border-radius: 2px 8px 8px 2px; }
.slot time { font-size: 0.8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot b { font-size: 0.95rem; font-weight: 600; line-height: 1.25; }
.slot span { font-size: 0.78rem; color: var(--muted); }
.slot[hidden] { display: none; }
.day-empty { display: none; font-size: 0.9rem; color: var(--muted); padding: 8px 0; }
.day.is-empty .day-empty { display: block; }
.empty { display: none; padding: 32px 0; font-size: 1.1rem; }
.week.is-empty { display: none; }
.week.is-empty + .empty { display: block; }
.sched-note { margin-top: 32px; font-size: 0.92rem; color: var(--muted); max-width: 70ch; }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.lead-s { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.extras { margin: 32px 0 0; border-top: 1px solid var(--line); }
.extras div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.extras dt { font-weight: 700; }
.extras dd { margin: 0; color: var(--muted); }
.small { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.prices thead th { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.prices tbody th { font-weight: 500; }
.prices td { text-align: right; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.prices thead th:last-child { text-align: right; }

/* Pilates */
.aero-trio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aero-trio .ph { aspect-ratio: 1; }
.aero-trio .ph:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.pil-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.pil-week h3 { font-family: var(--serif); font-size: 1.3rem; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.pil-week li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pil-week time { display: inline-block; min-width: 3.4em; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mag); }

/* Escuela */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.team-ph { aspect-ratio: 1; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.three > div { padding-top: 22px; border-top: 1.5px solid var(--ink); }
.three p { color: var(--muted); }
.camp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.camp-ph { aspect-ratio: 3 / 4; }
.camp-grid .ph:first-child { grid-row: span 2; aspect-ratio: auto; }
#campamento { scroll-margin-top: 80px; }

/* Contacto */
.form-sec { padding-top: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.trial-form { display: grid; gap: 22px; }
.trial-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.trial-form legend, .field label { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 0.95rem; }
.field small { font-weight: 400; color: var(--muted); }
.field select, .field input, .field textarea { width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field [aria-invalid="true"] { border-color: #b8231c; }
.err { margin-top: 6px; font-size: 0.88rem; color: #b8231c; }
.err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; inset: 0; opacity: 0; margin: 0; min-height: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.radio:hover span { border-color: rgba(29, 17, 25, 0.4); }
.radio input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.radio input:focus-visible + span { outline: 3px solid var(--mag); outline-offset: 3px; }
.btn-wide { justify-self: start; min-width: 260px; }
.contact-card { position: sticky; top: 96px; padding: clamp(24px, 3vw, 36px); background: #1d1119; color: #f4e9ee; border-radius: 16px; }
.contact-card p + p { margin-top: 8px; }
.contact-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); margin: 24px 0; }
.cc-big { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; }
.cc-big a { text-decoration: none; }
.contact-card .link { color: #f0a8cf; margin-top: 6px; }

.legal h2 { font-size: 1.4rem; margin: 32px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); }
.foot-in { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.foot-nav { display: grid; align-content: start; gap: 8px; }
.foot-nav .foot-k { margin-bottom: 6px; }
.foot-nav a { text-decoration: none; }

@media (max-width: 1160px) {
  .inner .nav { display: none; }
  .inner .menu-btn { display: inline-block; }
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .disc-grid, .team { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .pil-week { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .foot-in { grid-template-columns: 1fr; }
  .sec-head, .split, .pagehead-in, .cta-in, .find-in, .three, .price-grid, .form-grid, .field-row, .filters { grid-template-columns: 1fr; }
  .split.rev > .ph, .split.rev > .camp-grid { order: 0; }
  .pagehead-ph { order: -1; aspect-ratio: 16 / 10; }
  .pagehead { padding-top: 28px; }
  .inner .top { padding: 10px var(--gut); }
  .inner .trial { font-size: 0.92rem; }
  .disc-grid { gap: 24px 14px; }
  .disc-t { font-size: 1.2rem; }
  .week { grid-template-columns: 1fr; gap: 28px; }
  .day h3 { top: 60px; }
  .slot { grid-template-columns: 92px 1fr; column-gap: 10px; }
  .slot time { grid-row: span 2; padding-top: 2px; font-size: 0.86rem; }
  .filters { padding: 18px; }
  .pil-week { grid-template-columns: 1fr 1fr; }
  .extras div { grid-template-columns: 1fr; gap: 2px; }
  .contact-card { position: static; }
  .btn-wide { justify-self: stretch; }
  .levels li { flex-direction: column; gap: 0; }
  .levels span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer nav a, .ph img, .nav a::after, .disc-grid a { transition: none; }
}
.prices td, .cc-big, .foot-big, .pil-week time, .slot time { font-variant-numeric: lining-nums tabular-nums; }
.top.over { color: #fff; }
@media (max-width: 760px) { .day h3 { top: 66px; } }

/* Dónde estamos */
.where { padding-top: clamp(56px, 7vw, 96px) !important; }
.where-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.where-addr { margin: 24px 0 10px; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; }
.where-txt > p:not(.where-addr) { color: var(--muted); }
.map { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
@media (max-width: 760px) { .where-in { grid-template-columns: 1fr; } .map { aspect-ratio: 4 / 5; } }

/* ───────── Telón al entrar (solo la primera vez de cada visita) ───────── */
.telon { display: none; }
html.telon-on { overflow: hidden; }
.telon-on .telon { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.tl {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(90deg, #4f0710 0, #7e101c 2.2%, #ad1a29 4.6%, #c42634 5.6%, #9a1523 7.4%, #630914 9.5%, #4f0710 10%);
  transition: transform 1500ms cubic-bezier(0.7, 0, 0.2, 1), filter 1500ms ease;
}
.tl-l { left: 0; transform-origin: 0 50%; box-shadow: 18px 0 30px -12px rgba(0, 0, 0, 0.7); }
.tl-r { right: 0; transform-origin: 100% 50%; box-shadow: -18px 0 30px -12px rgba(0, 0, 0, 0.7); }
.valance {
  position: absolute; left: 0; right: 0; top: 0; height: clamp(54px, 9vh, 96px);
  background: repeating-linear-gradient(90deg, #5d0912 0, #9a1523 3%, #c42634 4.5%, #7e101c 6.5%, #5d0912 8%);
  -webkit-mask: radial-gradient(circle at 50% 0, #000 70%, transparent 71%) 0 100% / 8% 34% repeat-x, linear-gradient(#000, #000) 0 0 / 100% 67% no-repeat;
  mask: radial-gradient(circle at 50% 0, #000 70%, transparent 71%) 0 100% / 8% 34% repeat-x, linear-gradient(#000, #000) 0 0 / 100% 67% no-repeat;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  transition: transform 900ms cubic-bezier(0.7, 0, 0.2, 1) 300ms;
}
.tl-logo { position: absolute; left: 50%; top: 50%; width: clamp(140px, 16vw, 220px); height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5)); transition: opacity 400ms ease, transform 600ms var(--ease-out); }
.telon.open .tl-logo { opacity: 0; transform: translate(-50%, -54%); }
.telon.open .tl-l { transform: scaleX(0.1); filter: brightness(0.7); }
.telon.open .tl-r { transform: scaleX(0.1); filter: brightness(0.7); }
.telon.open .valance { transform: translateY(-110%); }
.telon.gone { opacity: 0; transition: opacity 500ms ease; }

/* ───────── Festival: fotos en abanico ───────── */
.fest { background: #1d1119; color: #f8eef3; overflow: hidden; }
.fest h2 em { color: #f0a8cf; }
.fest-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.fest-txt p { margin-top: 22px; max-width: 46ch; color: rgba(248, 238, 243, 0.75); }
.fest-txt .fest-hint { margin-top: 14px; font-size: 0.9rem; color: rgba(248, 238, 243, 0.5); }
.fan {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; margin: 0; padding: 0;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fan-card {
  position: absolute; left: 18%; right: 18%; top: 22%; aspect-ratio: 4 / 3;
  display: block; overflow: hidden; border-radius: 4px;
  border: clamp(5px, 0.6vw, 9px) solid #f8eef3; background: #f8eef3;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
  transform-origin: 50% 190%;
  will-change: transform;
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan.moving .fan-card { transition: transform 620ms cubic-bezier(0.23, 1, 0.32, 1); }
.fan:focus-visible { outline: 3px solid #f0a8cf; outline-offset: 8px; border-radius: 8px; }

/* ───────── Disciplinas con su ritmo ───────── */
.disc-t .ch { display: inline-block; white-space: pre; transform-origin: 50% 100%; }

@media (max-width: 760px) {
  .fest-in { grid-template-columns: 1fr; }
  .fan { aspect-ratio: 1 / 1; }
  .fan-card { left: 13%; right: 13%; top: 20%; }
}
@media (prefers-reduced-motion: reduce) {
  .telon-on .telon { display: none; }
  .fan.moving .fan-card { transition: none; }
}

/* Buscador en claro, con una línea fina arriba (sin salto brusco de color) */
.find-band { background: transparent; color: inherit; }
.find-band .find-in { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.find-band h2 em { color: var(--mag); }
.find-band .finder .btn { background: var(--mag); color: #fff; }
.find-band .finder .btn:hover { background: #860d4d; }
.sec.find-band { padding-top: 0; }
/* El festival enlaza con el cierre oscuro: sin línea entre los dos */
.fest + .cta-band { padding-top: 0; }

/* La palabra del hero no se ve hasta que JS la parte en letras: así no aparece entera y luego se repite la entrada */
.js .word:not(.is-split) { visibility: hidden; }

/* Equipo: sin el logo cortado (fotos recortadas a 8:7) y, al pasar, la foto se difumina y se escribe su ficha */
.team-ph { aspect-ratio: 8 / 7; }
.mate { position: relative; overflow: hidden; border-radius: inherit; cursor: default; outline-offset: 3px; }
.mate .team-ph img { transition: filter 600ms ease, transform 900ms cubic-bezier(0.23, 1, 0.32, 1); }
.mate-info {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(14px, 1.6vw, 22px); color: #fff; pointer-events: none;
  background: linear-gradient(to top, rgba(24, 10, 18, 0.66), rgba(24, 10, 18, 0.18) 75%, transparent);
  opacity: 0; transition: opacity 420ms ease;
}
.mate-n { font-family: var(--serif); font-size: clamp(1.05rem, 1.35vw, 1.25rem); font-weight: 600; line-height: 1.15; margin-bottom: 4px; }
.mate-r { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #f6c8df; margin-bottom: 10px; }
.mate-b { font-family: var(--serif); font-style: italic; font-size: clamp(0.92rem, 1.1vw, 1.04rem); line-height: 1.42; display: grid; }
/* El texto completo, transparente, reserva el sitio: al escribirse no empuja el nombre hacia arriba */
.mate-b > .sr-only { position: static; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; overflow: visible; color: transparent; grid-area: 1 / 1; }
.mate-b > .type { grid-area: 1 / 1; }
.mate.typing .type::after { content: ''; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -0.14em; background: currentColor; animation: caret 0.75s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mate.on .team-ph img, html:not(.js) .mate:hover .team-ph img { filter: blur(7px) brightness(0.55) saturate(0.85); transform: scale(1.06); }
.mate.on .mate-info, html:not(.js) .mate:hover .mate-info { opacity: 1; }
html:not(.js) .mate-b > .sr-only { color: inherit; }
@media (max-width: 760px) {
  .mate-r { display: none; }
  .mate-info { padding: 10px; }
  .mate-n { font-size: 14px; margin-bottom: 3px; }
  .mate-b { font-size: 12.5px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .mate .team-ph img, .mate-info { transition: none; }
  .mate.on .team-ph img { transform: none; }
}

/* Portada: acciones fijas arriba a la derecha, sin barra; el color sigue al fondo (site.js pone .on-light) */
.top.over .top-act { position: fixed; top: calc(var(--gut) * 0.7 + 10px); right: var(--gut); margin-top: 0; z-index: 30; transition: color 280ms ease; }
.top.over .top-act .trial, .top.over .top-act .menu-btn { transition: color 280ms ease, text-shadow 280ms ease; }
.top.over .top-act.on-light { color: var(--ink); }
.top.over .top-act.on-light .trial { color: var(--mag); text-shadow: none; }
.top.over .top-act.on-light .menu-btn { text-shadow: none; }
html.menu-open .top.over .top-act.on-light, html.menu-open .top.over .top-act.on-light .trial { color: #fff; }
