/* ========================================================================
   UPPER NANNIES · Hoja de estilos del sitio web
   ------------------------------------------------------------------------
   Mismos colores y tipografías que la Bitácora (bitacora.uppernannies.com)
   y que el manual de marca. Diseño móvil primero: las reglas base son para
   celular y los @media (min-width: …) agregan cambios para pantallas grandes.

   ÍNDICE
    1. Tipografías                  14. Planes
    2. Variables (colores, medidas) 15. Cómo funciona
    3. Base                         16. Por qué elegirnos
    4. Utilidades y accesibilidad   17. Banda de la Bitácora
    5. Barra de progreso            18. Testimonios
    6. Botones                      19. Preguntas frecuentes
    7. Barra superior y menú        20. Contacto y formularios
    8. Íconos dibujados a mano      21. Pie de página y WhatsApp
    9. Secciones y encabezados      22. Página "Trabaja con nosotras"
   10. Portada (inicio)             23. Página de metodología
   11. Cinta de valores             24. Páginas de gracias y 404
   12. Aparición al hacer scroll    25. Animaciones (@keyframes)
   13. Tarjetas y rejillas          26. Menos movimiento
   ======================================================================== */

/* ========================================================================
   1. TIPOGRAFÍAS
   Comfortaa (títulos) y Quicksand (subtítulos) vienen de Google Fonts.
   Glacial Indifference (textos) está en /fuentes con licencia libre OFL.
   ======================================================================== */

@font-face {
  font-family: 'Glacial Indifference';
  src: url('../fuentes/glacial-indifference-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Glacial Indifference';
  src: url('../fuentes/glacial-indifference-700.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}

/* ========================================================================
   2. VARIABLES
   Para cambiar un color o una medida en todo el sitio, cámbialo aquí.
   ======================================================================== */

:root {
  color-scheme: light;

  --fondo: #fff8f7;
  --superficie: #fff;
  --superficie-2: #fdeeed;
  --texto: #0b2550;
  --texto-suave: #4a5b7d;
  --borde: #f3dedd;
  --sombra: 0 1px 2px rgb(5 59 132 / 6%), 0 8px 28px rgb(5 59 132 / 9%);
  --sombra-alta: 0 2px 4px rgb(5 59 132 / 6%), 0 22px 48px rgb(5 59 132 / 16%);
  --coral: #f46c60;
  --coral-tinta: #b8382d;
  --coral-suave: #fde4e1;
  --amarillo: #ffd230;
  --amarillo-suave: #fff4c7;
  --amarillo-tinta: #856000;
  --marino: #053b84;
  --marino-suave: #e1ecfc;
  --rosa: #ffb5b3;
  --rosa-suave: #ffe9e8;
  --rosa-tinta: #b23a55;
  --turquesa: #0499b4;
  --turquesa-tinta: #03708a;
  --turquesa-suave: #d9f3f8;
  /* Igual que el botón "Ingresar" de la Bitácora: coral más oscuro para que el texto blanco se lea. */
  --boton: #d94f43;
  --boton-hover: #c4433a;

  /* Forma de "círculo dibujado a mano", como los de la marca. */
  --forma-organica: 46% 54% 52% 48% / 55% 45% 55% 45%;
  --radio: 24px;
  --titulos: 'Comfortaa', system-ui, sans-serif;
  --subtitulos: 'Quicksand', system-ui, sans-serif;
  --cuerpo: 'Glacial Indifference', system-ui, sans-serif;
  --ancho: 1160px;
  --alto-barra: 72px;
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  --rebote: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================================================
   3. BASE
   Estilos generales de la página, textos y títulos.
   ======================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-barra) + 12px);
  text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--marino);
}

h1,
h2,
h3 {
  font-family: var(--titulos);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 3.8rem);
}

h2 {
  font-size: clamp(1.75rem, 5.5vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

/* Ancho máximo del contenido, centrado, con margen de 20 px a los lados. */
.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ========================================================================
   4. UTILIDADES Y ACCESIBILIDAD
   .saltar: enlace "Saltar al contenido" para teclado y lectores de pantalla.
   .oculto: texto que solo leen los lectores de pantalla.
   ======================================================================== */

.saltar {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--marino);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
}

.saltar:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--turquesa);
  outline-offset: 3px;
}

.centrado {
  margin-top: 32px;
  text-align: center;
}

.oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ========================================================================
   5. BARRA DE PROGRESO
   Línea de colores arriba de la pantalla que avanza al leer (la mueve sitio.js).
   ======================================================================== */

.progreso {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 70;
  pointer-events: none;
}

.progreso span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--amarillo), var(--turquesa));
  transform: scaleX(var(--avance, 0));
  transform-origin: left;
  border-radius: 0 4px 4px 0;
}

/* ========================================================================
   6. BOTONES
   .boton es la base; .boton-principal (coral), -secundario (contorno),
   -marino y -amarillo cambian el color. .flecha avanza al pasar el cursor.
   ======================================================================== */

.boton {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s,
    transform 0.35s var(--suave),
    box-shadow 0.35s var(--suave);
}

/* Destello que cruza el botón al pasar el cursor. */

.boton::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--suave);
}

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

.boton:hover::after {
  transform: translateX(120%);
}

.boton:active {
  transform: translateY(0) scale(0.98);
}

.boton svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.boton .flecha {
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--suave);
}

.boton:hover .flecha {
  transform: translateX(4px);
}

.boton-principal {
  background: var(--boton);
  color: #fff;
  box-shadow: 0 8px 22px rgb(217 79 67 / 30%);
}

.boton-principal:hover {
  background: var(--boton-hover);
  box-shadow: 0 14px 30px rgb(217 79 67 / 36%);
}

.boton-secundario {
  background: var(--superficie);
  color: var(--marino);
  box-shadow: inset 0 0 0 2px var(--marino);
}

.boton-secundario:hover {
  background: var(--marino);
  color: #fff;
}

.boton-marino {
  background: var(--marino);
  color: #fff;
}

.boton-marino:hover {
  background: #042f6b;
  box-shadow: 0 10px 24px rgb(5 59 132 / 25%);
}

.boton-amarillo {
  background: var(--amarillo);
  color: var(--marino);
}

.boton-amarillo:hover {
  background: #ffc800;
}

.boton-ancho {
  width: 100%;
}

/* Enlace de texto con flecha, para "Conoce más…". */
.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-family: var(--subtitulos);
  font-weight: 700;
  color: var(--coral-tinta);
  text-decoration: none;
}

.enlace-flecha .flecha {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--suave);
}

.enlace-flecha:hover {
  text-decoration: underline;
}

.enlace-flecha:hover .flecha {
  transform: translateX(4px);
}

/* ========================================================================
   7. BARRA SUPERIOR Y MENÚ
   En celular el menú se despliega con el botón de tres rayitas;
   desde 960 px de ancho se muestra en línea.
   ======================================================================== */

.barra {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 248 247 / 82%);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.45s var(--suave),
    border-color 0.3s,
    box-shadow 0.3s;
}

