/* Self-hosted fonts (SIL Open Font License 1.1): Barlow Condensed 800 (display), Instrument Sans (text). */
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/barlow-condensed-800-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/barlow-condensed-800-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/barlow-condensed-800-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/barlow-condensed-800-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nadia Fitness Dance Studio — v5. Read DESIGN.md first; use only these tokens. */

:root {
  --paper: #FBF9F6; --paper-alt: #F1EDE8; --ink: #1A1512; --muted: #5B524B; --rule: #DDD5CC;
  --pink: #C2006A; --pink-text: #AE005E; --on-pink: #FFFFFF;
  --band: #16120F; --band-ink: #F3EEE6; --band-muted: #A89E93; --band-pink: #FF5AA8; --band-rule: #3A322C;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1240px; --gutter: 24px; --sec: 96px; --measure: 65ch; --navbar: 60px;
  --map-filter: grayscale(.2); --edge: transparent;
  color-scheme: light;
}
/* Dark is the default (the brand's colours), whatever the device prefers; light only when chosen with the toggle */
:root:not([data-theme="light"]) {
  --paper: #17130F; --paper-alt: #201A15; --ink: #F3EEE6; --muted: #A89E93; --rule: #3A322C;
  --pink: #FF5AA8; --pink-text: #FF5AA8; --on-pink: #17130F;
  --map-filter: invert(.9) hue-rotate(180deg) saturate(.55) brightness(.95); --edge: #3A322C;
  color-scheme: dark;
}
:root[data-theme="dark"] {
  --paper: #17130F; --paper-alt: #201A15; --ink: #F3EEE6; --muted: #A89E93; --rule: #3A322C;
  --pink: #FF5AA8; --pink-text: #FF5AA8; --on-pink: #17130F;
  --map-filter: invert(.9) hue-rotate(180deg) saturate(.55) brightness(.95); --edge: #3A322C;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navbar) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink-text); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--pink); color: var(--on-pink); padding: 10px 14px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 20px; height: 20px; flex: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-dance { background: var(--pink); }
.dot-fit { box-shadow: inset 0 0 0 2px var(--ink); }   /* ring, not only a colour (rule 9) */
.legend { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Buttons: one pill (Llamar), the rest rectangular ---------- */
.btn-primary, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--pink); color: var(--on-pink); border: 0; border-radius: 999px; }
.btn-primary:hover { color: var(--on-pink); filter: brightness(.92); }
.btn { background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.link-cta { display: inline-flex; gap: 8px; font-weight: 600; font-size: 17px; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.link-quiet { text-decoration-color: var(--rule); }

/* ---------- Header: top bar + centred logo, then the sticky menu bar ---------- */
.top, .navbar { background: var(--band); color: var(--band-ink); }
.top :focus-visible, .navbar :focus-visible, .numbers :focus-visible, .foot :focus-visible { outline-color: var(--band-pink); }
.topbar { border-bottom: 1px solid var(--band-rule); font-size: 14px; }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 44px; }
.topbar-where { display: inline-flex; align-items: center; gap: 6px; color: var(--band-muted); }
.topbar-where .i, .topbar-phone .i { width: 16px; height: 16px; }
.topbar-phone { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--band-ink); text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: .02em; }
.topbar-phone:hover { color: var(--band-pink); }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--band-ink); border: 1px solid var(--band-rule); border-radius: 4px; }
.social a:hover { color: var(--band-pink); border-color: var(--band-pink); }
.social .i { width: 16px; height: 16px; }
.masthead { display: flex; justify-content: center; padding: 22px 0 18px; }
.brand-xl img { height: 104px; width: auto; }

.navbar { position: sticky; top: 0; z-index: 20; border-top: 1px solid var(--band-rule); border-bottom: 1px solid var(--band-rule); }
.navbar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: var(--navbar); }
.brand-sm { display: none; }
.brand-sm img { height: 44px; width: auto; }
#menu { grid-column: 2; display: flex; gap: 40px; }
#menu a { display: block; padding: 16px 0 14px; color: var(--band-ink); text-decoration: none; font: 800 21px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; border-bottom: 3px solid transparent; }
#menu a:hover { color: var(--band-pink); }
#menu a[aria-current="page"] { color: var(--band-pink); border-bottom-color: var(--band-pink); }
.menu-phone, .burger { display: none; }
.theme { grid-column: 3; justify-self: end; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; color: var(--band-ink); border: 1px solid var(--band-rule); border-radius: 4px; cursor: pointer; }
.theme:hover { border-color: var(--band-ink); }
.theme svg { width: 18px; height: 18px; }
.theme .i-sun, [data-theme="dark"] .theme .i-moon { display: none; }
[data-theme="dark"] .theme .i-sun { display: block; }
html:not(.js) .theme { display: none; }

