/**
 * ==========================================================================
 * ZUNNIA - ESTILOS DE LA LANDING PAGE DE VOXCRI
 * ==========================================================================
 *
 * Identidad visual tomada del material promocional del producto: fondo azul
 * con degradado, textos crema, capturas oscuras y el naranja del zorro como
 * acento. Estructura: navbar, hero con visual del zorro, secciones de
 * características con las imágenes promocionales y footer en banda oscura.
 *
 * @author ZUNNIA
 */

/* ==========================================================================
 * CONFIGURACIÓN GLOBAL
 * ========================================================================== */

:root {
    --blue-1: #4a68f8;
    --blue-2: #2c46e8;
    --blue-3: #2237c9;
    --cream: #ffe9d6;
    --cream-soft: rgba(255, 233, 214, 0.8);
    --line: rgba(255, 233, 214, 0.22);
    --shadow-deep: 0 30px 80px rgba(6, 12, 56, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fredoka', sans-serif;
    margin: 0;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--cream);
    background-color: var(--blue-2);
    background-image: linear-gradient(165deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
    background-attachment: fixed;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

:focus-visible {
    outline: 3px solid rgba(255, 233, 214, 0.6);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ==========================================================================
 * NAVBAR
 * ========================================================================== */

.navbar {
    padding: 1.1rem 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(44, 70, 232, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 233, 214, 0.16);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--cream);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.logo-link img {
    width: 38px;
    height: 38px;
    display: block;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.navbar nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--cream-soft);
    transition: color 0.25s ease;
}

.navbar nav a:hover {
    color: var(--cream);
}

.lang-selector {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 2px solid rgba(255, 233, 214, 0.55);
    color: var(--cream);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar nav a.lang-selector:hover {
    background-color: var(--cream);
    border-color: var(--cream);
    color: var(--blue-3);
}

/* ==========================================================================
 * HERO
 * ========================================================================== */

.hero {
    text-align: center;
    padding: 5.5rem 0 4.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 auto 1.25rem;
    max-width: 900px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: var(--cream-soft);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
 * BOTONES
 * ========================================================================== */

.cta-button {
    display: inline-block;
    background-color: var(--cream);
    border: 2px solid var(--cream);
    color: var(--blue-3);
    padding: 0.95rem 2.1rem;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 14px 34px rgba(6, 12, 56, 0.35);
}

.cta-button.is-outline {
    background-color: transparent;
    color: var(--cream);
    border-color: rgba(255, 233, 214, 0.55);
}

.cta-button.is-outline:hover {
    background-color: rgba(255, 233, 214, 0.14);
    border-color: var(--cream);
    box-shadow: none;
}

/* ==========================================================================
 * SECCIONES DE CARACTERÍSTICAS
 * ========================================================================== */

.features {
    padding: 3rem 0 5rem;
    scroll-margin-top: 90px;
}

.feature {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    padding: 2.75rem 0;
}

.feature.reverse .feature-image {
    order: -1;
}

.feature-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    filter: drop-shadow(0 30px 60px rgba(6, 12, 56, 0.45));
}

.feature-info h2 {
    font-size: 2.15rem;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    color: var(--cream);
}

.feature-info p {
    margin: 0;
    font-size: 1.08rem;
    color: var(--cream-soft);
}

/* ==========================================================================
 * PIE DE PÁGINA
 * ========================================================================== */

.footer {
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-grow: 1;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--cream);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul a {
    color: var(--cream-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--cream);
}

.footer-app-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-app-info img {
    width: 40px;
    height: 40px;
}

.footer-app-info h4 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cream);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--cream-soft);
    transition: fill 0.3s ease;
}

.social-icon:hover svg {
    fill: var(--cream);
}

.footer-copyright-text {
    font-size: 0.9rem;
    color: var(--cream-soft);
    margin-top: 1.5rem;
}

/* ==========================================================================
 * RESPONSIVE
 * ========================================================================== */

@media (max-width: 860px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.08rem;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 0;
    }

    .feature-image {
        order: -1;
    }

    .feature-info h2 {
        font-size: 1.7rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* ==========================================================================
 * PÁGINAS LEGALES
 * ========================================================================== */

.legal-main {
    padding: 3rem 0 4.5rem;
}

.legal-card {
    max-width: 800px;
    margin: 0 auto;
}

.legal-card h1 {
    color: var(--cream);
    font-size: 2.1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 0.35rem;
}

.legal-updated {
    color: var(--cream-soft);
    font-size: 0.95rem;
    margin: 0 0 2rem;
}

.legal-card h2 {
    color: var(--cream);
    font-size: 1.25rem;
    margin: 2rem 0 0.5rem;
}

.legal-card p {
    color: var(--cream-soft);
    margin: 0 0 0.9rem;
    line-height: 1.75;
}

.legal-card ul {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

.legal-card li {
    color: var(--cream-soft);
    margin-bottom: 0.5rem;
}

.legal-card code {
    background-color: rgba(255, 255, 255, 0.14);
    color: var(--cream);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    font-size: 0.9em;
}

@media (max-width: 640px) {
    .legal-card h1 {
        font-size: 1.7rem;
    }
}
