/* Un solo latido. Phone first: one column of at most 430 px. The desktop layout ("Cinema", from 1024 px) is one media query at the end. */

/* Montserrat, self-hosted: one variable latin-subset file covers weights 400–800 (OFL licence) */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-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 {
  --navy: #151a3d;
  --white: #fdfcf8;
  --yellow: #ffd23f;
  --red: #a63a22;
  --green: #1f6b4a;
  --blue: #1d5c96;
  --slate: #1c2230;
  --muted-dark: #4a4e68;
  --col: 430px;
  --rail: 32px; /* right gutter kept free of text for the dot rail */
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* ink follows the section under the middle of the screen (html[data-ink]) */
  --ink: var(--navy);
  --muted: var(--muted-dark);
  --hi: var(--navy);
}
html[data-ink="light"] { --ink: #ffffff; --muted: #d3d8e4; --hi: var(--yellow); }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #0b0d1f; /* outside the phone column on wider screens */
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
button { font-family: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
html[data-ink="dark"] :focus-visible { outline-color: var(--blue); }

/* ---------- Background layer ---------- */
.bg {
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  width: min(100%, var(--col));
  transform: translateX(-50%);
  background: var(--navy);
  z-index: -1;
}

/* ---------- Page and sections ---------- */
.page {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  overflow-x: clip;
}
.sec {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  padding-bottom: 24px;
}
/* Without JS there is no blended layer: give each section its own colours. */
.no-js .sec { background: var(--bg); }
.no-js .sec[data-ink="light"] { --ink: #fff; --muted: #d3d8e4; --hi: var(--yellow); }
.no-js .sec[data-ink="dark"] { --ink: var(--navy); --muted: var(--muted-dark); --hi: var(--navy); }

/* Section header pattern */
.sec-head {
  padding: 28px var(--rail) 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kicker { display: flex; align-items: center; gap: 12px; }
.num {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  color: #fff;
  background: var(--acc);
}
.label {
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acc);
}
.sec-head h2 { font-size: 28px; line-height: 1.14; font-weight: 800; }
.lead { font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--muted); }

/* ---------- Media boxes (still + silent clips) ---------- */
.media { position: relative; overflow: hidden; background: var(--slate); }
.media .still, .media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media video { opacity: 0; transition: opacity .3s linear; }
.media video.on { opacity: 1; }
.media video.top { z-index: 1; }

/* ---------- Cover ---------- */
.cover { overflow: hidden; padding-bottom: 32px; }
.cover-media {
  position: absolute; left: 0; right: 0; top: 0;
  height: 62%;
  background: var(--navy);
  will-change: transform, opacity;
}
.cover-media .still, .cover-media video { object-position: 30% 50%; }
.cover-fade {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 27%;
  background: linear-gradient(180deg, rgba(21, 26, 61, 0) 0%, var(--navy) 100%);
  z-index: 2;
}
.wordmark {
  position: absolute; top: 20px; left: 20px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px; font-weight: 800;
  letter-spacing: .02em;
}
.cover-text {
  position: relative; z-index: 3;
  margin-top: calc(56.6vh);
  margin-top: calc(56.6svh);
  padding: 0 var(--rail) 0 24px;
  display: flex; flex-direction: column; gap: 14px;
  color: #fff;
}
.cover h1 { font-size: 33px; line-height: 1.1; font-weight: 800; }
.cover-line { font-size: 21px; line-height: 1.3; }
.cover-hi { padding-left: 14px; font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--yellow); }
.btn-start {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 26px;
  background: var(--yellow);
  color: var(--navy);
  text-decoration: none;
  font-size: 16px; font-weight: 800;
}
.btn-start:focus-visible { outline-color: #fff; }

/* ---------- Cards ---------- */
.card {
  margin: 14px 20px 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card-light { background: var(--white); color: var(--navy); }
.card-navy { background: var(--navy); color: #fff; }
.card-media { aspect-ratio: 350 / 215; }
.card-body { padding: 16px 20px 20px; min-height: 96px; display: flex; flex-direction: column; gap: 8px; }
.card-body-tall { padding: 18px 20px 22px; min-height: 168px; }
.card-pad { padding: 20px; gap: 8px; min-height: 150px; margin-top: 20px; }
.card-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--yellow);
}
.card-line { font-size: 17px; line-height: 1.38; font-weight: 600; }
.card-line-lg { font-size: 19px; line-height: 1.34; }

/* ---------- 1 · La realidad ---------- */
.s-realidad { --acc: var(--hi); }
.s-realidad .num { color: var(--slate); background: var(--yellow); }
html[data-ink="dark"] .s-realidad .num { color: #fff; background: var(--navy); }
.tabs { display: flex; gap: 8px; padding: 0 20px; }
.tabs [role="tab"] {
  flex: 1;
  min-height: 48px;
  padding: 0 6px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
html[data-ink="light"] .tabs [role="tab"][aria-selected="true"] { border-color: #fff; }
.closing {
  padding: 20px var(--rail) 0 24px;
  font-size: 20px; line-height: 1.3; font-weight: 800;
  color: var(--hi);
}

/* ---------- 2 · Escuchar ---------- */
.s-escuchar { --acc: var(--green); }
.s-escuchar .sec-head { padding-bottom: 20px; }
.land { position: relative; aspect-ratio: 390 / 320; flex: none; }
.land .still, .land video { object-position: 55% 50%; }
.land .hot { z-index: 3; }
.hot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(21, 26, 61, .85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hot span { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.hot.is-on { background: var(--yellow); }
.hot.is-on span { background: var(--navy); }
/* Two-tone ring over the photo; the extra class beats html[data-ink] :focus-visible */
.land .hot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 9px var(--navy); border-radius: 50%; }
.hot:not(.seen)::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 3px solid #fff;
  animation: pulse 1.8s var(--ease) infinite;
  pointer-events: none;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.count {
  margin-top: auto;
  padding: 20px var(--rail) 0 24px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
}

/* ---------- 3 · La ciencia ---------- */
.s-ciencia { --acc: var(--blue); }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 20px;
}
.tl-line {
  position: absolute;
  left: calc(20px + (100% - 40px) / 8);
  right: calc(20px + (100% - 40px) / 8);
  top: 22px; height: 4px;
  background: #cfd3e3;
}
.timeline [role="tab"] {
  position: relative;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.timeline .dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  transition: background-color .2s, color .2s;
}
.timeline .is-done .dot { background: var(--navy); color: #fff; }
.timeline [aria-selected="true"] .dot { background: var(--yellow); color: var(--navy); }
.timeline .short { font-size: 12px; font-weight: 600; }
.timeline [aria-selected="true"] .short { font-weight: 800; }
.timeline [role="tab"]:focus-visible { outline-offset: 0; }
.s-ciencia .card { margin-top: 16px; }

/* ---------- 4 · Elegir ---------- */
.s-elegir { --acc: var(--red); }
.s-elegir .sec-head { padding-bottom: 20px; }
.compare {
  position: relative;
  height: 400px;
  flex: none;
  overflow: hidden;
  background: #1c1b22;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.cmp-under { object-position: 55% 50%; }
.cmp-over { object-position: 58% 50%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 4px; margin-left: -2px;
  background: #fff;
}
.cmp-tag {
  position: absolute;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
  pointer-events: none;
}
.cmp-tag-left { left: 12px; bottom: 12px; background: #1c1b22; color: #fff; }
.cmp-tag-right { right: 12px; top: 12px; background: var(--yellow); color: var(--navy); }
.cmp-controls {
  padding: 20px var(--rail) 0 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.cmp-controls label { font-size: 13px; font-weight: 700; }
.cmp-controls input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--red); cursor: pointer; }
.cmp-text { font-size: 17px; line-height: 1.4; }

/* ---------- Shared bits for sections 5–7 and the ending ---------- */
.sec-head .h-sm { font-size: 25px; line-height: 1.16; }
.sec-head .h-md { font-size: 27px; line-height: 1.15; }
.sec-head .h-lg { font-size: 30px; line-height: 1.12; }
.lead-lg { font-size: 19px; line-height: 1.3; font-weight: 400; }
.lead-plain { font-size: 16px; line-height: 1.4; font-weight: 400; }
.hint {
  padding: 16px var(--rail) 0 24px;
  font-size: 13px; font-weight: 600;
  color: var(--muted);
}
.card-media-tall { aspect-ratio: 350 / 230; }
.card-media-short { aspect-ratio: 350 / 180; }
.card-body-mid { padding: 18px 20px 22px; min-height: 132px; }
.card-line-md { font-size: 18px; line-height: 1.36; }
.card-title-blue { color: var(--blue); }

/* Tabs with a filled navy selection (sections 5 and 7) */
.tabs-navy [role="tab"] { border-color: var(--navy); color: var(--navy); background: var(--white); }
.tabs-navy [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
html[data-ink="light"] .tabs-navy [role="tab"][aria-selected="true"] { border-color: var(--navy); }

/* ---------- 5 · Actuar ---------- */
.s-actuar { --acc: var(--blue); }
.s-actuar .sec-head { padding-bottom: 18px; }
.s-actuar .card { margin-top: 16px; }

/* ---------- 6 · Juntos ---------- */
.s-juntos { --acc: var(--hi); }
.s-juntos .num { color: var(--navy); background: var(--yellow); }
html[data-ink="dark"] .s-juntos .num { color: #fff; background: var(--navy); }
.s-juntos .sec-head { gap: 10px; }
.map { aspect-ratio: 390 / 232; flex: none; overflow: hidden; }
/* .map is now a media box: its still and clips swap with the Juntos roles */
.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 20px 0;
}
.roles [role="tab"] {
  min-height: 48px;
  padding: 0 8px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.roles [role="tab"][aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
html[data-ink="light"] .roles [role="tab"][aria-selected="true"] { border-color: #fff; }
.card-roles { margin-top: 12px; padding: 18px 20px; min-height: 150px; }
.card-body-flat { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 7 · Lo que falta ---------- */
.s-falta { --acc: var(--red); }
.system { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.system-title { font-size: 13px; font-weight: 800; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.chips li {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  background: #f0e9d8;
  color: var(--navy);
  font-size: 12px; line-height: 1.3; font-weight: 700;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.share-wrap { padding: 14px 20px 0; }
.btn-share {
  width: 100%;
  min-height: 54px;
  border-radius: 27px;
  border: 0;
  font-size: 16px; font-weight: 800;
  cursor: pointer;
}
.btn-share-red { background: var(--red); color: #fff; }
.btn-share-red:focus-visible { outline-color: var(--navy); }
.share-status {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 13px; font-weight: 600;
  text-align: center;
  color: var(--muted);
}
.share-status:empty { min-height: 0; margin: 0; }

/* ---------- La fiesta ---------- */
.s-fiesta { padding-bottom: 0; }
.sec-head-plain { gap: 10px; padding-bottom: 18px; }
.s-fiesta .label { color: var(--hi); }
/* the bus moved to its own screen: centre the song and the lines in the fiesta screen */
.s-fiesta .sec-head-plain { margin-top: auto; }
/* Shared video player: the song and the four films (load on tap, with sound) */
.player {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex: none;
  background: #000;
}
.song { margin: 0 20px; }
.player .still, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player video { object-fit: contain; background: #000; }
.player-play {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.player-play svg { margin-left: 3px; }
.player-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 9px var(--navy); border-radius: 50%; }
.player-time {
  position: absolute; right: 10px; bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #141a3c;
  color: #fff;
  font-size: 12px; font-weight: 700;
}
.player.is-playing .still, .player.is-playing .player-play, .player.is-playing .player-time { display: none; }

/* Film cards woven into the story */
.film { padding: 24px 20px 0; display: flex; flex-direction: column; gap: 4px; }
.film-title { padding-right: 12px; margin-bottom: 8px; font-size: 20px; line-height: 1.2; font-weight: 800; }
/* Part 1 and the three act sections: one film each, centred in a full screen */
.s-acto { justify-content: center; padding-bottom: 40px; --acc: var(--hi); }
.s-acto .num { color: var(--navy); background: var(--yellow); }
html[data-ink="dark"] .s-acto .num { color: #fff; background: var(--navy); }
.s-acto .film { padding-top: 8px; }
.fiesta-lines { padding: 26px var(--rail) 0 24px; display: flex; flex-direction: column; gap: 6px; }
.fiesta-lines p { font-size: 24px; line-height: 1.22; font-weight: 800; }
.fiesta-lines .hi { color: var(--hi); }
.fiesta-actions { padding: 22px 20px 0; display: flex; gap: 10px; }
.btn-share-white { flex: 1; min-height: 52px; border-radius: 26px; background: #fff; color: var(--navy); font-size: 15px; }
.btn-outline {
  flex: 1;
  min-height: 52px;
  padding: 0 10px;
  border-radius: 26px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.btn-outline[hidden] { display: none; }
.share-status-light { color: #d5d9ee; padding: 0 20px; }
.bus[hidden] { display: none; }
.bus {
  position: relative;
  margin-top: auto;
  height: 210px;
  flex: none;
  overflow: hidden;
}
.bus img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 73%; }
.bus::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 60px;
  background: linear-gradient(180deg, #141a3c 0%, rgba(20, 26, 60, 0) 100%);
  z-index: 1;
}

/* ---------- Sound button (cover) ---------- */
.btn-sound {
  position: absolute; top: 20px; right: 20px;
  z-index: 3;
  display: flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--navy);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.btn-sound[hidden] { display: none; }
.btn-sound .snd-wave { display: none; }
.btn-sound[aria-pressed="true"] { background: var(--yellow); }
.btn-sound[aria-pressed="true"] .snd-wave { display: inline; }
.btn-sound[aria-pressed="true"] .snd-off { display: none; }
.btn-sound:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 7px #fff; }

/* ---------- Dot rail ---------- */
.rail {
  position: fixed;
  top: 50%;
  right: max(0px, calc((100vw - var(--col)) / 2));
  transform: translateY(-50%);
  z-index: 10;
  display: flex; flex-direction: column;
}
.rail button {
  /* 44px tall and spaced 44px apart, so no two targets overlap; 24px wide so the
     target stays in the right gutter and never covers tabs, cards or buttons. */
  width: 24px; height: 44px;
  margin: 0;
  padding: 0 6px 0 0;
  border: 0;
  background: transparent;
  display: flex; align-items: center; justify-content: flex-end;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rail button span {
  display: block;
  width: 10px; height: 10px;
  margin-right: 3px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  transition: width .2s, height .2s, margin .2s, background-color .2s;
}
.rail button[aria-current="true"] span {
  width: 16px; height: 16px;
  margin-right: 0;
  background: var(--yellow);
  border-width: 3px;
}
.rail button:focus-visible { outline: none; }
/* Two-tone ring (white + navy) reads on both the light and the dark sections */
.rail button:focus-visible span { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }

/* ---------- Reveal ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .in .rv { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hot:not(.seen)::after { animation: none; display: none; }
  .media video { transition: none; }
  .tabs [role="tab"], .timeline .dot, .rail button span { transition: none; }
}

/* ---------- Guía page (guia.html, hidden until supplied) ---------- */
.guia-body { background: var(--white); }
.guia {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--white);
  color: var(--navy);
}
.guia-top { padding: 20px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.guia-back {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px; font-weight: 700;
}
.guia-back:focus-visible, .guia-pdf:focus-visible { outline-color: var(--blue); }
.guia-mark { font-size: 14px; font-weight: 800; }
.guia-head { padding: 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.guia-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.guia-head h1 { font-size: 27px; line-height: 1.14; font-weight: 800; }
.guia-lead { font-size: 16px; line-height: 1.42; }
.guia-cards { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.guia-card { padding: 16px; border-radius: 14px; border: 2px solid var(--navy); display: flex; flex-direction: column; gap: 6px; }
.guia-card h2 { font-size: 16px; font-weight: 800; margin: 0; }
.guia-card p { font-size: 14px; line-height: 1.4; color: var(--muted-dark); }
.guia-foot { margin-top: auto; padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 10px; }
.guia-pdf {
  min-height: 56px;
  border-radius: 28px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.guia-pdf:disabled { opacity: .55; cursor: not-allowed; }
.guia-note { font-size: 12px; line-height: 1.4; color: var(--muted-dark); text-align: center; }

/* ---------- Floating sound toggle (after the cover) ---------- */
.sound-fab {
  position: fixed;
  /* bottom-right: the right gutter is kept free of text for the rail; the rail is vertically centred */
  right: max(6px, calc((100vw - var(--col)) / 2 + 6px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 11;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transition: opacity .25s, transform .25s;
}
.sound-fab[hidden] { display: none; }
.sound-fab.is-away { opacity: 0; transform: translateY(8px); pointer-events: none; }
.is-film .sound-fab { opacity: 0; pointer-events: none; }
.sound-fab .snd-wave { display: none; }
.sound-fab[aria-pressed="true"] { background: var(--yellow); }
.sound-fab[aria-pressed="true"] .snd-wave { display: inline; }
.sound-fab[aria-pressed="true"] .snd-off { display: none; }
.sound-fab:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 7px #fff; }
@media (prefers-reduced-motion: reduce) { .sound-fab { transition: none; } }

/* ---------- Footer logo ---------- */
.credits {
  padding: 28px 24px calc(36px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: center;
  background: #141a3c;
}
.credits img { width: 220px; height: auto; }
/* one <li> per logo, all the same height (UNICEF is 520×57 → 220 px wide) */
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 32px; }
.logos img { width: auto; height: 24px; }

/* ---------- Créditos: the bus and the logos, the last screen ---------- */
.s-creditos { justify-content: center; padding-bottom: 0; background: #141a3c; }
.s-creditos .bus { margin-top: 0; height: auto; aspect-ratio: 780 / 830; max-height: 70svh; }
.s-creditos .bus img { object-position: 50% 50%; }
.s-creditos .bus::before { display: none; }
.s-creditos .credits { padding-top: 32px; }

/* ---------- Share panel (all screens) ---------- */
.share-sheet {
  width: min(100%, 430px); max-width: 100%;
  margin: auto auto 0;
  padding: 0; border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--white); color: var(--navy);
}
.share-sheet::backdrop { background: rgba(11, 13, 31, .62); }
.share-box { padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; }
.share-title { font-size: 18px; font-weight: 800; text-align: center; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.share-list li[hidden] { display: none; }
.share-opt {
  width: 100%; min-height: 88px;
  padding: 6px 2px; border: 0; border-radius: 14px;
  background: transparent; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 700 13px Montserrat, system-ui, sans-serif; text-decoration: none; text-align: center;
  cursor: pointer;
}
.share-opt:hover { background: #f0ede4; }
.share-opt:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; }
.share-ico { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--navy); }
.share-whatsapp .share-ico { background: #1a8f4a; }  /* WhatsApp green, darkened for a 4.5:1 white glyph */
.share-facebook .share-ico { background: #0866ff; }
.share-instagram .share-ico { background: #c1356f; }
.share-msg { min-height: 1.3em; font-size: 14px; font-weight: 600; text-align: center; color: var(--muted-dark); overflow-wrap: anywhere; }
.share-msg:empty { min-height: 0; margin-top: -16px; }
.share-close {
  min-height: 50px; border-radius: 25px;
  border: 2px solid var(--navy); background: transparent; color: var(--navy);
  font: 800 15px Montserrat, system-ui, sans-serif; cursor: pointer;
}
.share-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (min-width: 640px) { .share-sheet { margin: auto; border-radius: 22px; width: 440px; } .share-box { padding-bottom: 22px; } }

/* 13 rail stops: on short screens tighten the 44px spacing so the rail still fits */
@media (max-height: 640px) {
  .rail button { height: 36px; }
}

/* ---------- Film pages: what the film shows + a line from its narration ---------- */
.film-notes { padding: 16px var(--rail) 0 20px; }
.film-notes-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--hi);
  margin-bottom: 6px;
}
.film-notes ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; }
.film-notes li { font-size: 14px; line-height: 1.35; color: var(--ink); }
.film-quote {
  margin: 14px var(--rail) 0 20px;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--yellow);
}
.film-quote p { font-size: 16px; line-height: 1.35; font-weight: 700; font-style: italic; color: var(--ink); }
.s-acto { justify-content: flex-start; }
.s-acto .sec-head { padding-top: 24px; padding-bottom: 12px; }

/* ---------- "Siguiente" at the bottom of every section ---------- */
.next-wrap {
  margin-top: auto;
  padding: 18px 20px 4px;
  display: flex; justify-content: center;
}
.btn-next {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  border: 2px solid currentColor;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px; font-weight: 800;
}
.btn-next:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
html[data-ink="light"] .btn-next:focus-visible { outline-color: var(--yellow); }
.s-creditos .next-wrap { display: none; }

/* ---------- Each swipe locks onto the next section ---------- */
html { scroll-snap-type: y mandatory; }
.sec { scroll-snap-align: start; scroll-snap-stop: always; }
/* the footer logo belongs to the last section */

/* ---------- Fit each section into one screen (snap scrolling) ---------- */
.sec { padding-bottom: 14px; }
.sec-head { padding-top: 22px; }
.next-wrap { padding: 10px 20px 0; }
.compare { height: clamp(280px, 42svh, 400px); }
.card-media-tall { aspect-ratio: 350 / 205; }
.card-media-short { aspect-ratio: 350 / 160; }
.s-falta .system { padding-top: 10px; }
.s-falta .share-wrap { padding-top: 10px; }
.btn-share { min-height: 48px; }

/* Short phones (e.g. 360×740): smaller type and media so a section still fits */
@media (max-height: 780px) {
  .sec-head { padding-top: 16px; padding-bottom: 10px; gap: 8px; }
  .sec-head h2, .sec-head .h-md, .sec-head .h-lg { font-size: 24px; }
  .sec-head .h-sm { font-size: 22px; }
  .lead, .lead-plain { font-size: 15px; }
  .lead-lg { font-size: 17px; }
  .card { margin-top: 10px; }
  .card-media { aspect-ratio: 350 / 185; }
  .card-media-tall { aspect-ratio: 350 / 180; }
  .card-media-short { aspect-ratio: 350 / 145; }
  .card-body, .card-body-mid, .card-body-tall { padding: 12px 16px 14px; min-height: 0; }
  .card-line, .card-line-md, .card-line-lg { font-size: 15px; }
  .card-pad, .card-roles { min-height: 0; padding: 14px 16px; }
  .land { aspect-ratio: 390 / 280; }
  .map { aspect-ratio: 390 / 200; }
  .closing { font-size: 17px; padding-top: 12px; }
  .film-notes li { font-size: 13px; }
  .film-quote p { font-size: 15px; }
  .compare { height: clamp(240px, 38svh, 360px); }
  .cmp-controls { gap: 8px; padding-top: 12px; }
  .cmp-text { font-size: 15px; }
  .timeline .dot { width: 42px; height: 42px; }
  .tl-line { top: 19px; }
  .roles { padding-top: 10px; }
  .roles [role="tab"], .tabs [role="tab"] { min-height: 44px; }
  .fiesta-lines p { font-size: 20px; }
  .bus { height: 170px; }
}

/* ---------- Dot rail: smaller, at the very edge, and out of the way when idle ---------- */
.rail { transition: opacity .35s ease; }
.rail button { width: 22px; padding-right: 4px; }
.rail button span { width: 8px; height: 8px; margin-right: 3px; border-width: 2px; }
.rail button[aria-current="true"] span { width: 13px; height: 13px; margin-right: 0; border-width: 2px; }
/* fades out a moment after scrolling stops, so it never sits on top of pictures or catches taps */
.rail.is-idle { opacity: 0; pointer-events: none; }
/* only keyboard focus keeps it visible (a tapped dot keeps focus too, which must not) */
.rail.is-idle:has(button:focus-visible) { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }

/* Far-away sections skip layout and paint until they come near (cheaper scrolling on low-end Android) */
.sec:not(.cover) {
  content-visibility: auto;
  /* placeholder = exactly one screen: 100svh minus the 14px bottom padding, so nothing shifts when a section draws */
  contain-intrinsic-size: auto calc(100vh - 14px);
  contain-intrinsic-size: auto calc(100svh - 14px);
}

/* =====================================================================
   Desktop · "Cinema" (approved 2026-11-16, direction B on the design canvas).
   From 1024 px wide every section is exactly one screen: its picture or film
   fills the screen and the words float over it. The phone layout above is
   untouched: everything below lives inside this one media query.
   ===================================================================== */
@media (min-width: 1024px) and (min-height: 600px) {
  :root {
    --gx: clamp(48px, 6.5vw, 112px);   /* side margin */
    --colw: clamp(420px, 36vw, 540px); /* the column of words */
    --top: 84px;                        /* room for the progress bar */
    --scrim: 11, 13, 31;
  }
  body { background: var(--navy); }
  .bg { left: 0; width: 100%; transform: none; }
  .page { max-width: none; }
  /* fade only: a transform on a revealing card would trap its full-screen picture inside the card */
  .js .rv { transform: none; }

  .sec {
    height: 100vh; height: 100svh; min-height: 0;
    overflow: hidden;
    padding: var(--top) 0 32px var(--gx);
    contain-intrinsic-size: auto 100vh;
    contain-intrinsic-size: auto 100svh;
  }

  /* ---- the column of words, floating over the picture ---- */
  .sec-head, .tabs, .timeline, .card, .closing, .count, .hint, .cmp-controls, .roles,
  .system, .share-wrap, .film-notes, .film-quote, .fiesta-lines, .fiesta-actions, .share-status {
    position: relative; z-index: 2;
    width: var(--colw);
    padding-left: 0; padding-right: 0;
    margin-left: 0; margin-right: 0;
  }
  .sec-head { padding-top: 0; padding-bottom: 18px; gap: 14px; }
  .sec-head h2, .sec-head .h-md { font-size: clamp(32px, 2.8vw, 42px); line-height: 1.1; }
  .sec-head .h-lg { font-size: clamp(36px, 3.3vw, 50px); line-height: 1.06; }
  .sec-head .h-sm { font-size: clamp(28px, 2.3vw, 36px); line-height: 1.14; }
  .lead, .lead-plain { font-size: 18px; line-height: 1.45; }
  .lead-lg { font-size: 22px; }
  .label { font-size: 14px; }
  .tabs [role="tab"], .roles [role="tab"] { min-height: 52px; font-size: 15px; }
  .closing { padding-top: 22px; font-size: 22px; }
  .hint { padding-top: 16px; font-size: 14px; }

  /* cards that held a picture: the picture leaves for the background, the text stays as a panel */
  /* z-index auto: a flex item with a z-index becomes its own layer and would lift the picture over the words */
  .card:has(> .card-media) { position: static; z-index: auto; background: none; overflow: visible; border-radius: 0; margin-top: 18px; }
  .card:has(> .card-media) > .card-body {
    position: relative; z-index: 2;
    min-height: 0;
    padding: 22px 26px 26px;
    border-radius: 18px;
  }
  .card-light:has(> .card-media) > .card-body { background: var(--white); }
  .card-navy:has(> .card-media) > .card-body { background: var(--navy); }
  .card-line, .card-line-md { font-size: 19px; line-height: 1.42; }
  .card-title { font-size: 13px; }

  /* ---- pictures that fill the screen ---- */
  .s-realidad .card-media, .map {
    position: absolute; inset: 0; z-index: 0;
    width: auto; aspect-ratio: auto; margin: 0; border-radius: 0;
  }
  /* light sections: the words sit straight on a darkened picture */
  .s-realidad .card-media::after, .map::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .7) calc(var(--gx) + var(--colw)), rgba(var(--scrim), .05) 80%),
      linear-gradient(180deg, rgba(var(--scrim), .55) 0, rgba(var(--scrim), 0) 140px);
  }
  /* cream sections: the picture fills the screen and fades to cream behind the words */
  .s-ciencia .card-media, .s-actuar .card-media, .s-falta .card-media {
    position: absolute; inset: 0; z-index: 0;
    width: auto; aspect-ratio: auto; margin: 0; border-radius: 0;
  }
  .s-ciencia .card-media::after, .s-actuar .card-media::after, .s-falta .card-media::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg,
      rgba(253, 252, 248, .97) 0%,
      rgba(253, 252, 248, .94) calc(var(--gx) + var(--colw) + 24px),
      rgba(253, 252, 248, 0) calc(var(--gx) + var(--colw) + 260px));
  }
  /* the words sit in the middle of the screen's height */
  .s-realidad, .s-ciencia, .s-actuar, .s-juntos, .s-falta { justify-content: center; padding-bottom: 76px; }
  .tl-line { left: calc(100% / 8); right: calc(100% / 8); }

  /* ---- "Siguiente": a pill in the bottom-right corner ---- */
  .next-wrap { position: absolute; z-index: 3; right: var(--gx); bottom: 28px; margin: 0; padding: 0; }
  .btn-next { min-height: 46px; padding: 0 22px; background: var(--white); color: var(--navy); border-color: var(--navy); font-size: 15px; }
  html[data-ink="light"] .btn-next:focus-visible { outline-color: var(--yellow); }

  /* ---- Portada ---- */
  .cover { padding: 0; justify-content: flex-end; }
  .cover-media { top: 0; bottom: 0; height: auto; z-index: 0; }
  .cover-media .still, .cover-media video { object-position: 50% 50%; }
  .cover-fade {
    top: 0; height: auto;
    background: linear-gradient(0deg, rgba(21, 26, 61, .96) 0%, rgba(21, 26, 61, .72) 30%, rgba(21, 26, 61, 0) 62%);
  }
  .wordmark { top: 32px; left: var(--gx); font-size: 15px; padding: 10px 14px; }
  .btn-sound { top: 28px; right: var(--gx); min-height: 46px; padding: 0 20px; font-size: 15px; }
  .cover-text {
    width: min(820px, 72vw);
    margin: 0;
    padding: 0 0 clamp(56px, 10vh, 104px) var(--gx);
    gap: 18px;
  }
  .cover h1 { font-size: clamp(48px, 5vw, 76px); line-height: 1.04; }
  .cover-line { font-size: clamp(20px, 1.7vw, 26px); }
  .cover-hi { padding-left: 0; font-size: 18px; }
  .btn-start { min-height: 58px; padding: 0 32px; border-radius: 29px; font-size: 18px; }

  /* ---- The four films: the film fills the screen ---- */
  .s-acto {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto;
    column-gap: clamp(40px, 5vw, 88px);
    align-items: end;
    padding: var(--top) var(--gx) 100px;
  }
  .s-acto .sec-head, .s-acto .film-notes, .s-acto .film-quote { width: auto; pointer-events: none; }
  .s-acto .sec-head { grid-column: 1; grid-row: 2 / 4; align-self: end; padding: 0; }
  .s-acto .sec-head .h-md { font-size: clamp(40px, 4vw, 58px); line-height: 1.05; }
  .s-acto .lead-plain { max-width: 620px; }
  .s-acto .film-notes { grid-column: 2; grid-row: 2; padding: 0; }
  .s-acto .film-quote { grid-column: 2; grid-row: 3; margin: 18px 0 0; }
  .film-notes-title { font-size: 13px; margin-bottom: 10px; }
  .film-notes ul { gap: 8px; }
  .film-notes li { font-size: 16px; line-height: 1.45; }
  .film-quote p { font-size: 19px; line-height: 1.4; }
  .s-acto .film { position: absolute; inset: 0; z-index: 0; padding: 0; }
  .s-acto .player, .s-fiesta .song { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
  .s-acto .film::after, .s-fiesta .song::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    transition: opacity .6s ease;
  }
  .s-acto .film::after {
    background: linear-gradient(0deg, rgba(var(--scrim), .95) 0%, rgba(var(--scrim), .72) 36%, rgba(var(--scrim), .1) 64%, rgba(var(--scrim), .5) 100%);
  }
  .s-acto .player-play, .s-fiesta .player-play { top: 42%; z-index: 2; width: 108px; height: 108px; margin: -54px 0 0 -54px; }
  .s-acto .player-play svg, .s-fiesta .player-play svg { width: 40px; height: 40px; }
  .s-acto .player-time, .s-fiesta .player-time { z-index: 2; top: calc(42% + 66px); bottom: auto; right: auto; left: 50%; transform: translateX(-50%); font-size: 14px; }
  /* while a film plays the words step aside (after a moment, so the title is still read) */
  .s-acto .sec-head, .s-acto .film-notes, .s-acto .film-quote, .s-acto .next-wrap,
  .s-fiesta .sec-head, .s-fiesta .fiesta-lines, .s-fiesta .fiesta-actions, .s-fiesta .next-wrap { transition: opacity .6s ease; }
  html.is-film .s-acto .film::after, html.is-film .s-fiesta .song::after { opacity: 0; }
  html.is-film .s-acto .sec-head, html.is-film .s-acto .film-notes, html.is-film .s-acto .film-quote, html.is-film .s-acto .next-wrap,
  html.is-film .s-fiesta .sec-head, html.is-film .s-fiesta .fiesta-lines, html.is-film .s-fiesta .fiesta-actions,
  html.is-film .s-fiesta .next-wrap {
    opacity: 0; pointer-events: none; transition-delay: 2.5s;
  }
  /* …and come back while the mouse moves over the film (js/app.js adds .show-words) */
  html.is-film .s-acto.show-words .sec-head, html.is-film .s-acto.show-words .film-notes, html.is-film .s-acto.show-words .film-quote,
  html.is-film .s-acto.show-words .next-wrap, html.is-film .s-fiesta.show-words .sec-head, html.is-film .s-fiesta.show-words .fiesta-lines,
  html.is-film .s-fiesta.show-words .fiesta-actions, html.is-film .s-fiesta.show-words .next-wrap {
    opacity: 1; transition-delay: 0s;
  }
  html.is-film .s-acto.show-words .next-wrap, html.is-film .s-fiesta.show-words .next-wrap,
  html.is-film .s-fiesta.show-words .fiesta-actions { pointer-events: auto; }
  html.is-film .s-acto.show-words .film::after, html.is-film .s-fiesta.show-words .song::after { opacity: 1; }
  /* a sideways trackpad swipe changes scene (js/app.js), never the browser's back/forward */
  html, body { overscroll-behavior-x: none; }

  /* ---- Escuchar: the landscape fills the screen, its signals stay on the right spots ---- */
  /* the box keeps the picture's own 16:9 shape and covers the screen, so % positions are picture positions */
  .land {
    position: absolute; z-index: 0;
    left: 50%; top: 50%;
    width: max(100vw, 177.9vh);
    aspect-ratio: 900 / 506;
    translate: -50% -50%;
  }
  .land .still, .land video { object-position: 50% 50%; }
  .land::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(253, 252, 248, .96) 0, rgba(253, 252, 248, .82) 20%, rgba(253, 252, 248, 0) 40%);
  }
  .hot { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-width: 4px; }
  .hot span { width: 16px; height: 16px; }
  /* phone positions are for a 390:320 crop; these are the same spots on the whole picture */
  .land .hot[data-vo="hot-viento"] { left: 34.2%; top: 20.6%; }
  .land .hot[data-vo="hot-rio"] { left: 72.1%; top: 55%; }
  .land .hot[data-vo="hot-temporada"] { left: 48.2%; top: 81.9%; }
  .s-escuchar .sec-head { position: absolute; top: var(--top); right: var(--gx); width: min(var(--colw), 40vw); }
  .s-escuchar .card { position: absolute; left: var(--gx); bottom: 104px; width: min(470px, 36vw); margin: 0; min-height: 0; padding: 24px 28px 28px; box-shadow: 0 14px 44px rgba(var(--scrim), .35); }
  .s-escuchar .card-line-lg { font-size: 22px; line-height: 1.38; }
  .s-escuchar .count {
    position: absolute; left: var(--gx); bottom: 52px; width: auto;
    margin: 0; padding: 8px 14px; border-radius: 999px;
    background: var(--white); color: var(--navy); font-size: 14px;
  }

  /* ---- Elegir: the two futures fill the screen ---- */
  .compare { position: absolute; inset: 0; z-index: 0; height: auto; }
  .compare::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, rgba(253, 252, 248, .97) 0, rgba(253, 252, 248, .9) 24%, rgba(253, 252, 248, 0) 46%);
  }
  .cmp-divider { z-index: 3; width: 4px; }
  .cmp-tag { z-index: 3; padding: 9px 14px; border-radius: 8px; font-size: 15px; }
  .cmp-tag-left { left: var(--gx); bottom: 36px; }
  .cmp-tag-right { right: var(--gx); top: calc(var(--top) + 4px); }
  .s-elegir .cmp-controls {
    position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
    width: min(600px, calc(100vw - 2 * var(--gx) - 520px));
    padding: 18px 26px 20px;
    gap: 8px;
    border-radius: 20px;
    background: rgba(253, 252, 248, .97);
    color: var(--navy);
    box-shadow: 0 14px 44px rgba(var(--scrim), .3);
  }
  .cmp-text { font-size: 16px; }

  /* ---- Juntos ---- */
  .roles { padding-top: 18px; }
  .card-roles { min-height: 0; margin-top: 14px; padding: 22px 26px 26px; }

  /* ---- Lo que falta ---- */
  .chips li { font-size: 13px; padding: 12px 10px; }
  .btn-share { min-height: 52px; }

  /* ---- La fiesta: the song fills the screen ---- */
  .s-fiesta { justify-content: flex-end; padding-bottom: 96px; }
  .s-fiesta .song { z-index: 0; }
  .s-fiesta .song::after {
    background:
      linear-gradient(90deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .6) calc(var(--gx) + var(--colw)), rgba(var(--scrim), 0) 75%),
      linear-gradient(0deg, rgba(var(--scrim), .7) 0, rgba(var(--scrim), 0) 40%);
  }
  .sec-head-plain { padding-bottom: 8px; }
  .fiesta-lines { padding-top: 12px; }
  .fiesta-lines p { font-size: clamp(26px, 2.2vw, 34px); }
  .fiesta-actions { width: min(360px, var(--colw)); padding-top: 26px; }
  .share-status-light { padding: 0; }

  /* ---- Créditos: the bus as a big picture in the middle, the logos under it ---- */
  .s-creditos { padding: var(--top) var(--gx) 40px; align-items: center; justify-content: center; }
  .s-creditos .bus { width: auto; height: calc(100vh - var(--top) - 190px); max-height: none; border-radius: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
  .s-creditos .credits { width: 100%; padding: 40px 0 0; }
  .logos { gap: 28px 48px; }
  .logos img { height: 30px; }

  /* ---- Progress bar across the top (the phone's dot rail, laid flat) ---- */
  .rail {
    top: 0; left: 0; right: 0;
    transform: none;
    flex-direction: row; gap: 6px;
    padding: 8px calc(var(--gx) + 64px) 18px var(--gx);
    background: linear-gradient(180deg, rgba(var(--scrim), .55), rgba(var(--scrim), 0));
  }
  html[data-ink="dark"] .rail { background: linear-gradient(180deg, rgba(253, 252, 248, .92), rgba(253, 252, 248, 0)); }
  .rail.is-idle { opacity: 1; pointer-events: auto; }   /* always there on a big screen */
  html.at-cover .rail { opacity: 0; pointer-events: none; }
  .rail button { position: relative; flex: 1; width: auto; height: 36px; padding: 0; justify-content: stretch; }
  .rail button span, .rail button[aria-current="true"] span {
    width: 100%; height: 4px; margin: 0;
    border: 0; border-radius: 2px;
    background: rgba(255, 255, 255, .32);
  }
  .rail button.is-done span { background: rgba(255, 255, 255, .8); }
  .rail button[aria-current="true"] span { background: var(--yellow); height: 6px; }
  html[data-ink="dark"] .rail button span { background: rgba(21, 26, 61, .2); }
  html[data-ink="dark"] .rail button.is-done span { background: rgba(21, 26, 61, .6); }
  html[data-ink="dark"] .rail button[aria-current="true"] span { background: var(--navy); }
  /* the section's name appears under its segment on hover or keyboard focus */
  .rail button::after {
    content: attr(aria-label);
    position: absolute; top: 34px; left: 50%; transform: translateX(-50%);
    padding: 5px 9px; border-radius: 6px;
    background: var(--navy); color: #fff;
    font-size: 12px; font-weight: 700; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .15s;
  }
  .rail button:hover::after, .rail button:focus-visible::after { opacity: 1; }
  .rail button:focus-visible span { outline: 3px solid var(--blue); outline-offset: 4px; box-shadow: none; }

  /* sound button: top-right, level with the progress bar */
  .sound-fab { top: 4px; bottom: auto; right: var(--gx); }
  .sound-fab.is-away { transform: translateY(-8px); }
}

/* Desktop screens that are not very tall (e.g. 1280×720 laptops) */
@media (min-width: 1024px) and (min-height: 600px) and (max-height: 820px) {
  :root { --top: 72px; }
  .sec-head { padding-bottom: 12px; gap: 10px; }
  .sec-head h2, .sec-head .h-md { font-size: clamp(28px, 2.4vw, 36px); }
  .sec-head .h-lg { font-size: clamp(32px, 2.8vw, 42px); }
  .sec-head .h-sm { font-size: clamp(24px, 2vw, 30px); }
  .lead, .lead-plain { font-size: 16px; }
  .lead-lg { font-size: 19px; }
  .card:has(> .card-media) { margin-top: 12px; }
  .card:has(> .card-media) > .card-body { padding: 16px 20px 18px; }
  .card-line, .card-line-md { font-size: 17px; }
  .closing { padding-top: 14px; font-size: 19px; }
  .s-acto { padding-bottom: 88px; }
  .s-acto .player-play, .s-fiesta .player-play { top: 36%; }
  .s-acto .player-time, .s-fiesta .player-time { top: calc(36% + 66px); }
  .s-acto .sec-head .h-md { font-size: clamp(34px, 3.4vw, 46px); }
  .film-notes li { font-size: 15px; }
  .film-quote p { font-size: 17px; }
  .s-escuchar .card { bottom: 96px; }
  .system { padding-top: 10px; }
  .chips li { padding: 9px 8px; }
}
