/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: url('assets/Fondo_1600.png') no-repeat center bottom fixed;
    background-size: cover;


}

.main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0px 0px 10px 0px;
    box-sizing: border-box;
}

h1 {
    display: none;
}

.top-header {

    text-align: center;
    gap: 15px;
    padding: 5px 20px 10px 20px;
    margin: auto;
    margin-bottom: 0px;



}

.logo {
    width: 200px;
    height: auto;
}

.descripcion {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    color: #fff;
    text-align: center;
    margin: auto;

}



.video-container {
    width: 850px;
    max-width: 90%;
    aspect-ratio: 16 / 9;
    margin: 0px auto 10px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    background: #ccc;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.frase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.frase-deco {
    font-family: 'Braniella', sans-serif;
    font-size: 28px;
    color: #5F417A;
    font-style: normal;

}

.frase-cta {
    font-family: 'Fredoka', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #A87A49;
    text-align: center;
    margin-bottom: 20px;
}

/* Bloque formulario con estilo como la imagen */
.bloque-formulario {
    background: rgba(236, 231, 255, 0.3);
    /* Fondo #ECE7FF al 30% */
    backdrop-filter: blur(10px);
    border-radius: 20px;

    padding: 10px 10px 20px 10px;
    max-width: 960px;

    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0px auto;
    /* margen vertical fijo + centrado horizontal */
    flex-shrink: 0;
    /* evita que se deforme en flexbox */
}

.titulo-suscripcion {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #523055;
    margin-bottom: 0;
    /* para que quede más pegado al form */
}


/* Formulario horizontal (manteniendo tu nombre) */
.formulario-horizontal {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 30px;
}

/* Campo nombre y correo */
.formulario-horizontal .campo-nombre,
.formulario-horizontal .campo-correo {
    display: flex;
    flex-direction: column;
    flex: 1 1 45%;
    font-family: 'Fredoka', sans-serif;
    min-width: 0;
}

/* Etiquetas */
.formulario-horizontal .campo-nombre label,
.formulario-horizontal .campo-correo label {
    color: #523055;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    margin-left: 80px;
}

/* Iconos */
.formulario-horizontal label img {
    width: 18px;
    height: 18px;

}

/* Input + botón */
.formulario-horizontal .grupo-input {
    display: flex;
    align-items: stretch;
    /* <<< esta es la clave */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    min-width: 350px;
}

.formulario-horizontal .grupo-input input {
    flex: 1 1 auto;
    min-width: 180px;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 14px;
    font-family: inherit;
}

.formulario-horizontal .grupo-input input::placeholder {
    color: #E8E1E1;
}

.formulario-horizontal .grupo-input button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    /* no hace falta 100% ahora porque el padre hace stretch */
    background: #ffdf56;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s;
    white-space: nowrap;
    border-left: 2px solid white;
}


.formulario-horizontal .grupo-input button:hover {
    background: #f5c942;
}

/* Botón móvil */
.button-mobile {
    display: none;
}




/* Redes sociales */
.redes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 0px;
    margin-top: 10px;
}

.redes img {
    transition: transform 0.2s ease;
}

.redes img:hover {
    transform: scale(1.1);
}

.log-facebook {
    width: 27px;
}

.log-instagram {
    width: 40px;
}

.log-youtube {
    width: 40px;
}

.log-tiktok {
    width: 30px;
}

.video-container {
    position: relative;
    z-index: 1;
}

.top-header {
    position: relative;
    z-index: 2;
}

.button-mobile {
    display: none;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: #fff8e5;
    color: #4a3c3b;
    font-family: 'Fredoka', sans-serif;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: bounceIn 0.4s ease;
    position: relative;
}

.popup-icon {
    width: 80px;

}

.popup-titulo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #6b3f8c;
}

.popup-texto {
    font-size: 16px;
    margin-bottom: 25px;
    color: #4a3c3b;
}

