/* ==========================================================================
   Carmen Moreno · Mi técnica vocal paso a paso
   Dirección visual «Sala de conciertos»: marfil, burdeos y oro viejo
   ========================================================================== */

/* Tipografías alojadas en la propia web (Cormorant Garamond y Manrope, licencia SIL OFL) */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-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;
}

:root {
  --paper: #fbf8f2;
  --ivory: #f4ece0;
  --sand: #e9dfcf;
  --ink: #221a17;
  --ink-2: #4b3f39;
  --muted: #7b6d64;
  --wine: #6d1e2d;
  --wine-2: #8a2b3d;
  --wine-deep: #3b0f19;
  --night: #150a0d;
  --night-2: #211117;
  --gold: #b48d4c;
  --gold-light: #dcc38f;
  --gold-pale: #efe1c2;
  --line: #e2d6c4;
  --line-dark: rgba(220, 195, 143, .2);
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;
  --shadow: 0 30px 60px -30px rgba(40, 10, 18, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--wine); color: var(--gold-pale); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--gold); color: var(--night); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1.15; }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
em, .it { font-style: italic; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--wine); }
:is(.on-dark, .section--dark, .section--wine) h1 em, :is(.on-dark, .section--dark, .section--wine) h2 em, :is(.on-dark, .section--dark, .section--wine) h3 em { color: var(--gold-light); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 600 .74rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--wine); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
:is(.on-dark, .section--dark, .section--wine) .eyebrow { color: var(--gold-light); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.38rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
:is(.on-dark, .section--dark, .section--wine) .lead { color: rgba(244, 236, 224, .82); }
.measure { max-width: 66ch; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.center .lead { margin-inline: auto; }
.small { font-size: .88rem; color: var(--muted); }
.dropcap::first-letter { float: left; font: 500 4.6em/.8 var(--serif); padding: .06em .12em 0 0; color: var(--wine); }

/* ---------- Botones y enlaces ---------- */
.btn {
  --bg: var(--wine); --fg: #fff6ea;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--fg); font: 600 .9rem/1 var(--sans); letter-spacing: .04em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(59, 15, 25, .7); }
.btn:hover::after { transform: translateX(120%); }
.btn--gold { --bg: linear-gradient(135deg, #d8bb83, #b08744); --fg: #24120f; }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { box-shadow: none; background: rgba(220, 195, 143, .12); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .82rem; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; letter-spacing: .03em; color: var(--wine); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
:is(.on-dark, .section--dark, .section--wine) .link-arrow { color: var(--gold-light); }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: #f6ecdc; transition: background .4s, color .4s, transform .45s var(--ease), box-shadow .4s, height .4s; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(rgba(14, 6, 9, .55), transparent); pointer-events: none; transition: opacity .4s; }
.site-header.is-solid { background: rgba(251, 248, 242, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__mark circle { fill: none; stroke: currentColor; stroke-width: 1; opacity: .7; }
.brand__mark text { fill: currentColor; font: 500 17px var(--serif); letter-spacing: 1px; }
.brand__mark--lg { width: 64px; height: 64px; color: var(--gold-light); }
.brand__text strong { display: block; font: 500 1.45rem/1 var(--serif); letter-spacing: .01em; }
.brand__text small { display: block; margin-top: 4px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }

.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; font-size: .9rem; font-weight: 500; text-decoration: none; letter-spacing: .02em; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__caret { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s; }
.has-sub:hover .nav__caret, .has-sub:focus-within .nav__caret { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 50%; width: 320px; padding: 10px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(40, 10, 18, .35);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.nav__sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__sub a { display: block; padding: 12px 14px; border-radius: 7px; text-decoration: none; transition: background .25s; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--ivory); }
.nav__sub strong { display: block; font: 500 1.2rem/1.2 var(--serif); color: var(--wine); }
.nav__sub span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.header-cta { flex: none; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; background: none; cursor: pointer; position: relative; opacity: .9; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; padding: calc(var(--header-h) + 20px) var(--gutter) 32px; background: radial-gradient(120% 80% at 80% 0%, #4a1422, var(--night) 60%); color: var(--ivory); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__staff { position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 46px, var(--line-dark) 46px 47px); mask: linear-gradient(transparent, #000 30%, transparent); opacity: .5; pointer-events: none; }
.mobile-menu__links { position: relative; display: grid; gap: 2px; }
.mobile-menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font: 500 clamp(1.7rem, 7vw, 2.4rem)/1.1 var(--serif); text-decoration: none; opacity: 0; transform: translateY(14px); animation: menuIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 80ms); }
.mobile-menu__links a span { font: 600 .7rem var(--sans); letter-spacing: .15em; color: var(--gold); }
.mobile-menu__links a[aria-current] { color: var(--gold-light); }
.mobile-menu__foot { position: relative; margin-top: auto; padding-top: 28px; display: grid; gap: 18px; }
.mobile-menu__foot p { margin: 0; font: italic 1.2rem var(--serif); color: var(--gold-light); }
@keyframes menuIn { to { opacity: 1; transform: none; } }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; color: var(--ivory); box-shadow: none; backdrop-filter: none; }

.progress { position: fixed; inset: 0 0 auto; z-index: 150; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--wine-2), var(--gold-light)); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--ivory { background: var(--ivory); }
.section--sand { background: var(--sand); }
.section--dark, :is(.on-dark, .section--dark, .section--wine) { color: #f3e9da; }
.section--dark { background: var(--night); }
.section--wine { background: radial-gradient(120% 120% at 15% 0%, #7c2537, var(--wine-deep) 70%); color: #f6ebdb; }
.section--grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; }
.section-head--split .lead { margin: 0; }

.staff-divider { height: 34px; background: repeating-linear-gradient(to bottom, transparent 0 6px, var(--line) 6px 7px) center / 100% 35px no-repeat; position: relative; }
.staff-divider::after { content: "𝄞"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); padding: 0 18px; background: inherit; font-size: 46px; line-height: 1; color: var(--gold); background: var(--paper); font-family: 'Segoe UI Symbol', 'Noto Music', serif; }
.section--ivory + .staff-divider::after { background: var(--paper); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-media { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split > * { min-width: 0; }

/* ---------- Héroes ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #f7ecdc; background: var(--night); overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
.hero__slide:nth-child(2n).is-active img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kenburns2 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 6, 9, .92) 0%, rgba(16, 6, 9, .7) 42%, rgba(16, 6, 9, .2) 100%), linear-gradient(0deg, rgba(16, 6, 9, .95), transparent 45%); }
.hero__staff { position: absolute; left: 0; right: 0; top: 30%; z-index: -1; width: 100%; height: 160px; opacity: .55; }
.hero__staff path { fill: none; stroke: var(--gold-light); stroke-width: .6; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.2s var(--ease) .4s forwards; }
.hero__staff path:nth-child(2) { animation-delay: .55s; } .hero__staff path:nth-child(3) { animation-delay: .7s; } .hero__staff path:nth-child(4) { animation-delay: .85s; } .hero__staff path:nth-child(5) { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__inner { padding-block: calc(var(--header-h) + 40px) clamp(40px, 6vw, 72px); }
.hero__content { max-width: 820px; }
.hero h1 { font-size: clamp(3.1rem, 8.4vw, 7.6rem); line-height: .98; margin-bottom: .35em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .3s; }
@keyframes rise { to { transform: none; } }
.hero .lead { max-width: 52ch; opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
.hero .btn-row { opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero__rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 6vw, 70px); padding-top: 22px; border-top: 1px solid var(--line-dark); }
.hero__rail button { position: relative; padding: 14px 0 0; border: 0; background: none; color: rgba(247, 236, 220, .55); text-align: left; cursor: pointer; font-size: .82rem; line-height: 1.35; transition: color .3s; }
.hero__rail button strong { display: block; font: 500 1.08rem var(--serif); color: inherit; }
.hero__rail button::before { content: ""; position: absolute; top: -23px; left: 0; right: 0; height: 2px; background: transparent; }
.hero__rail button i { position: absolute; top: -23px; left: 0; height: 2px; width: 0; background: var(--gold-light); }
.hero__rail button.is-active { color: #f7ecdc; }
.hero__rail button.is-active i { animation: railFill var(--dur, 7s) linear forwards; }
@keyframes railFill { to { width: 100%; } }
.hero__now { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .78rem; letter-spacing: .06em; color: var(--gold-light); background: rgba(20, 8, 11, .35); backdrop-filter: blur(6px); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 2px; background: currentColor; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -.2s; } .eq i:nth-child(2) { height: 90%; animation-delay: -.5s; } .eq i:nth-child(3) { height: 60%; animation-delay: -.8s; } .eq i:nth-child(4) { height: 75%; animation-delay: -.35s; }
@keyframes eq { 50% { transform: scaleY(.3); } }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 36px; writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold-light), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.page-hero { position: relative; min-height: clamp(520px, 78svh, 760px); display: flex; align-items: flex-end; color: #f6ebdb; background: var(--night); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: -6% 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 6, 9, .9), rgba(16, 6, 9, .55) 55%, rgba(16, 6, 9, .25)), linear-gradient(0deg, rgba(16, 6, 9, .9), transparent 50%); }
.page-hero__inner { padding-block: calc(var(--header-h) + 60px) clamp(48px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: end; }
.page-hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.8rem); margin-bottom: .3em; }
.page-hero h1 em { color: var(--gold-light); }
.page-hero .lead { color: rgba(246, 235, 219, .82); }
.page-hero__aside { justify-self: end; max-width: 300px; padding-left: 24px; border-left: 1px solid var(--line-dark); font: italic 1.25rem/1.45 var(--serif); color: var(--gold-light); }
.page-hero__aside small { display: block; margin-top: 10px; font: 600 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 235, 219, .6); font-style: normal; }
.crumbs { display: flex; gap: 10px; margin-bottom: 26px; font-size: .78rem; letter-spacing: .08em; color: rgba(246, 235, 219, .6); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span::before { content: "/"; margin-right: 10px; opacity: .5; }

/* ---------- Cinta en movimiento ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--night-2); color: var(--gold-light); padding: 18px 0; }
.marquee--light { background: var(--paper); border-color: var(--line); color: var(--wine); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 60s; }
.marquee__track span { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font: italic 500 clamp(1.4rem, 2.6vw, 2.1rem)/1 var(--serif); white-space: nowrap; }
.marquee__track span::after { content: "✦"; font-size: .55em; font-style: normal; color: var(--gold); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Medios con marco ---------- */
.frame { position: relative; }
.frame img, .frame video { width: 100%; border-radius: var(--radius); position: relative; z-index: 1; }
.frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); border-radius: var(--radius); }
.frame--left::before { inset: 22px 22px -22px -22px; }
.frame--arch img { border-radius: 999px 999px var(--radius) var(--radius); }
.frame--arch::before { border-radius: 999px 999px var(--radius) var(--radius); }
.frame figcaption, .caption { margin-top: 34px; font-size: .8rem; letter-spacing: .04em; color: var(--muted); }
:is(.on-dark, .section--dark, .section--wine) .caption { color: rgba(243, 233, 218, .55); }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.duotone { filter: sepia(.25) saturate(.85) contrast(1.02); }

.media-stack { position: relative; padding: 0 0 70px 50px; }
.media-stack__main { border-radius: var(--radius); box-shadow: var(--shadow); }
.media-stack__small { position: absolute; left: 0; bottom: 0; width: 46%; border: 8px solid var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.section--ivory .media-stack__small { border-color: var(--ivory); }
.media-stack__badge { position: absolute; right: -14px; top: 30px; z-index: 2; width: 128px; height: 128px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--wine); color: var(--gold-pale); font: italic 500 1rem/1.15 var(--serif); box-shadow: var(--shadow); }
.media-stack__badge strong { display: block; font: 500 2.4rem/1 var(--serif); font-style: normal; }
.media-stack__badge::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(239, 225, 194, .5); border-radius: 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Citas ---------- */
.quote { position: relative; margin: 0; font: italic 500 clamp(1.7rem, 3.4vw, 2.9rem)/1.25 var(--serif); text-wrap: balance; }
.quote::before { content: "“"; position: absolute; left: -.05em; top: -.42em; font-size: 3.4em; line-height: 1; color: var(--gold); opacity: .35; }
.quote cite { display: block; margin-top: 26px; font: 600 .74rem var(--sans); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--gold); }
.quote-band { text-align: center; }
.quote-band .quote { max-width: 26ch; margin-inline: auto; padding-top: .4em; }
.quote-band .quote::before { left: 50%; transform: translateX(-50%); }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.stat { padding: 34px 26px 6px 0; border-right: 1px solid var(--line-dark); margin-right: 26px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__n { display: block; font: 500 clamp(3rem, 5.5vw, 4.6rem)/1 var(--serif); color: var(--gold-light); }
.stat__n sup { font-size: .45em; vertical-align: super; }
.stat__l { display: block; margin-top: 12px; font-size: .88rem; line-height: 1.5; color: rgba(243, 233, 218, .72); }
.stats--light { border-color: var(--line); }
.stats--light .stat { border-color: var(--line); }
.stats--light .stat__n { color: var(--wine); }
.stats--light .stat__l { color: var(--muted); }

/* ---------- Tarjetas ---------- */
.card { position: relative; padding: clamp(26px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -36px rgba(59, 15, 25, .5); border-color: var(--gold-light); }
.card__num { display: block; margin-bottom: 26px; font: 600 .72rem var(--sans); letter-spacing: .2em; color: var(--gold); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .link-arrow { margin-top: 8px; }
.card--dark { background: rgba(255, 255, 255, .03); border-color: var(--line-dark); }
.card--dark p { color: rgba(243, 233, 218, .72); }
.card--dark:hover { border-color: var(--gold); background: rgba(255, 255, 255, .05); }

.program { position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; border-radius: 6px; background: var(--night); color: #f4e9da; text-decoration: none; isolation: isolate; }
.program__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.8); }
.program:hover .program__img img { transform: scale(1.07); filter: saturate(1); }
.program__body { display: flex; flex-direction: column; flex: 1; padding: 28px 28px 30px; }
.program__body h3 { color: #fbf1e2; }
.program__body p { color: rgba(244, 233, 218, .72); font-size: .96rem; flex: 1; }
.program__tag { position: absolute; left: 18px; top: 18px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(20, 8, 11, .7); backdrop-filter: blur(6px); font: 600 .66rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }

.feature { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.feature__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--wine); }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
:is(.on-dark, .section--dark, .section--wine) .feature__icon { color: var(--gold-light); }
.feature h3 { font-size: 1.45rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--ink-2); font-size: .97rem; }
:is(.on-dark, .section--dark, .section--wine) .feature p { color: rgba(243, 233, 218, .72); }

.list-check { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 32px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 9px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); font: italic 500 3rem/1 var(--serif); color: var(--gold); }
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-2); }
:is(.on-dark, .section--dark, .section--wine) .step { border-color: var(--line-dark); }
:is(.on-dark, .section--dark, .section--wine) .step p { color: rgba(243, 233, 218, .72); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: flow; position: relative; }
.flow::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.6s var(--ease); }
.flow__step { counter-increment: flow; position: relative; padding-right: 26px; }
.flow__step::before { content: counter(flow); position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 26px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); font: 500 1.6rem var(--serif); color: var(--wine); }
:is(.on-dark, .section--dark, .section--wine) .flow__step::before { background: var(--night); color: var(--gold-light); }
.flow__step h3 { font-size: 1.4rem; }
.flow__step p { font-size: .95rem; color: var(--ink-2); }
:is(.on-dark, .section--dark, .section--wine) .flow__step p { color: rgba(243, 233, 218, .72); }

/* ---------- Línea del tiempo ---------- */
.timeline-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.chip { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .84rem; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--wine); color: var(--gold-pale); border-color: var(--wine); }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__fill { position: absolute; left: 120px; top: 0; width: 1px; height: 0; background: linear-gradient(var(--gold), var(--wine)); }
.tl { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 0 46px; padding: 18px 0 30px; transition: opacity .4s; }
.tl[hidden] { display: none; }
.tl__year { padding-top: 2px; font: 500 1.9rem/1 var(--serif); color: var(--wine); text-align: right; padding-right: 30px; }
.tl::after { content: ""; position: absolute; left: 115px; top: 26px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--gold); transition: background .4s, transform .4s; }
.tl.is-visible::after { background: var(--gold); transform: scale(1.15); }
.tl__body h3 { font-size: 1.5rem; margin-bottom: .25em; }
.tl__body p { margin: 0; color: var(--ink-2); font-size: .97rem; max-width: 62ch; }
.tl__tag { display: inline-block; margin-bottom: 8px; font: 600 .64rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ---------- Mapa anatómico ---------- */
.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.anatomy__figure { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.anatomy__figure svg { width: 100%; height: auto; overflow: visible; }
/* Figura anatómica: silueta, estructuras internas y una animación por zona */
.anat path, .anat ellipse { vector-effect: non-scaling-stroke; }
.anat__skin { fill: url(#anat-body); stroke: rgba(220, 195, 143, .7); stroke-width: 1.5; stroke-linejoin: round; }
.anat__ear, .anat__fine, .anat__airway, .anat__ribs path, .anat__diaphragm, .anat__belly, .anat__jaw path, .anat__levator, .anat__lip, .anat__waves path, .anat__jaw-arrow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.anat__ear { stroke: rgba(220, 195, 143, .45); stroke-width: 1.2; }
.anat__fine { stroke: rgba(220, 195, 143, .28); stroke-width: 1; }
.anat__airway { stroke: rgba(220, 195, 143, .18); stroke-width: 6; }
.anat__lung { fill: url(#anat-lung); stroke: rgba(196, 92, 112, .45); stroke-width: 1; transform-box: fill-box; transform-origin: 50% 0; }
.anat__ribs path { stroke: rgba(220, 195, 143, .16); stroke-width: 1.2; }
.anat__diaphragm { stroke: rgba(220, 195, 143, .5); stroke-width: 2; stroke-dasharray: 2 5; transform-box: fill-box; transform-origin: 50% 0; }
.anat__belly { stroke: var(--gold-light); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: 0; transform-box: fill-box; transform-origin: 0 50%; }
.anat__jaw path { stroke: rgba(220, 195, 143, .5); stroke-width: 2.2; transition: stroke .4s; }
.anat__jaw { transform-box: view-box; transform-origin: 226px 160px; }
.anat__jaw-arrow { stroke: var(--gold-light); stroke-width: 1.6; opacity: 0; transition: opacity .4s; }
.anat__levator { stroke: rgba(196, 92, 112, .7); stroke-width: 2.4; opacity: 0; transition: opacity .4s; }
.anat__lip { stroke: rgba(220, 195, 143, .55); stroke-width: 2.2; transform-box: fill-box; }
.anat__vomer { fill: rgba(220, 195, 143, .12); stroke: rgba(220, 195, 143, .28); stroke-width: .8; transition: fill .4s, stroke .4s; }
.anat__waves path { stroke: var(--gold-light); stroke-width: 1.6; opacity: 0; }
.anatomy__figure .zone { fill: rgba(180, 141, 76, .08); stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 4; opacity: .35; transition: opacity .4s, fill .4s; }
.anatomy__figure .zone.is-active { opacity: 1; fill: rgba(180, 141, 76, .2); stroke-dasharray: none; }

.anatomy[data-active="aire"] .anat__diaphragm { stroke: var(--gold-light); animation: anatBreathe 4.8s ease-in-out infinite; }
.anatomy[data-active="aire"] .anat__lung { animation: anatLung 4.8s ease-in-out infinite; }
.anatomy[data-active="aire"] .anat__belly { animation: anatBelly 4.8s ease-in-out infinite; }
.anatomy[data-active="mandibula"] .anat__jaw { animation: anatJaw 3s ease-in-out infinite; }
.anatomy[data-active="mandibula"] .anat__jaw path { stroke: var(--gold-light); }
.anatomy[data-active="mandibula"] .anat__jaw-arrow { opacity: 1; }
.anatomy[data-active="labios"] .anat__levator { opacity: 1; }
.anatomy[data-active="labios"] .anat__lip { stroke: var(--gold-light); }
.anatomy[data-active="labios"] .anat__lip--up { animation: anatLipUp 2.6s ease-in-out infinite; }
.anatomy[data-active="labios"] .anat__lip--down { animation: anatLipDown 2.6s ease-in-out infinite; }
.anatomy[data-active="vomer"] .anat__vomer { fill: var(--gold-light); }
.anatomy[data-active="vomer"] .anat__waves path { animation: anatWave 2.4s ease-out infinite; }
.anatomy[data-active="vomer"] .anat__waves path:nth-child(2) { animation-delay: .4s; }
.anatomy[data-active="vomer"] .anat__waves path:nth-child(3) { animation-delay: .8s; }
@keyframes anatBreathe { 0%, 100% { transform: none; } 45%, 60% { transform: translateY(16px) scaleY(.55); } }
@keyframes anatLung { 0%, 100% { transform: none; } 45%, 60% { transform: scale(1.04, 1.07); } }
@keyframes anatBelly { 0%, 100% { opacity: .15; transform: none; } 45%, 60% { opacity: 1; transform: translateX(6px) scaleY(1.03); } }
@keyframes anatJaw { 0%, 100% { transform: none; } 45%, 65% { transform: translate(7px, 1px) rotate(3deg); } }
@keyframes anatLipUp { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@keyframes anatLipDown { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
@keyframes anatWave { 0% { opacity: 0; transform: translateX(-8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px); } }
.hotspot b { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font: 700 .7rem var(--sans); color: var(--night); pointer-events: none; }
.hotspot[aria-pressed="true"] b { color: var(--gold-pale); }
.anatomy__figure .flow-line { fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-dasharray: 5 7; animation: dash 1.6s linear infinite; opacity: 0; transition: opacity .5s; }
.anatomy[data-active="aire"] .flow-line--aire, .anatomy[data-active="vomer"] .flow-line--sonido { opacity: 1; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.hotspot { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.hotspot::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(220, 195, 143, .25); transition: transform .3s; }
.hotspot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid var(--gold-light); animation: ping 2.4s ease-out infinite; }
.hotspot[aria-pressed="true"]::before { background: var(--wine-2); box-shadow: 0 0 0 5px var(--gold-light); transform: scale(1.15); }
.hotspot span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font: 600 .66rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); pointer-events: none; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.anatomy__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.anatomy__tabs .chip { background: transparent; color: #f3e9da; border-color: var(--line-dark); }
.anatomy__tabs .chip[aria-pressed="true"] { background: var(--gold-light); color: var(--night); border-color: var(--gold-light); }
.anatomy__panel { min-height: 330px; }
.anatomy__panel h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.anatomy__panel .exercise { margin-top: 26px; padding: 20px 22px; border-left: 2px solid var(--gold); background: rgba(255, 255, 255, .04); border-radius: 0 6px 6px 0; }
.anatomy__panel .exercise strong { display: block; margin-bottom: 6px; font: 600 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.anatomy__panel .exercise p { margin: 0; color: rgba(243, 233, 218, .8); font-size: .96rem; }
.anatomy__panel > div { animation: fadeUp .6s var(--ease); }

/* ---------- Test ---------- */
.quiz { position: relative; max-width: 860px; margin-inline: auto; padding: clamp(28px, 5vw, 60px); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 40px 80px -50px rgba(59, 15, 25, .5); }
.quiz__bar { height: 2px; margin-bottom: 34px; background: var(--line); border-radius: 2px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--wine), var(--gold)); transition: width .6s var(--ease); }
.quiz__count { font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.quiz__q { font: 500 clamp(1.7rem, 3vw, 2.4rem)/1.15 var(--serif); margin: 10px 0 26px; }
.quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz__opt { display: flex; gap: 14px; align-items: center; min-height: 64px; padding: 14px 18px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--ivory); cursor: pointer; font-size: .96rem; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.quiz__opt::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--gold); transition: background .3s, box-shadow .3s; }
.quiz__opt:hover { border-color: var(--gold); transform: translateY(-2px); background: var(--paper); }
.quiz__opt.is-picked { border-color: var(--wine); background: var(--paper); }
.quiz__opt.is-picked::before { background: var(--wine); box-shadow: inset 0 0 0 3px var(--paper); }
.quiz__step { animation: fadeUp .5s var(--ease); }
.quiz__result h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.quiz__back { margin-top: 22px; border: 0; background: none; padding: 0; font-size: .85rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Vídeos ---------- */
.reel { position: relative; }
.reel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 26px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.reel__track > * { scroll-snap-align: start; }
.reel__nav { display: flex; gap: 10px; }
.reel__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.reel__btn:hover { background: var(--gold-light); color: var(--night); border-color: var(--gold-light); }
.reel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.vcard { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--night-2); color: #f7ecdc; cursor: pointer; text-align: left; aspect-ratio: 9 / 15; isolation: isolate; }
.vcard--wide { aspect-ratio: 16 / 10; }
.vcard img, .vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; }
.vcard video { opacity: 0; }
.vcard.is-previewing video { opacity: 1; }
.vcard:hover img { transform: scale(1.05); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 6, 9, .92), rgba(16, 6, 9, .1) 55%, rgba(16, 6, 9, .3)); }
.vcard__play { position: absolute; z-index: 2; left: 20px; top: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 241, 226, .14); border: 1px solid rgba(251, 241, 226, .5); backdrop-filter: blur(6px); transition: transform .4s var(--ease), background .3s; }
.vcard__play svg { width: 18px; height: 18px; margin-left: 3px; fill: currentColor; }
.vcard:hover .vcard__play { transform: scale(1.1); background: var(--gold-light); color: var(--night); }
.vcard__meta { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; }
.vcard__meta strong { display: block; font: 500 1.55rem/1.1 var(--serif); }
.vcard__meta span { display: block; margin-top: 6px; font-size: .8rem; color: rgba(247, 236, 220, .7); }
.vcard__time { position: absolute; z-index: 2; right: 16px; top: 22px; font: 600 .72rem var(--sans); letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; background: rgba(16, 6, 9, .55); }
.vimeo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; color: #fff; }
.vimeo img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .4s, transform 1s var(--ease); }
.vimeo:hover img { opacity: .95; transform: scale(1.04); }
.vimeo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vimeo .vcard__play { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.vimeo:hover .vcard__play { transform: translate(-50%, -50%) scale(1.1); background: var(--gold-light); color: var(--night); }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 5, 7, .88); backdrop-filter: blur(8px); animation: fade .4s; }
.modal__dialog { position: relative; width: min(1100px, 100%); max-height: 100%; display: grid; place-items: center; animation: zoomIn .5s var(--ease); }
.modal__body { width: 100%; display: grid; place-items: center; }
.modal__body video, .modal__body img, .modal__body iframe { max-width: 100%; max-height: calc(100svh - 120px); border-radius: 6px; background: #000; }
.modal__body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.modal__caption { margin-top: 14px; color: var(--gold-pale); text-align: center; font: italic 1.2rem var(--serif); }
.modal__close { position: absolute; right: 0; top: -54px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--gold-light); color: var(--night); }
@keyframes fade { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }

/* ---------- Galería ---------- */
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery__item { display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: none; cursor: zoom-in; break-inside: avoid; position: relative; }
.gallery__item img { width: 100%; transition: transform 1s var(--ease), filter .5s; filter: saturate(.85); }
.gallery__item:hover img { transform: scale(1.04); filter: saturate(1); }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(16, 6, 9, .85)); color: #f6ebdb; font-size: .8rem; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.gallery__item:hover span, .gallery__item:focus-visible span { opacity: 1; transform: none; }

