/* Hero section - Título y subtítulo centrados */
section.hero-section {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;

    h1 {
        font-size: clamp(28px, 5vw + .5rem, 60px);
        color: var(--primary-violet);
        margin-bottom: 1.5rem;
        line-height: 1.1;
        text-wrap: balance;
        font-weight: 600;
    }

    p {
        font-size: clamp(16px, 2vw, 20px);
        color: var(--title-black);
        line-height: 1.5;
        max-width: 700px;
        margin: 0 auto;
    }
}

/* Contenedor del video y formulario */
section.form_container {
    padding: 0 1.5rem;
    display: flex;
    margin: 2rem auto;
    flex-direction: row;
    max-width: 1220px;
    width: 100%;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    position: relative;

    article.video {
        display: flex;
        flex-direction: column;
        width: 50%;

        div.video-container {
            display: flex;
            justify-content: center;

            video {
                width: 100%;
                max-width: 350px;
                aspect-ratio: 9 / 16;
                border: none;
                border-radius: var(--border-radius);
                object-fit: cover;
            }
        }
    }

    article.form {
        background-color: #F7F3FA;
        width: 50%;
        padding: 1.5rem;
        border-radius: var(--border-radius);
        box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.25);

        h2 {
            color: #202020;
            text-align: center;
            font-size: 1.5rem;
            font-weight: 700;
            padding-bottom: .5rem;
            max-width: 250px;
            margin: 0 auto;
        }

        >p {
            font-size: 1rem;
            text-align: center;
            margin-bottom: 1rem;
            color: #202020;
        }

        form {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: fit-content;
            max-width: 600px;
            width: 100%;
            margin: 0 auto;

            div {
                display: flex;
                flex-direction: column;
                width: 100%;
                margin-top: .5rem;

                label {
                    display: block;
                    width: 100%;
                    font-size: 1rem;
                    color: #000;
                    font-weight: 600;

                    input {
                        display: block;
                        width: 100%;
                        background-color: transparent;
                        margin-top: .5rem;
                        outline: none;
                        border: none;
                        padding: .7rem .5rem;
                        border: 1px solid var(--border-form-color);
                        border-radius: 16px;
                    }
                }

                .g-recaptcha {
                    align-items: center;
                }
            }

            div.recaptcha-container {
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 1rem 0;
                width: 100%;
            }

            button.btn.btn-submit {
                width: 100%;
            }
        }
    }
}

@media screen and (max-width: 900px) {
    section.hero-section {
        padding: 2rem 1.5rem 1.5rem;

        h1 {
            font-size: clamp(24px, 6vw, 40px);
        }

        p {
            font-size: clamp(14px, 3vw, 18px);
        }
    }

    section.form_container {
        flex-direction: column;
        align-items: center;

        article.video {
            width: 100%;

            div.video-container {
                video {
                    width: 100%;
                    max-width: 300px;
                    aspect-ratio: 9 / 16;
                }
            }
        }

        article.form {
            display: none;
        }
    }
}

@media screen and (max-width: 320px) {
    section.form_container {
        article.video {
            div.video-container {
                video {
                    max-width: 280px;
                }
            }
        }
    }
}
