* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #fff;
}

/* HERO */

.hero {
    position: relative;
    width: 100%;
    max-width: 1220px;
    height: 720px;
    border-radius: 22px;
    overflow: hidden;
}

/* Preferente (al final del CSS) */
#preferente-landing .hero {
    background-image: url('img/fondo_preferente.avif?v=3') !important;
    background-size: cover !important;
    background-position: center !important;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    background-color: rgba(125, 69, 90, 0.35);
    top: 0;
    left: 0;
    z-index: 1;
}

/* Caja centrada */
.hero-content {
    position: absolute;
    width: 574px;
    height: 347px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: white !important;
}

.hero-content p {
    font-size: 50px;
    font-weight: 400;
    line-height: 55px;
    text-align: center;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    height: 66px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.arrow {
    font-size: 18px;
    margin-left: 8px;
}

.btn-primary {
    background-color: white;
    color: #5C3142
}

.btn-primary:hover {
    background-color: #EBD0DB;
}

.btn-secondary {
    background-color: transparent;
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Formulaio */
.form-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.form-wrapper {
    max-width: none !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.form-container {
    background-color: rgba(242, 242, 247, 0.9);
    border-radius: 22px !important;
    overflow: hidden;
    width: 596px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    display: flex;
    gap: 25px;
    flex-direction: column;
}

.form-title {
    font-size: 56px;
    font-weight: 700;
    color: white !important;
    text-align: center;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.form-container h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #7D455A;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.form-group input {
    width: 246px;
    height: 60px;
    padding: 16px;
    border-radius: 50px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: white;
}

.submit-button {
    background-color: #7D455A !important;
    color: white !important;
    margin-top: 30px;
    border: none !important;
    width: 100%;
    height: 66px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background-color: #693A4C !important;
}

.close-button {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none !important;
    border: none !important;
    font-size: 28px;
    color: #888 !important;
    cursor: pointer;
}

.info-icon {
    display: inline-block;
    cursor: pointer;
    color: #7B859B;
    margin-top: 15px;
    font-size: 12px;
    font-family: Poppins, Arial;
    position: relative;
}

.texto-checkbox a {
    color: #7B859B !important;
    text-decoration: underline;
    font-weight: 400;
    display: inline;
}

.texto-checkbox a:hover {
    color: #b85574 !important;
}

.info-icon {
    display: inline-block;
    cursor: pointer;
    color: #7B859B;
    margin-top: 15px;
    font-size: 12px;
    font-family: Poppins, Arial;
    position: relative;
}

.popup {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    width: 270px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
    font-size: 14px;
    color: #333;
}

.popup p {
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
}

.popup.show {
    display: block !important;
}

/* PARA QUE NO SE CORTE */
#preferente-landing .form-container {
    overflow: visible !important;
}

.label-checkbox-form {
    font-size: 13px;
    padding-top: 12px;
    font-family: Poppins, helvetica, sans-serif;
    color: #7B859B;
    margin-right: 5%;
    vertical-align: middle;
    cursor: pointer;
    display: inline-block;
}

.container-checkbox-form {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-top: 10px;
    margin-bottom: 5px;
    margin-left: 0%;

    input {
        margin-right: 2%;
        margin-bottom: 2%;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arreglar hover para que no lo pise el tema/Elementor */
.hero .buttons .btn-primary:hover {
    background-color: #EBD0DB !important;
    color: #5C3142 !important;
    border-color: #FFFFFF !important;
}

.hero .buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* Asegurar estados focus/active coherentes (opcional pero recomendable) */
.hero .buttons .btn-primary:focus,
.hero .buttons .btn-primary:active {
    background-color: #EBD0DB !important;
    color: #5C3142 !important;
    outline: none !important;
    box-shadow: none !important;
}

.hero .buttons .btn-secondary:focus,
.hero .buttons .btn-secondary:active {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Botón primario: color de texto y fondo forzados */
.hero .btn-primary {
    background-color: #ffffff !important;
    color: #5C3142 !important;
    border: 2px solid #ffffff !important;
}

/* Asegurar que el span flecha hereda el color correcto */
.hero .btn-primary .arrow {
    color: #5C3142 !important;
}

/* Hover del primario */
.hero .btn-primary:hover {
    background-color: #EBD0DB !important;
    color: #5C3142 !important;
    border-color: #ffffff !important;
}

/* ====== FIX ESTILOS DENTRO DEL MODAL ====== */

/* Inputs redondeados, alto y colores */
.form-modal .form-container input[type="text"],
.form-modal .form-container input[type="email"],
.form-modal .form-container input[type="tel"] {
    width: 246px !important;
    height: 60px !important;
    padding: 16px 20px !important;
    border-radius: 50px !important;
    border: 1px solid #ccc !important;
    background: #ffffff !important;
    color: #000 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Para móviles, respeta el full width */
@media (max-width: 768px) {

    .form-modal .form-container input[type="text"],
    .form-modal .form-container input[type="email"],
    .form-modal .form-container input[type="tel"] {
        width: 100% !important;
        height: 64px !important;
    }
}

/* Botón de enviar: tamaño, color, quitar estilos del tema */
.form-modal .form-container .submit-button {
    display: block !important;
    width: 100% !important;
    height: 66px !important;
    border-radius: 50px !important;

    background-color: #7D455A !important;
    color: #ffffff !important;

    border: none !important;
    padding: 0 !important;
    margin-top: 30px !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 66px !important;
    text-align: center !important;

    cursor: pointer !important;
    transition: background .3s !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.form-modal .form-container .submit-button:hover,
.form-modal .form-container .submit-button:focus,
.form-modal .form-container .submit-button:active {
    background-color: #693A4C !important;
    color: #ffffff !important;
}

/* Cerrar (la X) sin estilos del tema */
.form-modal .close-button {
    background: none !important;
    border: none !important;
    color: #888 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

/* Mobile*/
@media (max-width: 768px) {

    body,
    html {
        overflow: auto !important;
        height: auto !important;
    }

    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0 24px;
        min-height: 829px;
        height: auto;
        overflow: visible;
        border-radius: 22px;
        position: relative;
    }

    .hero-content {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        gap: 30px;
        text-align: center;
    }


    .hero-content h1 {
        font-size: 40px;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 32px;
        font-weight: 400;
        line-height: 1.3;
    }

    .hero .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        margin-top: 40px;
        width: 100% !important;
        max-width: none !important;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-top: 40px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 219px;
        height: 54px;
        font-size: 16px;
        border-radius: 30px;
        border: 1.5px solid white;
        padding: 18px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .arrow {
        font-size: 16px;
        margin-left: 8px;
    }

    /* --- FORMULARIO RESPONSIVE --- */

    .form-modal {
        position: relative;
        inset: auto;
        padding: 16px 0 24px;
        justify-content: center;
        align-items: flex-start;
        height: auto;
        overflow: visible;
        z-index: 3;
        display: none;
    }

    .form-wrapper {
        margin-top: 16px;
        width: 100%;
        align-items: center;
    }

    .form-title {
        font-size: 36px;
        margin-bottom: 20px;
        text-align: center;
        color: white;
    }

    .form-container {
        border-radius: 22px !important;
        overflow: hidden;
        width: 100%;
        max-width: 348px;
        padding: 14px 16px;
        background-color: rgba(242, 242, 247, 0.8);
        box-shadow: none;
        gap: 20px;
        margin: 0 auto;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-group input {
        width: 100%;
        height: 64px;
        border-radius: 30px;
        font-size: 16px;
        padding: 14px;
        background-color: #ffffff;
    }

    .submit-button {
        width: 100%;
        height: 66px;
        border-radius: 30px;
        font-size: 16px;
        margin-top: 32px;
    }

    .close-button {
        top: 8px;
        right: 12px;
        font-size: 24px;
    }
}