/* ═══════════════════════════════════════════════════════════════
   animations.css — Keyframes y animaciones de entrada al scroll
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes base ── */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 1.5rem)); }
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes typing {
  0%, 60%, 100% { opacity: 0.15; transform: translateY(0); }
  30%            { opacity: 1;    transform: translateY(-4px); }
}

/* ── data-reveal (scroll reveal) ── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-visible {
  opacity: 1; transform: translateY(0) translateX(0);
}

/* ── Hero: entradas escalonadas ── */
.hero__content .kicker     { animation: slideUp .7s var(--ease-out) .1s both; }
.hero__content h1          { animation: slideUp .7s var(--ease-out) .2s both; }
.hero__content .hero__subtitle { animation: slideUp .7s var(--ease-out) .3s both; }
.hero__content .hero__pain { animation: slideUp .7s var(--ease-out) .35s both; }
.hero__content .hero__badges { animation: slideUp .7s var(--ease-out) .4s both; }
.hero__content .hero__cta  { animation: slideUp .7s var(--ease-out) .5s both; }
.hero__visual              { animation: fadeIn  .9s var(--ease-out) .45s both; }

/* ── Kicker shimmer ── */
.hero .kicker {
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-highlight) 40%, var(--clr-accent) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  /* Fallback para tema claro — quita el fill transparente si no hay shimmer */
}

/* ── Línea dorada bajo títulos de sección ── */
.section__title::after {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--clr-highlight); margin-top: var(--space-4);
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out) .3s;
}
.section__header--center .section__title::after {
  margin-inline: auto; transform-origin: center;
}
.is-visible .section__title::after,
[data-reveal].is-visible .section__title::after { transform: scaleX(1); }

/* ── Pain card icon hover ── */
.pain-card:hover .pain-card__icon {
  transform: rotate(-15deg) scale(1.1);
  opacity: 0.8;
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base);
}

/* ── Process step num hover scale ── */
.process-step__num {
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base), border-color var(--dur-base),
              transform var(--dur-base) var(--ease-spring);
}
.process-step:hover .process-step__num { transform: scale(1.08); }

/* ── Reducir movimiento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
