/*====================================
        ESTILOS GENERALES
====================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{

    --azul:#0A2E5D;
    --amarillo:#F4B400;
    --gris:#F5F5F5;
    --grisOscuro:#333;
    --blanco:#fff;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;
    background:#fff;
    color:#333;

}

section{

    padding:90px 0;

}

.container{

    width:90%;
    max-width:1200px;
    margin:auto;

}

img{

    width:100%;
    display:block;

}

h1,h2,h3,h4{

    color:var(--azul);

}

p{

    line-height:1.8;
    color:#666;

}

.btn{

    display:inline-block;
    background:var(--amarillo);
    color:#000;
    padding:15px 35px;
    text-decoration:none;
    border-radius:5px;
    font-weight:600;
    transition:.3s;

}

.btn:hover{

    background:var(--azul);
    color:#fff;

}

/*====================================
            HERO
====================================*/
.hero{

    width:100%;
    height:60vh;
    background:url("../img/hero/banner1.jpg") center center/cover no-repeat;
    position:relative;
    padding: 0; /* 1. ¡NUEVO! Quitamos el padding de 90px para que no deforme la imagen */

}

.hero::before{

    content:"";
    position:absolute;
    top: 0;    /* 2. ¡NUEVO! Forzamos a la capa oscura a iniciar arriba del todo */
    left: 0;   /* 3. ¡NUEVO! Forzamos a la capa oscura a iniciar a la izquierda del todo */
    width:100%;
    height:100%;
    background:rgba(0,0,0,.55);

}

.hero-content{

    position:relative;
    z-index:5;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    text-align:center;
    color:#fff;

}

.hero-content h1{

    font-size:60px;
    color:#fff;
    margin-bottom:20px;

}

.hero-content p{

    color:#eee;
    font-size:20px;
    width:70%;
    margin-bottom:35px;

}

/*====================================
        TITULOS
====================================*/

.section-title{

    text-align:center;
    margin-bottom:60px;

}

.section-title h2{

    font-size:40px;
    margin-bottom:15px;

}

.section-title span{

    color:var(--amarillo);

}

.section-title p{

    width:70%;
    margin:auto;

}
/*====================================
            SERVICIOS
====================================*/

.servicios{
    background:var(--gris);
}

.servicios-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.servicio-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.4s;
}

.servicio-card:hover{
    transform:translateY(-12px);
}

.servicio-card img{
    height:250px;
    object-fit:cover;
}

.servicio-info{
    padding:25px;
}

.servicio-info h3{
    margin-bottom:15px;
    font-size:24px;
}

.servicio-info p{
    margin-bottom:20px;
}

.servicio-info a{
    color:var(--azul);
    text-decoration:none;
    font-weight:600;
}

.servicio-info a:hover{
    color:var(--amarillo);
}

/*====================================
            NOSOTROS
====================================*/

.nosotros{
    background:#fff;
}

.nosotros-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.nosotros-img img{
    border-radius:10px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.nosotros-info h2{
    font-size:40px;
    margin-bottom:20px;
}

.nosotros-info p{
    margin-bottom:20px;
}

.nosotros-info ul{
    list-style:none;
    margin-top:20px;
}

.nosotros-info ul li{
    margin-bottom:15px;
    font-size:17px;
}

.nosotros-info ul li i{
    color:var(--amarillo);
    margin-right:10px;
}

/*====================================
            VALORES
====================================*/

.valores{
    background:var(--gris);
}

.valores-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.valor{
    background:#fff;
    padding:35px;
    text-align:center;
    border-radius:10px;
    transition:.3s;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.valor:hover{
    background:var(--azul);
    color:#fff;
    transform:translateY(-8px);
}

.valor i{
    font-size:45px;
    color:var(--amarillo);
    margin-bottom:20px;
}

.valor:hover h3,
.valor:hover p{
    color:#fff;
}

.valor h3{
    margin-bottom:15px;
}

/*====================================
            ESTADÍSTICAS
====================================*/

.estadisticas{
    background:var(--azul);
    color:#fff;
}

.estadisticas-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    text-align:center;
}

.estadistica i{
    font-size:50px;
    color:var(--amarillo);
    margin-bottom:20px;
}

.estadistica h2{
    color:#fff;
    font-size:42px;
    margin-bottom:10px;
}

.estadistica p{
    color:#ddd;
    font-size:18px;
}
/*====================================
            PROYECTOS
====================================*/

.proyectos{
    background:#ffffff;
}

.proyectos-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.proyecto{
    overflow:hidden;
    border-radius:10px;
    background:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.10);
    transition:.4s;
}