/* ---------- Constelación de festivales ---------- */
.atlas { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.atlas__map { position: relative; aspect-ratio: 1.25; border: 1px solid var(--line-dark); border-radius: 10px; background: radial-gradient(70% 70% at 50% 45%, rgba(109, 30, 45, .35), transparent 70%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(220, 195, 143, .06) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(220, 195, 143, .06) 39px 40px); overflow: hidden; }
.atlas__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas__arc { fill: none; stroke: var(--gold-light); stroke-width: .35; stroke-dasharray: 1.2 1.6; opacity: .65; }
.atlas__pin { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; color: #f3e9da; }
.atlas__pin i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 5px rgba(220, 195, 143, .18), 0 0 22px rgba(220, 195, 143, .8); }
.atlas__pin--home i { background: var(--wine-2); box-shadow: 0 0 0 5px rgba(239, 225, 194, .5); }
.atlas__pin b { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 1.05rem var(--serif); }
.atlas__pin b small { display: block; font: 600 .6rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.atlas__pin--left b { left: auto; right: 18px; text-align: right; }
.atlas__pin.is-active i { animation: ping2 1.6s ease-out infinite; }
@keyframes ping2 { 50% { box-shadow: 0 0 0 12px rgba(220, 195, 143, 0), 0 0 30px rgba(220, 195, 143, 1); } }
.atlas__list { list-style: none; margin: 0; padding: 0; }
.atlas__list li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); cursor: default; transition: color .3s; }
.atlas__list li:hover, .atlas__list li.is-active { color: var(--gold-light); }
.atlas__list span { font: 500 1.2rem var(--serif); color: var(--gold); }
.atlas__list small { display: block; color: rgba(243, 233, 218, .55); font-size: .8rem; }
.atlas__origin { margin-top: 14px; font-size: .78rem; letter-spacing: .04em; color: rgba(243, 233, 218, .6); }

