/* =========================================================
   CONTACT HERO
========================================================= */

.contact-hero{

    position: relative;

    height: 520px;

    overflow: hidden;

    display: flex;

    align-items: center;

}

.contact-hero-bg{

    position: absolute;

    inset: 0;

}

.contact-hero-bg img{

    width: 100%;
    height: 100%;

    object-fit: cover;

}

.contact-hero-overlay{

    position: absolute;

    inset: 0;

    background:
    linear-gradient(
        90deg,
        rgba(0,0,0,.72) 0%,
        rgba(0,0,0,.56) 45%,
        rgba(0,0,0,.30) 100%
    );

}

.contact-hero .container{

    position: relative;

    z-index: 2;

}

.contact-hero-content{

    max-width: 700px;

    color: #ffffff;

}

.contact-hero-tag{

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 24px;

     margin-top:84px;

    margin-bottom: 22px;

    border-radius: 100px;

    background: rgba(255,255,255,.12);

    border: 1px solid rgba(255,255,255,.20);

    color: #ffffff;

    font-size: .82rem;

    font-weight: 700;

    letter-spacing: .14em;

}

.contact-hero-content h1{

    font-size: 4rem;

    line-height: 1.02;

    margin-bottom: 24px;
   

    font-weight: 800;

    color: #ffffff;

}

.contact-hero-content p{

    max-width: 680px;

    font-size: 1.08rem;

    line-height: 1.8;
    font-weight: 700;

    color: rgba(255,255,255,.92);

}



/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page-content{

    position: relative;

    padding: 110px 0 120px;

    background: #f4f7fb;

}



/* =========================================================
   CONTACT GRID
========================================================= */

.contact-grid{

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 34px;

    margin-bottom: 70px;

}



/* =========================================================
   CONTACT CARDS
========================================================= */

.contact-card{

    position: relative;

    background: #ffffff;

    border-radius: 28px;

    padding: 22px;

    box-shadow:
    0 18px 50px rgba(13,38,76,.08);

    border: 1px solid rgba(10,35,66,.05);

}

.contact-card-tag{

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 22px;

    margin-bottom: 22px;

    border-radius: 100px;

    background: #edf3fb;

    border: 1px solid rgba(10,35,66,.08);

    color: #002b5c;

    font-size: 1rem;

    font-weight: 700;

    letter-spacing: .12em;

}

.contact-card h2{

    font-size: 1.7rem;

    line-height: 0.5;

    margin-bottom: 18px;

    color: #0a1d37;

    font-weight: 500;

}

.contact-card p{

    font-size: 1rem;

    line-height: 1.4;

    color: #5f6b7a;

}



/* =========================================================
   FORM
========================================================= */

.contact-form{

    margin-top: 34px;
    margin-bottom: 44px;

}

.form-row{

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;

    margin-bottom: 22px;

}

.form-group{

    display: flex;

    flex-direction: column;

}

.form-group label{

    margin-bottom: 10px;

    color: #37240a;

    font-size: .92rem;

    font-weight: 700;

}

.form-group input,
.form-group select,
.form-group textarea{

    width: 100%;

    border: 1px solid #dbe3ee;

    border-radius: 14px;

    background: #ffffff;

    padding: 16px 18px;

    font-size: .96rem;

    color: #757677;

    outline: none;

    transition: .3s ease;

}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{

    border-color: #d71920;

    box-shadow:
    0 0 0 4px rgba(215,25,32,.08);

}

.form-group textarea{

    min-height: 220px;

    resize: vertical;

}

.contact-captcha{

    display: flex;

    align-items: center;

    justify-content: center;

    height: 78px;

    width: 340px;
     max-width: 100%;

    margin: 10px 0 28px;

    border-radius: 16px;

    border: 2px dashed #d8e1ec;

    background: #f8fbff;

    color: #6d7885;

    font-size: .92rem;

    font-weight: 600;

}

.contact-captcha .g-recaptcha{

    transform: scale(.92);

    transform-origin: center;

}



/* =========================================================
   BUTTON
========================================================= */

.contact-form .btn-primary{

    width: 50%;
    display: block;
    margin: 0 auto;
   
    height: 60px;

    border: none;

    border-radius: 16px;

    background: #d71920;

    color: #ffffff;

    font-size: 1rem;

    font-weight: 700;

    cursor: pointer;

    transition: .3s ease;

}

