@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    background-color: #fff;
    margin-bottom: 1rem;
}

.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.snap-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-section {
    background-color: #fff;
    flex-direction: column;
}

.video-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.text-image {
    width: auto !important;
    height: 60px !important;
    object-fit: contain !important;
    margin-bottom: 10px;
}

.red-box {
    background-color: white;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-wrapper {
    height: 95%;
    aspect-ratio: 9 / 16;
    display: flex;
    justify-content: center;
    align-items: center;
}

#vimeo-player { width: 100%; height: 100%; }

#vimeo-player iframe {
    width: 100%;
    height: 100%;
}


@media (max-width: 768px) {
    
    body {
        margin: 1rem 0;
        height: auto;
    }
    
    .snap-container {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    .snap-section {
        height: auto;
        scroll-snap-align: none;
        margin-bottom: 50px;
        display: block;
    }

    .snap-section img {
        width: 100%;
        height: auto;
        display: block;
    }

    .video-section {
        padding: 0 15px;
    }

    .video-content-wrapper {
        padding: 0;
    }

    .text-image {
        height: 40px !important;
        margin: 20px 0;
    }

    .red-box {
        background-color: transparent;
        height: auto;
        margin: 0;
        display: block;
    }

    .video-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
        margin: 0 auto;
    }
    
    .video-element {
        width: 100%;
        height: auto;
    }
    
    #vimeo-player {
        width: 100%;
        height: 100%;
    }

    .text-image {
        margin: 0 0 10px 0;
    }
    
}





/* --- BOTÓN DE VOLUMEN --- */

.video-wrapper {
    height: 95%;
    aspect-ratio: 9 / 16;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.volume-btn {
    position: absolute;
    bottom: 20px; 
    right: 20px;
    
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
    outline: none;
}

.volume-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.volume-btn svg {
    display: none;
    width: 24px;
    height: 24px;
}

.volume-btn svg path {
    stroke: white !important; 
}

.volume-btn.is-muted .icon-on {
    display: block !important;
}

.volume-btn:not(.is-muted) .icon-off {
    display: block !important;
}

@media (max-width: 768px) {
    .video-wrapper {
        width: 100%;
        height: auto;
    }

    .volume-btn {
        bottom: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
    
    .volume-btn svg {
        width: 20px;
        height: 20px;
    }
    
    #section-final img {
        width: 100% !important;
    }

}

#section-final img {
    width: 95% !important;
}










#section-final {
    width: 100%;
    height: auto !important; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #fff;
    overflow: visible !important;
    scroll-snap-align: start;
    padding-top: 5vh;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


#section-final .clickable-image {
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: 95% !important; 
    max-width: 1200px;
    height: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#section-final .clickable-image:hover {
    transform: scale(1.01);
}


.form-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    width: 90%;
    max-width: 500px;
    margin-top: 0;
}

.form-container.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 40px;
    margin-bottom: 80px;
}

.modern-form {
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.modern-form * {
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

.modern-form h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #333;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: rgb(139, 11, 10);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-submit {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #d10000;
}

/* Alertas */
.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Responsive Mobile */
@media (max-width: 768px) {
    #section-final {
        height: auto !important;
        min-height: auto !important;
        padding-top: 20px;
        scroll-snap-align: none;
    }

    #section-final .clickable-image {
        width: 100% !important; 
        max-width: none;
    }

    .modern-form {
        padding: 30px 20px;
        width: 100%;
    }

    .form-container {
        width: 95%;
    }
}

