/* Brand hierarchy: Modak titles, Titan One subtitles and controls, Mali text. */
:root { --display: 'Modak', cursive; --heading: 'Titan One', cursive; --ui: 'Mali', cursive; --hand: 'Mali', cursive; --accent: var(--blue); }
body { font-synthesis: none; }
h1, h2, .brand, .footer-wordmark, .cover-type { font-weight: 400; }
button, .button, .text-link, summary { font-family: var(--heading); font-weight: 400; letter-spacing: 0; }
.button { font-size: 24px; line-height: 1.2; min-height: 54px; gap: 18px; }
.text-link, .about summary, .menu-toggle { font-size: 24px; line-height: 1.3; }
.primary, .hero-actions .button, .release-form .primary { background: var(--accent); color: var(--button-ink, var(--cream)); border-color: transparent; }
.hero-actions .secondary { background: rgb(var(--black-rgb) / 0.5333); border-color: var(--accent); color: var(--cream); }
.hero-actions .button { font-size: 24px; }
.encounters { --button-ink: var(--black); }
.music, .curitas-page { --button-ink: var(--black); }
.button .ui-icon, .text-link .ui-icon { color: inherit; }
.text-link, .about summary { color: var(--accent); }
.segmented { max-width: 530px; }
.segmented button { font-size: 22px; font-weight: 400; line-height: 1.2; min-height: 52px; padding: 12px 20px; color: var(--cream); }
.segmented button[aria-selected=true] { background: var(--accent); color: var(--black); }
.play-button { background: var(--accent); border-color: transparent; }
.play-button .ui-icon, .backstage .play-button .ui-icon { color: var(--black); }
.circle-button { color: var(--accent); border-color: var(--accent); }
.menu-toggle { padding-inline: 16px; border-radius: 999px; color: var(--cream); background: var(--blue); }
.site-header nav a { font-size: 13px; }
.album .small-label { font-family: var(--heading); font-weight: 400; }
.cover-note { font-family: var(--hand); font-weight: 400; }
.album h3 { font-family: var(--heading); font-size: 22px; line-height: 1.15; font-weight: 400; }
.music .album-arrow { width: 48px; height: 48px; background: var(--accent); border: 0; color: var(--black); }
.album-arrow .ui-icon { color: var(--black); width: 25px; height: 25px; }
.release-form .button { min-height: 52px; }
.release-form .phrase-button-label { font-family: var(--heading); font-size: 17px; line-height: 1.2; font-weight: 400; }
.stem-buttons button { font-size: 23px; font-weight: 400; color: var(--accent); }
.stem-buttons button[aria-pressed=true] { color: var(--black); background: var(--accent); }
.code-field .button { font-size: 22px; }
.demo-access, .welcome-copy>.text-link, .mixer-controls>.text-link { font-size: 20px; }
.curitas-page .site-header>.text-link { font-size: 20px; }
.curitas-page .site-header { min-height: 100px; }
.curitas-mixer .mixer-heading .text-link, .curitas-page .ar-preview summary { font-size: 20px; line-height: 1.3; }
.curitas-page .stem-heading h2 { font-family: var(--heading); font-size: 28px; font-weight: 400; }
.eyebrow, .small-label { font-family: var(--heading); font-weight: 400; color: var(--cream); }
.message footer { font-family: var(--hand); font-weight: 400; }

/* Bind each decorative mark to its title instead of to the entire section. */
.heading-emblem { position: relative; width: fit-content; max-width: calc(100% - 120px); margin-inline: auto; }
.heading-emblem .live-symbol { width: 62px; height: 62px; left: -78px; top: 10px; right: auto; }
.heading-emblem .music-symbol { width: 80px; height: 80px; right: -100px; top: -8px; left: auto; }
.music h2 { color: var(--cream); max-width: none; }
.music h2 .warm-word { color: var(--yellow); }

