
/*INFO DE CONTACTO*/

.contacto{

    padding:30px 15px 60px;

    background:#f5f5f5;

    margin-top: 10px !important;

    

}

.sede{

    background:#fff;

    border-radius:2px;

    padding:25px 20px;

    margin-bottom:25px;

    box-shadow:0 3px 15px rgba(0,0,0,.09);

    position:relative;

    overflow:hidden;
    
    border:1px solid #ddd;
}


.sede::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:8px;

    height:100%;

}


.sede--azul::before{

    background:#2E83C1;

}

.sede--verde::before{

    background:#1FB76A;

}


.sede__encabezado{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:20px;

}


.sede__encabezado img{

    width:30px;

}


.sede--azul h2{

    color:#2E83C1;

}

.sede--verde h2{

    color:#1FB76A;

}

.sede--azul h2{

    color:#2E83C1;

}

.sede--verde h2{

    color:#1FB76A;

}

.sede__direccion{

    font-size:14px;

    line-height:1.7;

    color:#666;

    margin-bottom:25px;


}

.sede__datos{

    display:flex;

    flex-direction:column;

    gap:18px;

    margin-bottom:25px;

}

.sede__datos a{

    display:flex;

    align-items:center;

    gap:12px;

    color:#555;

    font-size: 14px;

    text-decoration:underline;

}

.sede__datos img{

    width:32px;

    height:32px;

}

.sede__mapa{

   width:100%;

    height:200px;

    border:none;

    border-radius:12px;

    display:block;


}


.sede h2{

    font-size:20px;

    font-weight:700;

    text-align:left;

    padding: 0;

   

}

.sede h2::after{

    display:none;

}


/*REDES SOCIALES*/

