/* ============================================================
   SURE — Animaciones (paso 5). Se activa solo cuando motion.js
   pone la clase "js" en <html>; sin JS la página se ve completa.
   Respeta "reducir movimiento" del sistema.
   ============================================================ */

/* ---------- Entrada al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="left"] { transform: translateX(-26px); }
.js [data-reveal="right"] { transform: translateX(26px); }
.js [data-reveal="scale"] { transform: scale(.96); }

/* ---------- Portada: entrada escalonada al abrir ---------- */
.js [data-hero] { opacity: 0; transform: translateY(18px); animation: hero-in .8s cubic-bezier(.22,.61,.36,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Fondo de la portada: acercamiento lento y continuo (solo escritorio; en móvil la foto debe cubrir) */
@media (min-width: 768px) {
  .js .hero-card { background-size: 100% auto; animation: hero-bg 18s ease-in-out infinite alternate; }
  @keyframes hero-bg { from { background-size: 100% auto; } to { background-size: 112% auto; } }
}

/* Tarjetas flotantes que "respiran" */
.js .card-today, .js .app-hero .mockup .floating, .js .r-final .fcard { animation: float 5s ease-in-out infinite; }
.js .r-final .fcard.c2 { animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Hover con vida ---------- */
.js .svc, .js .card-feature, .js .card-service, .js .card-kpi, .js .card-deadline, .js .photo-card, .js .tile, .js .hcard, .js .upcoming .card, .js .steps4 .step, .js .how .steps, .js .captures .card, .js .mixed > *, .js .quick a, .js .cta-card, .js .site-footer .cta-card { transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
.js .svc:hover, .js .card-feature:hover, .js .card-service:hover, .js .card-kpi:hover, .js .card-deadline:hover, .js .photo-card:hover, .js .tile:hover, .js .hcard:hover, .js .upcoming .card:hover, .js .steps4 .step:hover, .js .captures .card:hover, .js .mixed > *:hover, .js .quick a:hover, .js .site-footer .cta-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(11,17,24,.12); }
.js .photo-card { will-change: transform; }
.js .btn, .js .btn-white, .js .btn-outline-ink, .js .btn-outline-white, .js .btn-enviar, .js .floating-cta { transition: background .2s, color .2s, border-color .2s, transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s; }
.js .btn:hover, .js .btn-white:hover, .js .btn-outline-ink:hover, .js .btn-outline-white:hover, .js .btn-enviar:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11,17,24,.16); }
.js .floating-cta:hover { transform: translateY(-3px) scale(1.03); }
.js .btn img, .js .card-service .link img, .js .link-arrow img, .js .how .photo a img, .js .site-footer .cta-card a img { transition: transform .25s ease; }
.js .btn:hover img, .js .card-service .link:hover img, .js .link-arrow:hover img, .js .how .photo a:hover img, .js .site-footer .cta-card a:hover img { transform: translateX(4px); }
.js .site-header .nav a { position: relative; transition: color .2s; }
.js .site-header .nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; border-radius: 2px; background: var(--cyan); transition: right .25s ease; }
.js .site-header .nav a:hover::after { right: 0; }
.js .criteria .c { transition: background .2s, transform .2s; }
.js .tab { transition: background .2s, color .2s, transform .2s; }
.js .tab:hover { transform: translateY(-2px); }
.js .services .svc .img, .js .photo-card, .js .captures .card { transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, background-size .6s ease; }

/* ---------- Acordeón suave ---------- */
.js .faq .answer { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease; }
.js .faq.is-open .answer { max-height: 900px; opacity: 1; }
.js .faq .ind { transition: transform .3s ease, background .3s ease; }
.js .faq:hover .ind { transform: rotate(90deg); }

/* ---------- Menú móvil: despliegue ---------- */
.js .mobile-menu { animation: menu-in .3s ease-out; transform-origin: top; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Barras de progreso ---------- */
.js .season .fill, .js .progress .fill { transition: width 1.2s cubic-bezier(.22,.61,.36,1); }

/* ---------- Respeto a "reducir movimiento" ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-hero] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .hero-card, .js .card-today, .js .app-hero .mockup .floating, .js .r-final .fcard, .js .mobile-menu { animation: none !important; }
  .js * { transition-duration: .01ms !important; }
}
