
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    background:#f4f4f4;
}

/* HEADER */

header{
    width:100%;
    background:rgba(0,0,0,0.4);
    backdrop-filter:blur(10px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
    position:fixed;
    top:0;
    z-index:1000;
}

.logo img{
    height:70px;
}

.logo{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.logo span{
    color:white;
    font-size:13px;
    margin-top:5px;
    font-weight:500;
}


nav{
    display:flex;
    gap:30px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

nav a:hover{
    color:#ffd000;
}

.menu-btn{
    display:none;
    color:white;
    font-size:30px;
    cursor:pointer;
}

/* HERO */


.hero{
   
    animation:fondoZoom 15s infinite alternate;
    width:100%;
    height:100vh;

    background:
    linear-gradient(rgba(0,0,0,0.75),
    rgba(0,0,0,0.75)),
    url('../img/fondo.jpg');

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;
    color:white;

    padding:0 10%;
}


.overlay{

    max-width:850px;

    animation:fadeHero 1.5s ease;
}


.hero h1{
    font-size:60px;
    margin-bottom:20px;
}


.hero p{
    font-size:22px;
    font-weight:300;
    margin-bottom:35px;
    line-height:1.6;
}


.btn{
    background:#ffd000;
    color:#002f75;

    padding:16px 40px;

    border-radius:50px;

    text-decoration:none;

    font-weight:600;

    transition:0.3s;
}

.btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(0,0,0,0.3);
}

/* CARRUSEL */

.carrusel{
    padding:80px 10%;
    text-align:center;
}

.slider{
    position:relative;
    width:100%;
    max-width:900px;
    height:500px;
    margin:auto;
    overflow:hidden;
    border-radius:20px;
}

.slider img{
    width:100%;
    height:500px;
    object-fit:cover;

    position:absolute;
    opacity:0;

    transition:1s;
}

.slider img.active{
    opacity:1;
}

/* SERVICIOS */

.servicios{
    padding:80px 10%;
    text-align:center;
}

.cards{
    display:flex;
    gap:20px;
    margin-top:40px;
}


.card{

    animation:fadeCard 1s ease;
    background:white;
    padding:40px;
    border-radius:25px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.4s;
    overflow:hidden;
}


.card:hover{

    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.15);

}


/* NOSOTROS */

.nosotros{
    padding:80px 10%;
    background:white;
    text-align:center;
}

/* CONTACTO */

.contacto{
    padding:80px 10%;
    text-align:center;
}

/* FOOTER */

footer{
    background:#002f75;
    color:white;
    text-align:center;
    padding:30px;
}

/* RESPONSIVE */

@media(max-width:768px){

    
.fila{
    flex-direction:column;
}


    .menu-btn{
        display:block;
    }

    nav{
        position:absolute;
        top:100px;
        left:0;

        width:100%;
        background:#002f75;

        flex-direction:column;
        align-items:center;

        padding:20px;

        display:none;
    }

    nav.active{
        display:flex;
    }


.hero h1{
    font-size:70px;
    font-weight:700;
    margin-bottom:25px;
    line-height:1.1;
}

    }

    .cards{
        flex-direction:column;
    }

section{

    animation:fadeUp 1s ease;

    animation-timeline:view();

    animation-range:entry 0% cover 30%;
}


@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.productos{
    padding:80px 10%;
    background:#f8f8f8;
    text-align:center;
}

.productos img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:20px;

.formulario{
  
.fila{
    display:flex;
    gap:20px;
}


    width:100%;
    max-width:800px;

    margin:70px auto;

    background:white;

    padding:50px;

    border-radius:25px;

    box-shadow:0 10px 30px rgba(0,0,0,0.1);

    display:flex;
    flex-direction:column;

    gap:20px;
}

.formulario input,
.formulario textarea{

.formulario input{
    flex:1;
}

    width:100%;

    padding:18px 20px;

    border:2px solid #e5e5e5;

    border-radius:12px;

    background:#fafafa;

    font-size:16px;

    outline:none;

    transition:0.3s;
}

.formulario input:focus,
.formulario textarea:focus{

    border-color:#00a651;

    background:white;

    box-shadow:0 0 10px rgba(0,166,81,0.2);
}

}
.formulario textarea{
    height:180px;
}

.formulario button{

    background:#00a651;

    color:white;

    padding:18px;

    border:none;

    border-radius:10px;

    font-size:16px;

    cursor:pointer;

    font-weight:bold;
}


.whatsapp{

    position:fixed;

    right:25px;
    bottom:25px;

    width:70px;
    height:70px;

    background:#25d366;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    color:white;

    font-size:38px;

    text-decoration:none;

    box-shadow:0 10px 20px rgba(0,0,0,0.3);

    z-index:999;

    transition:0.3s;
}

.whatsapp:hover{

    transform:scale(1.1);

}


footer{

    background:#0d0d0d;

    color:white;

    padding:80px 10% 30px;
}

.footer-contenido{

    display:flex;

    justify-content:space-between;

    gap:50px;

    margin-bottom:40px;
}

.footer-contenido h3{

    margin-bottom:20px;

    color:#00a651;
}

.footer-contenido p{

    margin-bottom:10px;

    color:#ccc;
}

.footer-bottom{

    border-top:1px solid #333;

    padding-top:20px;

    text-align:center;

    color:#777;
}

@keyframes fadeHero{

    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes fondoZoom{

    from{
        background-size:100%;
    }

    to{
        background-size:110%;
    }

}

#topBtn{

    position:fixed;

    bottom:110px;
    right:30px;

    width:55px;
    height:55px;

    border:none;

    border-radius:50%;

    background:#00a651;

    color:white;

    font-size:20px;

    cursor:pointer;

    display:none;

    z-index:999;

    box-shadow:0 10px 20px rgba(0,0,0,0.2);

    transition:0.3s;
}

#topBtn:hover{

    transform:translateY(-5px);

}


.contador{

    background:#00a651;

    color:white;

    display:flex;

    justify-content:space-around;

    padding:80px 10%;

    text-align:center;
}

.contador h2{

    font-size:60px;

    margin-bottom:10px;
}


.galeria{

    padding:100px 10%;

    background:white;

    text-align:center;
}

.galeria-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

    margin-top:50px;
}

.galeria-item{

    overflow:hidden;

    border-radius:25px;

    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.galeria-item img{

    width:100%;
    height:320px;

    object-fit:cover;

    transition:0.5s;
}

.galeria-item:hover img{

    transform:scale(1.1);

}


.scroll-header{

    background:#00a651;

    padding:10px 8%;

    transition:0.4s;
}


@keyframes fadeCard{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.clientes{

    padding:100px 10%;

    text-align:center;

    background:#f8f8f8;
}

.clientes p{

    max-width:800px;

    margin:auto;

    margin-top:20px;

    line-height:1.8;
}


@media(max-width:768px){

    header{

        padding:15px 5%;
    }

    .hero h1{

        font-size:42px;
    }

    .hero p{

        font-size:18px;
    }

    nav ul{

        gap:15px;
    }

    .cards{

        flex-direction:column;
    }

    .footer-contenido{

        flex-direction:column;
    }

    .contador{

        flex-direction:column;

        gap:40px;
    }

    .galeria-grid{

        grid-template-columns:1fr;
    }

    .formulario{

        padding:30px 20px;
    }

}
 
.mini-info{

    margin-top:30px;

    display:flex;

    justify-content:center;

    gap:25px;

    flex-wrap:wrap;
}

.mini-info span{

    background:rgba(255,255,255,0.1);

    padding:12px 20px;

    border-radius:50px;

    backdrop-filter:blur(10px);

    font-size:14px;
}