.barra.con-borde {
  border-bottom-color: var(--borde);
  box-shadow: 0 6px 24px rgb(5 59 132 / 6%);
}

.barra.escondida {
  transform: translateY(-100%);
}

.barra-interior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--alto-barra);
}

.barra-logo img {
  height: 46px;
  width: auto;
  transition: transform 0.4s var(--rebote);
}

.barra-logo:hover img {
  transform: rotate(-3deg) scale(1.04);
}

.menu-boton {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--superficie);
  color: var(--marino);
  box-shadow: var(--sombra);
  cursor: pointer;
}

/* Tres rayitas que se convierten en una "×" al abrir el menú. */
.hamburguesa {
  position: relative;
  width: 22px;
  height: 16px;
}

.hamburguesa span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.6px;
  border-radius: 2px;
  background: currentcolor;
  transition:
    transform 0.4s var(--suave),
    opacity 0.2s,
    top 0.4s var(--suave);
}

.hamburguesa span:nth-child(1) {
  top: 0;
}

.hamburguesa span:nth-child(2) {
  top: 7px;
  width: 70%;
}

.hamburguesa span:nth-child(3) {
  top: 14px;
}

.barra.abierta .hamburguesa span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.barra.abierta .hamburguesa span:nth-child(2) {
  opacity: 0;
}

.barra.abierta .hamburguesa span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* Menú del celular: se "desenrolla" hacia abajo con clip-path. */
.navegacion {
  position: absolute;
  top: var(--alto-barra);
  left: 0;
  right: 0;
  background: var(--fondo);
  border-bottom: 1px solid var(--borde);
  box-shadow: 0 24px 32px rgb(5 59 132 / 12%);
  padding: 8px 20px 24px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 0.5s var(--suave),
    visibility 0s 0.5s;
}

.barra.abierta .navegacion {
  clip-path: inset(0 0 -40px 0);
  visibility: visible;
  transition:
    clip-path 0.5s var(--suave),
    visibility 0s;
}

.navegacion ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.navegacion li a {
  display: block;
  padding: 14px 4px;
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--texto);
  text-decoration: none;
  border-bottom: 1px solid var(--borde);
}

.navegacion .boton {
  width: 100%;
  font-size: 1.05rem;
}

@media (min-width: 960px) {
  .menu-boton {
    display: none;
  }

  .navegacion,
  .barra.abierta .navegacion {
    display: flex;
    align-items: center;
    gap: 16px;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    clip-path: none;
    visibility: visible;
  }

  .navegacion ul {
    display: flex;
    gap: 2px;
    margin: 0;
  }

  .navegacion li a {
    position: relative;
    padding: 8px 12px;
    border: 0;
    font-size: 1rem;
  }
  /* Subrayado que crece desde el centro. */
  .navegacion li a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 3px;
    border-radius: 3px;
    background: var(--coral);
    transform: scaleX(0);
    transition: transform 0.35s var(--suave);
  }

  .navegacion li a:hover::after {
    transform: scaleX(1);
  }

  .navegacion .boton {
    width: auto;
    min-height: 46px;
    padding: 8px 18px;
    font-size: 0.98rem;
  }

  .navegacion .boton svg {
    width: 18px;
    height: 18px;
  }
}

/* ========================================================================
   8. ÍCONOS DIBUJADOS A MANO
   Los dibujos viven en img/dibujos.svg. Cada trazo mide 100 (pathLength),
   así que con stroke-dasharray/offset de 100 se pueden "dibujar" con CSS.
   ======================================================================== */

.dibujo {
  width: 64px;
  height: 64px;
  overflow: visible;
}

/* ========================================================================
   9. SECCIONES Y ENCABEZADOS
   Espaciado de las secciones, etiquetas de color y la palabra resaltada.
   ======================================================================== */

.seccion {
  position: relative;
  padding-block: 72px;
}

@media (min-width: 768px) {
  .seccion {
    padding-block: 112px;
  }
}

.seccion-blanca {
  /* --fondo-seccion lo usan los elementos que se "recortan" contra el fondo (íconos de los pasos). */
  --fondo-seccion: var(--superficie);

  background: var(--superficie);
}