/* A smaller cream disc allows the silhouette to emerge further above it. */
.about .portrait-composition { width: 90%; max-width: 495px; margin-top: clamp(110px, 11vw, 155px); }
.about { overflow-x: clip; }
.about .portrait-window { background: var(--cream); border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.portrait-cutout {
  height: 145%; border-radius: 0; overflow: visible;
  /* Only the lower half follows the cream disc; the guitar can extend sideways. */
  clip-path: url(#portrait-open-top);
}
.about .portrait-window img {
  position: absolute; bottom: -1%; left: 6%;
  height: 100%; width: auto; max-width: none;
  object-fit: contain; object-position: center bottom;
  /* Center the artist's torso, rather than the silhouette including its guitar. */
  transform: rotate(-7deg); transform-origin: center bottom; padding: 0;
}
.about .portrait-star.section-symbol { width: 70px; height: 70px; top: -13%; right: -5%; transform: rotate(16deg); }

/* The hidden route shares the anonymous wall's typography and movement. */
.message-wall .message:nth-child(3n) { grid-column: auto; }
.message-wall .message.new-message { grid-column: 1 / -1; }
.message-wall .secret-message { position: relative; padding-bottom: 50px; margin-bottom: -50px; cursor: default; }
.secret-message p { color: var(--cream); }
.secret-reveal {
  position: absolute; top: calc(100% - 36px); left: 50%; transform: translate(-50%, 6px);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  font-family: var(--heading); font-size: 16px; line-height: 1.2; font-weight: 400;
  color: var(--cream); background: var(--pink); text-shadow: none;
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.secret-message:hover .secret-reveal, .secret-message:focus-within .secret-reveal, .secret-message.secret-revealed .secret-reveal {
  opacity: 1; transform: translate(-50%, 0); pointer-events: auto;
}
.release-free .message-wall { padding-bottom: 70px; row-gap: 60px; }
.release-heading + .phrase-entry { margin-top: 42px; }
@media (max-width: 1099px) {
  .heading-emblem .live-symbol { width: 48px; height: 48px; left: -62px; top: 8px; }
  .heading-emblem .music-symbol { width: 58px; height: 58px; right: -76px; top: -6px; }
}
@media (max-width: 760px) {
  .music .section-heading { flex-direction: column; align-items: center; gap: 22px; }
  .heading-emblem { max-width: calc(100% - 80px); }
  .encounters h2, .music h2 { font-size: clamp(32px, 6vw, 46px); }
  .heading-emblem .live-symbol { width: 32px; height: 32px; left: -42px; top: 4px; }
  .heading-emblem .music-symbol { width: 38px; height: 38px; right: -46px; top: 2px; }
  .segmented button { font-size: 20px; padding: 10px 12px; }
  .hero-actions .button { font-size: 24px; }
  .next-show .text-link { font-size: 22px; }
  .about .portrait-composition { width: 80%; max-width: 395px; margin-top: 130px; }
  .about .portrait-star.section-symbol { width: 50px; height: 50px; }
  .release-form .button { width: 52px; }
  .site-header .menu-toggle { font-size: 20px; gap: 10px; }
  .release-free .message-wall { gap: 60px; }
  .curitas-page .site-header>.text-link { font-size: 18px; }
  .code-field .button { font-size: 22px; padding-inline: 18px; }
  .stem-buttons button { font-size: 21px; }
}
@media (max-width: 360px) {
  .encounters h2, .music h2 { font-size: 29px; }
  .segmented button { font-size: 19px; }
  .secret-reveal { font-size: 20px; }
  .curitas-page .site-header .brand { font-size: 32px; }
  .curitas-page .site-header>.text-link { font-size: 16px; max-width: 145px; }
}
@media (prefers-reduced-motion: reduce) { .secret-reveal { transition: none; } }

/* Header and footer share a dark surface with cream content. */
.encounters .stage {
  background: linear-gradient(115deg, rgb(var(--pink-rgb) / .12), rgb(var(--red-rgb) / .18) 60%, transparent), var(--black);
}
.encounters .backstage {
  background: linear-gradient(110deg, rgb(var(--blue-rgb) / .22), rgb(var(--purple-rgb) / .16)), var(--black);
}
.music {
  background: linear-gradient(180deg, transparent, rgb(var(--purple-rgb) / .18) 30%, rgb(var(--purple-rgb) / .25) 70%, rgb(var(--purple-rgb) / .18)), var(--black);
}
.release-free {
  background: linear-gradient(180deg, rgb(var(--purple-rgb) / .18), rgb(var(--pink-rgb) / .08) 48%, transparent), var(--black);
}
.message footer, .cover-note { color: var(--muted); }
.release-form input::placeholder { color: var(--muted); }
.site-header {
  width: 100%; max-width: none; margin-inline: 0;
  background: var(--bg); color: var(--cream); --accent: var(--cream);
}
.site-header .brand, .site-header .text-link,
.site-header nav a, .site-header nav a:hover, .site-header nav .active { color: var(--cream); }
.site-header nav .active { font-weight: 500; }
.site-header nav .active::after { background: var(--cream); }
.site-header .menu-toggle { background: rgb(var(--cream-rgb) / 0.0706); color: var(--cream); }
.site-header .menu-toggle .ui-icon { color: inherit; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }
.site-footer { background: var(--bg); color: var(--cream); }
.site-footer .footer-wordmark, .site-footer .footer-social, .site-footer .social-link { color: var(--cream); }
.site-footer .footer-social { gap: 28px; }
.site-footer .social-link { min-width: 72px; min-height: 72px; padding: 8px; }
.site-footer .social-link .brand-icon { width: 52px; height: 52px; }
@media (max-width: 760px) {
  .site-header nav { background: var(--bg); box-shadow: 0 16px 28px rgb(var(--black-rgb) / 0.2000); }
  .site-header nav a:hover, .site-header nav .active { background: rgb(var(--cream-rgb) / 0.0471); border-radius: 12px; }
  .site-footer .footer-social { width: auto; gap: 20px; }
  .site-footer .social-link { flex: 0 0 auto; min-width: 64px; min-height: 64px; }
  .site-footer .social-link .brand-icon { width: 48px; height: 48px; }
}

/* One section-heading scale; the hero retains its separate h1 hierarchy. */
:root {
  --section-title-size: clamp(46px, 5.1vw, 72px);
  --section-icon-size: clamp(32px, 4.3vw, 62px);
  --section-icon-gap: 14px;
  --bubble-duration: 360ms;
  --bubble-ease: cubic-bezier(.2, .8, .25, 1.3);
}
#encounters-title, #about-title, #music-title, #release-title {
  font-family: var(--display); font-size: var(--section-title-size);
  font-weight: 400; line-height: .98; 
  color: var(--cream); margin: 0; max-width: none;
}
.heading-emblem {
  width: fit-content; max-width: calc(100% - 2 * (var(--section-icon-size) + var(--section-icon-gap)));
  margin-inline: auto; position: relative;
}
.about-copy .about-heading {
  max-width: calc(100% - var(--section-icon-size) - var(--section-icon-gap));
  margin: 27px 0; text-align: left;
}
.release-heading .release-emblem { margin-bottom: 22px; }
.heading-emblem .section-symbol, .about .about-heading .portrait-star.section-symbol {
  width: var(--section-icon-size); height: var(--section-icon-size);
  top: 8px; bottom: auto; transform: none;
  left: calc(-1 * (var(--section-icon-size) + var(--section-icon-gap))); right: auto;
}
.about .about-heading .portrait-star.section-symbol, .release-emblem .release-symbol {
  left: auto; right: calc(-1 * (var(--section-icon-size) + var(--section-icon-gap)));
  transform: none;
}
.heading-emblem :is(#encounters-title, #about-title, #music-title, #release-title) { width: max-content; max-width: 100%; }
.about-copy .about-heading { width: max-content; }
.about-copy .about-intro {
  font-family: var(--heading); font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 400; line-height: 1.35; margin: 30px 0 20px;
}
.about-intro, .about-intro span { color: var(--cream); }
.hero .eyebrow { font-family: var(--heading); font-weight: 400; color: var(--cream); font-size: clamp(14px, 1.6vw, 22px); line-height: 1.5; letter-spacing: .025em; }
.about-story { font-family: var(--hand); font-style: italic; font-weight: 400; line-height: 1.85; }
.about-story p { font-size: clamp(18px, 1.4vw, 20px); color: var(--cream); }

/* Shared effervescence: gently inflate, then settle back without changing colors. */
body :is(button, .button, .text-link, summary, .social-link, .secret-reveal) {
  scale: 1; transform-origin: center;
  transition: scale var(--bubble-duration) var(--bubble-ease);
}
body .secret-reveal {
  transition: opacity 180ms ease, transform 180ms ease, scale var(--bubble-duration) var(--bubble-ease);
}
body :is(button, .button, .text-link, summary, .social-link, .secret-reveal):focus-visible {
  scale: 1.045;
}
@media (hover: hover) {
  body :is(button, .button, .text-link, summary, .social-link, .secret-reveal):not(:disabled):hover { scale: 1.045; }
}
body :is(button, .button, .text-link, summary, .social-link, .secret-reveal):not(:disabled):active { scale: .98; }
body button:disabled { scale: 1; }

.site-header nav a {
  --nav-accent-rgb: var(--blue-rgb);
  padding: 12px 16px; border-radius: 999px; scale: 1;
  transition: scale var(--bubble-duration) var(--bubble-ease), background-color var(--bubble-duration) ease;
}
.site-header nav a:hover, .site-header nav a:focus-visible {
  background: rgb(var(--nav-accent-rgb) / .18); scale: 1.045; border-radius: 999px;
}
.site-header nav a[href="#encuentros"] { --nav-accent-rgb: var(--red-rgb); }
.site-header nav a[href="#musica"] { --nav-accent-rgb: var(--yellow-rgb); }
.site-header nav a[href="#liberacion"] { --nav-accent-rgb: var(--pink-rgb); }
.site-header nav .active { background: rgb(var(--cream-rgb) / .06); border-radius: 999px; }
.site-header nav .active:hover, .site-header nav .active:focus-visible { background: rgb(var(--nav-accent-rgb) / .18); }
.site-header nav .active::after { bottom: 4px; }
@media (max-width: 1099px) and (min-width: 761px) {
  .site-header nav { gap: 8px; }
  .site-header nav a { padding-inline: 10px; }
}
@media (max-width: 760px) {
  :root { --section-title-size: clamp(32px, 6vw, 46px); --section-icon-size: 32px; --section-icon-gap: 10px; }
  .site-header nav .active::after { bottom: calc(50% - 2px); }
}
@media (max-width: 360px) { :root { --section-title-size: 29px; } }
@media (prefers-reduced-motion: reduce) {
  body :is(button, .button, .text-link, summary, .social-link, .secret-reveal), .site-header nav a { transition: none; }
  body :is(button, .button, .text-link, summary, .social-link, .secret-reveal):is(:hover, :focus-visible, :active), .site-header nav a:is(:hover, :focus-visible) { scale: 1 !important; }
}

/* Titan One stays at its native regular weight; Mali is reserved for reading. */
.site-header nav a, .site-header nav .active {
  font-family: var(--heading); font-weight: 400; font-size: 14px; letter-spacing: 0;
}
.stage-bottom h3 { font-family: var(--heading); font-weight: 400; font-size: 18px; line-height: 1.45; }
.button, .hero-actions .button, .text-link, .about summary, .menu-toggle,
.next-show .text-link, .code-field .button, .stem-buttons button,
.demo-access, .welcome-copy > .text-link, .mixer-controls > .text-link,
.curitas-page .site-header > .text-link, .curitas-mixer .mixer-heading .text-link,
.curitas-page .ar-preview summary {
  font-family: var(--heading); font-weight: 400; font-size: 18px; line-height: 1.35;
}
.segmented button { font-size: 16px; line-height: 1.4; }
.site-header .menu-toggle { font-size: 16px; }
.carousel-controls .circle-button {
  width: auto; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-size: 14px;
}
.hero-cue a { width: auto; font: 400 13px/1.4 var(--heading); padding: 10px 16px; border-radius: 999px; }
.release-form .phrase-button-short { display: none; }
.secret-message .secret-reveal { font-family: var(--heading); font-size: 16px; }
@media (max-width: 760px) {
  .site-header nav a { font-size: 16px; }
  .button, .hero-actions .button, .text-link, .about summary,
  .next-show .text-link, .code-field .button, .stem-buttons button,
  .curitas-page .site-header > .text-link { font-size: 16px; }
  .segmented button { font-size: 14px; padding-inline: 12px; }
  .release-form .button { width: auto; min-width: 76px; padding: 12px 16px; }
  .release-form .phrase-button-short { display: inline; font: 400 16px/1.35 var(--heading); }
  .hero-cue { flex-direction: column; justify-content: center; gap: 4px; }
  .hero-cue a { position: static; }
}
@media (max-width: 360px) {
  .segmented button { font-size: 12px; padding-inline: 10px; }
  .release-form input { padding-inline: 10px 4px; }
  .release-form .button { min-width: 68px; padding-inline: 12px; }
}

/* Backgrounds belong to their sections, with identical dark edges and fine dithering. */
.encounters::before, .about::before, .music::before, .music::after,
.message-wall::before, .curitas-welcome::before, .curitas-mixer::before { content: none; }
.encounters, .about, .curitas-welcome, .curitas-mixer {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter)));
}
.encounters { --wash-rgb: var(--red-rgb); --wash-strength: 12%; }
.about { --wash-rgb: var(--blue-rgb); --wash-strength: 15%; }
.music { --wash-rgb: var(--yellow-rgb); --wash-strength: 10%; }
.release-free { --wash-rgb: var(--pink-rgb); --wash-strength: 14%; }
.curitas-welcome, .curitas-mixer { --wash-rgb: var(--purple-rgb); --wash-strength: 22%; }
.encounters, .about, .music, .release-free, .curitas-welcome, .curitas-mixer {
  --wash: color-mix(in srgb, rgb(var(--wash-rgb)) var(--wash-strength), var(--black));
  background-color: var(--black);
  background-image: url('assets/section-grain.svg'),
    linear-gradient(180deg in oklab, var(--black) 0%, var(--wash) 48%, var(--black) 100%);
  background-size: 180px 180px, 100% 100%;
  background-repeat: repeat, no-repeat;
  background-blend-mode: soft-light, normal;
}
.curitas-page { background: var(--black); }
.curitas-steps { background: none; }

