/* =====================================================
   MUNDO LIMPIO
   style.css
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

:root{

    --verde:#2e7d32;
    --verde2:#43a047;
    --verde3:#66bb6a;
    --gris:#666;
    --oscuro:#222;
    --blanco:#fff;
    --fondo:#f5f7f6;

    --sombra:0 10px 30px rgba(0,0,0,.12);

}

body{

    font-family:'Poppins',sans-serif;
    background:var(--fondo);
    color:#333;
    overflow-x:hidden;

}

/*================ NAVBAR =================*/

header{

    position:fixed;
    width:100%;
    top:0;
    left:0;
    z-index:999;

}

.navbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 8%;

    background:white;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.logo{

    display:flex;
    align-items:center;
    gap:12px;

}

.logo img{

    width:60px;

}

.logo h2{

    color:var(--verde);

    font-size:26px;

}

.menu{

    display:flex;

    list-style:none;

    gap:30px;

}

.menu a{

    text-decoration:none;

    color:#333;

    font-weight:500;

    transition:.3s;

}

.menu a:hover{

    color:var(--verde);

}

.menu-mobile{

    display:none;

    font-size:28px;

    cursor:pointer;

}

/*================ HERO =================*/

.hero{

    position:relative;

    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    overflow:hidden;

    background:

    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),

    url("img/reciclaje.jpg");

    background-size:cover;

    background-position:center;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.15);

}

.hero-content{

    position:relative;

    z-index:5;

    width:min(900px,90%);

    color:white;

}

.hero-logo{

    width:150px;

    animation:flotar 3s infinite;

}

@keyframes flotar{

0%{transform:translateY(0);}

50%{transform:translateY(-10px);}

100%{transform:translateY(0);}

}

.hero h1{

    font-size:58px;

    margin:30px 0;

    line-height:1.2;

}

.hero p{

    font-size:21px;

    line-height:1.8;

    margin-bottom:40px;

}

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

/*================ BOTONES =================*/

.btn{

    padding:16px 35px;

    border-radius:50px;

    text-decoration:none;

    transition:.35s;

    font-weight:600;

    display:inline-flex;

    align-items:center;

    gap:10px;

}

.btn-primary{

    background:var(--verde);

    color:white;

}

.btn-primary:hover{

    background:var(--verde2);

    transform:translateY(-4px);

}

.btn-secondary{

    background:white;

    color:var(--verde);

}

.btn-secondary:hover{

    transform:translateY(-4px);

}

/*================ TITULOS =================*/

.section{

    padding:110px 8%;

}

.green{

    background:#eef8ef;

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title h2{

    font-size:42px;

    color:var(--verde);

    margin-bottom:15px;

}

.section-title p{

    max-width:760px;

    margin:auto;

    color:var(--gris);

    line-height:1.8;

    font-size:18px;

}
/*================ TARJETAS =================*/

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

}

.card{

    background:white;

    border-radius:18px;

    padding:35px;

    box-shadow:var(--sombra);

    text-align:center;

    transition:.35s;

}

.card:hover{

    transform:translateY(-10px);

}

.card i{

    font-size:55px;

    color:var(--verde);

    margin-bottom:20px;

}

.card h3{

    margin-bottom:15px;

    color:var(--verde);

}

.card p{

    line-height:1.8;

    color:var(--gris);

}

/*================ VIDEO =================*/

.video-section{

    padding:100px 8%;

    background:white;

}

.video-container{

    width:100%;

    max-width:950px;

    margin:auto;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 20px 45px rgba(0,0,0,.15);

}

.video-container video{

    width:100%;

    display:block;

}

.process{

    margin-top:60px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:25px;

    text-align:center;

}

.process div{

    background:#f7f7f7;

    border-radius:18px;

    padding:25px;

    transition:.3s;

}

.process div:hover{

    transform:translateY(-8px);

    background:#eef8ef;

}

.process i{

    font-size:45px;

    color:var(--verde);

    margin-bottom:15px;

}

.process h4{

    color:#333;

}

/*================ MATERIALES =================*/

.materials{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:25px;

}

.material{

    background:white;

    border-radius:18px;

    padding:30px;

    text-align:center;

    box-shadow:var(--sombra);

    transition:.3s;

}

