/* ==========================================================
   WISHLLY LANDING RESPONSIVE
   Cargar al FINAL, después de mobile.css, desktop.css,
   animations.css y event.css.
   Todas las reglas de la landing están dentro de #landing-page,
   así que no afectan la página de evento (que también usa .hero-card).
========================================================== */

/* Una sola página adaptable: se ignora el bloque vacío de escritorio */
#mobilePage {
    display: block !important;
}

#desktopPage {
    display: none !important;
}

.is-hidden {
    display: none !important;
}

/* ----------------------------------------------------------
   Página de evento: botón "Abrir en la app"
---------------------------------------------------------- */

#openAppButton {
    background: #8515FC;
    color: #fff;
    border: none;
}

.open-app-hint {
    text-align: center;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--text-light);
}

/* ----------------------------------------------------------
   Segunda tienda en PC (App Store) en la página de evento
---------------------------------------------------------- */

#installButtonIos {
    background: #111;
    color: #fff;
    border: none;
}

#notFoundButtonIos {
    background: #111;
    color: #fff;
    border: none;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 14px;
}

#installButtonIos:disabled,
#notFoundButtonIos:disabled {
    opacity: .6;
    cursor: default;
}

/* ----------------------------------------------------------
   Botones de descarga
---------------------------------------------------------- */

#landing-page .store-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

#landing-page .store-actions .download-button {
    margin-top: 0;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(15px, 4.6vw, 20px);
    padding-left: 16px;
    padding-right: 16px;
}

#landing-page .download-button[aria-disabled="true"],
#landing-page .badge[aria-disabled="true"],
#landing-page .secondary-store[aria-disabled="true"] {
    opacity: .6;
    pointer-events: none;
    cursor: default;
}

#landing-page .badge {
    text-decoration: none;
}

/* Enlace discreto (móvil): "¿Usas iPhone? ..." */
#landing-page .secondary-store {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-align: center;
}

/* En PC el segundo botón se ve como botón con borde */
html[data-platform="desktop"] #landing-page .secondary-store {
    padding: 18px 28px;
    border-radius: 70px;
    border: 2px solid var(--primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    background: #fff;
    transition: .3s;
}

html[data-platform="desktop"] #landing-page .secondary-store:hover {
    background: #F4EDFF;
    transform: translateY(-4px);
}

#landing-page .quick-trust b {
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

/* ----------------------------------------------------------
   Base móvil: evitar desbordes horizontales
---------------------------------------------------------- */

#landing-page {
    overflow-x: hidden;
}

#landing-page .hero-visual {
    min-width: 0;
}

#landing-page .app-preview {
    min-width: 0;
}

#landing-page .appSwiper {
    overflow: hidden;
}

/* ----------------------------------------------------------
   Tablet (600px - 899px): columna centrada más angosta
---------------------------------------------------------- */

@media (min-width: 600px) {

    #landing-page .mobile-app {
        padding: 32px 24px 64px;
    }

    #landing-page .mobile-app > .hero-card {
        max-width: 640px;
        margin: 0 auto;
    }

    #landing-page .how-it-works,
    #landing-page .occasions,
    #landing-page .trust-section {
        max-width: 720px;
        margin: 0 auto;
    }

    #landing-page .occasion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ----------------------------------------------------------
   PC (900px en adelante)
---------------------------------------------------------- */

@media (min-width: 900px) {

    #landing-page .mobile-app {
        padding: 48px 32px 80px;
        border-radius: 0 0 48px 48px;
    }

    #landing-page .mobile-app > .hero-card {
        max-width: 1180px;
        padding: 56px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 48px;
        row-gap: 40px;
        align-items: center;
        text-align: left;
    }

    #landing-page .hero-text .logo {
        margin-left: 0;
        width: 110px;
    }

    #landing-page .hero-card h1 {
        font-size: 44px;
    }

    #landing-page .hero-card h2 {
        font-size: 36px;
    }

    #landing-page .hero-description {
        margin-left: 0;
        max-width: 480px;
        line-height: 1.8;
    }

    #landing-page .store-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    #landing-page .store-actions .download-button {
        display: inline-block;
        padding: 18px 34px;
    }

    #landing-page .quick-trust {
        justify-content: flex-start;
        gap: 32px;
    }

    #landing-page .app-preview {
        margin: 0;
    }

    #landing-page .features {
        grid-column: 1 / -1;
        flex-direction: row;
        margin-top: 0;
    }

    #landing-page .feature {
        flex: 1;
    }

    /* Secciones inferiores */

    #landing-page .how-it-works,
    #landing-page .occasions,
    #landing-page .trust-section {
        max-width: 1180px;
        padding-left: 32px;
        padding-right: 32px;
    }

    #landing-page .steps {
        flex-direction: row;
    }

    #landing-page .step-card {
        flex: 1;
    }

    #landing-page .occasion-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    #landing-page .trust-card {
        flex-direction: row;
    }

    #landing-page .trust-item {
        flex: 1;
    }

    /* Footer en una sola línea */

    #landing-page .footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        column-gap: 28px;
    }

    #landing-page .footer a {
        display: inline-block;
    }

    #landing-page .footer p {
        flex-basis: 100%;
    }
}