.encabezado-seccion {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.encabezado-seccion p {
  color: var(--texto-suave);
  font-size: 1.15rem;
  margin: 0;
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--turquesa-suave);
  color: var(--turquesa-tinta);
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Palabra resaltada con un trazo de marcador amarillo. */

.marca {
  background: linear-gradient(transparent 62%, rgb(255 210 48 / 70%) 62%, rgb(255 210 48 / 70%) 92%, transparent 92%)
    no-repeat 0 0 / 100% 100%;
  padding-inline: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1s var(--suave) 0.3s;
}

/* ========================================================================
   10. PORTADA (INICIO)
   Título con frase que cambia, botones, círculos de la marca y tarjetas flotantes.
   ======================================================================== */

.portada {
  position: relative;
  overflow: hidden;
  padding-block: 32px 56px;
  background: radial-gradient(60% 50% at 85% 20%, rgb(255 181 179 / 45%), transparent 70%),
    radial-gradient(50% 45% at 5% 90%, rgb(255 210 48 / 22%), transparent 70%),
    radial-gradient(40% 40% at 60% 100%, rgb(4 153 180 / 12%), transparent 70%), var(--fondo);
}

/* Rizos y estrellitas decorativos que flotan detrás del texto. */
.portada-fondo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flotante {
  position: absolute;
  opacity: 0.85;
  animation: flotar 9s ease-in-out infinite;
}

.f1 {
  width: 110px;
  height: 64px;
  left: -24px;
  top: 52%;
}

.f2 {
  width: 90px;
  height: 30px;
  right: 6%;
  top: 4%;
  animation-delay: -3s;
}

.f3 {
  width: 54px;
  height: 54px;
  left: 46%;
  top: 6%;
  animation-delay: -5s;
}

.f4 {
  width: 120px;
  height: 70px;
  right: -30px;
  bottom: 4%;
  animation-delay: -1.5s;
}

@media (max-width: 899px) {
  .f1 {
    top: auto;
    bottom: 3%;
    left: -40px;
  }

  .f3 {
    left: auto;
    right: 18px;
    top: 14px;
  }

  .f2 {
    display: none;
  }
}

.portada > .contenedor {
  position: relative;
}

.portada-rejilla {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.portada-texto > p {
  font-size: 1.25rem;
  color: var(--texto-suave);
  max-width: 36ch;
}

.portada .etiqueta {
  background: var(--superficie);
  color: var(--marino);
  box-shadow: var(--sombra);
}

.punto-vivo {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25d366;
}

.punto-vivo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulso 2s ease-out infinite;
}

/* Frase que va cambiando: "para tu familia / para tus hijos / para tu tranquilidad". */

.resaltado {
  position: relative;
  display: inline-block;
  color: var(--coral-tinta);
  padding-bottom: 0.12em;
}

.rotador {
  display: inline-grid;
}

.rotador span {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.js .rotador span {
  opacity: 0;
  animation: rotar 10.5s var(--suave) infinite;
}

.js .rotador span:nth-child(2) {
  animation-delay: 3.5s;
}

.js .rotador span:nth-child(3) {
  animation-delay: 7s;
}

.subrayado {
  position: absolute;
  left: 0;
  bottom: -0.08em;
  width: 100%;
  height: 0.32em;
  color: var(--amarillo);
}

.portada-botones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

/* Los tres círculos de la marca con el sol, el corazón y las tarjetas encima. */
.portada-ilustracion {
  position: relative;
  max-width: 400px;
  width: 92%;
  margin-inline: auto;
  aspect-ratio: 1;
}

.portada-ilustracion .circulos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.circulos .c {
  transform-box: fill-box;
  transform-origin: center;
  animation: respirar 7s ease-in-out infinite;
}

.circulos .c2 {
  animation-duration: 8s;
  animation-delay: -2s;
}

.circulos .c3 {
  animation-duration: 9s;
  animation-delay: -4s;
}

.dibujo-sol {
  position: absolute;
  width: 26%;
  height: auto;
  aspect-ratio: 1;
  left: 2%;
  top: 0;
  animation: mecer 6s ease-in-out infinite;
}

.dibujo-corazon {
  position: absolute;
  width: 18%;
  height: auto;
  aspect-ratio: 1;
  right: 0;
  bottom: 2%;
  animation: latir 1.8s ease-in-out infinite;
}

/* Tarjetas de vidrio esmerilado sobre los círculos. */
.tarjeta-flotante {
  position: absolute;
  background: rgb(255 255 255 / 95%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 20px;
  box-shadow: var(--sombra-alta);
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.35;
  animation: flotar 8s ease-in-out infinite;
}

.tarjeta-flotante strong {
  display: block;
  font-family: var(--subtitulos);
  color: var(--marino);
}

.tarjeta-bitacora-mini {
  left: 0;
  bottom: 12%;
  width: 64%;
  animation-delay: -4s;
}

.tarjeta-bitacora-mini .renglon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--texto-suave);
}

.tarjeta-bitacora-mini .punto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.tarjeta-verificada {
  right: 0;
  top: 30%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tarjeta-verificada .dibujo {
  width: 38px;
  height: 38px;
  flex: none;
}

@media (min-width: 640px) {
  .portada-botones {
    flex-flow: row wrap;
  }
}

@media (min-width: 900px) {
  .portada {
    padding-block: 72px 96px;
  }

  .portada-rejilla {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 48px;
  }

  .portada-ilustracion {
    max-width: 470px;
    width: 100%;
  }
}

/* Entrada de la portada al cargar la página. */

.js .entrada {
  animation: subir 0.9s var(--suave) both;
  animation-delay: calc(var(--i, 0) * 120ms + 100ms);
}

.js .portada-ilustracion {
  animation: aparecer 1.2s var(--suave) 0.3s both;
}

.js .tarjeta-verificada {
  animation:
    deslizar-izq 0.9s var(--rebote) 0.9s both,
    flotar 8s ease-in-out 1.8s infinite;
}

.js .tarjeta-bitacora-mini {
  animation:
    deslizar-der 0.9s var(--rebote) 1.1s both,
    flotar 8s ease-in-out 2s infinite;
}

.js .tarjeta-bitacora-mini .renglon {
  animation: subir 0.6s var(--suave) both;
  animation-delay: calc(var(--i) * 250ms + 1.6s);
}

.js .portada .dibujo,
.js .portada .subrayado,
.js .portada .flotante {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.js .portada .subrayado {
  animation: dibujar 1.2s var(--suave) 1s forwards;
}

.js .portada .flotante {
  animation:
    dibujar 2s var(--suave) 0.6s forwards,
    flotar 9s ease-in-out infinite;
}

.js .tarjeta-verificada .dibujo {
  animation: dibujar 1.4s var(--suave) 1.4s forwards;
}

.js .dibujo-sol {
  animation:
    dibujar 2s var(--suave) 0.8s forwards,
    mecer 6s ease-in-out 2.8s infinite;
}

.js .dibujo-corazon {
  animation:
    dibujar 1.6s var(--suave) 1.2s forwards,
    latir 1.8s ease-in-out 3s infinite;
}

/* ========================================================================
   11. CINTA DE VALORES
   Franja azul con texto que se desplaza sin fin (el contenido va repetido).
   ======================================================================== */

.cinta {
  overflow: hidden;
  background: var(--marino);
  color: #fff;
  padding-block: 16px;
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: -14px;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 30px rgb(5 59 132 / 18%);
}

.cinta-pista {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: desplazar 32s linear infinite;
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.cinta svg {
  width: 20px;
  height: 20px;
  color: var(--amarillo);
  flex: none;
}

.cinta svg:nth-of-type(3n + 2) {
  color: var(--rosa);
}

.cinta svg:nth-of-type(3n) {
  color: #7fd3e2;
}

/* ========================================================================
   12. APARICIÓN AL HACER SCROLL
   Todo lo que tiene data-revelar empieza oculto y aparece cuando sitio.js
   le agrega .visible. Solo aplica si hay JavaScript (clase .js en <html>).
   --i en el HTML escalona la aparición (0, 1, 2…).
   ======================================================================== */

.js [data-revelar] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--suave),
    transform 0.9s var(--suave);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.js [data-revelar].visible {
  opacity: 1;
  transform: none;
}

.js [data-revelar] .marca {
  background-size: 0% 100%;
}

.js [data-revelar].visible .marca {
  background-size: 100% 100%;
}

.js [data-revelar] .dibujo,
.js [data-revelar] .filtro-rizo {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.8s var(--suave);
  transition-delay: calc(var(--i, 0) * 110ms + 250ms);
}

.js [data-revelar].visible .dibujo,
.js [data-revelar].visible .filtro-rizo {
  stroke-dashoffset: 0;
}

/* ========================================================================
   13. TARJETAS Y REJILLAS
   Rejillas de 1, 2 o 3 columnas según el ancho, y la tarjeta blanca base.
   ======================================================================== */

.rejilla {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .rejilla-2,
  .rejilla-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .rejilla-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.tarjeta {
  position: relative;
  background: var(--superficie);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 30px 26px;
}

.seccion-blanca .tarjeta {
  background: var(--fondo);
  box-shadow: none;
  border: 1px solid var(--borde);
}

.js .tarjeta[data-revelar].visible {
  transition:
    opacity 0.9s var(--suave),
    transform 0.5s var(--suave),
    box-shadow 0.5s var(--suave),
    border-color 0.3s;
  transition-delay: calc(var(--i, 0) * 110ms), 0s, 0s, 0s;
}

@media (hover: hover) {
  .tarjeta.servicio:hover,
  .tarjeta.razon:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-alta);
    border-color: transparent;
    background: var(--superficie);
  }

  .tarjeta:hover .dibujo {
    animation: menear 0.8s var(--suave);
  }
}

/* ========================================================================
   14. PLANES
   Las tarjetas del Plan 1 y el Plan 2, con su precio, y el aviso de que se complementan.
   ======================================================================== */

.servicio {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
}

.servicio::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--color);
  transform-origin: left;
  transition: height 0.4s var(--suave);
}