/* ---------- Libro 3D ---------- */
.book { perspective: 1600px; display: grid; place-items: center; padding: 30px 0; }
.book__obj { position: relative; width: min(320px, 70vw); aspect-ratio: 3 / 4.25; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(4deg); transition: transform 1.2s var(--ease); animation: float 6s ease-in-out infinite; }
.book:hover .book__obj { transform: rotateY(-8deg) rotateX(2deg); }
.book__front, .book__back, .book__spine, .book__pages { position: absolute; }
.book__front { inset: 0; border-radius: 2px 6px 6px 2px; overflow: hidden; background: #fff; transform: translateZ(18px); box-shadow: inset 4px 0 10px rgba(0, 0, 0, .12); }
.book__front img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.book__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .0) 40%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 60%); transform: translateX(-100%); animation: sheen 6s ease-in-out infinite 1s; }
@keyframes sheen { 30%, 100% { transform: translateX(100%); } }
.book__back { inset: 0; background: #e8ded0; transform: translateZ(-18px); border-radius: 2px 6px 6px 2px; box-shadow: 30px 40px 60px rgba(0, 0, 0, .45); }
.book__spine { top: 0; bottom: 0; left: -18px; width: 36px; background: linear-gradient(90deg, #5a1422, #7c2537 50%, #5a1422); transform: rotateY(-90deg); transform-origin: right; transform: translateX(0) rotateY(-90deg) translateZ(0); left: 0; transform-origin: left; }
.book__pages { top: 6px; bottom: 6px; right: -1px; width: 34px; background: repeating-linear-gradient(90deg, #f4eee4 0 2px, #ddd3c4 2px 3px); transform: rotateY(90deg) translateZ(0); transform-origin: right; right: 0; }
@keyframes float { 50% { translate: 0 -12px; } }
.book__shadow { width: 60%; height: 26px; margin-top: 24px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .35), transparent 70%); animation: shadow 6s ease-in-out infinite; }
@keyframes shadow { 50% { transform: scale(.85); opacity: .7; } }

.toc { list-style: none; counter-reset: toc; margin: 0; padding: 0; columns: 2 300px; column-gap: 40px; }
.toc li { counter-increment: toc; break-inside: avoid; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.toc li::before { content: counter(toc, upper-roman); font: italic 500 1.3rem var(--serif); color: var(--gold); }
.toc strong { display: block; font: 500 1.3rem/1.2 var(--serif); }
.toc span { font-size: .9rem; color: var(--muted); }

/* ---------- Aula virtual (maqueta) ---------- */
.studio { position: relative; border-radius: 14px; padding: 12px; background: linear-gradient(160deg, #2b1820, #120809); border: 1px solid var(--line-dark); box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .8); }
.studio__bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; font-size: .74rem; color: rgba(243, 233, 218, .6); }
.studio__bar i { width: 10px; height: 10px; border-radius: 50%; background: #5a3a40; }
.studio__bar i:first-child { background: #b0485a; }
.studio__bar b { margin-left: auto; font-weight: 600; color: #e9b0b0; display: inline-flex; gap: 6px; align-items: center; }
.studio__bar b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0505f; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.studio__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; }
.studio__score { position: relative; border-radius: 8px; background: #fbf6ec; color: #2a201c; padding: 18px 18px 22px; overflow: hidden; min-height: 300px; }
.studio__score h4 { margin: 0 0 4px; font: italic 500 1.15rem var(--serif); color: var(--wine); }
.studio__score small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8b7b70; }
.studio__score svg { width: 100%; margin-top: 12px; }
.studio__score .staff line { stroke: #8f8075; stroke-width: .6; }
.studio__score .note { fill: #2a201c; }
.studio__score .note.is-on { fill: var(--wine-2); }
.studio__cursor { position: absolute; top: 58px; bottom: 22px; width: 2px; left: 12%; background: linear-gradient(transparent, var(--gold), transparent); animation: cursor 8s linear infinite; }
@keyframes cursor { from { left: 12%; } to { left: 92%; } }
.studio__marker { position: absolute; width: 38px; height: 38px; border: 2px solid var(--wine-2); border-radius: 50%; opacity: 0; animation: marker 8s ease-in-out infinite; }
@keyframes marker { 0%, 20% { opacity: 0; transform: scale(1.6); left: 38%; top: 46%; } 26%, 44% { opacity: 1; transform: none; left: 38%; top: 46%; } 50%, 64% { opacity: 0; transform: scale(1.6); left: 66%; top: 72%; } 70%, 88% { opacity: 1; transform: none; left: 66%; top: 72%; } 100% { opacity: 0; } }
.studio__people { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.studio__cam { position: relative; border-radius: 8px; overflow: hidden; background: #2a1a20; min-height: 140px; }
.studio__cam img { width: 100%; height: 100%; object-fit: cover; }
.studio__cam--student { background: radial-gradient(circle at 50% 40%, #6b4a50, #24141a 70%); display: grid; place-items: center; }
.studio__cam--student svg { width: 46%; opacity: .7; fill: #c7a9a0; }
.studio__cam span { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .7rem; color: #f3e9da; display: flex; gap: 6px; align-items: center; }
.studio__cam .eq { height: 10px; color: var(--gold-light); }
.studio__tools { display: flex; justify-content: center; gap: 10px; padding-top: 12px; }
.studio__tools span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.studio__tools span:last-child { background: #b0364a; }
.studio__tools svg { width: 18px; height: 18px; fill: none; stroke: #f3e9da; stroke-width: 1.5; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label, .field legend { display: block; margin-bottom: 8px; font: 600 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(180, 141, 76, .16); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills label { position: relative; margin: 0; text-transform: none; letter-spacing: 0; font: 500 .95rem var(--sans); }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; transition: all .3s; }
.pills input:checked + span { background: var(--wine); color: var(--gold-pale); border-color: var(--wine); }
.pills input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.wizard__steps { display: flex; gap: 8px; margin-bottom: 28px; }
.wizard__steps span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background .4s; }
.wizard__steps span.is-done { background: var(--gold); }
.wizard__panel { animation: fadeUp .5s var(--ease); }
.wizard__panel[hidden] { display: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.summary { padding: 24px; border: 1px dashed var(--gold); border-radius: 8px; background: var(--ivory); white-space: pre-line; font-size: .96rem; }
.notice { padding: 14px 18px; border-radius: 6px; background: rgba(180, 141, 76, .12); font-size: .88rem; color: var(--ink-2); }
.panel { padding: clamp(28px, 4vw, 52px); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 40px 80px -50px rgba(59, 15, 25, .45); }

/* ---------- Preguntas ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 72px; padding: 18px 0; cursor: pointer; list-style: none; font: 500 1.4rem/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; font: 300 1.3rem var(--sans); color: var(--wine); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 60px 24px 0; color: var(--ink-2); animation: fadeUp .45s var(--ease); }
:is(.on-dark, .section--dark, .section--wine) .faq details { border-color: var(--line-dark); }
:is(.on-dark, .section--dark, .section--wine) .faq summary::after { color: var(--gold-light); }
:is(.on-dark, .section--dark, .section--wine) .faq details > div { color: rgba(243, 233, 218, .75); }

/* ---------- Artículos (Academia) ---------- */
.article-card { display: grid; grid-template-columns: 110px 1fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); text-decoration: none; }
.article-card__date { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-top: 8px; }
.article-card h3 { transition: color .3s; }
.article-card:hover h3 { color: var(--wine); }
.article-card p { margin: 0; color: var(--ink-2); }
.prose { font-size: 1.08rem; }
.prose h3 { margin-top: 1.6em; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); font: italic 1.45rem/1.45 var(--serif); color: var(--wine); }
.tipgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tip { padding: clamp(24px, 3vw, 38px); background: var(--paper); transition: background .4s; }
.tip:hover { background: var(--ivory); }
.tip__n { font: italic 500 2.6rem/1 var(--serif); color: var(--gold); }
.tip h3 { margin: 16px 0 10px; font-size: 1.5rem; }
.tip p { margin: 0; font-size: .96rem; color: var(--ink-2); }

/* ---------- Banda final ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #f6ebdb; text-align: center; padding-block: clamp(90px, 12vw, 160px); background: var(--night); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, rgba(22, 9, 12, .55), rgba(22, 9, 12, .92)); }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; color: rgba(246, 235, 219, .8); }
.cta-band .btn-row { justify-content: center; margin-top: 34px; }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--night); color: rgba(243, 233, 218, .78); padding-top: 90px; font-size: .94rem; }
.site-footer__staff { position: absolute; inset: 0 0 auto; height: 40px; background: repeating-linear-gradient(transparent 0 7px, var(--line-dark) 7px 8px); opacity: .6; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.site-footer__grid a { display: block; padding: 5px 0; text-decoration: none; transition: color .3s; }
.site-footer__grid a:hover { color: var(--gold-light); }
.site-footer__title { margin: 0 0 14px; font: 600 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.site-footer__quote { margin: 22px 0 10px; font: italic 1.45rem/1.4 var(--serif); color: var(--gold-pale); max-width: 30ch; }
.site-footer__sign { font-size: .82rem; color: rgba(243, 233, 218, .55); }
.site-footer__place { margin-top: 12px; font-size: .84rem; color: rgba(243, 233, 218, .55); }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding: 24px 0 30px; border-top: 1px solid var(--line-dark); font-size: .78rem; color: rgba(243, 233, 218, .5); }
.site-footer__base a { text-decoration: none; }
.site-footer__base a:hover { color: var(--gold-light); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 400; transform: translate(-50%, 140%); padding: 14px 22px; border-radius: 999px; background: var(--night); color: var(--gold-pale); font-size: .9rem; box-shadow: var(--shadow); transition: transform .5s var(--ease); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Intro (telón) ---------- */
.intro { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: #0d0507; color: var(--gold-pale); text-align: center; }
.intro[hidden] { display: none; }
.intro__curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; background: url("../img/escena-telon.webp") center / cover; transition: transform 1.6s cubic-bezier(.7, 0, .2, 1); }
.intro__curtain {
  background-image: image-set(url("../img/escena-telon--1600.webp") 1x, url("../img/escena-telon--2560.webp") 2x, url("../img/escena-telon.webp") 3x);
}
.intro__curtain--l { left: 0; background-position: 20% 50%; }
.intro__curtain--r { right: 0; background-position: 80% 50%; }
.intro__curtain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 30%, transparent 70%, rgba(0, 0, 0, .35)); }
.intro__content { position: relative; z-index: 2; transition: opacity .6s, transform .8s var(--ease); padding: 20px; }
.intro__content svg { width: min(360px, 76vw); margin: 0 auto 18px; }
.intro__content svg path { fill: none; stroke: var(--gold-light); stroke-width: 1; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s var(--ease) forwards; }
.intro__content svg path:nth-child(2) { animation-delay: .1s; } .intro__content svg path:nth-child(3) { animation-delay: .2s; } .intro__content svg path:nth-child(4) { animation-delay: .3s; } .intro__content svg path:nth-child(5) { animation-delay: .4s; }
.intro__content svg circle { fill: var(--gold-light); opacity: 0; animation: noteIn .6s var(--ease) forwards; }
.intro__content svg circle:nth-of-type(1) { animation-delay: 1s; } .intro__content svg circle:nth-of-type(2) { animation-delay: 1.2s; } .intro__content svg circle:nth-of-type(3) { animation-delay: 1.4s; } .intro__content svg circle:nth-of-type(4) { animation-delay: 1.6s; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.intro__name { margin: 0; font: 500 clamp(2.6rem, 8vw, 5rem)/1 var(--serif); letter-spacing: .02em; opacity: 0; animation: fadeUp 1s var(--ease) .5s forwards; }
.intro__sub { margin: 14px 0 34px; font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: fadeUp 1s var(--ease) .8s forwards; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; opacity: 0; animation: fadeUp 1s var(--ease) 1.2s forwards; }
.intro__actions .btn--ghost { color: var(--gold-pale); }
.intro.is-opening .intro__curtain--l { transform: translateX(-102%); }
.intro.is-opening .intro__curtain--r { transform: translateX(102%); }
.intro.is-opening .intro__content { opacity: 0; transform: scale(.96); }
.intro.is-opening { background: transparent; transition: background .1s 1.4s; pointer-events: none; }

/* ---------- Revelado ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js .reveal--left { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal--zoom { transform: scale(.94); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.js .clip.is-in { clip-path: inset(0 0 0 0); }
.parallax { will-change: transform; }

/* ---------- Adaptación ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 0 10px; font-size: .86rem; }
  .brand__text small { display: none; }
}
@media (max-width: 1040px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; margin-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .atlas { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 0; }
  .flow::before { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .split, .split--wide-text, .split--wide-media, .section-head--split, .anatomy, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .grid--3, .tipgrid { grid-template-columns: minmax(0, 1fr); }
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__aside { justify-self: start; }
  .hero__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__rail button:nth-child(n+3) { display: none; }
  .scroll-cue { display: none; }
  .split .order-first { order: -1; }
  .media-stack { padding: 0 0 50px 24px; }
  .media-stack__badge { right: 0; width: 108px; height: 108px; }
  .timeline::before, .timeline__fill { left: 6px; }
  .tl { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
  .tl::after { left: 1px; top: 24px; }
  .tl__year { text-align: left; padding: 0; font-size: 1.6rem; }
  .quiz__options { grid-template-columns: 1fr; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__people { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .article-card { grid-template-columns: 1fr; gap: 6px; }
  .form__row { grid-template-columns: 1fr; }
  .faq details > div { padding-right: 0; }
}
@media (max-width: 560px) {
  .grid--4, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; margin-right: 0; border-top: 1px solid var(--line-dark); }
  .stat:first-child { border-top: 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .frame::before { inset: 14px -10px -14px 10px; }
  .frame--left::before { inset: 14px 10px -14px -10px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero__now { font-size: .7rem; }
  .atlas__pin b { font-size: .85rem; }
  .atlas__pin b small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .clip { opacity: 1; transform: none; clip-path: none; }
  .marquee__track { animation: none; }
}

/* ---------- Ajustes de páginas ---------- */
.testimonial-grid .vcard { aspect-ratio: 4 / 5; }
.video-grid h3 { font-size: 1.5rem; margin: 0 0 .3em; }
.video-grid article > .small { margin: 0; }
.prose h2 { margin-top: 0; }
.prose .list-check { margin: 1.4em 0; }
article.section + .staff-divider, .staff-divider + article.section { margin-block: 0; }
[hidden] { display: none !important; }
.toast { opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility .4s; }
.toast.is-on { opacity: 1; visibility: visible; }
fieldset.wizard__panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.crumbs a + a::before { content: "/"; margin-right: 10px; opacity: .5; }
.tl__body p { max-width: 70ch; }
main { overflow-x: clip; }
@media (max-width: 860px) { .js .reveal--left:not(.is-in), .js .reveal--right:not(.is-in) { transform: translateY(34px); } }

/* ---------- Selector de idioma ---------- */
.lang { display: flex; align-items: center; flex: none; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; }
.lang a { display: grid; place-items: center; min-width: 34px; min-height: 34px; text-decoration: none; opacity: .62; transition: opacity .25s, color .25s; }
.lang a + a { border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 30%, transparent); }
.lang a:hover { opacity: 1; }
.lang a[aria-current] { opacity: 1; color: var(--gold); }
.site-header:not(.is-solid) .lang a[aria-current], .menu-open .lang a[aria-current] { color: var(--gold-light); }
.lang--mobile { font-size: .8rem; }
.lang--mobile a { min-width: 46px; min-height: 44px; }
.site-header__inner > .lang { margin-left: -12px; }
@media (max-width: 1040px) { .site-header__inner > .lang { margin-left: 0; } }
@media (max-width: 560px) { .site-header__inner > .lang { display: none; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 120; display: flex; align-items: center; gap: 0; height: 58px; padding: 0 17px; border-radius: 999px; background: #1f7a4d; color: #fff; text-decoration: none; box-shadow: 0 18px 40px -14px rgba(10, 40, 25, .6), 0 0 0 1px rgba(255, 255, 255, .08) inset; transition: transform .4s var(--ease), box-shadow .3s, opacity .4s, visibility .4s; }
.wa-float svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; font: 600 .86rem var(--sans); letter-spacing: .02em; transition: max-width .5s var(--ease), margin .5s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 46px -14px rgba(10, 40, 25, .7); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 160px; margin-left: 10px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1f7a4d; opacity: 0; animation: waPulse 3.2s ease-out 2.5s 3; pointer-events: none; }
@keyframes waPulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.menu-open .wa-float, body:has(.modal:not([hidden])) .wa-float, body:has(.intro:not([hidden])) .wa-float { opacity: 0; visibility: hidden; }
@media (max-width: 560px) { .wa-float { height: 54px; padding: 0 15px; } }

/* ---------- Agenda ---------- */
.gigs { display: grid; gap: 14px; }
.gig { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 28px; align-items: start; padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.gig:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.gig__date { margin: 0; font: 500 1.35rem/1.15 var(--serif); color: var(--wine); }
.gig__date time::first-letter { text-transform: uppercase; }
.gig__body h3 { font-size: 1.5rem; margin: .25em 0 .2em; }
.gig__body p { margin: 0; max-width: 64ch; }
.gig__body p + p { margin-top: .5em; }
.gig__place { color: var(--muted); font-size: .92rem; }
.gig__tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ivory); color: var(--wine); font: 600 .64rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.gig__link { align-self: center; white-space: nowrap; }
.gig--empty { grid-template-columns: 190px minmax(0, 1fr); background: var(--ivory); border-style: dashed; border-color: var(--gold); }
.gig--empty .gig__date { font-style: italic; }
.gig-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.section--dark .gig, .on-dark .gig { color: var(--ink); }
@media (max-width: 860px) {
  .gig, .gig--empty { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .gig__link { justify-self: start; }
}
.btn--wa { --bg: #1f7a4d; --fg: #fff; }

/* ---------- Academia: buscador y filtros ---------- */
.library-tools { display: grid; gap: 18px; margin-bottom: 18px; }
.library-search { position: relative; margin: 0; }
.library-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; pointer-events: none; }
.library-search input { padding-left: 50px; border-radius: 999px; }
.library-filters { margin-bottom: 0; }
.library__empty { padding: 30px 0; border-top: 1px solid var(--line); color: var(--ink-2); }

/* ==========================================================================
   Pasada móvil y pulido visual
   ========================================================================== */
/* Enlaces legibles sobre fondos oscuros */
.program .link-arrow, .card--dark .link-arrow, .on-dark .link-arrow, .section--dark .link-arrow, .section--wine .link-arrow { color: var(--gold-light); }
/* Botones con texto largo: dos líneas cómodas en vez de apretadas */
.btn { text-align: center; line-height: 1.25; padding-block: 12px; text-wrap: balance; }
/* Varios enlaces seguidos */
.link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; }
/* Ventana de clase: la barra superior nunca se parte */
.studio__bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio__bar b { white-space: nowrap; }
/* Zona táctil generosa en los puntos del mapa de festivales */
.atlas__pin::before { content: ""; position: absolute; inset: -16px; }

/* Barra fija inferior en móvil: reservar + WhatsApp, aparece al pasar la cabecera */
.mbar { display: none; }
@media (max-width: 860px) {
  .wa-float { display: none; }
  .mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 120; display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(21, 10, 13, .82); border: 1px solid rgba(220, 195, 143, .22); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); transform: translateY(140%); opacity: 0; transition: transform .55s var(--ease), opacity .4s; }
  .mbar .btn { flex: 1; min-height: 48px; width: auto; }
  .mbar__wa { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #1f7a4d; color: #fff; }
  .mbar__wa svg { width: 24px; height: 24px; fill: currentColor; }
  .show-bar .mbar { transform: none; opacity: 1; }
  .menu-open .mbar, body:has(.modal:not([hidden])) .mbar { transform: translateY(140%); opacity: 0; }
  .site-footer { padding-bottom: 96px; }

  /* Tipografía mínima legible y objetivos táctiles de 44 px */
  .eyebrow { font-size: .8rem; letter-spacing: .18em; }
  .card__num, .tl__tag, .gig__tag, .program__tag { font-size: .74rem; }
  .page-hero__aside small, .caption, .frame figcaption { font-size: .78rem; }
  .link-arrow { min-height: 44px; }
  .anatomy__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .anatomy__tabs .chip { flex: none; }
  .anatomy__figure { max-width: 420px; }
}
@media (max-width: 560px) {
  .frame::before { display: none; }
  .frame figcaption { margin-top: 14px; }
  .page-hero { min-height: clamp(480px, 88svh, 700px); }
}

/* Escritorio: el botón de WhatsApp también espera a que pases la cabecera */
.wa-float { transform: translateY(24px) scale(.9); opacity: 0; visibility: hidden; }
.show-bar .wa-float { transform: none; opacity: 1; visibility: visible; }
.show-bar .wa-float:hover, .show-bar .wa-float:focus-visible { transform: translateY(-3px); }

/* Archivo de la agenda: versión corta en móvil */
.gig.is-extra { display: none; }
.gigs__more { justify-self: center; margin-top: 10px; }

/* Transiciones suaves entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .32s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
.menu-open.show-bar .wa-float { opacity: 0; visibility: hidden; }
/* Respuesta táctil sutil */
html { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:active, .program:active, .vcard:active, .chip:active, .gallery__item:active, .article-card:active { transform: scale(.97); transition: transform .12s; }
}

/* Libro 3D: la portada real es blanca; lomo y contraportada en blanco roto, sin burdeos */
.book__spine { background: linear-gradient(90deg, #d9d2c6, #f7f3ec 45%, #e4ddd1); }
.book__back { background: #efe9df; }
.book__front { box-shadow: inset 6px 0 12px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.book__front img { object-position: 50% 50%; }
.book { position: relative; --bw: min(320px, 70vw); }
.book__cd { position: absolute; z-index: 3; width: calc(var(--bw) * .7); height: auto; left: calc(50% - var(--bw) / 2 + var(--bw) * .42); top: calc(30px + var(--bw) * 1.4167 * .6); transform: rotate(18deg); filter: drop-shadow(-6px 12px 16px rgba(0, 0, 0, .3)); pointer-events: none; animation: cdFloat 6s ease-in-out infinite; }
@keyframes cdFloat { 50% { translate: 0 -12px; } }

/* Hueco del vídeo de presentación (mientras Carmen graba el nuevo) */
.vsoon { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; aspect-ratio: 9 / 15; padding: 30px; border-radius: 8px; overflow: hidden; isolation: isolate; background: radial-gradient(120% 70% at 50% 18%, #4a1422, var(--night) 70%); border: 1px solid var(--line-dark); color: #f3e9da; }
.vsoon__glow { position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(transparent 0 36px, rgba(220, 195, 143, .07) 36px 37px); mask: linear-gradient(transparent, #000 30%, #000 60%, transparent); }
.vsoon__icon { width: 64px; height: 64px; margin-bottom: auto; fill: none; stroke: var(--gold-light); stroke-width: 1.2; animation: vsoonPulse 2.8s ease-in-out infinite; }
.vsoon__icon path { fill: var(--gold-light); stroke: none; }
@keyframes vsoonPulse { 50% { opacity: .55; transform: scale(.94); } }
.vsoon__kicker { font: 600 .74rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.vsoon__title { font: 500 1.7rem/1.1 var(--serif); }
.vsoon p { margin: 0; font-size: .92rem; color: rgba(243, 233, 218, .75); }
.vsoon .link-arrow { color: var(--gold-light); }

/* ==========================================================================
   Material del pendrive (propuesta)
   ========================================================================== */
.quote--sm { font-size: clamp(1.25rem, 2vw, 1.6rem); }

/* Una hora de clase */
.hora { display: grid; grid-template-columns: 1fr 1fr; margin: 0 auto 44px; max-width: 980px; border-radius: 999px; overflow: hidden; box-shadow: var(--shadow); }
.hora > div { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 20px; font-size: .95rem; text-align: center; }
.hora b { font: 500 1.35rem var(--serif); }
.hora__a { background: var(--wine); color: var(--gold-pale); }
.hora__b { background: var(--gold-light); color: var(--night); }
.hora__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); max-width: 1100px; margin: 0 auto; }
.hora__label { margin: 0 0 18px; font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.hora__label b { margin-right: 8px; font: 500 1.2rem var(--serif); letter-spacing: 0; text-transform: none; }
.pasos { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.pasos li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.pasos li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); font: 500 1.3rem var(--serif); color: var(--wine); }
.pasos h3 { margin: 0 0 4px; font-size: 1.3rem; }
.pasos p { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 860px) { .hora__cols { grid-template-columns: 1fr; } .hora > div { flex-direction: column; gap: 0; min-height: 76px; font-size: .82rem; } }

/* Mapa del método: animación 3D, foto y podcast en cada zona */
.anat-media { margin: 22px 0 0; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line-dark); }
.anat-media video { display: block; width: 100%; aspect-ratio: 720 / 486; object-fit: cover; }
.anat-media img { display: block; width: 100%; height: auto; }
.anat-media figcaption { padding: 8px 14px; background: rgba(21, 10, 13, .85); color: rgba(243, 233, 218, .7); font-size: .76rem; letter-spacing: .04em; }
.anat-media--wide { margin: 0; border-color: var(--line); box-shadow: var(--shadow); }
.anat-pod { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line-dark); border-radius: 999px; color: #f3e9da; text-decoration: none; transition: background .3s, border-color .3s; }
.anat-pod:hover { background: rgba(220, 195, 143, .1); border-color: var(--gold-light); }
.anat-pod__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-light); }
.anat-pod__icon svg { width: 13px; height: 14px; margin-left: 3px; fill: var(--night); }
.anat-pod small { display: block; font: 600 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }

/* Podcast */
.pod { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 50px); align-items: start; }
.pod__now { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 24px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); position: sticky; top: 100px; }
.pod__cover { width: 150px; height: 150px; border-radius: 8px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7); }
.pod__kicker { font: 600 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.pod__title { display: block; margin: 6px 0 16px; font: 500 1.6rem/1.15 var(--serif); color: #f7ecdc; }
.pod__controls { display: flex; align-items: center; gap: 14px; }
.pod__play { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--gold-light); cursor: pointer; transition: transform .25s; }
.pod__play:hover { transform: scale(1.06); }
.pod__play svg { width: 18px; height: 20px; fill: var(--night); }
.pod__play .i-play { margin-left: 4px; }
.pod__play .i-pause, .pod.is-playing .pod__play .i-play { display: none; }
.pod.is-playing .pod__play .i-pause { display: block; }
.pod__bar { flex: 1; min-width: 0; }
.pod__bar input { width: 100%; accent-color: var(--gold-light); }
.pod__time { display: block; font-size: .78rem; color: rgba(243, 233, 218, .6); font-variant-numeric: tabular-nums; }
.pod__speed { flex: none; min-width: 48px; min-height: 40px; border: 1px solid var(--line-dark); border-radius: 999px; background: none; color: #f3e9da; font-weight: 600; font-size: .8rem; cursor: pointer; }
.pod__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pod__ep { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 1px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, .03); color: #f3e9da; text-align: left; cursor: pointer; transition: background .25s, border-color .25s; }
.pod__ep:hover { background: rgba(255, 255, 255, .07); }
.pod__ep[aria-current="true"] { border-color: var(--gold-light); background: rgba(220, 195, 143, .1); }
.pod__n { font: 500 1.2rem var(--serif); color: var(--gold-light); }
.pod__t { font-size: .98rem; }
.pod__d { font-size: .8rem; color: rgba(243, 233, 218, .55); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .pod { grid-template-columns: 1fr; } .pod__now { position: static; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; } .pod__cover { width: 96px; height: 96px; } .pod__title { font-size: 1.3rem; } .pod__controls { flex-wrap: wrap; } }
.pod-teaser { display: grid; grid-template-columns: 220px 1fr; gap: clamp(26px, 5vw, 60px); align-items: center; max-width: 980px; }
.pod-teaser__cover { width: 220px; height: 220px; border-radius: 10px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); transform: rotate(-3deg); }
.pod-teaser h2 { margin-bottom: .35em; }
@media (max-width: 640px) { .pod-teaser { grid-template-columns: 1fr; justify-items: start; } .pod-teaser__cover { width: 150px; height: 150px; } }

/* El libro por dentro */
.gallery--pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--pages .gallery__item img { aspect-ratio: 877 / 1233; object-fit: cover; background: #fff; }
@media (max-width: 560px) { .gallery--pages { gap: 8px; } }
.dvd { align-items: center; }

/* Ilustración de Elizabeth Moody */
.ilus { margin: 34px 0 0; }
.ilus img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.ilus figcaption { margin-top: 12px; }

/* Etiqueta en la tarjeta del vídeo de saludo */
.vcard__badge { position: absolute; z-index: 2; left: 20px; bottom: 96px; padding: 5px 12px; border-radius: 999px; background: var(--gold-light); color: var(--night); font: 700 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }

/* Página del podcast: una ficha por episodio */
.ep-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.ep-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.ep-card__top { display: flex; justify-content: space-between; align-items: baseline; }
.ep-card__n { font: 500 2.4rem/1 var(--serif); color: var(--gold); }
.ep-card__d { font: 600 .78rem var(--sans); letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ep-card h3 { margin: 4px 0 0; font-size: 1.5rem; }
.ep-card p { margin: 0; flex: 1; font-size: .96rem; color: var(--ink-2); }
.ep-card__play { align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer; }

/* ---------- Aula online (código de Meet) ---------- */
.aula__form { display: grid; gap: 18px; }
.aula__live { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 6px 14px; border-radius: 99px; background: rgba(180, 141, 76, .14); font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.aula__live i { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 0 rgba(192, 57, 43, .6); animation: aulaPulse 1.8s infinite; }
@keyframes aulaPulse { 70% { box-shadow: 0 0 0 10px rgba(192, 57, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); } }
.field .aula__input { min-height: 72px; font: 500 clamp(1.5rem, 4vw, 2rem) var(--sans); letter-spacing: .12em; text-align: center; }
.aula__input::placeholder { color: var(--muted); opacity: .45; }
.aula__help, .aula__note { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.aula__note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.aula__btn { width: 100%; justify-content: center; min-height: 60px; font-size: 1.05rem; }
.aula__estado { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--ink-2); }
.aula__estado a { color: var(--gold); font-weight: 600; }
.aula__form.is-error .aula__input { border-color: #b03a2e; box-shadow: 0 0 0 4px rgba(176, 58, 46, .14); }
.aula__form.is-error .aula__estado { color: #b03a2e; }
.aula__pasos { counter-reset: paso; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.aula__pasos li { counter-increment: paso; position: relative; padding: 16px 18px 16px 64px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.aula__pasos li::before { content: counter(paso); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #fff; font: 600 .95rem var(--sans); }
@media (prefers-reduced-motion: reduce) { .aula__live i { animation: none; } }

/* ---------- Procedencia de cada artículo de la Academia ---------- */
.fuente-wrap { margin-top: 34px; }
.fuente-ref { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.6; color: var(--muted); }
.fuente-ref strong { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-right: 4px; }
.fuente-ref a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.fuente-wrap--tips { grid-column: 1 / -1; }

/* ---------- Mapa del método: láminas del libro en lugar de la silueta ---------- */
.anatomy:not(.no-fig) { align-items: start; }
.anat-laminas { max-width: 600px; position: sticky; top: calc(var(--header-h, 80px) + 30px); }
.anat-lamina { display: none; margin: 0; padding: clamp(14px, 2vw, 22px); border-radius: 10px; background: #fbf7ef; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(220, 195, 143, .35); }
.anat-lamina.is-active { display: block; animation: laminaIn .6s var(--ease) both; }
@keyframes laminaIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 860px) {
  /* En el móvil: pestañas, lámina y texto, en ese orden, para ver el cambio al tocar */
  .anatomy > div:last-child { display: contents; }
  .anatomy .anatomy__tabs { order: 0; }
  .anatomy .anatomy__figure { order: 1; position: static; }
  .anatomy .anatomy__panel { order: 2; }
  .anatomy:not(.no-fig) { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) { .anat-lamina.is-active { animation: none; } }
.anat-lamina img { display: block; width: 100%; height: auto; border-radius: 4px; }
.anat-lamina figcaption { margin-top: 12px; font-size: .8rem; line-height: 1.5; color: #6b5a50; }
.anatomy.no-fig { grid-template-columns: minmax(0, 1fr); }
.anatomy.no-fig .anatomy__figure { display: none; }
.anatomy.no-fig > div:last-child { width: 100%; max-width: 780px; margin-inline: auto; }
.anatomy.no-fig .anatomy__tabs { justify-content: center; }

/* ---------- Pantalla final del vídeo (telón que se cierra al acabar) ---------- */
.vend { position: relative; display: inline-block; max-width: 100%; overflow: hidden; border-radius: 6px; vertical-align: top; }
.vend video { display: block; }
.vend__end { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--gold-pale); pointer-events: none; }
.vend.is-ended .vend__end { pointer-events: auto; }
.vend__curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #3a0a10 url("../img/escena-telon--960.webp") center / cover; transition: transform 1.4s cubic-bezier(.7, 0, .2, 1); }
.vend__curtain--l { left: 0; background-position: 20% 50%; transform: translateX(-102%); }
.vend__curtain--r { right: 0; background-position: 80% 50%; transform: translateX(102%); }
.vend__curtain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 30%, transparent 70%, rgba(0, 0, 0, .35)); }
.vend.is-ended .vend__curtain { transform: none; }
.vend__content { position: relative; z-index: 2; padding: 20px; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.vend.is-ended .vend__content { opacity: 1; transform: none; transition-delay: 1.1s; }
.vend__content svg { width: min(260px, 70%); margin: 0 auto 14px; }
.vend__content svg path { fill: none; stroke: var(--gold-light); stroke-width: 1; }
.vend__content svg circle { fill: var(--gold-light); }
.vend__name { margin: 0; font: 500 clamp(2rem, 6vw, 3.2rem)/1 var(--serif); letter-spacing: .02em; }
.vend__sub { margin: 12px 0 26px; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.vend__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.vend__actions .btn--ghost { color: var(--gold-pale); }
@media (prefers-reduced-motion: reduce) { .vend__curtain, .vend__content { transition: none !important; } }