.popup-content button {
    background: #ffdf56;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.popup-content button:hover {
    background: #f5c942;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* Responsive */
@media (max-width: 1600px) {
    body {

        background: url('assets/Fondo.png') no-repeat center bottom fixed;
        background-size: cover;
    }

    .logo {
        width: 180px;
    }

    .descripcion {

        font-size: 23px;


    }

    .video-container {
        width: 700px;

    }

    .titulo-suscripcion {

        font-size: 22px;


    }

    .bloque-formulario {


        padding: 5px 10px 15px 10px;
        max-width: 960px;
        gap: 5px;


    }

    .frase-deco {

        font-size: 24px;


    }


    .formulario-horizontal {

        padding: 0px 0px;

    }

    .formulario-horizontal .grupo-input input {

        padding: 8px 12px;

    }

    .log-facebook {
        width: 20px;
    }

    .log-instagram {
        width: 30px;
    }

    .log-youtube {
        width: 30px;
    }

    .log-tiktok {
        width: 20px;
    }



}


@media (max-width: 1200px) {
    .top-header {
        padding: 20px 50px;
    }

    .logo {
        width: 200px;
    }

    p {
        font-size: 18px;
        width: 80%;
    }
}

@media (max-width: 768px) {
    body {
        background: url('assets/Fondo_mobile.png') no-repeat;
        background-size: cover;
    }

    .main {
        height: auto
    }

    .titulo-suscripcion {
        margin: auto;

    }

    .top-header {
        flex-direction: column;
        align-items: center;
        padding: 20px 20px 10px 20px;
        text-align: center;
    }

    .logo {
        width: 220px;
    }

    .descripcion {
        padding: 0 20px;
        font-size: 16px;
        width: 100%;
        line-height: 25px;
    }

    .video-container {
        width: 90%;
        max-width: 90%;
        margin: 20px auto;
        border-radius: 20px;
    }

    .frase-deco {
        font-size: 22px;
    }

    .frase-cta {
        font-size: 22px;
        margin: 10px 20px;
    }

    .bloque-formulario {
        padding: 20px 10px;
        max-width: 80%;
    }

    .formulario-horizontal {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .campo-nombre,
    .campo-correo {
        flex: 1 1 100%;
    }

    .grupo-input {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .grupo-input input {
        padding: 12px;
        font-size: 14px;
    }

    .grupo-input button {
        padding: 12px 18px;
        font-size: 14px;
        white-space: nowrap;
        display: none;
    }

    .formulario-horizontal .grupo-input {
       
        min-width: 250px;
    }


    .button-mobile {
        display: block;
        background: #ffdf56;
        color: #000;
        font-weight: bold;
        border: none;
        margin-top: 15px;
        padding: 12px 20px;
        font-size: 14px;
        cursor: pointer;
        font-family: inherit;
        text-align: center;
        border-radius: 30px;
    }

    .redes {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }

    .log-facebook {
        width: 26px;
    }

    .log-instagram {
        width: 38px;
    }

    .log-youtube {
        width: 38px;
    }

    .log-tiktok {
        width: 28px;
    }

    .popup-content {
        background: #fff8e5;
        color: #4a3c3b;
        font-family: 'Fredoka', sans-serif;
        border-radius: 30px;
        padding: 10px 0px;
        text-align: center;
        max-width: 85%;

    }

    .popup-icon {
        width: 70px;

    }

    .popup-titulo {
        font-size: 24px;
        font-weight: bold;
        margin: auto;

        color: #6b3f8c;

    }

    .popup-texto {
        font-size: 16px;
        margin: auto;
        margin-top: 10px;
        margin-bottom: 25px;
        color: #4a3c3b;
    }

    .popup-content button {
        background: #ffdf56;
        color: #000;
        font-weight: bold;
        border: none;
        padding: 12px 25px;
        font-size: 16px;
        border-radius: 30px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .button-desktop {
        display: none;

    }

    .formulario-horizontal .grupo-input button{
        display: none;
    }

}