/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:110px;
}

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;
    --azul-claro:#477ddf;
    --verde-azulado-oscuro:#26a69a;
    --verde-azulado-claro:#80cbc4;
}

/* ==========================
   HEADER 
========================== */

header{
    background:#20406C;
    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:140px;
    width:auto;
}

.menu{
    display:flex;
    gap:30px;
}

.menu a{
    color:white;
    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;
    align-items:center;

    padding:0 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-bottom:30px;
}

/* ==========================
   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%;    
}


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
========================== */

.projects{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(340px,1fr));

    gap:30px;
}

.project{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    transition:.4s;
}

.project:hover{

    transform:translateY(-10px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.12);
}

.project img{

    width:100%;
    height:260px;
    object-fit:cover;
}

.project-content{
    padding:25px;
}

.project-content h3{
    color:var(--azul);
    margin-bottom:10px;
}

/* ==========================
   GALERIA
========================== */
/*
#galeria{
    background:var(--gris);
}

.galeria-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(300px,1fr));

    gap:25px;
}

.galeria-grid img{

    width:100%;
    height:280px;

    object-fit:cover;

    border-radius:20px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.10);

    transition:.4s;
}

.galeria-grid img:hover{
    transform:scale(1.04);
}*/
/* ==========================
   GALERIA
========================== */

#galeria{
    background:var(--gris);
}

.galeria-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    grid-auto-rows:220px;
    gap:25px;
}

.galeria-grid img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.10);
    transition:.4s;
}

.galeria-grid img:hover{
    transform:scale(1.03);
}

/* Destacar algunas imágenes */
.galeria-grid img:nth-child(1){
    grid-row:span 2;
}
.galeria-grid img:nth-child(2){
    grid-column:span 1;
}

.galeria-grid img:nth-child(4){
    grid-row:span 2;
}

.galeria-grid img:nth-child(5){
    grid-column:span 1;
}
.galeria-grid img:nth-child(7){
    grid-column:span 2;
}
.galeria-grid img:nth-child(8){
    grid-row:span 1;
}

/* Responsive */
@media(max-width:992px){
    .galeria-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .galeria-grid img:nth-child(1),
    .galeria-grid img:nth-child(5){
        grid-column:span 1;
    }
}

@media(max-width:768px){
    .galeria-grid{
        grid-template-columns:1fr;
    }

    .galeria-grid img:nth-child(8){
        grid-row:span 1;
    }
}
/* ==========================
   CLIENTES
========================== */

#clientes{
    background:white;
}

.clientes-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(180px,1fr));

    gap:20px;
}

.clientes-grid div{

    background:white;

    border:1px solid #e5e5e5;

    border-radius:15px;

    padding:30px;

    text-align:center;

    font-weight:600;

    box-shadow:
        0 5px 15px rgba(0,0,0,.05);
}

/* ==========================
   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;
}

.mensaje-exito{
    background:#d4edda;
    color:#155724;
    border:1px solid #8fd14f;
    padding:15px;
    border-radius:10px;
    margin-top:20px;
    font-weight:600;
}

.mensaje-error{
    background:#f8d7da;
    color:#721c24;
    border:1px solid #dc3545;
    padding:15px;
    border-radius:10px;
    margin-top:20px;
    font-weight:600;
}

/* ==========================
   LINK CORREO
========================== */
.correo-contacto a{
    color:var(--azul);
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.correo-contacto a:hover{
    color:var(--verde);
}

.correo-contacto{
    display:flex;
    align-items:center;
    gap:10px;
}
/* ==========================
   FOOTER
========================== */

footer{

    background:#20406C;

    color:white;

    text-align:center;

    padding:60px 20px;
}

footer img{

    height: 110px;
    width:auto;

    margin-bottom:20px;
}

footer p{
    opacity:.9;
}

/* ==========================
   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;
    }
}