.redes{

    background:linear-gradient(90deg,  #1fb76a, #4580b9);
    padding:20px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    min-height:90px;

}


.redes__icono img{

    width:28px;

    height:auto;

}

.redes__contenido{

    flex:1;

    margin-left:10px;  /* mueve hacia la derecha */

    margin-top:-30px;   /* sube el bloque */

}

.redes__contenido h2{

    font-size:1.05rem;

    font-weight:700;

    color:#fff;

    margin:0 0 5px;

    text-align:left;

}

.redes__contenido h2::after{

    display:none;

}

.redes__contenido p{

    font-size:.65rem;

    color:rgba(255,255,255,.85);

    margin:0;

    line-height:1.4;

}

.redes__links{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.redes__links a{

    display:flex;

    align-items:center;

    gap:6px;

    text-decoration:none;

    color:#fff;

    font-size:.75rem;

}

.redes__links img{

    width:16px;

    height:16px;

}


/*FORMULARIO*/

.contacto-formulario{

    padding:40px 20px 60px;
    

}

.contacto-formulario__contenedor{

    background:#ffffff;

    border:1px solid #d9d9d9;

    border-radius:12px;

    padding:25px 20px;

}

.contacto-formulario h2{

    color:#2E83C1;

    font-size:1.4rem;

    text-align:left;

    margin-bottom:8px;

}

.contacto-formulario h2::after{

    display:none;

}

.contacto-formulario p{

    color:#666;

    font-size:.85rem;

    margin-bottom:25px;

}

.formulario{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.formulario input,
.formulario textarea{

    width:100%;

    padding:15px;

    border:1px solid #d9d9d9;

    border-radius:8px;

    font-size:1rem;

    font-family:inherit;

    box-sizing:border-box;

    transition:.3s ease;


}

.formulario textarea{

    min-height:140px;

    resize:none;

}

.formulario button{

    border:none;

     background:linear-gradient(
        90deg,
        #1FB76A,
        #2E83C1
    );
    color:#fff;

    font-size:1.1rem;

    font-weight:600;

    padding:14px;

    border-radius:12px;

    cursor:pointer;

    transition:.3s ease;

}



.formulario button:hover{

    transform:translateY(-3px);

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}




.formulario input:focus,
.formulario textarea:focus{

    outline:none;

    

    

    transform:translateY(-2px);


    border-bottom:3px solid transparent;

    border-image:linear-gradient(
        90deg,
        #1FB76A,
        #2E83C1
    ) 1;
}

.formulario input::placeholder,
.formulario textarea::placeholder{

    transition:.3s ease;

}

.formulario input:focus::placeholder,
.formulario textarea:focus::placeholder{

    opacity:.4;

}


/*VENTANA EMERGENTE*/


.mensaje-exito{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.5);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:9999;

}

.mensaje-exito.activo{

    display:flex;

}

.mensaje-exito__contenido{

    background:white;

    padding:30px;

    border-radius:12px;

    text-align:center;

    width:90%;
    max-width:400px;

    box-shadow:0 10px 30px rgba(0,0,0,.2);

}

.mensaje-exito__contenido h3{

    color:#1FB76A;

    margin-bottom:10px;

}

.mensaje-exito__contenido button{

    margin-top:20px;

    padding:10px 20px;

    border:none;

    border-radius:8px;

    background-color: #2E83C1;

    color:white;

    cursor:pointer;

}





/*VERSION ESCRITORIO*/




@media (min-width:768px){ 


.contacto{

    max-width:1300px;

    margin:0 auto;

    padding:80px 40px;

    background:#ffffff;

    margin-top: -70px;
}


.sede{

    display:grid;

    grid-template-columns:1fr 520px;

    grid-template-areas:
        "encabezado mapa"
        "direccion mapa"
        "datos mapa";

    column-gap:60px;

    align-items:start;

    padding:40px;

    margin-bottom:40px;

}


/* Borde lateral derecho */

.sede::before{

    left:auto;

    right:0;

    width:10px;

}


/* Áreas */

.sede__encabezado{

    grid-area:encabezado;

    margin-bottom:25px;

}


.sede__direccion{

    grid-area:direccion;

    margin-bottom:30px;

}


.sede__datos{

    grid-area:datos;

    margin-bottom:0;

}


.sede__mapa{

    grid-area:mapa;

    width:100%;

    height:320px;

    border-radius:12px;

}


/* Tipografías */

.sede h2{

    font-size:25px;

}


.sede__encabezado img{

    width:40px;

}


.sede__direccion{

    font-size:18px;

    line-height:1.8;

}


.sede__datos a{

    font-size:18px;

}


.sede__datos img{

    width:40px;

    height:40px;

}

.sede--azul{

    background:#e1ebf3;

}

.sede--verde{

    background:#f5f9fb;

}




/* REDES SOCIALES */ 

.redes{

    padding:35px 80px;

    gap:35px;

    min-height:230px;

}


.redes__icono img{

    width:80px;

}


.redes__contenido{

    flex:1;

}


.redes__contenido h2{

    font-size:2.3rem;

    margin-bottom:10px;

}


.redes__contenido p{

    font-size:1rem;

    line-height:1.6;

    margin-left: 10px;

    margin-top: -8px;

}


.redes__links{

    gap:15px;

    margin-right: 30px;

}


.redes__links a{

    font-size:18px;

    gap:10px;

    transition:.3s ease;

}


.redes__links a:hover{

    transform:translateX(5px);

    opacity:.9;

}




.redes__links img{

    width:40px;

    height:40px;

}



/*FORMULARIO*/

.formulario{

     display:grid;

    grid-template-columns:420px 1fr;

    grid-template-areas:
        "nombre mensaje"
        "telefono mensaje"
        "correo mensaje"
        ". boton";

    row-gap:25px;

    column-gap:35px;

    align-items:start;

}



/* Nombre */

.formulario input:nth-of-type(1){

    grid-area:nombre;

}

/* Correo */

.formulario input:nth-of-type(2){

    grid-area:correo;

}

/* Teléfono */

.formulario input:nth-of-type(3){

    grid-area:telefono;

}

/* Mensaje */

.formulario textarea{

    grid-area:mensaje;
    
     min-height:150px;

}

/* Botón */

.formulario button{
    grid-area:boton;

    justify-self:end;

    width:100%;

    height:40px;

    margin-top: -65px;

    border-radius: 10px;
}


.contacto-formulario{
    background-color: #f5f5f5;
}


.contacto-formulario__contenedor{
    justify-content: center;
    max-width: 1000px;
    margin-left: 12%;
    margin-top: 30px;
}

.contacto-formulario__contenedor h2{
    font-size: 30px;
}

.contacto-formulario__contenedor p{
    font-size: 18px;
}

}

