/* Legales.
   CSS por pagina escrito a mano, como el resto del sitio. No pasa por Mix. */

/* ---- Encabezado sobre el fondo celeste ---- */

.intro {
    position: relative;
    /* Este padding es el que despeja el header fijo. */
    padding-top: 208px;
}

/* La trama. El background-image lo inyecta el Blade, porque asset() no se
   puede usar desde una hoja estatica. */
.intro:before,
.intro:after {
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: block;
    width: 25%;
    height: 100%;
    position: absolute;
}

.intro:before {
    top: 20px;
    left: 0;
    background-position: left top;
}

.intro:after {
    right: 0;
    bottom: 0;
    background-position: right bottom;
}

.heading {
    font-family: PlayfairDisplay-Bold, serif;
    font-size: 45px;
    line-height: 72px;
    color: #020226;
    margin-bottom: 30px;
}

.subheading {
    font-family: Poppins-Regular, sans-serif;
    font-size: 22px;
    line-height: 32px;
    color: #66667C;
    margin-bottom: 2rem;
    padding-bottom: 60px;
}

.subheading span {
    font-family: Poppins-Medium, sans-serif;
    color: #020226;
}

/* ---- El bloque blanco con los cinco temas ---- */

.legales-container {
    background-color: #FFFFFF;
    padding-top: 70px;
    padding-bottom: 120px;
}

.legal {
    border-top: 1px solid #E4E7F2;
    padding: 40px 0;
}

.legal:first-child {
    border-top: 0;
    padding-top: 0;
}

.legal-titulo {
    font-family: PlayfairDisplay-Bold, serif;
    font-size: 30px;
    line-height: 40px;
    color: #020226;
    margin: 0 0 14px;
}

.legal-texto {
    font-family: Poppins-Regular, sans-serif;
    font-size: 18px;
    line-height: 30px;
    color: #66667C;
    margin: 0 0 26px;
    max-width: 860px;
}

.legal-texto a {
    color: #003184;
    text-decoration: underline;
}

.legal-boton {
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 17px;
    line-height: 28px;
    color: #FFFFFF;
    background-color: #003184;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    padding: 14px 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.legal-boton:hover,
.legal-boton:focus {
    background-color: #020226;
    color: #FFFFFF;
    text-decoration: none;
}

/* ---- Formulario ---- */

.legal-form {
    margin-top: 32px;
    max-width: 720px;
}

.legal-fila {
    display: flex;
    gap: 20px;
}

.legal-fila .legal-campo {
    flex: 1 1 0;
    min-width: 0;
}

.legal-campo {
    margin-bottom: 22px;
}

.legal-campo label {
    font-family: Poppins-SemiBold, sans-serif;
    font-size: 16px;
    color: #020226;
    display: block;
    margin-bottom: 8px;
}

.legal-campo input[type="text"],
.legal-campo input[type="email"],
.legal-campo textarea {
    font-family: Poppins-Regular, sans-serif;
    font-size: 17px;
    color: #020226;
    background-color: #FFFFFF;
    border: 1px solid #E4E7F2;
    border-radius: 10px;
    padding: 14px 16px;
    width: 100%;
}

.legal-campo input:focus,
.legal-campo textarea:focus {
    border-color: #003184;
    outline: 2px solid rgba(0, 49, 132, 0.15);
}

.legal-campo textarea {
    resize: vertical;
}

.legal-error {
    font-family: Poppins-Regular, sans-serif;
    font-size: 15px;
    color: #A3202A;
    display: block;
    margin-top: 8px;
}

.legal-enviar {
    width: 100%;
    max-width: 260px;
}

/* Honeypot: fuera de la vista y del foco, pero presente en el DOM.
   No se usa display:none porque algunos bots omiten los campos ocultos. */
.legal-website {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

/* ---- Avisos ---- */

.legal-aviso {
    font-family: Poppins-Regular, sans-serif;
    font-size: 17px;
    line-height: 27px;
    border-radius: 10px;
    margin: 0 0 26px;
    max-width: 720px;
    padding: 16px 20px;
}

.legal-aviso-ok {
    background-color: #E7F4EC;
    border-left: 4px solid #2F7D4F;
    color: #1F5334;
}

.legal-aviso-error {
    background-color: #FBEAEA;
    border-left: 4px solid #A3202A;
    color: #7A1820;
}

@media only screen and (max-width: 1023px) {
    .intro:before,
    .intro:after {
        width: 78%;
    }

    .heading {
        font-size: 40px;
        line-height: 45px;
        margin-bottom: 20px;
    }

    .legales-container {
        padding-top: 45px;
        padding-bottom: 80px;
    }

    .subheading {
        font-size: 18px;
        line-height: 32px;
        padding-bottom: 40px;
    }

    .legal {
        padding: 30px 0;
    }

    .legal-titulo {
        font-size: 24px;
        line-height: 32px;
    }

    .legal-texto {
        font-size: 16px;
        line-height: 27px;
    }

    .legal-boton {
        font-size: 16px;
        text-align: center;
        width: 100%;
    }

    .legal-fila {
        flex-direction: column;
        gap: 0;
    }

    .legal-enviar {
        max-width: none;
    }
}
