/* Duende, elduende.app. Direccion A: Noche de cuento */

/* Letras servidas desde la propia web: ninguna visita pasa por Google */
@font-face { font-family: "Castoro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/castoro-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; }
@font-face { font-family: "Castoro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/castoro-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Castoro"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/castoro-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; }
@font-face { font-family: "Castoro"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/castoro-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ysabeau Office"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/ysabeau-office-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; }
@font-face { font-family: "Ysabeau Office"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/ysabeau-office-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noche-honda: #121a33;
  --noche: #233054;
  --oro: #d49234;
  --oro-vivo: #e2a850;
  --crema: #eed7c1;
  --papel: #fbf5ee;
  --papel-2: #f3e8da;
  --luz: #f6ecdf;
  --luz-suave: #c9cdda;
  --tinta: #233054;
  --tinta-suave: #4a5270;

  --f-titulo: "Castoro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-texto: "Ysabeau Office", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;

  --margen: clamp(20px, 5vw, 56px);
  --cab-alto: 72px;
  --seccion-y: clamp(5.5rem, 3.2rem + 8vw, 11rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--cab-alto) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--noche-honda);
  color: var(--luz);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
a { color: inherit; }

.solo-lectores {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--oro); color: var(--noche-honda);
  padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.papel :focus-visible, .papel-2 :focus-visible { outline-color: var(--noche); }

/* ---------- texto ---------- */

.titular {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(2.15rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
  font-kerning: normal;
}
.titular--mayor { font-size: clamp(2.45rem, 1.5rem + 3.3vw, 4.25rem); line-height: 1.04; }
.titular--portada { font-size: clamp(2.75rem, 1.2rem + 3.6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.024em; }
.titular--portada > span, .salto { display: block; }
.titular__cursiva { font-style: italic; letter-spacing: -0.01em; margin-top: 0.08em; color: var(--crema); }
.titular--discreto { font-size: clamp(1.8rem, 1.35rem + 1.4vw, 2.45rem); line-height: 1.12; }
.junto { white-space: nowrap; }

.debajo {
  margin-top: 1.4rem;
  font-size: clamp(1.075rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.62;
  max-width: 32em;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
.debajo--grande { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.34rem); max-width: 29em; margin-top: 1.6rem; }

.cabecera-seccion { text-align: center; max-width: 48rem; margin-inline: auto; }
.cabecera-seccion .debajo { margin-inline: auto; text-align-last: center; max-width: 34em; }

/* Cabecera partida: el titular a un lado, la explicacion al otro y la imagen grande debajo */
.cabecera-partida { max-width: 1040px; margin-inline: auto; }
@media (min-width: 900px) {
  .cabecera-partida { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: end; }
  .cabecera-partida .titular { font-size: clamp(2.15rem, 1.3rem + 2.1vw, 3.1rem); }
  .cabecera-partida .debajo { margin-top: 0; padding-bottom: 0.35rem; }
}
.escena-grande { position: relative; max-width: 1040px; margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; }

/* ---------- colores de seccion ---------- */

.noche-honda { background-color: var(--noche-honda); color: var(--luz); }
.noche { background-color: var(--noche); color: var(--luz); }
.noche .debajo, .noche-honda .debajo { color: var(--luz-suave); }
.papel { background-color: var(--papel); color: var(--tinta); }
.papel-2 { background-color: var(--papel-2); color: var(--tinta); }
.papel .debajo, .papel-2 .debajo { color: var(--tinta-suave); }

/* ---------- estructura ---------- */

.seccion {
  position: relative;
  padding-block: var(--seccion-y);
  overflow: hidden;
  overflow: clip;
}

.contenedor {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--margen), 1200px);
  margin-inline: auto;
}

.duo { display: grid; gap: clamp(3.25rem, 6vw, 6rem); align-items: center; }

@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr); gap: clamp(3.25rem, 5vw, 4.75rem); }
  .duo--inverso { grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); }
  .duo .titular { font-size: clamp(2.15rem, 1.3rem + 2.1vw, 3.1rem); }
  .duo--inverso > .copia { order: 2; }
}

/* ---------- botones y enlaces ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6em;
  border-radius: 999px;
  background: var(--oro);
  color: var(--noche-honda);
  font-family: var(--f-texto);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px -12px rgba(212, 146, 52, 0.7);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--oro-vivo); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  color: var(--luz);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(246, 236, 223, 0.35);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s ease;
}
.enlace-flecha:hover { text-decoration-color: var(--oro); }
.enlace-flecha svg { width: 16px; height: 16px; flex: none; }

/* ---------- cabecera ---------- */