/* ---------- Hero: full-bleed photo, headline on a solid box (no gradient scrim, rule 1) ---------- */
.hero { position: relative; }
.hero-pause { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--band-rule); border-radius: 50%; background: var(--band); color: var(--band-ink); opacity: .75; cursor: pointer; }   /* WCAG 2.2.2: moving content must be pausable */
.hero-pause:hover, .hero-pause:focus-visible { opacity: 1; }
.hero-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero-pause .ic-play, .hero-pause.is-paused .ic-pause { display: none; }
.hero-pause.is-paused .ic-play { display: block; }
.hero-img { width: 100%; height: clamp(360px, 33vw, 560px); object-fit: cover; object-position: 50% 40%; }
.hero-in { position: relative; margin-top: -96px; }   /* the box overlaps the photo's foot, so no face is covered */
.hero-box { max-width: 760px; background: var(--band); color: var(--band-ink); padding: 32px 36px 34px; border-left: 6px solid var(--band-pink); }
.hero-box h1 { font: 800 66px/1.06 var(--display); text-transform: uppercase; }
.hero-box h1 em { font-style: italic; color: var(--band-pink); }   /* one italic accent, like the logo */
.hero-box p { margin-top: 14px; color: var(--band-ink); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 24px !important; }
.hero .btn-primary { background: var(--band-pink); color: var(--band); }
.hero .btn-primary:hover { color: var(--band); }
.hero :focus-visible { outline-color: var(--band-pink); }
.link-on-dark { color: var(--band-ink); text-decoration-color: var(--band-pink); }
.link-on-dark:hover { color: var(--band-pink); }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; }
.sec-alt { background: var(--paper-alt); }
.sec-tight { padding-top: 48px; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2, .h-left { font: 800 56px/1.06 var(--display); text-transform: uppercase; }
.sec-head h2::after, .h-left::after { content: ""; display: block; width: 64px; height: 4px; background: var(--pink); margin: 16px auto 0; }
.h-left { font-size: 48px; margin-bottom: 22px; }
.h-left::after { margin-left: 0; }
.sec-lead { color: var(--muted); max-width: 60ch; margin: 18px auto 0; }
.sec-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.big { font-size: 22px; line-height: 1.45; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.split-text > p + p { margin-top: 14px; }
.split-text > p:not(.big) { color: var(--muted); max-width: var(--measure); }
.split-text .steps { margin-top: 36px; }
.split-text .duo { margin: 22px 0; max-width: var(--measure); }
.split-text > .where-line { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.where-line .i { width: 20px; height: 20px; color: var(--pink-text); flex: none; }
.where-line a { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.split-text .legend { margin-top: 20px; }
.h-small { font: 800 26px/1.1 var(--display); text-transform: uppercase; margin: 36px 0 10px; }

/* "Choose your class" tiles: 4 / 2+2 / 1, never a row with a hole (rule 8) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.tile { position: relative; }
.tile-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--band); border: 1px solid var(--edge); }   /* dark tiles need an edge on a dark page */
.tile-title { font: 800 30px/1.1 var(--display); text-transform: uppercase; margin: 16px 0 6px; }
.tile-title a { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tile-title a::after { content: ""; position: absolute; inset: 0; }   /* whole tile is the link */
.tile:hover .tile-title a { color: var(--pink-text); }
.tile-title a:focus-visible { outline: none; }
.tile:has(a:focus-visible) { outline: 2px solid var(--pink); outline-offset: 6px; border-radius: 4px; }
.tile-lead { color: var(--muted); font-size: 16px; }
.tile-classes { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.tile-classes .dot:last-of-type { margin-right: 4px; }

/* "Hoy en el estudio" */
.today { background: var(--paper); border-top: 4px solid var(--pink); padding: 20px 24px 22px; }
.sec:not(.sec-alt) .today { background: var(--paper-alt); }
.today-kicker { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pink-text); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: pulse 2s ease-in-out 2; }   /* stops after 4s (rule 14) */
@keyframes pulse { 50% { opacity: .25; } }
.today-date { font: 800 40px/1.08 var(--display); text-transform: uppercase; margin: 8px 0 12px; }
.today-fallback { color: var(--muted); }
.today-list li { display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0 11px 12px; border-top: 1px solid var(--rule); border-left: 3px solid var(--pink); }
.today-list li.tt-fit { border-left-style: dashed; border-left-color: var(--ink); }
.today-list time { font-weight: 600; white-space: nowrap; }
.today-list .t-name { font-weight: 600; }
.today-list .t-note { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.today-list .t-state { font: 600 11px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--ink); border-radius: 3px; }
.today-list li.is-now .t-state { background: var(--pink); border-color: var(--pink); color: var(--on-pink); }
.today-list li.is-past { color: var(--muted); }
.today-foot { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 12px; font-weight: 600; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: s; border-top: 1px solid var(--rule); padding-top: 14px; color: var(--muted); }
.steps li::before { content: "0" counter(s); display: block; font: 800 22px/1 var(--display); color: var(--pink-text); margin-bottom: 8px; }
.steps b { display: block; color: var(--ink); margin-bottom: 4px; }
.steps a { text-decoration: underline; }

/* Timetable */
.filters { display: none; }
.js .filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.filter { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; font: 600 14px/1 var(--text); }
.filter::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.filter.f-dance::before { background: var(--pink); }
.filter.f-fit::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter[aria-pressed="true"].f-fit::before { box-shadow: inset 0 0 0 2px var(--paper); }
.tt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tt thead th { font: 800 26px/1.1 var(--display); text-transform: uppercase; text-align: left; padding: 0 12px 14px; border-bottom: 2px solid var(--ink); }
.tt thead td { width: 104px; border-bottom: 2px solid var(--ink); }
.tt tbody th { text-align: left; vertical-align: top; font: 600 12px/1.4 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 16px 0; }
.tt td { vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.tt ul, .tt-day ul { display: grid; gap: 10px; }
.tt-item { font-size: 14px; line-height: 1.35; font-weight: 600; padding-left: 12px; border-left: 3px solid var(--pink); transition: opacity .15s; }
.tt-item.tt-fit { border-left-color: var(--ink); border-left-style: dashed; }   /* rule 9 */
.tt-item time { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.tt-item small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.timetable.is-filtering .tt-item:not(.is-on) { opacity: .2; }
.tt-tabs, .tt-days { display: none; }
.print-btn, .print-only { display: none; }
.js .print-btn { display: inline-flex; }
.print-row { margin-top: 24px; }

/* Nadia */
.nadia { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.nadia-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; position: sticky; top: calc(var(--navbar) + 24px); }   /* long text beside it */
.nadia .big { font-size: 26px; line-height: 1.4; margin-bottom: 18px; }
.nadia-text > p:not(.big):not(.rating):not(.story-quote):not(.nadia-closing) { color: var(--muted); }
.nadia-text > p:not(.big):not(.rating) + p:not(.rating) { margin-top: 12px; }
.nadia-text > .h-small:first-child { margin-top: 0; }
.nadia-more { margin-top: 20px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.duo li { border-top: 1px solid var(--rule); padding-top: 14px; }
.duo-title { display: flex; align-items: center; gap: 10px; font: 800 24px/1.1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.duo p { color: var(--muted); }
.nadia .nadia-text .story-quote { margin-top: 0; margin-bottom: 18px; }
.nadia-closing { margin-top: 28px; color: var(--ink); font: 800 32px/1.08 var(--display); text-transform: uppercase; }
.nadia-closing em { color: var(--pink-text); }
.rating { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.rating a { text-decoration: none; }
.rating b { font: 800 36px/1 var(--display); margin-right: 6px; }
.stars { color: var(--pink); letter-spacing: 2px; }
.plain-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.plain-list a { font-weight: 600; }
.plain-list span { color: var(--muted); font-size: 15px; text-align: right; }
.notfound { max-width: 560px; }

/* Numbers band: facts derived from the data only (rule 7) */
.numbers, .foot { border-top: 1px solid var(--edge); }
.numbers { background: var(--band); color: var(--band-ink); padding: 72px 0 56px; }
.numbers-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.numbers-list b { display: block; font: 800 96px/1 var(--display); color: var(--band-pink); }
.numbers-list span { display: block; margin-top: 8px; color: var(--band-muted); font-size: 15px; }
.numbers-foot { text-align: center; margin-top: 32px; }
.numbers-foot a { color: var(--band-ink); text-decoration-color: var(--band-pink); text-decoration-thickness: 2px; }
.numbers-foot a:hover { color: var(--band-pink); }

/* ---------- The pink phone block: the one big pink area (rule 2) ---------- */
.phone-block { background: var(--pink); color: var(--on-pink); padding: 64px 0; }
.phone-block a { color: var(--on-pink); }
.phone-block :focus-visible { outline-color: var(--on-pink); }
.phone-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.phone-title { font: 800 40px/1.06 var(--display); text-transform: uppercase; }
.phone-xl { display: block; font: 800 clamp(60px, 10vw, 148px)/1 var(--display); text-decoration: none; margin: 10px 0 14px; }
.phone-xl:hover { color: var(--on-pink); text-decoration: underline; text-decoration-thickness: 4px; }
.phone-sub { font: 800 22px/1.1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.calls { width: 100%; border-collapse: collapse; max-width: 360px; }
.calls th, .calls td { text-align: left; padding: 7px 0; border-bottom: 1px solid currentColor; font-weight: 400; }
.calls th { font-weight: 600; }
.phone-side p { margin-top: 18px; }
.btn-on-pink { border-color: var(--on-pink); color: var(--on-pink); }
.btn-on-pink:hover { background: var(--on-pink); color: var(--pink); }
.call-status { display: flex; align-items: center; gap: 10px; font-weight: 600; max-width: 60ch; }
.call-status:empty { display: none; }
.call-status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.call-status.is-open::before { background: currentColor; }   /* filled = open, ring = closed (shape, not colour) */

/* ---------- Inner pages: title bar with breadcrumb ---------- */
.titlebar { background: var(--paper-alt); border-bottom: 1px solid var(--rule); }
.titlebar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 32px; padding-bottom: 30px; }
.titlebar h1 { font: 800 56px/1.06 var(--display); text-transform: uppercase; }
.crumbs ol { display: flex; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-intro { padding-top: 28px; }
.page-intro:empty { display: none; }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.page-intro .legend { margin-top: 16px; }
.page-intro .lead + .intro-more { margin-top: 12px; }
.intro-more { color: var(--muted); max-width: var(--measure); }
.intro-more + .intro-more { margin-top: 10px; }
.intro-more:last-child { margin-bottom: 40px; }
.lead b { color: var(--ink); font-weight: 600; }
.lead a { text-decoration: underline; }
.intro-more a { text-decoration: underline; }
.split-top { align-items: end; }

/* Classes page */
.groups { padding-bottom: var(--sec); }
.group { padding-top: 56px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.group-head h2 { font: 800 48px/1.06 var(--display); text-transform: uppercase; }
.group-head p { color: var(--muted); }
.cd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.cl-photo { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 4px; }
.cl-photo.is-placeholder { border: 1px solid var(--rule); }
.cl-aud { font: 600 13px/1.4 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--pink-text); }
.cd-name { font: 800 44px/1.06 var(--display); text-transform: uppercase; display: flex; align-items: center; gap: 14px; margin: 8px 0 12px; }
.cd-desc { color: var(--muted); max-width: var(--measure); }
.cl-when { display: grid; gap: 2px; margin-top: 16px; font-size: 15px; font-weight: 600; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }

.photo-band img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; object-position: 50% 40%; }
.photo-band-group img { aspect-ratio: 16 / 8; object-position: 50% 62%; }   /* group photo: keep every head in */

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.form { display: grid; gap: 14px; align-content: start; }
.form .h-left { margin-bottom: 8px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 46px; padding: 8px 12px; background: transparent; color: var(--ink); border: 1px solid var(--muted); border-radius: 3px; font: 400 16px/1.4 var(--text); }
.field select option { color: #16120F; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--pink); outline-offset: 1px; }
.field input[aria-invalid="true"] { border: 2px solid var(--pink); }
.field-error { font-weight: 600; font-size: 14px; color: var(--pink-text); }
.form .btn { justify-self: start; }
.note { font-size: 14px; color: var(--muted); }
.where address { margin-bottom: 16px; }
.map { position: relative; margin: 0 0 32px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); }
.map a { position: absolute; inset: 0; text-decoration: none; }
.map img { width: 100%; height: 100%; object-fit: cover; filter: var(--map-filter); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -22px 0 0 -11px; background: var(--pink); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.map-go { position: absolute; right: 12px; bottom: 12px; background: var(--band); color: var(--band-ink); padding: 8px 14px; font-weight: 600; border-radius: 3px; }
.map figcaption { position: absolute; left: 0; bottom: 0; font-size: 11px; padding: 2px 8px; background: rgba(255, 255, 255, .85); color: #333; }
.where .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Legal */
.back-end { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.back-link { display: inline-flex; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.prose > * { max-width: var(--measure); }
.prose h2 { font: 800 32px/1.1 var(--display); text-transform: uppercase; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 10px; }
.prose b { color: var(--ink); }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.prose a { text-decoration: underline; }
.prose .big { margin-top: 32px; }
.prose .big b { color: var(--ink); }
/* Long text (Bienvenidos, Quién soy): heading left, text right, pull quote with the hero's pink bar */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; padding: 48px 0; border-top: 1px solid var(--rule); }
.story:first-child { border-top: 0; padding-top: 0; }
.story-title { position: sticky; top: calc(var(--navbar) + 24px); font-size: 44px; margin-bottom: 0; }
.story-body > * { max-width: var(--measure); }
.story-body p { color: var(--muted); }
.story-body p + p { margin-top: 14px; }
.story-body .story-lead { color: var(--ink); font-size: 21px; line-height: 1.5; }
.story-body .story-quote, .nadia-text .story-quote { margin-top: 32px; padding: 4px 0 4px 22px; border-left: 6px solid var(--pink); color: var(--ink); font: 800 32px/1.12 var(--display); text-transform: uppercase; }
.closing { text-align: center; padding: 56px 0 8px; border-top: 1px solid var(--rule); }
.closing p { color: var(--muted); }
.closing .closing-title { margin: 10px auto 0; max-width: 18ch; color: var(--ink); font: 800 56px/1.06 var(--display); text-transform: uppercase; }
.closing em { color: var(--pink-text); }
.ph-mark { background: transparent; color: var(--pink-text); border: 1px dashed var(--pink); border-radius: 3px; padding: 0 6px; font-weight: 600; }

/* ---------- Footer (dark, columns like the reference site) ---------- */
.foot { background: var(--band); color: var(--band-muted); font-size: 15px; }
.foot a { color: var(--band-ink); }
.foot a:hover { color: var(--band-pink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); gap: 36px; padding-top: 56px; padding-bottom: 44px; }
.foot-logo { height: 76px; width: auto; margin-bottom: 14px; }
.foot-brand .social { margin-top: 16px; }
.foot-title { font: 800 22px/1.1 var(--display); text-transform: uppercase; color: var(--band-ink); margin-bottom: 12px; }
.foot-sub { font: 600 15px/1.4 var(--text); color: var(--band-ink); margin: 16px 0 6px; }
.foot-grid p + p, .foot-grid address + p { margin-top: 10px; }
.foot-grid p a { text-decoration: underline; text-decoration-color: var(--band-muted); }   /* rule 10 */
.foot-pages a { text-decoration: none; }
.foot-calls, .foot-pages { display: grid; gap: 4px; }
.foot-calls li { display: flex; justify-content: space-between; gap: 12px; max-width: 220px; }
.foot-calls li span:first-child { color: var(--band-ink); }
.foot-legal { border-top: 1px solid var(--band-rule); font-size: 14px; }
.foot-legal-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 22px; }
.callbar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .topbar-where { display: none; }
  #menu { gap: 28px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --gutter: 16px; --sec: 64px; --navbar: 64px; }
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }   /* rule 11 */
  .top { display: none; }   /* logo and phone move into the sticky bar; socials stay in the footer */
  .navbar { border-top: 0; }
  .navbar-in { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .brand-sm { display: block; grid-column: 1; }
  .theme { grid-column: 2; width: 44px; height: 44px; }
  .js .burger { grid-column: 3; display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; background: transparent; border: 1px solid var(--band-rule); border-radius: 4px; cursor: pointer; }
  .burger span { display: block; height: 2px; background: var(--band-ink); transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js #menu { display: none; }
  .js #menu.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--navbar)); overflow-y: auto; padding: 8px var(--gutter) calc(96px + env(safe-area-inset-bottom)); background: var(--band); border-bottom: 1px solid var(--band-rule); }
  .js #menu.is-open li { border-bottom: 1px solid var(--band-rule); }
  .js #menu.is-open a { padding: 14px 0; border: 0; font-size: 38px; line-height: 1.1; }
  .js #menu.is-open .menu-phone { display: block; border-bottom: 0; margin-top: 12px; }
  .js #menu.is-open .menu-phone a { display: inline-flex; align-items: center; gap: 12px; color: var(--band-pink); }
  html:not(.js) #menu { grid-column: 1 / -1; flex-wrap: wrap; gap: 0 18px; padding-bottom: 6px; }   /* rule 13: no burger without JS */
  html:not(.js) #menu a { padding: 8px 0; font-size: 19px; }
  .hero-img { height: min(260px, 28vh); }   /* short phones: keep the call button above the fold */
  .hero { background: var(--band); }
  .hero-in { margin-top: 0; }
  .hero-box { max-width: none; border-left: 0; border-top: 6px solid var(--band-pink); padding: 24px 0 36px; }
  .hero-box h1 { font-size: 44px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head h2, .h-left, .titlebar h1, .group-head h2 { font-size: 40px; }
  .split, .phone-in, .contact, .nadia, .cd { grid-template-columns: minmax(0, 1fr); gap: 32px; }   /* rule 12 */
  .cd { gap: 18px; }
  .big, .nadia .big { font-size: 20px; }
  .nadia-photo { position: static; }
  .nadia-closing { font-size: 28px; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 36px 0; }
  .story-title { position: static; font-size: 36px; }
  .story-body .story-lead { font-size: 19px; }
  .story-body .story-quote, .nadia-text .story-quote { font-size: 26px; }
  .closing .closing-title { font-size: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .today { padding: 18px 16px; }
  .today-date { font-size: 34px; }
  .today-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
  .today-list time, .today-list .t-name { grid-column: 1; }
  .today-list li > :last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .numbers { padding: 56px 0 44px; }
  .numbers-list b { font-size: 72px; }
  .cd-name { font-size: 34px; }
  .photo-band img { aspect-ratio: 16 / 7; }
  .photo-band-group img { aspect-ratio: 4 / 3; }
  .js .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 16px; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .tt { display: none; }
  .tt-days { display: grid; gap: 28px; }
  .tt-day h3 { font: 800 30px/1.1 var(--display); text-transform: uppercase; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
  .tt-item { font-size: 16px; }
  .js .tt-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; position: sticky; top: var(--navbar); z-index: 5; background: var(--paper); padding: 8px 0; margin-bottom: 16px; }
  .sec-alt .tt-tabs { background: var(--paper-alt) !important; }
  .tt-tab { appearance: none; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 8px 2px; background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; font-family: var(--text); }
  .tt-tab b { font: 800 22px/1.1 var(--display); text-transform: uppercase; }
  .tt-tab span { font-size: 11px; color: var(--muted); }
  .tt-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .tt-tab[aria-selected="true"] span { color: var(--paper); }
  .js .tt-day { display: none; }
  .js .tt-day.is-active { display: block; }
  .js .timetable.is-filtering .tt-tabs { display: none; }
  .js .timetable.is-filtering .tt-day { display: block; }
  .js .timetable.is-filtering .tt-day:not(.has-on) { display: none; }
  .foot-legal-in { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .callbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--band); border-top: 1px solid var(--band-rule); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 3px; font: 800 22px/1 var(--display); text-transform: uppercase; text-decoration: none; }
  .callbar svg { width: 18px; height: 18px; }
  .foot .callbar-call { background: var(--band-pink); color: var(--band); }
  .foot .callbar-wa { border: 1px solid var(--band-ink); color: var(--band-ink); }
  .foot .callbar a:hover { filter: brightness(1.1); }
}
@media (max-width: 560px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .tile-img { grid-row: 1 / 4; }
  .tile-title { margin-top: 0; font-size: 26px; }
  .numbers-list b { font-size: 60px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Print: the timetable on one A4 sheet ---------- */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .top, .navbar, .foot, .callbar, .filters, .today, .tt-tabs, .tt-days, .skip, .print-row, .legend, .phone-block, .crumbs, .split-text, .sec-alt { background: #fff !important; }
  .top, .navbar, .foot, .callbar, .filters, .today, .tt-tabs, .tt-days, .skip, .print-row, .legend, .phone-block, .crumbs, .split-text { display: none !important; }
  .titlebar { background: #fff; border: 0; }
  .titlebar-in { padding: 0 0 2mm; }
  .titlebar h1 { font-size: 28pt; color: #000; }
  .sec { padding: 0 !important; }
  .split { display: block; }
  .print-only { display: block !important; margin: 0 0 4mm; font-weight: 600; }
  .tt { display: table !important; font-size: 9pt; color: #000; }
  .tt thead th { font-size: 14pt; }
  .tt-item { opacity: 1 !important; border-left-color: #000 !important; break-inside: avoid; }
  .tt-item time, .tt-item small, .tt tbody th { color: #000; }
  a { color: #000 !important; text-decoration: none !important; }
}
