@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes deslizar {
  from { transform: translateX(0); }
  to   { transform: translateX(-28.5%); }
}

.portada__sobretitulo,
.portada__nombre,
.portada__fecha {
  animation: aparecer 1s ease-out both;
  animation-delay: 0.5s;
}
.portada__nombre { animation-delay: 0.9s; }
.portada__fecha  { animation-delay: 1.3s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  transition-delay: var(--delay, 0s);
}

.js-reveal .reveal-izq {
  transform: translateX(-40px);
}
.js-reveal .reveal-der {
  transform: translateX(40px);
}
.js-reveal .reveal-zoom {
  transform: scale(0.85);
}

.js-reveal .reveal-carta {
  transform: translateY(60px) rotate(-10deg) scale(0.9);
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js-reveal .reveal-carta:nth-child(even) {
  transform: translateY(60px) rotate(10deg) scale(0.9);
}

@keyframes flotar {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

.detalles__icono,
.confirmar__icono {
  animation: flotar 4s ease-in-out infinite;
}

@keyframes rebote {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 6px; }
}

.portada__scroll span {
  display: inline-block;
  animation: rebote 1.6s ease-in-out infinite;
}

@keyframes crecer {
  to { transform: scaleX(1); }
}

@supports (animation-timeline: scroll()) {
  .progreso {
    animation: crecer linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes salir {
  to { opacity: 0; translate: 0 -40px; }
}

@supports (animation-timeline: view()) {
  .portada__contenido {
    animation: salir linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 80%;
  }
}

.galeria__lado img {
  animation: flotar 6s ease-in-out infinite;     /* reutiliza tu @keyframes flotar */
}
.galeria__lado img:nth-child(2) { animation-delay: -2s; }
.galeria__lado img:nth-child(3) { animation-delay: -4s; }
.galeria__lado img:nth-child(4) { animation-delay: -1s; }
.galeria__lado img:nth-child(5) { animation-delay: -3s; }

.js-reveal .reveal.visible {
  opacity: 1;
  transform: none;
}

