/* Valoria Kids — estilos de la página */

/* ---------- Fuentes (archivos locales, licencia OFL) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("fredoka.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */

:root {
  /* Colores de la marca */
  --indigo: #141a33;
  --panel: #1f2749;
  --ambar: #ffb93b;
  --crema: #f5efe0;
  --blanco: #ffffff;

  /* Grises de apoyo: solo para bordes finos */
  --sandstone: #e0dbce;
  --stone-gray: #80827f;
  --hairline-mist: #d5d5d4;

  /* Colores con uso restringido */
  --verde-logro: #4ade80; /* solo para indicar que algo crece o se logra */
  --coral-riesgo: #ff6b5a; /* solo para riesgo o tentación; nunca en botones ni bordes */

  /* Texto secundario sobre índigo */
  --crema-suave: color-mix(in srgb, var(--crema) 80%, var(--indigo));

  /* Fuentes */
  --fuente-principal: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fuente-etiquetas: "Fredoka", "Archivo", system-ui, sans-serif;
  --ancho-titulos: 110%;
  --ancho-logo: 125%;

  /* Tamaños de texto: cuatro escalones claros */
  --t-display: clamp(3rem, 1rem + 7.6vw, 8rem);
  --t-h2: clamp(2.5rem, 1.2rem + 4.6vw, 5.5rem);
  --t-frase: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --t-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --t-cuerpo: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --t-etiqueta: 0.9375rem;

  /* Espacios y formas */
  --ancho-max: 1200px;
  --margen: clamp(16px, 4vw, 48px);
  --espacio-seccion: clamp(4.5rem, 2.5rem + 6vw, 9rem);
  --radio-hoja: clamp(32px, 5vw, 72px);
  --radio-tarjeta: clamp(28px, 4vw, 50px);
  --radio-pildora: 999px;
  --alto-cabecera: 5.5rem; /* barra fija de navegación más su margen */

  --curva-salida: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

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

html {
  color-scheme: light;
  scroll-padding-top: 6.5rem;
  scrollbar-color: var(--panel) var(--crema);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--crema);
  color: var(--indigo);
  font-family: var(--fuente-principal);
  font-size: var(--t-cuerpo);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--ambar);
}

::selection {
  background: var(--ambar);
  color: var(--indigo);
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-stretch: var(--ancho-titulos);
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

.tema-oscuro :focus-visible,
.nav :focus-visible {
  outline-color: var(--ambar);
}

.contenedor {
  width: min(100% - 2 * var(--margen), var(--ancho-max));
  margin-inline: auto;
}

.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: var(--margen);
  top: 0.75rem;
  z-index: 50;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radio-pildora);
  background: var(--indigo);
  color: var(--crema);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.saltar:focus {
  transform: none;
}

/* ---------- Franja de vista previa (quitar al publicar) ---------- */

.franja-vista-previa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  padding: 0.6rem var(--margen);
  background: var(--panel);
  color: var(--crema);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

.franja-vista-previa .etiqueta {
  font-size: 0.875rem;
}

/* ---------- Etiquetas (Fredoka) ---------- */

.etiqueta {
  display: inline-block;
  padding: 0.3em 0.9em;
  border-radius: var(--radio-pildora);
  background: var(--ambar);
  color: var(--indigo);
  font-family: var(--fuente-etiquetas);
  font-size: var(--t-etiqueta);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* ---------- Logo: "VALORIA" sobre "KIDS" ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.logo-valoria {
  color: var(--crema);
  font-family: var(--fuente-principal);
  font-size: 1em;
  font-weight: 800;
  font-stretch: var(--ancho-logo);
}

.logo-kids {
  margin-top: 0.03em;
  padding-left: 0.52em; /* compensa el espaciado final para centrar la palabra */
  color: var(--ambar);
  font-family: var(--fuente-etiquetas);
  font-size: 0.891em;
  font-weight: 600;
  letter-spacing: 0.52em;
}

/* ---------- Botones: el círculo con flecha es el detalle de marca ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.45em 0.45em 0.45em 1.4em;
  border-radius: var(--radio-pildora);
  font-family: var(--fuente-principal);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.boton-principal {
  background: var(--ambar);
  color: var(--indigo);
}

.boton-principal:hover {
  background: color-mix(in srgb, var(--ambar) 82%, var(--blanco));
}

.boton .icono {
  flex: none;
  width: 1.3em;
  height: 1.3em;
}

.boton-circulo {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  margin-left: 0.2em;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--crema);
}

.boton-circulo .icono {
  width: 1.1em;
  height: 1.1em;
}

/* En una hoja ámbar, el botón va en índigo con texto crema */
.hoja-ambar .boton-principal {
  background: var(--indigo);
  color: var(--crema);
}

.hoja-ambar .boton-principal .boton-circulo {
  background: var(--crema);
  color: var(--indigo);
}

@media (prefers-reduced-motion: no-preference) {
  .boton {
    transition:
      background-color 0.2s ease,
      transform 0.35s var(--curva-salida);
  }

  .boton-principal:hover {
    transform: translateY(-2px);
  }

  .boton-principal:active {
    transform: translateY(0);
  }

  .boton-circulo .icono {
    transition: transform 0.35s var(--curva-salida);
  }

  .boton:hover .boton-circulo .icono {
    transform: translateX(2px);
  }
}

/* ---------- Navegación en píldora ---------- */

.cabecera {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  margin-top: 0.75rem;
  padding-inline: var(--margen);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 1.4rem;
  border-radius: var(--radio-pildora);
  background: var(--indigo);
  color: var(--crema);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crema) 18%, transparent); /* se distingue sobre las hojas índigo */
}