.proyecto:hover{
    transform:translateY(-10px);
}

.proyecto img{
    width:100%;
    height:250px;
    object-fit:cover;
    transition:.4s;
}

.proyecto:hover img{
    transform:scale(1.08);
}

.proyecto-info{
    padding:25px;
}

.proyecto-info h3{
    margin-bottom:10px;
}

.proyecto-info p{
    margin-bottom:20px;
}

.proyecto-info a{
    text-decoration:none;
    color:var(--azul);
    font-weight:600;
}

.proyecto-info a:hover{
    color:var(--amarillo);
}

/*====================================
        CERTIFICACIONES
====================================*/

.certificaciones{
    background:var(--gris);
}

.certificaciones-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.certificado{
    background:#fff;
    padding:35px;
    text-align:center;
    border-radius:10px;
    transition:.4s;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.certificado:hover{
    transform:translateY(-10px);
}

.certificado img{
    width:90px;
    margin:auto;
    margin-bottom:20px;
}

.certificado h3{
    margin-bottom:15px;
}

/*====================================
            CLIENTES
====================================*/

.clientes{
    background:#fff;
}

.clientes-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:25px;
    align-items:center;
}

.clientes-grid img{
    filter:grayscale(100%);
    opacity:.7;
    transition:.4s;
}

.clientes-grid img:hover{
    filter:none;
    opacity:1;
}

/*====================================
        TESTIMONIOS
====================================*/

.testimonios{
    background:var(--azul);
}

.testimonios-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.testimonio{
    background:#fff;
    border-radius:10px;
    padding:30px;
}

.testimonio img{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:20px;
}

.testimonio h3{
    margin-bottom:10px;
}

.testimonio p{
    margin-bottom:15px;
}

.estrellas{
    color:#F4B400;
}

/*====================================
            CONTACTO
====================================*/

.contacto{
    background:#fff;
}

.contacto-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contacto iframe{
    width:100%;
    height:450px;
    border:0;
    border-radius:10px;
}

.formulario{
    background:#fff;
    padding:35px;
    border-radius:10px;
    box-shadow:0 5px 20px rgba(0,0,0,.10);
}

.formulario input,
.formulario textarea{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:5px;
    font-size:16px;
    outline:none;
}

.formulario textarea{
    resize:none;
    height:180px;
}

.formulario button{
    border:none;
    cursor:pointer;
}

/*====================================
        BOTÓN WHATSAPP
====================================*/

.whatsapp{
    position:fixed;
    right:25px;
    bottom:25px;
    width:60px;
    height:60px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:30px;
    text-decoration:none;
    box-shadow:0 5px 20px rgba(0,0,0,.25);
    z-index:999;
    transition:.3s;
}

.whatsapp:hover{
    transform:scale(1.1);
}

/*====================================
        BOTÓN ARRIBA
====================================*/

#btn-arriba{
    position:fixed;
    bottom:100px;
    right:25px;
    width:50px;
    height:50px;
    border:none;
    background:var(--azul);
    color:#fff;
    border-radius:50%;
    cursor:pointer;
    display:none;
    font-size:20px;
}

/*====================================
            RESPONSIVE
====================================*/

@media(max-width:992px){

.servicios-grid,
.proyectos-grid,
.certificaciones-grid,
.testimonios-grid,
.estadisticas-grid,
.valores-grid{
    grid-template-columns:repeat(2,1fr);
}

.nosotros-grid,
.contacto-grid{
    grid-template-columns:1fr;
}

.clientes-grid{
    grid-template-columns:repeat(3,1fr);
}

.hero-content h1{
    font-size:45px;
}

.hero-content p{
    width:90%;
}

}

@media(max-width:768px){

.servicios-grid,
.proyectos-grid,
.certificaciones-grid,
.testimonios-grid,
.estadisticas-grid,
.valores-grid,
.clientes-grid{
    grid-template-columns:1fr;
}

.section-title p{
    width:100%;
}

.hero-content h1{
    font-size:35px;
}

.hero-content p{
    font-size:17px;
}

}