.servicio:hover::before {
  height: 10px;
}

.servicio-dibujo {
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: var(--forma-organica);
  background: var(--suave);
}

/* Número grande "01" / "02" en la esquina, en el tono claro del servicio. */
.servicio-num {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--suave);
}

.servicio h3 {
  font-size: 1.4rem;
}

.servicio ul {
  margin: 4px 0 24px;
  padding: 0;
  list-style: none;
}

.servicio li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}

.servicio li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--suave)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.7 2.7L14 7.5' fill='none' stroke='%23053b84' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.servicio .boton {
  margin-top: 0;
}

.servicio-coral {
  --color: var(--coral);
  --suave: var(--coral-suave);
}

.servicio-turquesa {
  --color: var(--turquesa);
  --suave: var(--turquesa-suave);
}

.complementarios {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radio);
  background: linear-gradient(110deg, var(--amarillo-suave), var(--rosa-suave));
}

.complementarios .dibujo {
  width: 52px;
  height: 52px;
  flex: none;
}

.complementarios p {
  margin: 0;
}

/* En celular, el dibujo va arriba del texto para que este tenga todo el ancho. */
@media (max-width: 599px) {
  .complementarios {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* "Plan 1 · Pago único" / "Plan 2 · Mensual", arriba del título. */
.servicio-tipo {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--suave);
  color: var(--marino);
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Precio grande con la moneda y el periodo en chico. */
.precio {
  /* margin-top: auto empuja precio y botón hasta abajo, para que queden alineados en las dos tarjetas. */
  margin: auto 0 16px;
  font-family: var(--subtitulos);
  font-weight: 700;
  color: var(--texto-suave);
}

.precio strong {
  font-family: var(--titulos);
  font-size: 2.2rem;
  color: var(--marino);
}

.precio span {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--amarillo-suave);
  color: var(--amarillo-tinta);
  font-size: 0.85rem;
}

/* El servicio de continuidad (Plan 2) se resalta: es lo que distingue a Upper Nannies. */
.servicio-destacado {
  box-shadow:
    0 0 0 3px var(--coral),
    var(--sombra-alta);
}

.servicio-sello {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--marino);
  color: #fff;
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 0.85rem;
}

.tarjeta.servicio-destacado:hover {
  box-shadow:
    0 0 0 3px var(--coral),
    var(--sombra-alta);
}

/* Con el sello, el número grande se oculta para no encimarse. */
.servicio-destacado .servicio-num {
  display: none;
}

.cobertura {
  margin: 18px 0 0;
  text-align: center;
  color: var(--texto-suave);
  font-size: 1rem;
}

/* Metodología educativa: una tarjeta por etapa (edad). */
.etapa {
  text-align: center;
  border-top: 6px solid var(--color);
}

.etapa .dibujo {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
}

.etapa-edad {
  display: block;
  margin-bottom: 12px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--marino);
}

.etapa ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.etapa li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--suave);
  font-family: var(--subtitulos);
  font-weight: 700;
  color: var(--marino);
}

.etapa-amarillo {
  --color: var(--amarillo);
  --suave: var(--amarillo-suave);
}

.etapa-coral {
  --color: var(--coral);
  --suave: var(--coral-suave);
}

.etapa-turquesa {
  --color: var(--turquesa);
  --suave: var(--turquesa-suave);
}

/* ========================================================================
   15. CÓMO FUNCIONA
   En celular, pasos en columna unidos por una línea punteada;
   en computadora, cuatro columnas unidas por un camino ondulado.
   ======================================================================== */

.pasos-envoltura {
  position: relative;
}

.pasos-camino {
  display: none;
}

.pasos {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Línea punteada que une los pasos en celular. */

.pasos::before {
  content: '';
  position: absolute;
  left: 49px;
  top: 40px;
  bottom: 40px;
  border-left: 3px dashed var(--rosa);
}

.paso {
  position: relative;
  padding: 22px 22px 22px 108px;
  background: var(--superficie);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* Sobre fondo blanco, los pasos van en rosa clarito con borde. */
.seccion-blanca .paso {
  background: var(--fondo);
  box-shadow: none;
  border: 1px solid var(--borde);
}

.paso-icono {
  position: absolute;
  left: 16px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: var(--forma-organica);
  background: var(--c, var(--amarillo-suave));
  transition:
    transform 0.5s var(--rebote),
    box-shadow 0.4s var(--suave);
}

.paso-icono .dibujo {
  width: 48px;
  height: 48px;
}

.paso:nth-child(1) {
  --c: var(--turquesa-suave);
}

.paso:nth-child(2) {
  --c: var(--coral-suave);
}

.paso:nth-child(3) {
  --c: var(--rosa-suave);
}

.paso:nth-child(4) {
  --c: var(--amarillo-suave);
}

.paso-num {
  display: block;
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-tinta);
  margin-bottom: 2px;
}

.paso h3 {
  margin-bottom: 6px;
}

.paso p {
  margin: 0;
  color: var(--texto-suave);
}

.js .pasos-envoltura .paso {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--suave),
    transform 0.8s var(--suave);
  transition-delay: calc(var(--i) * 180ms + 200ms);
}

.js .pasos-envoltura.visible .paso {
  opacity: 1;
  transform: none;
}

.js .pasos-envoltura .dibujo {
  transition-delay: calc(var(--i) * 180ms + 500ms);
}

@media (min-width: 900px) {
  .pasos::before {
    display: none;
  }

  .pasos-camino {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 22px;
    width: 100%;
    height: 60px;
    fill: none;
    stroke: var(--rosa);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 2 3;
    overflow: visible;
  }

  .js .pasos-camino path {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2.2s var(--suave) 0.3s;
  }

  .js .pasos-envoltura.visible .pasos-camino path {
    clip-path: inset(0 0 0 0);
  }

  .pasos {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .paso {
    padding: 112px 24px 28px;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .paso-icono {
    left: 50%;
    top: 0;
    width: 96px;
    height: 96px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 10px var(--fondo-seccion, var(--fondo));
  }

  .seccion-blanca .paso {
    background: transparent;
    border: 0;
  }

  .paso-icono .dibujo {
    width: 60px;
    height: 60px;
  }
}

/* ---------- Proceso interactivo (página principal) ----------
   Sin JavaScript: cada paso muestra su detalle debajo.
   Con JavaScript (.interactivo): en celular, "Ver más" abre el detalle y el paso
   en pantalla se ilumina; en computadora, el detalle del paso activo aparece en
   el panel de abajo y el camino se llena hasta ese paso. */

.paso-detalle {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--c, var(--fondo));
  text-align: left;
}

.paso-detalle strong,
.proceso-panel strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--subtitulos);
  color: var(--marino);
}