.nav-logo {
  display: inline-flex;
  padding-block: 0.2rem;
  font-size: 1.25rem;
  text-decoration: none;
}

.nav-enlaces {
  display: none;
  gap: 0.25rem;
  padding: 0;
  list-style: none;
}

.nav-enlaces a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radio-pildora);
  color: var(--crema);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.nav-enlaces a:hover {
  background: var(--panel);
}

.nav .boton {
  min-height: 44px;
  padding: 0.3em 0.3em 0.3em 1.1em;
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .nav-enlaces {
    display: flex;
  }
}

/* ---------- Secciones y hojas ---------- */

.seccion {
  padding-block: var(--espacio-seccion);
}

/* Cada hoja es una sección completa con esquinas redondeadas que se monta sobre la anterior */
.hoja {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--radio-hoja));
  border-radius: var(--radio-hoja) var(--radio-hoja) 0 0;
}

.hoja-indigo {
  background: var(--indigo);
  color: var(--crema);
}

.hoja-ambar {
  background: var(--ambar);
  color: var(--indigo);
}

.hoja-crema {
  background: var(--crema);
}

.seccion h2 {
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.seccion h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.45;
}

/* Personajes que cruzan el borde de una hoja (decorativos) */
.cruce {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
}

.cruce-familias {
  --ancho: clamp(110px, 15vw, 230px);
  width: var(--ancho);
  top: calc(var(--ancho) * -0.78);
  right: max(var(--margen), calc(50% - var(--ancho-max) / 2));
  transform: rotate(8deg);
}

.cruce-preguntas {
  --ancho: clamp(140px, 19vw, 280px);
  width: var(--ancho);
  top: calc(var(--ancho) * -0.7);
  right: max(var(--margen), calc(50% - var(--ancho-max) / 2 - 1rem));
  transform: rotate(-6deg);
}

/* ---------- Portada ---------- */

.portada {
  padding-top: clamp(3.5rem, 2rem + 5vw, 7rem);
}

.portada-texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  text-align: center;
}

.portada h1 {
  font-size: var(--t-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.portada .lead {
  max-width: 40ch;
}

/* Subrayado ondulado de "jugando": se dibuja una vez y se queda quieto */
.subrayado {
  position: relative;
  display: inline-block;
}

.subrayado::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q10 0.5 20 6 T40 6' fill='none' stroke='%23FFB93B' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 0.5em 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .subrayado::after {
    animation: onda 1.6s var(--curva-salida) 0.3s both;
  }
}

@keyframes onda {
  from {
    clip-path: inset(0 100% 0 0);
    background-position-x: 1.5em;
  }
  to {
    clip-path: inset(0 0 0 0);
    background-position-x: 0;
  }
}

.escena-portada {
  position: relative;
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.escena-portada img,
.escena img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
}

.sticker {
  position: absolute;
  top: 4%;
  left: max(var(--margen), calc(50% - var(--ancho-max) / 2));
  z-index: 1;
  padding: 0.45em 1.15em;
  border: 3px solid var(--crema);
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
  transform: rotate(-5deg);
}

@media (min-width: 900px) {
  .escena-portada img {
    aspect-ratio: 1.9 / 1;
    object-fit: cover;
    object-position: 50% 55%;
  }
}