.cab {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--cab-alto);
  background: rgba(18, 26, 51, 0.97);
  border-bottom: 1px solid rgba(246, 236, 223, 0.08);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.js .cab:not(.cab--solida) { background: transparent; border-bottom-color: transparent; }
.cab--solida { background: var(--noche-honda); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7); }

.cab__dentro {
  height: 100%;
  width: min(100% - 2 * var(--margen), 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--luz);
}
.marca__icono {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--crema);
  overflow: hidden;
}
.marca__icono img { width: 34px; height: 34px; display: block; margin-top: 3px; }
.marca__nombre { font-family: var(--f-titulo); font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }

.cab__nav { margin-left: auto; }
.cab__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.cab__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  color: var(--luz-suave);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s ease;
}
.cab__nav a:hover { color: var(--luz); }

@media (max-width: 899px) {
  :root { --cab-alto: 64px; }
  .cab__nav { display: none; }
}

/* ---------- cielo ---------- */

.cielo { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cielo::before, .cielo::after {
  content: "";
  position: absolute;
  inset: -10% 0;
  background-repeat: repeat;
}
.cielo::before {
  background-image:
    radial-gradient(circle at 8% 14%, rgba(246, 236, 223, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 23% 62%, rgba(246, 236, 223, 0.5) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 37% 28%, rgba(246, 236, 223, 0.65) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 52% 81%, rgba(246, 236, 223, 0.45) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 66% 9%, rgba(246, 236, 223, 0.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 79% 47%, rgba(246, 236, 223, 0.5) 0 0.9px, transparent 1.5px),
    radial-gradient(circle at 91% 73%, rgba(246, 236, 223, 0.7) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 44% 52%, rgba(246, 236, 223, 0.35) 0 0.7px, transparent 1.3px);
  background-size: 420px 340px;
}
.cielo::after {
  background-image:
    radial-gradient(circle at 17% 36%, rgba(238, 215, 193, 0.8) 0 1.2px, transparent 2px),
    radial-gradient(circle at 58% 18%, rgba(238, 215, 193, 0.6) 0 1px, transparent 1.8px),
    radial-gradient(circle at 83% 88%, rgba(238, 215, 193, 0.7) 0 1.2px, transparent 2px),
    radial-gradient(circle at 34% 90%, rgba(238, 215, 193, 0.5) 0 0.9px, transparent 1.6px);
  background-size: 610px 470px;
  background-position: 120px 60px;
}
.cielo--suave::before, .cielo--suave::after { opacity: 0.55; }

/* Las motas del cielo no se pegan a las letras: halo del color del fondo en las secciones lisas
   y mascara en las que llevan resplandor (portada y cierre) */
.noche :is(.titular, .debajo) { text-shadow: 0 0 3px var(--noche), 0 0 7px var(--noche), 0 0 12px var(--noche); }
.velada :is(.titular, .debajo), .buenas :is(.titular, .debajo) { text-shadow: 0 0 3px var(--noche-honda), 0 0 7px var(--noche-honda), 0 0 12px var(--noche-honda); }
.portada .cielo::before, .portada .cielo::after {
  -webkit-mask-image: linear-gradient(180deg, #000 0 11%, transparent 15% 57%, #000 64%);
  mask-image: linear-gradient(180deg, #000 0 11%, transparent 15% 57%, #000 64%);
}
@media (min-width: 900px) {
  .portada .cielo::before, .portada .cielo::after {
    -webkit-mask-image: linear-gradient(90deg, transparent 0 43%, #000 56%);
    mask-image: linear-gradient(90deg, transparent 0 43%, #000 56%);
  }
}
.cierre .cielo::before, .cierre .cielo::after {
  -webkit-mask-image: radial-gradient(ellipse 46% 30% at 50% 64%, transparent 62%, #000 100%);
  mask-image: radial-gradient(ellipse 46% 30% at 50% 64%, transparent 62%, #000 100%);
}

.fieltro {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: auto;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.luna {
  position: absolute;
  top: calc(var(--cab-alto) + 3%);
  right: 41%;
  width: clamp(54px, 6.5vw, 96px);
  rotate: -12deg;
  filter: drop-shadow(0 0 28px rgba(238, 215, 193, 0.28));
}
.luna--grande { top: 9%; right: 12%; width: clamp(78px, 10vw, 150px); filter: drop-shadow(0 0 48px rgba(238, 215, 193, 0.34)); }
@media (max-width: 899px) {
  .luna { right: var(--margen); width: 56px; }
  .luna--grande { top: 0.5rem; right: 6%; width: 48px; filter: drop-shadow(0 0 18px rgba(238, 215, 193, 0.3)); }
}

@media (prefers-reduced-motion: no-preference) {
  .fieltro { animation: titila 6s ease-in-out var(--t, 0s) infinite; }
  .cielo::after { animation: respira 7s ease-in-out infinite alternate; }
}
@keyframes titila {
  0%, 100% { opacity: 1; scale: 1; }
  50% { opacity: 0.55; scale: 0.84; }
}
@keyframes respira {
  from { opacity: 1; }
  to { opacity: 0.35; }
}

/* ---------- dispositivos ---------- */

.tablet, .movil, .monitor { container-type: inline-size; position: relative; }

.tablet__marco {
  position: relative;
  padding: 1.55cqw;
  border-radius: 3.3cqw;
  background: #0d1019;
  box-shadow:
    inset 0 0 0 0.22cqw #2d3242,
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 3.5cqw 7cqw -2.5cqw rgba(3, 6, 18, 0.7),
    0 1cqw 2cqw -0.5cqw rgba(3, 6, 18, 0.35);
}
.tablet__marco::before {
  content: "";
  position: absolute;
  top: 0.55cqw;
  left: 50%;
  width: 0.45cqw;
  height: 0.45cqw;
  translate: -50% 0;
  border-radius: 50%;
  background: #2a3040;
}
.tablet__marco img { display: block; width: 100%; height: auto; border-radius: 1.8cqw; }

.papel .tablet__marco, .papel-2 .tablet__marco {
  box-shadow:
    inset 0 0 0 0.22cqw #2d3242,
    0 3.5cqw 6cqw -3cqw rgba(35, 48, 84, 0.55),
    0 1cqw 2cqw -0.8cqw rgba(35, 48, 84, 0.3);
}

.tablet--brilla .tablet__marco {
  box-shadow:
    inset 0 0 0 0.22cqw #2d3242,
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 12cqw -1cqw rgba(150, 190, 255, 0.22),
    0 3.5cqw 7cqw -2.5cqw rgba(0, 0, 0, 0.75);
}

.movil__marco {
  position: relative;
  padding: 3cqw;
  border-radius: 15cqw;
  background: #0d1019;
  box-shadow:
    inset 0 0 0 0.7cqw #2d3242,
    0 8cqw 14cqw -8cqw rgba(35, 48, 84, 0.55),
    0 2cqw 4cqw -2cqw rgba(35, 48, 84, 0.3);
}
.movil__marco img { display: block; width: 100%; height: auto; border-radius: 12cqw; }
.movil--cortado .movil__marco { padding-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.movil--cortado .movil__marco img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.monitor__marco {
  position: relative;
  padding: 1.1cqw;
  border-radius: 1.5cqw;
  background: #0d1019;
  box-shadow:
    inset 0 0 0 0.18cqw #2d3242,
    0 3cqw 6cqw -3cqw rgba(35, 48, 84, 0.55);
}
.monitor__marco img { display: block; width: 100%; height: auto; border-radius: 0.5cqw; }
.monitor__pie {
  display: block;
  position: relative;
  width: 14%;
  height: 6cqw;
  margin: 0 auto;
  background: linear-gradient(90deg, #a9adb6, #d3d6dc 50%, #a9adb6);
}
.monitor__pie::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.1cqw;
  width: 230%;
  height: 1.2cqw;
  translate: -50% 0;
  border-radius: 1cqw 1cqw 0.4cqw 0.4cqw;
  background: linear-gradient(#c4c7ce, #9da1aa);
}

figcaption {
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
  color: var(--tinta-suave);
}

.fragmento {
  margin: 0;
  border-radius: clamp(14px, 1.5vw, 22px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.fragmento img { display: block; width: 100%; height: auto; }
.papel .fragmento, .papel-2 .fragmento { box-shadow: 0 26px 50px -24px rgba(35, 48, 84, 0.45), 0 0 0 1px rgba(35, 48, 84, 0.08); }

/* ---------- portada ---------- */

.portada {
  padding-top: calc(var(--cab-alto) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(5rem, 8vw, 7.5rem);
  background:
    radial-gradient(ellipse 70% 60% at 72% 30%, rgba(52, 70, 122, 0.55), transparent 70%),
    linear-gradient(180deg, #0f1630 0%, var(--noche-honda) 45%, #1a2548 100%);
}
.portada__rejilla { display: grid; gap: clamp(3.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .portada { min-height: min(100vh, 960px); display: flex; align-items: center; padding-bottom: clamp(7rem, 11vw, 10rem); }
  .portada__rejilla { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2.5rem, 4vw, 3.5rem); }
}
@media (min-width: 1200px) {
  .portada__rejilla { grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.44fr); }
}

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2.25rem; }

.portada__escena { position: relative; }
.tablet--portada { width: 100%; }
.portada__duende {
  position: absolute;
  z-index: 2;
  right: -10%;
  bottom: -33%;
  width: clamp(112px, 13vw, 196px);
}
.portada__duende img { display: block; width: 100%; height: auto; position: relative; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); }
@media (min-width: 900px) {
  /* mas a la derecha y mas abajo: con el tubo de arena, el paso que toca de Vega llega a la esquina */
  .portada__duende { right: -9%; bottom: -40%; }
  /* esta estrella, que en el movil va junto a la tablet, aqui caeria en la oreja del Duende */
  .portada .cielo .fieltro:nth-child(4) { left: 70%; top: 95%; }
}
.farol-luz {
  position: absolute;
  left: 13.3%;
  top: 71%;
  width: 190%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 112, 0.42) 0%, rgba(255, 170, 80, 0.16) 26%, rgba(255, 160, 70, 0) 58%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .farol-luz { animation: vela 4.5s ease-in-out infinite; }
}
@keyframes vela {
  0%, 100% { opacity: 1; scale: 1; }
  30% { opacity: 0.82; scale: 0.97; }
  55% { opacity: 0.95; scale: 1.02; }
  80% { opacity: 0.86; scale: 0.99; }
}

@media (max-width: 899px) {
  .portada .cielo .fieltro:nth-child(-n+2) { display: none; }
  .portada { padding-bottom: clamp(7.5rem, 33vw, 17rem); }
  .portada__texto { max-width: 36rem; }
  .portada__escena { margin-right: 4%; }
  .portada__duende { right: -6%; bottom: -54%; width: 25%; }
}
@media (max-width: 599px) {
  /* en el movil cada frase en dos lineas: la luna queda al lado de la primera, que es corta */
  .titular--portada { max-width: 7em; }
}

/* ---------- problema ---------- */

@media (min-width: 900px) {
  .duo--problema { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}
.problema .titular { font-size: clamp(2.05rem, 1.35rem + 2.35vw, 3.3rem); max-width: 17em; }
.problema__figura { position: relative; justify-self: center; width: min(50vw, 250px); }
.problema__duende { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 22px rgba(35, 48, 84, 0.22)); }
.problema__zapatos {
  position: absolute;
  left: -24%;
  bottom: 2%;
  width: 36%;
  rotate: -12deg;
  filter: drop-shadow(0 12px 12px rgba(35, 48, 84, 0.2));
}

/* ---------- dibujos ---------- */

.dibujos { padding-top: 0; }
.sendero {
  list-style: none;
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 2.5rem;
}
.sendero li {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.sendero img {
  width: clamp(76px, 11vw, 150px);
  height: clamp(76px, 11vw, 150px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 14px 14px rgba(35, 48, 84, 0.18));
}
.sendero span {
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
  color: var(--tinta);
}
@media (min-width: 700px) {
  .sendero li { width: 20%; }
}

/* ---------- tiempo ---------- */

.tiempo__detalles { position: relative; display: grid; }
.fragmento--salida { width: 84%; margin-left: auto; }
/* desde el tubo de arena la tarjeta de la hora de salir llega abajo del todo: el reloj se queda a su izquierda */
.fragmento--reloj { position: relative; z-index: 2; width: 86%; margin-top: clamp(-1.5rem, -2.5vw, -0.5rem); }

/* ---------- estrellas ---------- */

.estrellas { padding-top: clamp(1rem, 3vw, 3.5rem); }

.fragmento--estrella { margin-top: 2.25rem; width: min(100%, 340px); border-radius: 14px; }
.estrellas__figura { position: relative; justify-self: center; width: min(66vw, 350px); }
.halo {
  position: absolute;
  inset: 0 -30% 10%;
  background: radial-gradient(closest-side at 50% 36%, rgba(212, 146, 52, 0.26), rgba(212, 146, 52, 0));
  pointer-events: none;
}
.estrellas__duende { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.4)); }
.fieltro--suelta { z-index: 2; }

/* ---------- personajes ---------- */

/* El escenario: los cinco niveles del personaje elegido, de hecho un desastre a radiante */
.escenario { margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 1000px; position: relative; }
.escenario__quien {
  text-align: center;
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  line-height: 1.2;
  color: var(--tinta);
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.escenario__quien span { display: inline-block; transition: opacity 0.25s ease, translate 0.25s ease; }
.escenario.cambiando .escenario__quien span { opacity: 0; translate: 0 6px; }
.niveles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(0.3rem, 2vw, 2rem);
}
.niveles li { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.niveles img {
  display: block;
  height: clamp(112px, 22vw, 250px);
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 14px rgba(35, 48, 84, 0.18));
  transition: opacity 0.3s ease, translate 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.niveles li:nth-child(2) img { transition-delay: 0.04s; }
.niveles li:nth-child(3) img { transition-delay: 0.08s; }
.niveles li:nth-child(4) img { transition-delay: 0.12s; }
.niveles li:nth-child(5) img { transition-delay: 0.16s; }
.escenario.cambiando .niveles img { opacity: 0; translate: 0 12px; transition-delay: 0s; }
.escenario__suelo {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
  color: var(--tinta-suave);
}
.escenario__suelo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(35, 48, 84, 0) 0%, rgba(35, 48, 84, 0.18) 10%, rgba(35, 48, 84, 0.18) 90%, rgba(35, 48, 84, 0) 100%);
}
.escenario__suelo span { display: inline-flex; align-items: center; gap: 0.4rem; }
.escenario__suelo img { width: 18px; height: 18px; }

/* El armario: los duendes en baldas de fieltro, como juguetes en una estanteria */
.armario { margin: clamp(3.75rem, 8vw, 6rem) auto 0; max-width: 1060px; }
.armario__pista {
  text-align: center;
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--tinta-suave);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.baldas {
  --por-balda: 4;
  display: grid;
  grid-template-columns: repeat(var(--por-balda), minmax(0, 1fr));
  row-gap: clamp(1.9rem, 4vw, 2.6rem);
}
@media (min-width: 700px) { .baldas { --por-balda: 8; } }

.ficha {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 0 0.25rem;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ficha__figura {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: clamp(100px, 11vw, 142px);
  padding-bottom: 9px;
}
/* la balda: una tira de fieltro con su pespunte; las de una misma fila se juntan en una sola */
.ficha__figura::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 242, 0.75) 0 5px, transparent 5px 10px) 0 5px / 100% 1.5px no-repeat,
    linear-gradient(180deg, #e9d5bb 0%, #dcc09c 100%);
  box-shadow: 0 10px 14px -9px rgba(35, 48, 84, 0.45), inset 0 -2px 0 rgba(122, 84, 44, 0.16);
}
.ficha:nth-child(4n + 1) .ficha__figura::before { border-radius: 7px 0 0 7px; }
.ficha:nth-child(4n) .ficha__figura::before { border-radius: 0 7px 7px 0; }
@media (min-width: 700px) {
  .ficha:nth-child(4n + 1) .ficha__figura::before, .ficha:nth-child(4n) .ficha__figura::before { border-radius: 0; }
  .ficha:nth-child(8n + 1) .ficha__figura::before { border-radius: 7px 0 0 7px; }
  .ficha:nth-child(8n) .ficha__figura::before { border-radius: 0 7px 7px 0; }
}
.ficha__figura img {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: auto;
  max-width: 94%;
  object-fit: contain;
  object-position: bottom center;
  margin-bottom: -2px;
  rotate: var(--giro, 0deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 6px rgba(35, 48, 84, 0.2));
  transition: translate 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), rotate 0.3s ease;
}
.ficha:nth-child(3n + 1) { --giro: -2.5deg; }
.ficha:nth-child(3n + 2) { --giro: 1.5deg; }
.ficha:nth-child(5n) { --giro: 3deg; }
.ficha:hover .ficha__figura img { translate: 0 -6px; rotate: 0deg; }
.ficha[aria-pressed="true"] .ficha__figura img { translate: 0 -10px; rotate: 0deg; }
/* la estrella dorada que marca el elegido, cosida en la balda */
.ficha__figura::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -5px;
  width: 22px;
  height: 22px;
  translate: -50% 0;
  background: url("assets/img/estrella-48.webp?v=2f0b9795") center / contain no-repeat;
  filter: drop-shadow(0 3px 3px rgba(35, 48, 84, 0.3));
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.25s ease, scale 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.ficha[aria-pressed="true"] .ficha__figura::after { opacity: 1; scale: 1; }
.ficha__nombre {
  margin-top: 0.8rem;
  padding-inline: 0.15rem;
  font-family: var(--f-titulo);
  font-style: italic;
  font-size: clamp(0.9rem, 0.62rem + 0.55vw, 1.1rem);
  line-height: 1.15;
  color: var(--tinta-suave);
  transition: color 0.2s ease;
}
.ficha__pre { display: block; }
.ficha[aria-pressed="true"] .ficha__nombre, .ficha:hover .ficha__nombre { color: var(--tinta); }
.ficha:focus-visible { outline-offset: 4px; }
html:not(.armario-vivo) .armario__pista { visibility: hidden; }
html:not(.armario-vivo) .ficha { cursor: default; }

/* ---------- que ponerse ---------- */

.ropa__escena { position: relative; display: grid; place-items: center; min-height: clamp(300px, 30vw, 400px); width: min(100%, 520px); justify-self: center; }
.fragmento--tiempo { position: relative; z-index: 2; width: min(74%, 320px); }
.ropa__picto { position: absolute; height: auto; filter: drop-shadow(0 16px 14px rgba(35, 48, 84, 0.2)); }
.ropa__picto--abrigo { top: 0; left: 2%; width: clamp(88px, 12vw, 164px); rotate: -9deg; z-index: 1; }
.ropa__picto--sol { top: 4%; right: 6%; width: clamp(70px, 8.5vw, 118px); z-index: 1; }
.ropa__picto--corto { bottom: 0; right: 12%; width: clamp(84px, 10.5vw, 144px); rotate: 8deg; z-index: 3; }

/* ---------- lo de hoy ---------- */

/* la mitad de cada nino, escalonadas como los recortes del tiempo pero sin pisarse: la ficha de lo de hoy llega
   hasta abajo. Los dibujos caen en los huecos, cada uno junto a su nino: la pelota de la natacion arriba a la
   derecha y la mochila de la flauta en el hueco de debajo del nombre */
.hoy__detalles { position: relative; display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.fragmento--hoy { position: relative; z-index: 1; width: 88%; }
.fragmento--hoy-cole { position: relative; z-index: 2; width: 88%; margin-left: auto; }
.hoy__picto { position: absolute; z-index: 3; height: auto; filter: drop-shadow(0 16px 14px rgba(35, 48, 84, 0.2)); }
.hoy__picto--pelota { top: -0.25rem; right: -1%; width: clamp(54px, 6vw, 84px); rotate: 8deg; }
.hoy__picto--mochila { bottom: 0.5rem; left: 0; width: clamp(56px, 7vw, 96px); rotate: -9deg; }

/* ---------- semana ---------- */

/* La tablet sale por el borde de abajo: se ve la parte con contenido y no las columnas vacias */
.semana { padding-bottom: 0; }
.semana__escena { position: relative; max-width: 1000px; margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; }
.semana__ventana { aspect-ratio: 1000 / 305; min-height: 0; clip-path: inset(-14% -9% 0 -9%); }
.fragmento--semana { display: none; }
.asoma { position: absolute; height: auto; z-index: 3; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.35)); }
.asoma--tablet { left: 0; top: 22%; width: clamp(96px, 11vw, 150px); translate: -91% 0; }
@media (min-width: 760px) and (max-width: 1279px) { .asoma--tablet { display: none; } }
@media (max-width: 759px) {
  .semana { padding-bottom: var(--seccion-y); }
  .semana__ventana { display: none; }
  .fragmento--semana { display: block; width: 76%; margin-left: auto; }
  .asoma--tablet { left: 24%; top: 10%; width: 22%; }
}

/* ---------- comedor ---------- */

.comedor__escena { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
/* la recogida flota sobre el hueco de arriba de la pantalla de la tarde, sin tapar nada de lo que ensena */
.fragmento--recogida { position: absolute; z-index: 2; left: 41%; top: -9%; width: 25%; }
.comedor__pez { position: absolute; z-index: 2; left: -4%; top: -9%; width: clamp(64px, 9vw, 128px); height: auto; rotate: -10deg; filter: drop-shadow(0 16px 14px rgba(35, 48, 84, 0.22)); }
@media (max-width: 599px) {
  .fragmento--recogida { position: relative; left: auto; top: auto; width: 66%; margin: -0.5rem -3% 0 auto; }
}
@media (max-width: 899px) {
  .comedor__escena { margin-right: 4%; }
  .comedor__pez { left: -2%; top: -12%; }
}

/* ---------- la noche ---------- */

.velada__escena { position: relative; max-width: 1000px; margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; }
.velada__picto { position: absolute; z-index: 2; height: auto; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45)); }
.velada__picto--peli { left: -7%; top: -12%; width: clamp(60px, 8.5vw, 124px); rotate: -9deg; }
.velada__picto--palomitas { right: -6%; bottom: -16%; width: clamp(60px, 8.5vw, 120px); rotate: 8deg; }
@media (max-width: 1199px) {
  .velada__picto--peli { left: -2%; }
  .velada__picto--palomitas { right: -2%; }
}

/* ---------- buenas noches ---------- */

.buenas { padding-top: clamp(4rem, 6vw, 7rem); }
.buenas__escena { position: relative; display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
.buenas__resplandor {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(120vw, 820px);
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(92, 116, 186, 0.32), rgba(92, 116, 186, 0) 100%);
  pointer-events: none;
}
.buenas__duende { position: relative; width: min(78vw, 460px); height: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.45)); }

/* ---------- lo que dicen los estudios ---------- */

.estudios { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.estudios__cabecera { max-width: 46rem; margin-inline: auto; text-align: center; }
.estudios__cabecera .debajo { margin-inline: auto; text-align-last: center; max-width: 34em; font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem); }
.datos {
  list-style: none;
  margin: clamp(2.75rem, 5vw, 4rem) auto 0;
  padding: 0;
  max-width: 1040px;
  display: grid;
  gap: 2.25rem;
}
/* tres columnas solo cuando caben lineas largas; antes, una columna estrecha y centrada (el justificado no deja huecos) */
@media (min-width: 1100px) { .datos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); } }
.dato { padding-top: 1.2rem; border-top: 1px solid rgba(212, 146, 52, 0.5); }
.dato p { font-size: 1.02rem; line-height: 1.6; color: var(--luz-suave); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.dato strong { font-weight: 600; color: var(--luz); }
.dato .dato__fuente { margin-top: 0.85rem; font-size: 0.9rem; font-style: italic; color: #aab1c7; text-align: start; }
.estudios a { color: inherit; text-decoration: underline; text-decoration-color: rgba(246, 236, 223, 0.35); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.estudios a:hover { text-decoration-color: var(--oro); }
.estudios__pie {
  max-width: 1040px;
  margin: clamp(2.75rem, 5vw, 3.75rem) auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(246, 236, 223, 0.12);
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 1100px) { .estudios__pie { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 3.5rem); } }
@media (min-width: 820px) and (max-width: 1099px) { .datos, .estudios__pie { max-width: 38rem; } }
.estudios__aviso { font-size: 0.95rem; line-height: 1.6; color: var(--luz-suave); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.referencias { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.referencias p { font-size: 0.82rem; line-height: 1.55; color: #aab1c7; text-align: justify; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 819px) {
  .estudios { padding-block: 3.75rem; }
  .estudios__cabecera .debajo { margin-top: 1rem; }
  .datos { margin-top: 2rem; gap: 1.5rem; }
  .dato { padding-top: 0.9rem; }
  .dato p { font-size: 0.98rem; line-height: 1.55; }
  .dato .dato__fuente { margin-top: 0.5rem; }
  .estudios__pie { margin-top: 2rem; padding-top: 1.1rem; }
  .estudios__aviso { font-size: 0.9rem; }
  .referencias p { font-size: 0.78rem; line-height: 1.5; }
}

/* ---------- fin de semana ---------- */

.finde { padding-bottom: 0; }
.finde .copia { padding-bottom: clamp(1rem, 4vw, 4rem); }
.finde__pictos { display: flex; gap: 1.75rem; margin-top: 2.5rem; }
.finde__pictos img { width: clamp(70px, 7vw, 92px); height: auto; filter: drop-shadow(0 12px 12px rgba(35, 48, 84, 0.18)); }
.finde__pictos img:first-child { rotate: -8deg; }
.finde__pictos img:last-child { rotate: 5deg; }
.finde__movil { align-self: end; justify-self: center; width: min(74vw, 330px); }
@media (min-width: 900px) {
  .finde .duo { align-items: end; }
  .finde .copia { align-self: center; padding-block: var(--seccion-y); }
  .finde { padding-top: 0; }
  .finde__movil { margin-top: clamp(4rem, 7vw, 7rem); }
}
@media (max-width: 899px) {
  .finde .duo { gap: 3rem; }
}

/* ---------- llave ---------- */

.llave__escena .fieltro--suelta { filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.4)); }

/* ---------- panel ---------- */

.panel { padding-bottom: 0; }
.panel__moviles {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 4vw, 3.5rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  height: clamp(340px, 42vw, 560px);
  overflow: hidden;
}
.panel__moviles .movil { width: min(42vw, 300px); flex: none; }
.panel__moviles .movil:nth-child(2) { margin-top: clamp(2rem, 5vw, 4.5rem); }

/* ---------- pantallas ---------- */

/* la tablet de la cocina cae por debajo de la tele: solo pisa su borde de abajo, no la tarjeta del tiempo */
.pantallas__escena { position: relative; padding-bottom: 21%; }
.monitor { width: 86%; margin-left: auto; }
.monitor figcaption { margin-top: 1.9rem; }
.tablet--cocina { position: absolute; z-index: 2; left: 0; bottom: 0; width: 44%; }
.tablet--cocina figcaption { margin-top: 0.8rem; }

/* ---------- privacidad ---------- */

.privacidad .cabecera-seccion { max-width: 44rem; }
.asoma--borde { right: 0; top: 50%; width: clamp(92px, 12vw, 190px); translate: 0 -50%; z-index: 0; }
@media (max-width: 899px) {
  .asoma--borde { top: auto; bottom: 1.5rem; translate: 0 0; width: 96px; }
  .privacidad { padding-bottom: calc(var(--seccion-y) + 70px); }
}

/* ---------- preguntas ---------- */

.preguntas__rejilla { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .preguntas__rejilla { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .preguntas .titular { position: sticky; top: calc(var(--cab-alto) + 2rem); }
}
.acordeon { border-top: 1px solid rgba(35, 48, 84, 0.14); }
.acordeon details { border-bottom: 1px solid rgba(35, 48, 84, 0.14); }
.acordeon summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding: 1.35rem 0;
  cursor: pointer;
  font-family: var(--f-titulo);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  line-height: 1.25;
  color: var(--tinta);
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    linear-gradient(var(--tinta), var(--tinta)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--tinta), var(--tinta)) center / 1.6px 12px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(35, 48, 84, 0.2);
  transition: rotate 0.3s ease, background-color 0.3s ease;
}
.acordeon details[open] summary::after { rotate: 45deg; background-color: var(--crema); }
.acordeon summary:focus-visible { outline-offset: 4px; }
.acordeon details p {
  padding: 0 3.5rem 1.6rem 0;
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--tinta-suave);
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  max-width: 36em;
}
@media (max-width: 599px) { .acordeon details p { padding-right: 0.75rem; } }

/* ---------- cierre ---------- */

.cierre {
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(52, 70, 122, 0.55), transparent 72%),
    var(--noche-honda);
}
.cierre__dentro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cierre__duende { width: clamp(130px, 15vw, 200px); height: auto; margin-bottom: 2.25rem; filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.45)); }