.paso-detalle p,
.proceso-panel p {
  margin: 0;
  color: var(--texto);
}

/* Etiquetas en forma de píldora (lo que platicamos, los 5 filtros…). */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--superficie);
  color: var(--marino);
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 0.92rem;
}

.paso-mas,
.proceso-panel,
.proceso-pausa {
  display: none;
}

.paso-mas {
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--coral-tinta);
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.paso-mas .flecha {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--suave);
}

.paso.abierto .paso-mas .flecha {
  transform: rotate(90deg);
}

/* Celular: detalle con "Ver más" y línea vertical que se llena hasta el paso activo. */
@media (max-width: 899px) {
  .proceso.interactivo .paso-mas {
    display: inline-flex;
  }

  .proceso.interactivo .paso-detalle {
    display: none;
  }

  .proceso.interactivo .paso.abierto .paso-detalle {
    display: block;
    animation: subir 0.5s var(--suave);
  }

  /* La línea pasa por detrás de las tarjetas: se ve entre un paso y otro. */
  .proceso.interactivo .paso {
    z-index: 1;
  }

  .proceso.interactivo .pasos::after {
    content: '';
    position: absolute;
    left: 49px;
    top: 40px;
    width: 3px;
    height: calc((100% - 80px) * var(--avance, 0));
    border-radius: 3px;
    background: var(--coral);
    transition: height 0.8s var(--suave);
  }

  .proceso.interactivo .paso.activo .paso-icono {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 0 0 4px var(--coral);
  }
}

/* Computadora: panel con el detalle del paso activo y camino que se llena. */
@media (min-width: 900px) {
  .proceso.interactivo .paso-detalle {
    display: none;
  }

  .proceso.interactivo .paso {
    cursor: pointer;
  }

  /* Los pasos que no están activos se ven más tenues (el texto, no el ícono). */
  .proceso.interactivo .paso > :not(.paso-icono) {
    transition: opacity 0.4s;
  }

  .proceso.interactivo .paso:not(.activo) > :not(.paso-icono) {
    opacity: 0.5;
  }

  .proceso.interactivo .paso.activo .paso-icono {
    transform: translateX(-50%) scale(1.15);
    box-shadow:
      0 0 0 10px var(--fondo-seccion, var(--fondo)),
      0 0 0 14px var(--coral);
  }

  .proceso.interactivo .paso.activo h3 {
    color: var(--coral-tinta);
  }

  .proceso .camino-avance {
    stroke: var(--coral);
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--avance, 0) * 100);
    transition: stroke-dashoffset 0.9s var(--suave);
  }

  .proceso.interactivo .proceso-panel {
    display: block;
    max-width: 760px;
    min-height: 120px;
    margin: 28px auto 0;
    padding: 22px 26px;
    border-radius: var(--radio);
    background: var(--c, var(--fondo));
    text-align: center;
    transition:
      opacity 0.18s,
      transform 0.18s,
      background-color 0.4s;
  }

  .proceso-panel .chips {
    justify-content: center;
  }

  .proceso-panel.cambiando {
    opacity: 0;
    transform: translateY(6px);
  }

  .proceso.interactivo .proceso-pausa {
    display: block;
    margin: 12px auto 0;
    padding: 4px 12px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--texto-suave);
    font-family: var(--subtitulos);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .proceso.interactivo .proceso-pausa:hover {
    background: var(--superficie-2);
  }
}

/* ========================================================================
   16. POR QUÉ ELEGIRNOS
   Tarjetas de razones y el recuadro azul "Así elegimos a nuestras niñeras".
   ======================================================================== */

.razon .dibujo {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.razon h3 {
  font-size: 1.3rem;
}

.razon p {
  margin: 0;
  color: var(--texto-suave);
}

/* Mancha de color en la esquina que crece al pasar el cursor. */
.razon::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: var(--forma-organica);
  background: var(--s);
  opacity: 0.6;
  transition: transform 0.6s var(--suave);
  z-index: 0;
}

.razon {
  overflow: hidden;
}

.razon > * {
  position: relative;
  z-index: 1;
}

.razon:hover::after {
  transform: scale(1.6) rotate(20deg);
}

.razon-1 {
  --s: var(--marino-suave);
}

.razon-2 {
  --s: var(--turquesa-suave);
}

.razon-3 {
  --s: var(--coral-suave);
}

.razon-4 {
  --s: var(--rosa-suave);
}

.razon-5 {
  --s: var(--amarillo-suave);
}

.razon-6 {
  --s: var(--turquesa-suave);
}

/* Recuadro azul con brillos turquesa y coral. */
.filtro {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 36px 24px;
  border-radius: 32px;
  background: radial-gradient(60% 80% at 100% 0%, rgb(4 153 180 / 35%), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgb(244 108 96 / 25%), transparent 60%), var(--marino);
  color: #fff;
}

.filtro-rizo {
  position: absolute;
  right: -10px;
  top: 14px;
  width: 140px;
  height: 82px;
  opacity: 0.9;
}

.filtro h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  max-width: 80%;
}

.filtro > p {
  color: #d6e3f7;
}

.filtro ol {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: filtro;
}

.filtro li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 10%);
  transition: background-color 0.3s;
}

.filtro li:hover {
  background: rgb(255 255 255 / 14%);
}

.filtro li::before {
  counter-increment: filtro;
  content: counter(filtro);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--forma-organica);
  flex: none;
  background: var(--amarillo);
  color: var(--marino);
  font-family: var(--titulos);
  font-weight: 700;
}

.js .filtro li {
  opacity: 0;
  transform: translateX(-16px);
  transition:
    opacity 0.6s var(--suave),
    transform 0.6s var(--suave),
    background-color 0.3s;
  transition-delay: calc(var(--i) * 120ms + 400ms), calc(var(--i) * 120ms + 400ms), 0s;
}

.js .filtro.visible li {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .filtro {
    padding: 52px;
  }

  .filtro ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .filtro-rizo {
    right: 40px;
    top: 36px;
    width: 180px;
    height: 105px;
  }
}

@media (min-width: 1000px) {
  .filtro ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================================================
   17. BANDA DE LA BITÁCORA
   Ondas de colores como la portada de la app y dos capturas reales de la Bitácora.
   ======================================================================== */

.banda-bitacora {
  position: relative;
  overflow: hidden;
  background: var(--amarillo);
}

.banda-bitacora .ondas-fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.onda {
  transform-origin: top;
  animation: ondear 10s ease-in-out infinite;
}

.o2 {
  animation-delay: -2.5s;
}

.o3 {
  animation-delay: -5s;
}

.o4 {
  animation-delay: -7.5s;
}

.banda-bitacora .contenedor {
  position: relative;
  display: grid;
  gap: 40px;
  place-items: center center;
  padding-block: 72px;
}

.banda-tarjeta {
  background: rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--texto);
  border-radius: 32px;
  padding: 34px 26px;
  box-shadow: 0 24px 60px rgb(5 59 132 / 25%);
  max-width: 560px;
  width: 100%;
}