/* Secondary headings are Titan One; primary titles remain Modak. */
dialog .eyebrow { font-size: 14px; line-height: 1.5; letter-spacing: .035em; }
.album .album-meta .small-label { font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--cream); }
.stage-top > .small-label, .secret-art-note .small-label, .gift-strip .eyebrow { font-size: 12px; letter-spacing: .035em; }
.music .pill-card:focus-within { outline: none; }
.music .album-grid:focus-visible { outline: none; }
.music .album-open:focus-visible { outline: none; }
.music .album-open:focus-visible .album-arrow { box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--cream); }
.music .carousel-controls button:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }

/* Pending media stays neutral; expressive cutouts belong to the section scenery. */
.music .pill-card .cover-placeholder {
  display: grid; place-items: center; background: var(--purple); box-shadow: none;
}
.music .pill-card .cover-two { background: var(--pink); }
.music .pill-card .cover-three { background: var(--blue); }
.cover-placeholder > span { font: 400 13px/1.5 var(--hand); color: var(--cream); }
.encounters { overflow: clip; }
.encounters .section-heading, .encounters .next-show { position: relative; z-index: 2; }
.encounters .segmented { background: var(--black); }
.encounters .stage-placeholder {
  z-index: 1; width: min(100%, 980px); margin-inline: auto;
  background: color-mix(in srgb, var(--red) 20%, var(--black));
  border: 0; box-shadow: none; backdrop-filter: none;
}
.encounters .backstage.stage-placeholder { background: color-mix(in srgb, var(--blue) 24%, var(--black)); }
.encounters .stage-placeholder::after { content: none; }
.encounter-silhouettes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.encounter-silhouettes { --pose-height: min(59.565vw, 855.57px); --pose-top: calc(var(--moment-tab-y, 300px) - min(9.35vw, 134px)); }
.encounter-live {
  position: absolute; width: auto; max-width: none; height: var(--pose-height);
  left: -13vw; top: var(--pose-top); opacity: .52;
}
.encounter-quiet {
  position: absolute; right: -5%; top: var(--pose-top);
  width: auto; height: var(--pose-height); max-width: none;
  opacity: .52; filter: url(#quiet-silhouette-tint);
  transform: scaleX(-1); display: none;
}
.encounters:has(#tab-detras[aria-selected="true"]) .encounter-live { display: none; }
.encounters:has(#tab-detras[aria-selected="true"]) .encounter-quiet { display: block; }
@media (max-width: 760px) {
  .encounter-silhouettes { --pose-height: 102.885vw; --pose-top: calc(var(--moment-tab-y, 240px) - 16.15vw); }
  .encounter-live { left: -18vw; opacity: .28; }
  .encounter-quiet { right: -10vw; opacity: .42; }
}

@media (max-width: 480px) {
  .encounters .segmented { width: min(82%, 260px); padding: 4px; gap: 2px; }
  .encounters .segmented button { flex: 1; min-width: 0; padding: 8px; font-size: 12px; line-height: 1.35; min-height: 48px; }
}

/* ==========================================================================
   AUDITORÍA UX/UI · octubre 2026
   Cada bloque responde a un hallazgo del informe (AUDITORIA-UX-UI.md).
   Se agrega al final de la última capa para no reabrir la cascada anterior.
   ========================================================================== */
:root { --pink-strong: var(--pink); /* se usa la rosa de la paleta tal cual (ver informe: 4.28:1 con crema) */ }

/* H-03 · Contraste AA en controles con texto sobre color */
.encounters { --button-ink: var(--cream); }
.encounters .segmented button[aria-selected=true] { color: var(--cream); }
.release-form .primary, .secret-reveal, #verify-dialog .button.primary { background: var(--pink-strong); color: var(--cream); }

/* H-02 · Ningún texto por debajo de 12 px */
.tag, .stage-bottom .tag { font-size: 12px; letter-spacing: .08em; }
.stage-bottom p { font-size: 14px; }
.wall-heading, .wall-heading .small-label, .wall-heading span { font-size: 12px; letter-spacing: .1em; }
.message footer { font-size: 12px; letter-spacing: .08em; }
.music-footnote { font-size: 13px; }
.hero-cue .hand { font-size: 13px; }
.curitas-steps > div, .curitas-steps span, .curitas-steps p { font-size: 13px; }
.curitas-page .welcome-copy > .eyebrow { font-size: 12px; }

/* H-05 · El listado de canciones es información, no botones */
dialog .track-list li { background: none; border-radius: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border); }
dialog .track-list li:last-child { border-bottom: 0; }
.spotify-cta { margin-top: 6px; gap: 12px; }
.spotify-cta .ui-icon { width: 22px; height: 22px; }

/* Botón de álbum con contenido válido (sin div ni h3 dentro del botón) */
.album .album-name, .album .album-title { display: block; }
.album .album-title { font-family: var(--heading); font-size: 22px; line-height: 1.15; margin-top: 6px; color: var(--cream); }

/* H-01 · Control para pausar el video y las animaciones (WCAG 2.2.2) */
.hero-motion {
  position: absolute; z-index: 3; top: 22px; right: var(--gutter);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid rgb(var(--cream-rgb) / .28);
  background: rgb(var(--black-rgb) / .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--cream); font-family: var(--heading); font-size: 14px; line-height: 1;
}
.hero-motion .ui-icon { width: 16px; height: 16px; }
body .hero-motion:hover { scale: 1; background: rgb(var(--black-rgb) / .75); }

/* H-07 · Marca con zona táctil de 44 px */
.site-header .brand { display: inline-flex; align-items: center; min-height: 44px; }

/* H-08 · Menú móvil: estado visible y fondo atenuado */
@media (max-width: 760px) {
  /* El velo va detrás del header (z-index 20), así la marca y "Cerrar" no se apagan. */
  html.menu-open body::after { content: ''; position: fixed; inset: 0; z-index: 19; background: rgb(var(--black-rgb) / .6); }
  html.menu-open .site-header { z-index: 20; }
}

/* H-09 · Regla del muro visible + contador */
.phrase-entry .release-form { margin-bottom: 10px; }
.phrase-help {
  display: flex; justify-content: space-between; gap: 16px;
  width: min(580px, 100%); margin: calc(var(--line-gap, 12px) + 16px) auto 44px; padding-inline: 22px;
  font-size: 13px; color: var(--muted);
}
.char-count { font-variant-numeric: tabular-nums; }
.char-count.over { color: var(--yellow); }

/* H-11 · CURITAS: acciones secundarias alineadas al eje central */
.curitas-page .demo-access { margin: 4px auto 0; text-align: center; }

@media (max-width: 760px) {
  /* H-06 · Portada móvil: un solo eje, botones del mismo ancho, menos vacío */
  .hero { min-height: min(700px, calc(100svh - 76px)); padding-top: 80px; padding-bottom: 120px; justify-content: center; }
  .hero-actions { align-items: center; }
  .hero-actions .button { width: min(100%, 300px); }
  .hero-motion { top: 14px; padding: 8px 12px; font-size: 13px; }
  /* H-10 · Pestañas en una sola línea */
  .encounters .segmented { width: 100%; max-width: 420px; }
  .segmented button { flex: 1 1 0; font-size: 14px; line-height: 1.15; padding: 10px 8px; white-space: normal; }
  .hero-cue .hand { max-width: none; text-align: center; }
}
