/* public/assets/styles/landing.css — SOLO para index.html (P7.1)
   No toca theme.css/main.css (usados por el resto de páginas). */

/* ── "Build · You · Up" se despliega al cargar ───────────────────────────── */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateX(-10px);
    animation: byuDespliegue .55s ease forwards;
}
.hero-letter:nth-child(1) .hero-word { animation-delay: .35s; }
.hero-letter:nth-child(2) .hero-word { animation-delay: .62s; }
.hero-letter:nth-child(3) .hero-word { animation-delay: .89s; }
@keyframes byuDespliegue {
    to { opacity: 1; transform: translateX(0); }
}

/* ── Bloque "Cómo funciona": móvil fijo + pasos ──────────────────────────── */
.metodo-phone-wrap {
    position: sticky;
    top: 96px;
}
.phone-frame {
    width: 230px;
    height: 460px;
    margin: 0 auto;
    border-radius: 38px;
    border: 9px solid var(--color-border);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,.18);
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 6px;
    border-radius: 4px;
    background: var(--color-border);
}
.metodo-pantalla {
    position: absolute;
    inset: 0;
    padding: 34px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s ease, transform .45s ease;
}
.metodo-pantalla.is-active {
    opacity: 1;
    transform: translateY(0);
}
.metodo-paso {
    opacity: .45;
    transition: opacity .3s ease;
}
.metodo-paso.is-active {
    opacity: 1;
}

@media (max-width: 767px) {
    .metodo-phone-wrap {
        position: sticky;
        top: 68px;
        margin-bottom: 20px;
        z-index: 10;
    }
    .phone-frame {
        width: 150px;
        height: 300px;
        border-width: 6px;
        border-radius: 26px;
    }
    .metodo-pantalla { padding: 22px 12px 12px; gap: 6px; }
}

/* ── FAQ (acordeón nativo <details>) ──────────────────────────────────────── */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { transition: transform .25s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }

/* ── Respeta prefers-reduced-motion en TODA la página ────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-word { opacity: 1 !important; transform: none !important; }
    .metodo-pantalla { opacity: 0; transform: none; }
    .metodo-pantalla.is-active { opacity: 1; }
}