.banda-tarjeta ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.banda-tarjeta li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.banda-tarjeta li svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 3px;
  color: var(--turquesa);
}

/* Dos capturas reales de la Bitácora, una detrás de la otra. */
.banda-telefonos {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 5 / 6;
}

.banda-telefono {
  position: absolute;
  width: 62%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgb(5 59 132 / 35%));
  transition: transform 1s var(--suave);
}

.banda-telefono.atras {
  left: 0;
  top: 0;
  transform: rotate(-8deg);
}

.banda-telefono.frente {
  right: 0;
  top: 12%;
  transform: rotate(5deg);
}

.js .banda-telefonos[data-revelar] .atras {
  transform: translate(30px, 40px) rotate(0);
}

.js .banda-telefonos[data-revelar] .frente {
  transform: translate(-30px, 60px) rotate(0);
}

.js .banda-telefonos[data-revelar].visible .atras {
  transform: rotate(-8deg);
}

.js .banda-telefonos[data-revelar].visible .frente {
  transform: rotate(5deg);
}

@media (min-width: 900px) {
  .banda-bitacora .contenedor {
    grid-template-columns: 1fr 1.25fr;
    padding-block: 112px;
  }

  .banda-telefonos {
    width: 100%;
    max-width: 440px;
  }
}

/* ========================================================================
   18. TESTIMONIOS
   En celular se deslizan de lado; en computadora son tres columnas.
   ======================================================================== */

.testimonios {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 20px 24px;
  margin-inline: -20px;
  scrollbar-width: none;
}

.testimonios::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .testimonios {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 0;
    margin: 0;
    gap: 24px;
  }
}

.testimonio {
  margin: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
  transition: transform 0.5s var(--suave);
}

.testimonio:nth-child(2) {
  --q: var(--turquesa);
}

.testimonio:nth-child(3) {
  --q: var(--amarillo);
}

.testimonio::before {
  content: '“';
  font-family: var(--titulos);
  font-size: 5rem;
  line-height: 0.75;
  color: var(--q, var(--coral));
  height: 44px;
}

@media (min-width: 900px) {
  .testimonio:nth-child(2) {
    transform: translateY(32px);
  }
}

.testimonio blockquote {
  margin: 0 0 22px;
  font-size: 1.15rem;
}

.testimonio figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-family: var(--subtitulos);
  font-weight: 700;
  color: var(--marino);
  line-height: 1.3;
}

.testimonio small {
  display: block;
  font-family: var(--cuerpo);
  font-weight: 400;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.inicial {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--forma-organica);
  background: var(--c);
  color: #fff;
  font-family: var(--titulos);
  flex: none;
}

.aviso-ejemplo {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--amarillo-suave);
  color: var(--amarillo-tinta);
  font-size: 0.85rem;
  font-weight: 700;
  align-self: flex-start;
}

/* ========================================================================
   19. PREGUNTAS FRECUENTES
   Usa <details>, que abre y cierra sin JavaScript.
   ======================================================================== */

.preguntas-rejilla {
  display: grid;
  gap: 8px;
}

.preguntas-dibujo {
  display: none;
}

@media (min-width: 960px) {
  .preguntas-rejilla {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }

  .encabezado-izquierda {
    text-align: left;
    position: sticky;
    top: calc(var(--alto-barra) + 32px);
  }

  .preguntas-dibujo {
    display: block;
    width: 150px;
    height: 150px;
    margin-top: 32px;
  }
}

/* Cada pregunta es un <details>: se abre y cierra sola, sin JavaScript. */
.pregunta {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 20px;
  margin-bottom: 12px;
  transition:
    background-color 0.3s,
    box-shadow 0.4s var(--suave),
    border-color 0.3s;
}

.pregunta[open] {
  background: var(--superficie);
  border-color: transparent;
  box-shadow: var(--sombra-alta);
}

.pregunta summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--marino);
  cursor: pointer;
  list-style: none;
}

.pregunta summary::-webkit-details-marker {
  display: none;
}

/* Botón "+" que gira y se vuelve "×". */

.pregunta summary::after {
  content: '';
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background:
    linear-gradient(var(--marino), var(--marino)) center / 14px 2.6px no-repeat,
    linear-gradient(var(--marino), var(--marino)) center / 2.6px 14px no-repeat,
    var(--amarillo);
  transition:
    transform 0.45s var(--rebote),
    background-color 0.3s;
}

.pregunta[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--rosa);
}

.pregunta > div {
  padding: 0 22px 22px;
  color: var(--texto-suave);
}

.pregunta div p:last-child {
  margin: 0;
}

/* Apertura suave en navegadores que lo permiten. */

.pregunta::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.45s var(--suave),
    content-visibility 0.45s allow-discrete;
}

.pregunta[open]::details-content {
  height: auto;
}

/* ========================================================================
   20. CONTACTO Y FORMULARIOS
   Canales de contacto y estilos compartidos por los dos formularios.
   ======================================================================== */

.seccion-contacto {
  background: radial-gradient(50% 60% at 0% 0%, rgb(255 181 179 / 35%), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgb(255 210 48 / 22%), transparent 70%), var(--fondo);
}

.contacto-rejilla {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .contacto-rejilla {
    grid-template-columns: 1fr 1.5fr;
    gap: 56px;
    align-items: start;
  }
}

.canales {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.canales a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--superficie);
  box-shadow: var(--sombra);
  text-decoration: none;
  color: var(--texto);
  transition:
    transform 0.4s var(--suave),
    box-shadow 0.4s var(--suave);
}

.canales a:hover {
  transform: translateX(6px);
  box-shadow: var(--sombra-alta);
}

.canales svg {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: var(--forma-organica);
  flex: none;
}

.canales .flecha {
  margin-left: auto;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--texto-suave);
  transition: transform 0.4s var(--suave);
}

.canales a:hover .flecha {
  transform: translateX(4px);
  color: var(--coral);
}

.canales strong {
  display: block;
  font-family: var(--subtitulos);
  color: var(--marino);
}

.canal-whatsapp svg:first-child {
  background: #dcf8e6;
  color: #128c4b;
}

.canal-correo svg:first-child {
  background: var(--coral-suave);
  color: var(--coral-tinta);
}

.canal-instagram svg:first-child {
  background: var(--rosa-suave);
  color: var(--rosa-tinta);
}

/* Caja blanca de los formularios de solicitud y de postulación. */
.formulario {
  position: relative;
  background: var(--superficie);
  border-radius: 32px;
  box-shadow: var(--sombra-alta);
  padding: 30px 20px;
}

@media (min-width: 640px) {
  .formulario {
    padding: 44px;
  }
}

.campos {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .campos {
    grid-template-columns: 1fr 1fr;
  }

  .campo-completo {
    grid-column: 1 / -1;
  }
}