.contact-form .btn-primary:hover{

    transform: translateY(-3px);

    background: #b80f15;

}



/* =========================================================
   CONTACT INFO
========================================================= */

.contact-info-list{

    display: flex;

    flex-direction: column;

    gap: 22px;

    margin-top: 30px;

    margin-bottom: 32px;

}

.contact-info-item{

    padding-bottom: 5px;

    border-bottom: 1px solid rgba(10,35,66,.08);

}

.contact-info-item:last-child{

    border-bottom: none;

    padding-bottom: 0;

}

.contact-info-item h4{

    margin-bottom: 1px;

    color: #002b5c;

    font-size: 1rem;

    font-weight: 400;

}

.contact-info-item p{

    margin-bottom: 4px;

    font-size: .97rem;

    line-height: 1.2;

    color: #586575;

}

.contact-email-rd {
    color: #0b3d6d; /* Azul oscuro corporativo */
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email-rd:hover {
    color: #56a5f5;
    text-decoration: underline;
}

.contact-email-rd:visited {
    color: #0b3d6d;
}



/* =========================================================
   MAP
========================================================= */

.contact-map{

    position: relative;

    width: 100%;

    height: 240px;

    overflow: hidden;

    border-radius: 20px;

    margin-bottom: 28px;

}

.contact-map iframe{

    width: 100%;
    height: 100%;

    border: none;

}



/* =========================================================
   BRANDING TEXT
========================================================= */

.contact-branding-text{

    margin-top: 10px;

    padding-top: 24px;

    border-top: 1px solid rgba(10,35,66,.08);

    color: #5f6b7a;

    font-size: .98rem;

    line-height: 1.8;

}



/* =========================================================
   POSITIONING ROW
========================================================= */

.contact-positioning-row{

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

}

.positioning-item{

    display: flex;

    align-items: flex-start;

    gap: 18px;

    background: #ffffff;

    padding: 30px;

    border-radius: 24px;

    box-shadow:
    0 14px 40px rgba(13,38,76,.06);

    border: 1px solid rgba(10,35,66,.05);

}

.positioning-icon{

    width: 62px;
    height: 62px;

    min-width: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background: #edf3fb;

    color: #d71920;

    font-size: 1.5rem;

}

.positioning-content h3{

    margin-bottom: 10px;

    color: #0a1d37;

    font-size: 1.12rem;

    font-weight: 800;

}

.positioning-content p{

    color: #5f6b7a;

    font-size: .95rem;

    line-height: 1.7;

}



/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 991px){

    .contact-hero{

        height: auto;

        padding: 120px 0;

    }

    .contact-hero-content h1{

        font-size: 3rem;

    }

    .contact-grid{

        grid-template-columns: 1fr;

    }

    .contact-positioning-row{

        grid-template-columns: 1fr;

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 767px){

    .contact-page-content{

        padding: 80px 0 90px;

    }

    .contact-hero{

        padding: 110px 0 90px;

    }

    .contact-hero-content h1{

        font-size: 2.3rem;

    }

    .contact-hero-content p{

        font-size: 1rem;

    }

    .contact-card{

        padding: 28px;

        border-radius: 22px;

    }

    .contact-card h2{

        font-size: 1.7rem;

    }

    .form-row{

        grid-template-columns: 1fr;

        gap: 18px;

    }

    .contact-map{

        height: 240px;

    }

    .positioning-item{

        flex-direction: column;

    }


}

/* ==========================================
   MENSAJES FORMULARIO
========================================== */

.form-success{

    background: #e8f8ee;

    border: 1px solid #8fd3a8;

    color: #0f6b2f;

    padding: 16px 18px;

    border-radius: 12px;

    margin-bottom: 24px;

    font-size: .95rem;

    line-height: 1.7;

    font-weight: 600;

}

.form-error{

    background: #fdecec;

    border: 1px solid #f3a8a8;

    color: #b42318;

    padding: 16px 18px;

    border-radius: 12px;

    margin-bottom: 24px;

    font-size: .95rem;

    line-height: 1.7;

    font-weight: 600;

}