/* Movimiento 1: la escena queda fija y la hoja índigo la tapa (solo pantallas grandes) */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .escena-portada {
    position: sticky;
    top: calc(100vh - 100vw / 1.9);
    z-index: 0;
  }

  @supports (animation-timeline: view()) {
    .tramo-portada {
      timeline-scope: --hoja-que-sera;
    }

    #que-sera {
      view-timeline: --hoja-que-sera block;
    }

    .escena-portada::after {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--indigo);
      opacity: 0;
      pointer-events: none;
      -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
      mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
      animation: oscurecer linear both;
      animation-timeline: --hoja-que-sera;
      animation-range: entry 0% entry 100%;
    }
  }
}

@keyframes oscurecer {
  to {
    opacity: 0.45;
  }
}

/* ---------- Qué será (hoja índigo) ---------- */

.dos-columnas {
  display: grid;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}

.dos-columnas .texto {
  display: grid;
  gap: 1.25rem;
  max-width: 60ch;
}

.hoja-indigo .texto p:not(.lead) {
  color: var(--crema-suave);
}

@media (min-width: 900px) {
  .dos-columnas {
    grid-template-columns: 5fr 6fr;
    align-items: end;
  }
}

.aprendera {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  margin-top: var(--espacio-seccion);
  text-align: center;
}

/* Movimiento 2: un trazo ámbar une lo que aprenderán, como un camino */
.camino {
  position: relative;
  width: 100%;
  max-width: 980px;
  height: 660px;
  --y0: 8.33%;
  --dy: 16.67%;
}

.camino-trazo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.camino-trazo path {
  fill: none;
  stroke: var(--ambar);
  stroke-width: 34;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

.camino-escritorio {
  display: none;
}

.aprendizajes {
  position: absolute;
  inset: 0;
  padding: 0;
  list-style: none;
}

.aprendizajes li {
  --i: 0;
  --x: 50%;
  position: absolute;
  top: calc(var(--y0) + var(--i) * var(--dy));
  left: var(--x);
  width: max-content;
  max-width: 92%;
  padding: 0.55em 1.2em;
  border-radius: var(--radio-pildora);
  background: var(--crema);
  color: var(--indigo);
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem);
  font-weight: 700;
  font-stretch: var(--ancho-titulos);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  transform: translate(-50%, -50%) rotate(-1deg);
}

.aprendizajes li:nth-child(even) {
  transform: translate(-50%, -50%) rotate(1deg);
}

.aprendizajes li:nth-child(2) { --i: 1; }
.aprendizajes li:nth-child(3) { --i: 2; }
.aprendizajes li:nth-child(4) { --i: 3; }
.aprendizajes li:nth-child(5) { --i: 4; }
.aprendizajes li:nth-child(6) { --i: 5; }

@media (min-width: 900px) {
  .camino {
    height: 760px;
    --y0: 9.21%;
    --dy: 16.32%;
  }

  .camino-movil {
    display: none;
  }

  .camino-escritorio {
    display: block;
  }

  .camino-escritorio path {
    stroke-width: 46;
  }

  .aprendizajes li {
    --x: 28%;
    max-width: 46%;
  }

  .aprendizajes li:nth-child(even) {
    --x: 72%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .camino {
      view-timeline: --camino block;
    }

    .camino-trazo path {
      animation: dibujar linear both;
      animation-timeline: --camino;
      animation-range: cover 10% cover 60%;
    }
  }
}

