/* Anytoo Landing Page CSS */
:root {
    --primary-color: #4A47C0;
    --accent-orange: #F5A623;
    --accent-coral: #E87DAB;
    --bg-soft: #F5F0ED;
    --text-dark: #1A1A2E;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Header & Language Selector */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.lang-selector {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-selector:hover {
    transform: scale(1.1);
}

/* Sections */
section {
    padding: 80px 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    background: linear-gradient(rgba(26, 26, 46, 0.6), rgba(26, 26, 46, 0.6)), url('/images/landing/16_FONDO.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.pills-container {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 95%;
    margin: 0 auto;
}

.mission-vision {
    background: url('/images/landing/1_FONDO_SPLASH.jpg') center/cover no-repeat;
    padding: 40px 20px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Video Section */
.video-section {
    background: #000;
    padding: 0;
    justify-content: center;
    min-height: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-container-vertical {
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio */
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.video-wrapper-vertical {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
}

/* Survey */
.survey-section {
    background: var(--bg-soft);
}

.survey-form .question {
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.03);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, background 0.2s;
}

.survey-form .question:hover {
    background: rgba(0, 0, 0, 0.04);
}

.question p {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.options label {
    display: block;
    background: var(--white);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.options label:last-child {
    margin-bottom: 0;
}

.options input[type="radio"] {
    display: none;
}

.options input[type="radio"]:checked+span {
    color: var(--primary-color);
    font-weight: 700;
}

.options label:has(input:checked) {
    border-color: var(--primary-color);
    background: #f0f0ff;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 18px;
    border-radius: 50px;
    border: none;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 71, 192, 0.3);
    margin-top: 20px;
}

/* Modal Language */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 25px;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lang-item {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

.lang-item:hover {
    background: #f8f8ff;
    border-color: var(--primary-color);
}

/* Toasts */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Adaptation - The Interactive Bridge */
.phone-column, .desktop-only, .desktop-hint {
    display: none;
}

@media (min-width: 1024px) {
    .phone-column {
        display: flex;
    }

    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-hint {
        display: block;
        text-align: center;
        background: rgba(74, 71, 192, 0.1);
        color: var(--primary-color);
        padding: 10px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        margin-top: auto;
        border: 1px dashed var(--primary-color);
    }

    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .desktop-layout {
        display: grid;
        grid-template-columns: 450px 1fr;
        gap: 60px;
        align-items: start;
        padding-top: 100px;
    }

    .phone-column {
        position: sticky;
        top: 100px;
        display: flex;
        justify-content: center;
        z-index: 10;
        height: calc(100vh - 140px);
    }

    .phone-mockup {
        width: 320px;
        height: 650px;
        background: #111;
        border-radius: 40px;
        padding: 12px;
        position: relative;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                    0 0 0 8px #222;
        border: 2px solid #444;
        overflow: hidden;
        animation: floating 6s ease-in-out infinite;
    }

    @keyframes floating {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }

    .phone-mockup::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 25px;
        background: #111;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        z-index: 5;
    }

    .phone-screen {
        width: 100%;
        height: 100%;
        background: #000;
        border-radius: 30px;
        overflow: hidden;
        position: relative;
    }

    .phone-screen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .content-column {
        padding-bottom: 100px;
    }

    /* Adjusting existing sections for desktop */
    section {
        min-height: auto;
        padding: 40px 0;
        justify-content: flex-start;
    }

    .hero {
        text-align: left;
        background: none;
        color: var(--text-dark);
        padding-top: 20px;
    }

    .hero h1 {
        font-size: 3.5rem;
        text-shadow: none;
    }

    .hero .subtitle {
        margin-left: 0;
        font-size: 1.4rem;
        color: #555;
    }

    .pills-container {
        margin-left: 0;
        background: rgba(74, 71, 192, 0.05);
        border-color: rgba(74, 71, 192, 0.1);
        color: var(--text-dark);
    }

    .mission-vision {
        background: none;
        padding: 20px 0;
    }

    .card {
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .video-section {
        background: transparent;
        padding: 40px 0;
    }

    .video-section h2 {
        color: var(--text-dark);
    }

    .video-container {
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .survey-section {
        background: transparent;
    }

    .survey-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .survey-form .question {
        margin-bottom: 0;
    }

    .btn-submit {
        grid-column: span 2;
    }

    /* Fixed background for desktop */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #f5f0ed 0%, #e8e2de 100%);
        z-index: -1;
    }
}