/* ==========================
   LOGIN PAGE - override
========================== */

/* Quita la imagen de fondo general del body solo en esta página */
body.login-page {
    background-image: none;
    background-color: #f2f2f2;
}

.login-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.login-section {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto 90px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
}

.login-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.login-info {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.login-info h3 {
    display: inline-block;
    font-size: 2.2rem;
    color: #1269AE;
    margin-top: 13px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    transition: .3s;
    align-items: center;
    margin-right: -83px;
}

.login-info h3:hover {
    color: #5CA32B;
    transform: scale(1.05);
}

.login-info h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #1269AE, #5CA32B);
    border-radius: 20px;
}

.login-info p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.login-form-wrap {
    width: 100%;
    max-width: 480px;
}

/* ==========================
   TARJETA DEL FORMULARIO
========================== */

#login {
    width: 100%;
    max-width: 480px;
    margin: 0;
    background: #fff;
    border-radius: 18px;
    padding: 40px 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 3px solid transparent;
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #1269AE, #5CA32B);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: .35s;
}

#login:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(18,105,174,.22);
}

#login form p {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
    text-align: left;
}

#login label {
    color: #1269AE;
    font-weight: bold;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.required-tag {
    display: inline-block;
    color: #d9534f;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-left: 6px;
    vertical-align: middle;
}

#login input[type="text"],
#login input[type="email"],
#login input[type="tel"],
#login textarea {
    box-sizing: border-box;
    border: 2px solid #e2e8ef;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 1rem;
    color: #333;
    background: #f8fafc;
    transition: .3s;
    outline: none;
    margin-bottom: -24px;
}

#login input[type="text"]:focus,
#login input[type="email"]:focus,
#login input[type="tel"]:focus,
#login textarea:focus {
    border-color: #1269AE;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18,105,174,.12);
}

#login input.invalid,
#login textarea.invalid {
    border-color: #d9534f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(217,83,79,.12);
}

#login textarea {
    resize: vertical;
    font-family: "Inter", sans-serif;
}

#login .error-msg {
    color: #d9534f;
    font-size: .82rem;
    margin-top: 6px;
    min-height: 16px;
}

/* ==========================
   CASILLA POLÍTICA DE PRIVACIDAD
========================== */

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8ef;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: -20px;
    transition: .3s;
}

.privacy-check:hover {
    border-color: #1269AE;
}

.privacy-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #1269AE;
    cursor: pointer;
}

.privacy-check-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.privacy-check label {
    width: 100%;
    font-size: .88rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
    cursor: pointer;
}

.privacy-check a {
    color: #1269AE;
    font-weight: bold;
    text-decoration: underline;
    transition: .3s;
}

.privacy-check a:hover {
    color: #5CA32B;
}

.privacy-check.invalid {
    border-color: #d9534f;
    background: #fff5f5;
}

.privacy-check .error-msg {
    color: #d9534f;
    font-size: .82rem;
    margin-top: 8px;
    min-height: 16px;
}

/* ==========================
   BOTONES
========================== */

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 49px;
    margin-bottom: -26px;
}

#login input[type="submit"],
#login input[type="reset"] {
    border: none;
    border-radius: 30px;
    padding: 13px 30px;
    font-weight: bold;
    letter-spacing: .5px;
    cursor: pointer;
    transition: .3s;
}

#login input[type="submit"] {
    background: #1269AE;
    color: #fff;
    box-shadow: 0 8px 20px rgba(18,105,174,.3);
}

#login input[type="submit"]:hover {
    background: #5CA32B;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(92,163,43,.35);
}

#login input[type="reset"] {
    background: transparent;
    color: #1269AE;
    border: 2px solid #1269AE;
}

#login input[type="reset"]:hover {
    background: #1269AE;
    color: #fff;
    transform: scale(1.05);
}

.form-feedback {
    text-align: left;
    margin-top: 20px;
    font-weight: bold;
}

.form-feedback.success {
    color: #5CA32B;
}

.form-feedback.error {
    color: #d9534f;
}

/* ==========================
   MAPA Y CONTACTO (columna derecha)
========================== */

.login-right {
    flex: 1;
    margin-left: 60px;
    margin-top: 145px;
    min-width: 320px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.login-right-intro {
    font-size: 1rem;
    font-weight: normal;
    font-style:oblique;
    color: black;
    line-height: 1.7;
    margin-top: -30px;
    text-align: justify;
    background: #fff;
    border-radius: 18px;
    padding: 25px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border: 3px solid green;
}

.login-right-info {
    font-size: .95rem;
    font-weight: normal;
    color: black;
    line-height: 1.8;
    text-align: justify;
    background: #fff;
    border-radius: 18px;
    padding: 25px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    margin-top: -10px;
}

.login-right-info strong {
    color: #1269AE;
    font-weight: 700;
}


.login-right-title {
    display: block;
    text-align: center;
    text-decoration: underline;
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.login-right-title:hover {
    color: #5CA32B;
    cursor: alias;
    transform: scale(1.05);
}

.map-embed {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    background-image:
        linear-gradient(#fff, #fff),
        linear-gradient(135deg, #1269AE, #5CA32B);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: .35s;
    margin-top: 0px;
}

.map-embed:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(18,105,174,.2);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 300px;
}

.contact-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
    background: #fff;
    border-radius: 18px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    margin-top: 10px;
    border: 3px solid #1269AE;
}

.contact-item {
    min-width: 0;
    text-align: center;
}

.contact-item i {
    font-size: 1.7rem;
    color: #1269AE;
    margin-bottom: 10px;
    display: block;
}

.contact-item h4 {
    color: #1269AE;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 6px;
    line-height: 1.4;
}

.contact-item h4:hover {
    color: #5CA32B;
    cursor:alias;
    transform: scale(1.1);
}

.contact-item p {
    font-size: .8rem;
    font-family: "Inter", sans-serif;
    color: black;
    margin: 0;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-item a {
    color: black;
    font-family: "Inter", sans-serif;
    text-decoration: underline;
    transition: .3s;
}

.contact-item a:hover {
    color: goldenrod;
}

.login-right-img {
    display: block;
    width: 100%;
    max-width: 600px;   /* sube este valor para hacerla aún más grande */
    max-height: 700px;  /* sube este valor para hacerla aún más alta */
    height: 280px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    margin-top: 15px;
    border: 2px solid gray;
}


/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {

    .login-section {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .login-info,
    .login-form-wrap,
    .login-right {
        max-width: 100%;
    }

    .login-right {
        margin-left: 0;      
        margin-top: 0;       
        width: 100%;
    }

    .login-info h3 {
        margin-right: 0;    
    }

    .contact-icons {
        grid-template-columns: 1fr 1fr;
    }

    .login-right-img {
        height: auto;
        max-height: 320px;
        object-fit: cover;
    }

    .cta-wrap {
        margin-top: 40px;
        margin-bottom: 0;
        text-align: center;
    }

    .cta-wrap a {
        margin: 0 auto;           
        display: inline-flex;
        justify-content: center;
        font-size: .85rem;
        padding: 10px 18px;
    }
}

@media (max-width: 600px) {

    .btn-contacto {
        padding: 12px 26px;
        font-size: .9rem;
    }

    .contact-icons {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }

    #login {
        padding: 30px 22px;
    }

    .login-right-img {
        max-height: 240px;
    }
}