/* ==========================================================================
   OneTic — Animaciones (sutiles, sin efectos de brillo)
   ========================================================================== */

/* Scroll reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Escalonado suave dentro de las grillas */
[data-animate]:nth-child(2) { transition-delay: .06s; }
[data-animate]:nth-child(3) { transition-delay: .12s; }
[data-animate]:nth-child(4) { transition-delay: .18s; }
[data-animate]:nth-child(5) { transition-delay: .06s; }
[data-animate]:nth-child(6) { transition-delay: .12s; }
[data-animate]:nth-child(7) { transition-delay: .18s; }
[data-animate]:nth-child(8) { transition-delay: .24s; }

/* Entrada del hero */
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__content > * {
    animation: hero-fade-up .7s ease both;
}

.hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__content > *:nth-child(4) { animation-delay: .24s; }
.hero__content > *:nth-child(5) { animation-delay: .32s; }

.hero__visual {
    animation: hero-fade-up .8s ease .2s both;
}

/* Flotación muy leve de los chips del hero */
@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.hero__chip--1 { animation: chip-float 5.5s ease-in-out infinite; }
.hero__chip--2 { animation: chip-float 6.5s ease-in-out .8s infinite; }
.hero__chip--3 { animation: chip-float 6s ease-in-out 1.6s infinite; }

/* Apertura del modal */
@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal[open] .modal__content {
    animation: modal-in .25s ease both;
}

/* Accesibilidad: respetar preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    html { scroll-behavior: auto; }
}