.material:hover{

    transform:translateY(-10px);

}

.material i{

    font-size:55px;

    color:var(--verde);

    margin-bottom:18px;

}

.material h3{

    color:#333;

    font-size:20px;

}

/*================ SERVICIOS =================*/

#servicios .card{

    border-top:5px solid var(--verde);

}

#servicios .card:hover{

    border-top-color:var(--verde3);

}

#servicios .card i{

    color:var(--verde2);

}

/*================ CONTADORES =================*/

.stats{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

    background:linear-gradient(135deg,#2e7d32,#43a047);

    color:white;

    padding:80px 8%;

    text-align:center;

}

.stat{

    padding:20px;

}

.stat h2{

    font-size:55px;

    margin-bottom:10px;

}

.stat span{

    font-size:18px;

    letter-spacing:.5px;

}
/*================ GALERÍA =================*/

.gallery{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}

.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:18px;

    cursor:pointer;

    box-shadow:var(--sombra);

}

.gallery-item img{

    width:100%;

    height:280px;

    object-fit:cover;

    transition:.5s;

    display:block;

}

.gallery-item:hover img{

    transform:scale(1.12);

}

.overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    transition:.4s;

}

.gallery-item:hover .overlay{

    opacity:1;

}

.overlay h3{

    color:white;

    font-size:24px;

    letter-spacing:1px;

}

/*================ MAPA =================*/

.map{

    width:100%;

    margin-top:30px;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--sombra);

}

.map iframe{

    width:100%;

    height:450px;

    border:none;

}

/*================ CONTACTO =================*/

.contacto .card{

    min-height:280px;

}

.contacto .btn{

    margin-top:20px;

}

/*================ FOOTER =================*/

footer{

    background:#1d1d1d;

    color:white;

    padding:60px 8% 30px;

}

.footer-content{

    max-width:900px;

    margin:auto;

    text-align:center;

}

.footer-content img{

    width:90px;

    margin-bottom:20px;

}

.footer-content h3{

    margin-bottom:15px;

    color:#7dd87d;

}

.footer-content p{

    color:#ddd;

    line-height:1.8;

}

.social{

    margin:30px 0;

}

.social a{

    width:50px;

    height:50px;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    margin:0 8px;

    background:#2e7d32;

    color:white;

    text-decoration:none;

    transition:.3s;

    font-size:22px;

}

.social a:hover{

    transform:translateY(-5px);

    background:#43a047;

}

.copy{

    margin-top:25px;

    font-size:14px;

    color:#aaa;

}

/*================ BOTÓN WHATSAPP =================*/

.whatsapp{

    position:fixed;

    bottom:25px;

    right:25px;

    width:65px;

    height:65px;

    background:#25D366;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:34px;

    text-decoration:none;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

    z-index:999;

    animation:pulse 2s infinite;

}

@keyframes pulse{

0%{

transform:scale(1);

}

50%{

transform:scale(1.08);

}

100%{

transform:scale(1);

}

}

/*================ LIGHTBOX =================*/

#lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.9);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

#lightbox img{

    max-width:90%;

    max-height:90%;

    border-radius:15px;

}

#cerrar{

    position:absolute;

    top:30px;

    right:40px;

    color:white;

    font-size:45px;

    cursor:pointer;

}

/*================ RESPONSIVE =================*/

@media(max-width:900px){

.menu{

display:none;

}

.menu-mobile{

display:block;

}

.hero h1{

font-size:38px;

}

.hero p{

font-size:18px;

}

.hero-logo{

width:120px;

}

.section{

padding:80px 25px;

}

.section-title h2{

font-size:32px;

}

.gallery-item img{

height:220px;

}

.map iframe{

height:320px;

}

.stats{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:600px){

.hero h1{

font-size:30px;

}

.hero-buttons{

flex-direction:column;

}

.btn{

width:100%;

justify-content:center;

}

.stats{

grid-template-columns:1fr;

}

.cards{

grid-template-columns:1fr;

}

.materials{

grid-template-columns:repeat(2,1fr);

}

.gallery{

grid-template-columns:1fr;

}

.footer-content img{

width:70px;

}

}