*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#fff;
}

/* ===== NAVBAR ===== */

nav{
    position:fixed;
    width:100%;
    top:0;
    background:#3e6b35;
    padding:15px 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:white;
    z-index:1000;
}

nav h1{
    font-size:28px;
}

.logo img{
    height:50px;   /* tamaño del logo */
    width:auto;
    display:block;
}

nav ul{
    list-style:none;
    display:flex;
    gap:30px;
}

nav ul li a{
    color:white;
    text-decoration:none;
    font-weight:500;
}

nav ul li a:hover{
    opacity:0.7;
}

/* ===== MENU HAMBURGUESA ===== */
.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
}

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

.hero{
    display:flex;
    min-height:100vh;
    padding-top:70px;
}

/* IZQUIERDA */

.left{
    flex:1;
    background: linear-gradient(rgba(62,107,53,0.9), rgba(62,107,53,0.9)),
               url('imagen/fumigacion.jpg') center/cover no-repeat;
    padding:60px 40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.left h2{
    font-size:46px;
    font-weight:700;
    margin-bottom:20px;
}

.left p{
    font-size:17px;
    margin-bottom:20px;
    line-height:1.6;
}

/* CENTRO */

.center{
    flex:0.8;
    background:#e7efe5;
    padding:60px 40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
}

.center h3{
    font-size:34px;
    color:#3e6b35;
    margin-bottom:40px;
}

.contact-item{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin:8px 0;
}

.icono{
    width:24px;
    height:24px;
}

/* DERECHA */

.right{
    flex:1;
    background:linear-gradient(rgba(62,107,53,0.8), rgba(62,107,53,0.8)),
               url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=1200') center/cover no-repeat;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:center;
    padding-bottom:100px;
    color:white;
    text-align:center;
}

.right h2{
    font-size:48px;
    letter-spacing:2px;
}

.right p{
    font-size:22px;
    margin-top:10px;
}

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

.services{
    padding:80px 50px;
    text-align:center;
}

.services h2{
    font-size:36px;
    color:#3e6b35;
    margin-bottom:40px;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:30px;
}

.card{
    background:#f4f4f4;
    padding:30px;
    border-radius:10px;
    transition:0.3s;
}

.card:hover{
    background:#e7efe5;
    transform:translateY(-5px);
}



/* ===== TESTIMONIOS ===== */

.testimonios{
    padding:80px 0;
    background:#f5f5f5;
    text-align:center;
    overflow:hidden;
}

.testimonios h2{
    font-size:36px;
    color:#3e6b35;
    margin-bottom:50px;
}

.slider{
    overflow:hidden;
    width:100%;
}

.slide-track{
    display:flex;
    gap:30px;
    animation:scroll 35s linear infinite;
}

.slide{
    min-width:320px;
    max-width:320px;
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    flex-shrink:0;
}

.stars{
    color:#FFD700;
    font-size:20px;
    margin-bottom:15px;
}

.slide p{
    font-style:italic;
    margin-bottom:15px;
    color:#555;
}

.slide h4{
    color:#3e6b35;
}

/* ANIMACIÓN CONTINUA */

.slide-track{
    display:flex;
    gap:30px;
    width:max-content;
    animation:scroll 60s linear infinite;
}

@keyframes scroll{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}

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

footer{
    background:#3e6b35;
    color:white;
    text-align:center;
    padding:20px;
}

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

.whatsapp{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#25D366;
    width:65px;
    height:65px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:30px;
    text-decoration:none;
    box-shadow:0 4px 10px rgba(0,0,0,0.3);
    z-index:1000;
    transition:0.3s;
}
.whatsapp img{
    width:60px;
    height:60px;
}

.whatsapp:hover{
    transform:scale(1.1);
}

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

@media(max-width:900px){
    .hero{
        flex-direction:column;
    }
     .logo img{
        height:40px;
    }
    nav{
        padding:10 20px;
    }

  nav ul{
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:rgba(62,107,53,0.9);
        flex-direction:column;
        align-items:center;
        display:none;
        padding:10px 0;
    }

   nav ul li{
        width:100%;
    }

      nav ul li a{
        display:block;
        width:100%;
        padding:3px 0;
        text-align:center;
    }

    nav ul.active{
        display:flex;
    }

    .menu-toggle{
        display:block;
    }
}