/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    
}

body{
    font-family:"Segoe UI",sans-serif;
    color:#333;
    background:#fff;
    line-height:1.6;
}

/* ==========================
   COLORES
========================== */

:root{
    --azul:#20406C;
    --azul-oscuro:#13263e;
    --verde:#8fd14f;
    --gris:#f7f9fc;
    --texto:#333333;
}

/* ==========================
   HEADER
========================== */

header{
    
    backdrop-filter:blur(8px);

    position:sticky;
    top:0;
    z-index:1000;

    box-shadow:0 4px 20px rgba(0,0,0,.10);
}

nav{
    max-width:1400px;
    margin:auto;

    padding:12px 5%;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo img{
    height: 170px;
    width:auto;
}

.menu{
    display:flex;
    gap:30px;
}

.menu a{
    color:var(--azul-oscuro);
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.menu a:hover{
    color:var(--verde);
}

/* ==========================
   HERO
========================== */

.hero{

    /*min-height:100vh;*/

    background:
        linear-gradient(
            rgba(19,38,62,.75),
            rgba(19,38,62,.75)
        ),
        url("img/image038.png");

    background-size:cover;
    background-position:center;

    display:flex;
    flex-direction:column; 
    align-items:flex-start;

    min-height:500px;   
    padding:80px 10%;

    color:white;
}

.hero-content{
    max-width:850px;
}

.hero h1{
    font-size:4.5rem;
    line-height:1.1;
    margin-bottom:25px;
}

.hero p{
    font-size:1.3rem;
    max-width:700px;
    margin-top:10px;
}

/* ==========================
   BOTON
========================== */

.btn{

    display:inline-block;

    background:var(--verde);
    color:white;

    text-decoration:none;

    padding:15px 34px;

    border:none;
    border-radius:50px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;
}

.btn:hover{

    transform:translateY(-3px);

    box-shadow:
        0 10px 25px rgba(143,209,79,.35);
}

/* ==========================
   SECCIONES
========================== */

section{
    padding:100px 10%;
    scroll-margin-top: 170px;
    
}

section h2{
    font-size:2.7rem;
    color:var(--azul);
    margin-bottom:40px;
}

/* ==========================
   NOSOTROS
========================== */

#nosotros{
    background:white;
}

.nosotros-contenido{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.nosotros-texto p{
    margin-bottom:20px;
}

.nosotros-texto h3{
    margin-top:25px;
    margin-bottom:10px;
    color:var(--azul);
}

.nosotros-imagen img{

    width:100%;

    border-radius:20px;

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

/* ==========================
   ESTADISTICAS
========================== */

.estadisticas{

    background:var(--azul);

    display:grid;
    grid-template-columns:repeat(4,1fr);

    gap:30px;

    text-align:center;

    padding:80px 10%;
}

.estadisticas div{
    color:white;
}

.estadisticas h2{
    color:var(--verde);
    font-size:3rem;
    margin-bottom:10px;
}

.estadisticas p{
    color:white;
}

/* ==========================
   SERVICIOS
========================== */

#servicios{
    background:var(--gris);
}

.services{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.card{

    background:white;

    border-radius:20px;

    overflow:hidden;

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

    transition:.4s;
}

.card:hover{

    transform:translateY(-10px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.12);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card h3{
    color:var(--azul);
    padding:20px 20px 10px;
}

.card p{
    padding:0 20px 25px;
}

/* ==========================
   PROYECTOS
========================== */

.services{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(340px,1fr));

    gap:30px;
}

.content{

    background:white;

    border-radius:20px;

    overflow:hidden;

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

    transition:.4s;
}

.content:hover{

    transform:translateY(-10px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.12);
}

.content img{

    width:100%;
    height:260px;
    object-fit:cover;
}

.content-content{
    padding:25px;
}

.content-content h3{
    color:var(--azul);
    margin-bottom:10px;
}




/* ==========================
   CONTACTO
========================== */

.contact{
    background:var(--gris);
}

form{
    max-width:800px;

    display:flex;
    flex-direction:column;
    gap:15px;
}

input,
textarea{

    padding:15px;

    border:1px solid #ccc;
    border-radius:8px;

    font-size:1rem;
}

input:focus,
textarea:focus{

    outline:none;

    border-color:var(--azul);
}

textarea{
    resize:vertical;
}

.datos-contacto{
    margin-top:50px;
}

.datos-contacto h3{
    color:var(--azul);
    margin-bottom:15px;
}

.datos-contacto p{
    margin-bottom:8px;
}

/* ==========================
   BOTON WHATSAPP
========================== */


.btn-whatsapp a{
    color:var(--azul);
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn-whatsapp a:hover{
    color:var(--verde);
}

.btn-whatsapp {
    display:flex;
    align-items:center;
    gap:10px;
}

/* ==========================
   FOOTER
========================== */

footer{

    background:var(--gris);

    color:white;

    text-align:center;

    padding:60px 20px;
}

footer img{

    height:150px;
    width:auto;
    margin-bottom:20px;
}

footer p{
    opacity:.9;
    color: #13263e;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:992px){

    .hero h1{
        font-size:3.2rem;
    }

    .nosotros-contenido{
        grid-template-columns:1fr;
    }

    .estadisticas{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    nav{
        flex-direction:column;
        gap:20px;
    }

    .menu{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{

        text-align:center;

        min-height:90vh;
    }

    .hero h1{
        font-size:2.5rem;
    }

    section{
        padding:80px 7%;
    }
}

@media(max-width:480px){

    .hero h1{
        font-size:2rem;
    }

    .services,
    .projects{
        grid-template-columns:1fr;
    }

    .estadisticas{
        grid-template-columns:1fr;
    }

    .logo img{
        height:55px;
    }
}