/* ---------- pie ---------- */

.pie { background: var(--noche-honda); color: var(--luz-suave); border-top: 1px solid rgba(246, 236, 223, 0.08); padding-block: 2.75rem; }
.pie__dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pie__enlace { display: inline-flex; align-items: center; min-height: 44px; color: var(--luz); text-underline-offset: 0.3em; text-decoration-color: rgba(246, 236, 223, 0.35); }
.pie__enlace:hover { text-decoration-color: var(--oro); }

/* ---------- pagina no encontrada ---------- */

.perdida { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.perdida__dentro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.perdida .marca { margin-bottom: clamp(2rem, 5vw, 3rem); }
.perdida__duende { width: clamp(130px, 17vw, 190px); height: auto; margin-bottom: 1.75rem; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45)); }
.perdida .debajo { margin-inline: auto; text-align-last: center; max-width: 22em; }
.perdida .btn { margin-top: 2.25rem; }

/* ---------- movimiento ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 26px; transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s); }
  .js .reveal.visto { opacity: 1; translate: 0 0; }
  .js .portada__texto > * { animation: sube 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .portada__texto > :nth-child(2) { animation-delay: 0.12s; }
  .js .portada__texto > :nth-child(3) { animation-delay: 0.24s; }
  .js .portada__escena { animation: sube 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
}
@keyframes sube {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-parallax]:not(.cielo) { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .ficha__figura img, .ficha__figura::after, .acordeon summary::after, .escenario__quien span, .niveles img { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- impresion ---------- */

@media print {
  .js .reveal, .js .portada__texto > *, .js .portada__escena { opacity: 1 !important; translate: none !important; animation: none !important; }
  .cab { position: static; }
  .fieltro, .farol-luz { animation: none !important; }
}