.campo label,
.campo legend {
  display: block;
  margin-bottom: 6px;
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 1rem;
  color: var(--marino);
}

.campo .opcional {
  font-family: var(--cuerpo);
  font-weight: 400;
  color: var(--texto-suave);
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid var(--borde);
  border-radius: 16px;
  background: var(--fondo);
  color: var(--texto);
  /* 16px o más para que el iPhone no haga zoom al escribir. */
  font: inherit;
  font-size: 1.05rem;
  transition:
    border-color 0.25s,
    background-color 0.25s,
    box-shadow 0.3s var(--suave);
}

.campo textarea {
  min-height: 120px;
  resize: vertical;
}

.campo input:hover,
.campo select:hover,
.campo textarea:hover {
  border-color: var(--rosa);
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--turquesa);
  background: #fff;
  box-shadow: 0 0 0 5px rgb(4 153 180 / 14%);
}

.campo fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opciones label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border: 2px solid var(--borde);
  border-radius: 999px;
  background: var(--fondo);
  font-family: var(--cuerpo);
  font-weight: 400;
  color: var(--texto);
  cursor: pointer;
  transition:
    border-color 0.25s,
    background-color 0.25s,
    transform 0.3s var(--rebote);
}

.opciones label:hover {
  border-color: var(--rosa);
}

.opciones input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--marino);
}

.opciones label:has(input:checked) {
  border-color: var(--marino);
  background: var(--marino-suave);
  transform: scale(1.03);
}

.formulario .boton {
  margin-top: 26px;
}

.boton-enviar .avion {
  width: 26px;
  height: 26px;
  transition: transform 0.6s var(--suave);
}

.boton-enviar:hover .avion {
  transform: translate(6px, -6px) rotate(-8deg);
}

.nota-formulario {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--texto-suave);
  text-align: center;
}

/* ========================================================================
   21. PIE DE PÁGINA Y BOTÓN DE WHATSAPP
   ======================================================================== */

.pie {
  position: relative;
  background: var(--marino);
  color: #d6e3f7;
  padding-bottom: 32px;
  font-size: 1rem;
}

.pie-ondas {
  display: block;
  width: 100%;
  height: 60px;
  background: var(--fondo);
}

.pie > .contenedor {
  padding-top: 48px;
}

.pie-rejilla {
  display: grid;
  gap: 32px;
}

.pie-logo {
  width: 180px;
  height: auto;
  margin-bottom: 14px;
}

.pie-boton {
  min-height: 46px;
  padding: 8px 20px;
  font-size: 1rem;
  margin-top: 4px;
}

.pie h2 {
  font-family: var(--subtitulos);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 12px;
}

.pie ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pie li {
  margin-bottom: 8px;
}

.pie li a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(var(--amarillo), var(--amarillo)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--suave);
}

.pie li a:hover {
  background-size: 100% 2px;
}

.pie-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.92rem;
}

@media (min-width: 800px) {
  .pie-rejilla {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* Botón flotante de WhatsApp (solo celular; en escritorio está en la barra). */

.whatsapp-flotante {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgb(0 0 0 / 22%);
  transition: transform 0.4s var(--rebote);
}

.whatsapp-flotante::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: pulso-suave 2.4s ease-out infinite;
}

.whatsapp-flotante:hover {
  transform: scale(1.08);
}

.whatsapp-flotante svg {
  width: 32px;
  height: 32px;
}

.js .whatsapp-flotante {
  animation: aparecer 0.8s var(--rebote) 2s both;
}

@media (min-width: 960px) {
  .whatsapp-flotante {
    display: none;
  }
}

/* ========================================================================
   22. PÁGINA "TRABAJA CON NOSOTRAS"
   ======================================================================== */

.portada-simple {
  text-align: center;
  padding-block: 48px 72px;
}

.portada-simple h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.portada-simple .contenedor > p {
  max-width: 40ch;
  margin-inline: auto;
  font-size: 1.25rem;
  color: var(--texto-suave);
}

.portada-simple .portada-botones {
  justify-content: center;
}

.circulos-chicos {
  width: 120px;
  margin: 0 auto 20px;
  overflow: visible;
}

.circulos-chicos path {
  transform-box: fill-box;
  transform-origin: center;
  animation: respirar 7s ease-in-out infinite;
}

.circulos-chicos path:nth-child(2) {
  animation-delay: -2s;
}

.circulos-chicos path:nth-child(3) {
  animation-delay: -4s;
}

.lista-requisitos {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.lista-requisitos li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lista-requisitos svg {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 3px;
  color: var(--turquesa);
}

/* ========================================================================
   23. PÁGINA DE METODOLOGÍA
   Materias por edad, galería de actividades con visor, ejemplo de planeación,
   capturas de la Bitácora e invitación final.
   ======================================================================== */

/* Tarjetas de materias: dibujo, edad, nombre, descripción y ejemplo. */
.materia {
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--color);
}

.materia .dibujo {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.materia h3 {
  margin-bottom: 6px;
}

.materia p {
  margin: 0;
  color: var(--texto-suave);
}

.materia-edad {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--suave);
  color: var(--marino);
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 0.85rem;
}

.materia .materia-ejemplo {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--borde);
  font-size: 0.98rem;
}

.materia-amarillo {
  --color: var(--amarillo);
  --suave: var(--amarillo-suave);
}

.materia-coral {
  --color: var(--coral);
  --suave: var(--coral-suave);
}

.materia-turquesa {
  --color: var(--turquesa);
  --suave: var(--turquesa-suave);
}

.materia-rosa {
  --color: var(--rosa);
  --suave: var(--rosa-suave);
}

.materia-marino {
  --color: var(--marino);
  --suave: var(--marino-suave);
}

/* Galería de actividades: la primera foto grande y las demás alrededor.
   Al pasar el cursor, la foto se acerca y aparece su nombre. */
.galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.foto {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 20px;
  aspect-ratio: 1;
  background: var(--superficie-2);
}

.foto:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.foto-boton {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--suave);
}

.foto figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgb(5 59 132 / 85%));
  color: #fff;
  font-family: var(--subtitulos);
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}

.foto-materia {
  display: block;
  margin-bottom: 2px;
  color: var(--amarillo);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .foto figcaption {
    transform: translateY(100%);
    transition: transform 0.5s var(--suave);
  }

  .foto:hover img,
  .foto:focus-within img {
    transform: scale(1.08);
  }

  .foto:hover figcaption,
  .foto:focus-within figcaption {
    transform: none;
  }
}

/* Las fotos entran una tras otra, girando un poco. */
.js .galeria .foto {
  opacity: 0;
  transform: scale(0.92) rotate(-2deg);
  transition:
    opacity 0.7s var(--suave),
    transform 0.7s var(--suave);
  transition-delay: calc(var(--i) * 120ms + 150ms);
}

.js .galeria.visible .foto {
  opacity: 1;
  transform: none;
}

