/* =========================================================
   ANIMACIONES — por ahora solo lo básico.
   Las animaciones fuertes (cartas, ruleta, logo) llegan en la Fase 6.
   ========================================================= */

/* Aparición suave del contenido al cargar la página */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.aparecer {
  animation: aparecer 600ms var(--curva) both;
}

/* =========================================================
   SCROLL REVEAL (IntersectionObserver)
   ========================================================= */
.seccion--oculta {
  opacity: 0;
  transform: translateY(2rem);
}

.seccion--visible {
  opacity: 1;
  transform: none; /* "none" y no translateY(0): cualquier transform cambia cómo se posicionan los hijos fijos */
  transition: opacity 800ms var(--curva), transform 800ms var(--curva);
}

/* =========================================================
   SEPARADOR SVG (stroke-dashoffset)
   ========================================================= */
.separador svg path,
svg.separador path {
  /* Hacemos que el trazo tenga un dash muy largo, para luego ocultarlo offseteándolo */
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.separador--dibujado path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s ease-out;
}

/* =========================================================
   LOGO SHIMMER
   ========================================================= */
@keyframes shimmer-logo {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.5) drop-shadow(0 0 10px rgba(201, 166, 70, 0.5)); }
  100% { filter: brightness(1); }
}

.logo--shimmer .logo__icono,
.logo--shimmer .logo__texto {
  animation: shimmer-logo 1.2s ease-in-out;
}

/* Si la persona pidió "reducir movimiento" en su sistema operativo,
   apagamos animaciones y transiciones en todo el sitio. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}