@keyframes dibujar {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.aprendera .nota {
  max-width: 34ch;
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.45;
}

/* Una idea por pantalla: la meta ocupa su propio espacio */
.meta {
  display: grid;
  align-content: center;
  margin-top: var(--espacio-seccion);
  padding-bottom: 4rem; /* aire para el personaje que cruza el borde de la hoja siguiente */
}

@media (min-width: 900px) {
  .meta {
    min-height: min(70vh, 720px);
  }
}

.meta-texto {
  max-width: 18ch;
  font-size: var(--t-h2);
  font-weight: 800;
  font-stretch: var(--ancho-titulos);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.meta-etiqueta {
  color: var(--ambar);
}

/* ---------- Familias y colegios ---------- */

.apilado {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(2rem, 5vw, 5rem);
}

@media (min-width: 900px) {
  .apilado {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.publicos {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}

.publico {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: clamp(17rem, 34vh, 22rem);
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  border-radius: var(--radio-tarjeta);
}

.publico-familias {
  border: 1px solid var(--hairline-mist);
  background: var(--blanco);
}

.publico-colegios {
  background: var(--panel);
  color: var(--crema);
}

.publico .lead {
  font-weight: 600;
}

/* Movimiento 3: el título queda fijo y las tarjetas se apilan */
@media (prefers-reduced-motion: no-preference) {
  .publicos {
    padding-bottom: 6vh;
  }

  .publico {
    position: sticky;
    top: calc(var(--alto-cabecera) + 1rem + var(--i, 0) * 1.75rem);
  }

  .publico:nth-child(2) {
    --i: 1;
  }

  @media (min-width: 900px) {
    .apilado h2 {
      position: sticky;
      top: calc(var(--alto-cabecera) + 1rem);
    }
  }
}

.lista {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.lista li {
  position: relative;
  padding-left: 1.6em;
}

.lista li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.5em;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--ambar);
}

/* ---------- Personajes ---------- */

.personajes {
  padding-top: calc(var(--espacio-seccion) * 0.5); /* sigue el mismo fondo crema de la sección anterior */
}

.personajes h2 {
  text-align: center;
}

.personajes-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 1rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  padding: 0;
  list-style: none;
}

.personaje {
  flex: 0 1 46%;
  max-width: 230px;
}

.personaje figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.personaje img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.personaje figcaption {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
}

@media (min-width: 640px) {
  .personaje {
    flex-basis: 22%;
  }
}

@media (min-width: 1100px) {
  .personajes-lista {
    gap: 3rem 1.5rem;
  }

  .personaje {
    max-width: 280px;
  }

  .personaje:nth-child(even) {
    margin-top: 4rem;
  }
}

/* Los personajes llegan a su lugar al bajar por la página */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .personaje figure {
      animation: llegar linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }

    .personaje:nth-child(2) figure { animation-range: entry 6% cover 34%; }
    .personaje:nth-child(3) figure { animation-range: entry 12% cover 38%; }
    .personaje:nth-child(4) figure { animation-range: entry 18% cover 42%; }
    .personaje:nth-child(5) figure { animation-range: entry 24% cover 46%; }
    .personaje:nth-child(6) figure { animation-range: entry 30% cover 50%; }
    .personaje:nth-child(7) figure { animation-range: entry 36% cover 54%; }
  }
}

@keyframes llegar {
  from {
    transform: translateY(3rem) rotate(-6deg) scale(0.92);
  }
  70% {
    transform: translateY(-0.4rem) rotate(1deg) scale(1.01);
  }
  to {
    transform: none;
  }
}

/* ---------- Suscripción solidaria (hoja ámbar) ---------- */

.solidaria-tarjeta {
  display: grid;
  align-content: center;
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  padding-bottom: 4rem; /* aire para el personaje que cruza el borde de la hoja siguiente */
}

@media (min-width: 900px) {
  .solidaria-tarjeta {
    min-height: min(62vh, 620px);
  }
}

.solidaria-texto {
  max-width: 28ch;
  font-size: var(--t-frase);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

/* ---------- Preguntas frecuentes ---------- */

.preguntas-lista {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.pregunta {
  display: grid;
  gap: 0.6rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--hairline-mist);
  break-inside: avoid;
}

.pregunta p {
  max-width: 62ch;
}

@media (min-width: 1000px) {
  .preguntas-lista {
    columns: 2;
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
}

/* ---------- Cierre (hoja índigo) ---------- */

.cierre {
  padding-top: calc(var(--espacio-seccion) * 1.2);
  background: var(--indigo);
  color: var(--crema);
}

.cierre-texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  text-align: center;
}

.cierre h2 {
  font-size: var(--t-h2);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cierre .lead {
  color: var(--crema-suave);
}

.cierre .escena {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

@media (min-width: 900px) {
  .cierre .escena img {
    aspect-ratio: 2.2 / 1;
    object-fit: cover;
    object-position: 50% 35%;
  }
}

/* ---------- Pie ---------- */

.pie {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid var(--panel);
  background: var(--indigo);
  color: var(--crema);
}

.pie-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.pie-marca {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pie .logo {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  align-self: flex-start;
}

.pie p {
  max-width: 36ch;
  color: var(--crema-suave);
}

.pie-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration-color: var(--ambar);
}

.pie-instagram .icono {
  width: 1.4em;
  height: 1.4em;
  color: var(--ambar);
}