@media (min-width: 900px) {
  .galeria {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
  }

  .foto,
  .foto:first-child {
    aspect-ratio: auto;
  }

  .foto:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* Visor: la foto en grande sobre un fondo oscuro, con flechas para pasar. */
.visor {
  width: min(92vw, 720px);
  max-height: 92vh;
  padding: 16px;
  border: 0;
  border-radius: 24px;
  background: var(--superficie);
  box-shadow: var(--sombra-alta);
}

.visor::backdrop {
  background: rgb(6 22 51 / 80%);
  backdrop-filter: blur(4px);
}

.visor[open] {
  animation: aparecer 0.4s var(--suave);
}

.visor img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
}

.visor-texto {
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--subtitulos);
  font-weight: 700;
  color: var(--marino);
}

.visor-cerrar {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  color: var(--marino);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sombra);
}

.visor-flechas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.visor-flechas button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--marino-suave);
  color: var(--marino);
  cursor: pointer;
}

.visor-flechas .flecha {
  width: 22px;
  height: 22px;
}

.visor-anterior .flecha {
  transform: rotate(180deg);
}

/* Ejemplo de planeación: cada actividad como una ficha. */
.planeacion {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.actividad {
  padding: 24px;
  border-radius: var(--radio);
  background: var(--superficie);
  box-shadow: var(--sombra);
}

.actividad-materia {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--turquesa-suave);
  color: var(--turquesa-tinta);
  font-family: var(--subtitulos);
  font-weight: 700;
  font-size: 0.85rem;
}

.actividad h3 {
  margin-bottom: 6px;
}

.actividad p {
  color: var(--texto-suave);
}

.actividad dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 0.98rem;
}

.actividad dt {
  font-family: var(--subtitulos);
  font-weight: 700;
  color: var(--marino);
}

.actividad dd {
  margin: 0;
  color: var(--texto-suave);
}

.js .planeacion .actividad {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--suave),
    transform 0.7s var(--suave);
  transition-delay: calc(var(--i) * 150ms + 200ms);
}

.js .planeacion.visible .actividad {
  opacity: 1;
  transform: none;
}

@media (min-width: 900px) {
  .planeacion {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Capturas de la Bitácora: en celular se deslizan de lado; en computadora, tres columnas. */
.app-pantallas {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 20px 24px;
  margin-inline: -20px;
  scrollbar-width: none;
}

.app-pantallas::-webkit-scrollbar {
  display: none;
}

.app-pantalla {
  margin: 0;
  text-align: center;
  scroll-snap-align: center;
}

.app-pantalla img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 18px 30px rgb(5 59 132 / 18%));
}

.app-pantalla figcaption {
  color: var(--texto-suave);
  font-size: 1rem;
  line-height: 1.4;
}

.app-pantalla strong {
  display: block;
  font-family: var(--subtitulos);
  font-size: 1.1rem;
  color: var(--marino);
}

@media (min-width: 900px) {
  .app-pantallas {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 0;
    margin: 0;
    gap: 32px;
  }

  /* La del centro, un poco más abajo, para que se vea dinámico. */
  .app-pantalla:nth-child(2) {
    transform: translateY(32px);
  }
}

.app-funciones {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}

.app-funciones li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--superficie);
  box-shadow: var(--sombra);
}

.app-funciones svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 3px;
  color: var(--turquesa);
}

@media (min-width: 720px) {
  .app-funciones {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Invitación final con precio y botones. */
.invitacion {
  max-width: 720px;
  margin-inline: auto;
  padding: 40px 24px;
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(120deg, var(--amarillo-suave), var(--rosa-suave));
}

.invitacion .dibujo {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}

.invitacion p {
  color: var(--texto-suave);
  font-size: 1.15rem;
}

.invitacion .portada-botones {
  justify-content: center;
}

/* ========================================================================
   24. PÁGINAS DE GRACIAS Y 404
   ======================================================================== */

.pagina-mensaje {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}

.pagina-mensaje p {
  max-width: 36ch;
  margin-inline: auto;
  color: var(--texto-suave);
  font-size: 1.2rem;
}

.pagina-mensaje .portada-botones {
  justify-content: center;
}

/* ========================================================================
   25. ANIMACIONES
   Todos los movimientos del sitio. Cada uno se usa con "animation: nombre …".
   ======================================================================== */

/* Sube y baja suave (rizos y tarjetas flotantes). */
@keyframes flotar {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }

  50% {
    transform: translate(8px, -14px) rotate(4deg);
  }
}

/* Onda que crece y se desvanece (punto verde "en vivo"). */
@keyframes pulso {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Frase de la portada: entra, se queda y sale (ciclo de 3 frases). */
@keyframes rotar {
  0% {
    opacity: 0;
    transform: translateY(0.5em);
    filter: blur(4px);
  }

  5%,
  28% {
    opacity: 1;
    transform: none;
    filter: none;
  }

  33%,
  100% {
    opacity: 0;
    transform: translateY(-0.5em);
    filter: blur(4px);
  }
}

/* Movimiento lento de los tres círculos de la marca. */
@keyframes respirar {
  0%,
  100% {
    transform: translate(0, 0) rotate(0) scale(1);
  }

  33% {
    transform: translate(6px, -10px) rotate(6deg) scale(1.03);
  }

  66% {
    transform: translate(-6px, 6px) rotate(-4deg) scale(0.98);
  }
}

/* El sol se balancea de un lado a otro. */
@keyframes mecer {
  0%,
  100% {
    transform: rotate(-8deg);
  }

  50% {
    transform: rotate(8deg);
  }
}

/* Latido del corazón. */
@keyframes latir {
  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.14);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.08);
  }
}

/* Traza un dibujo de principio a fin. */
@keyframes dibujar {
  to {
    stroke-dashoffset: 0;
  }
}

/* Aparece subiendo. */
@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Aparece creciendo y girando un poco. */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.85) rotate(-6deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Entra desde la derecha. */
@keyframes deslizar-izq {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Entra desde la izquierda. */
@keyframes deslizar-der {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Recorre la cinta de valores (mitad del contenido, que va repetido). */
@keyframes desplazar {
  to {
    transform: translateX(-50%);
  }
}

/* Meneo del ícono al pasar el cursor por una tarjeta. */
@keyframes menear {
  0%,
  100% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(-8deg) scale(1.08);
  }

  60% {
    transform: rotate(6deg) scale(1.05);
  }
}

/* Las ondas de la banda de la Bitácora se estiran un poco. */
@keyframes ondear {
  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.06);
  }
}

/* Igual que pulso pero más pequeña (botón flotante de WhatsApp). */
@keyframes pulso-suave {
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ========================================================================
   26. MENOS MOVIMIENTO
   Si el celular o la computadora piden reducir el movimiento, las animaciones
   terminan al instante y todo se muestra quieto y completo.
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .rotador span:not(:first-child) {
    display: none;
  }

  .js .rotador span:first-child {
    opacity: 1;
  }

  .cinta-pista {
    animation: none;
  }
}
