/* ===================================
VARIABLES
=================================== */

:root{
    --verde-principal:#2E7D32;
    --verde-claro:#81C784;
    --verde-oscuro:#1B5E20;
    --blanco:#ffffff;
    --gris:#f8f9fa;
    --texto:#333333;
    --sombra:
    0 10px 30px rgba(0,0,0,.15);
}

/* ===================================
RESET
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;
    background:#fff;
    color:var(--texto);
}

/* ===================================
TITULOS
=================================== */

h1,h2,h3,h4,h5{
    font-weight:700;
}

section{
    overflow:hidden;
}

/* ===================================
NAVBAR
=================================== */

.navbar-custom{
    background:rgba(122, 239, 50, 0.50); 
    backdrop-filter:blur(10px);
    transition:.4s;
    padding:15px 0;
    width: auto;
}

.navbar-scroll{
    box-shadow:var(--sombra);
}

.navbar-scroll .nav-link{
    color:#333 !important;
    text-shadow: 0px 0px 5px  rgb(248, 248, 248);   
}

.logo{
    font-size:1.5rem;
    font-weight:700;
    color: #18d75e;
    text-shadow: 0px 0px 3px  rgb(1, 1, 1);   
}

.nav-link{
    color:white !important;
    margin-left:15px;
    transition:.3s;
}

.nav-link:hover{
    color:var(--verde-claro) !important;
}

/* ===================================
BOTONES
=================================== */

.btn-success{
    background:var(--verde-principal);
    border:none;
    transition:.4s;
}

.btn-success:hover{
    background:var(--verde-oscuro);
    transform:translateY(-3px);
}

/* ===================================
HERO SECTION
=================================== */

.hero-slide{
    position:relative;
}

.hero-image{
    height:100vh;
    object-fit:cover;
}

.hero-slide::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background:
    rgba(0,0,0,.45);
    z-index:1;
}

.hero-content{
    z-index:2;
    bottom:25%;
}

.hero-content h1{
    font-size:4rem;
    font-weight:800;
    text-shadow:2px 2px 15px rgba(0,0,0,.5);
}

.hero-content p{
    font-size:1.3rem;
    margin-bottom:20px;
}

/* ===================================
ANIMACION HERO
=================================== */

.hero-content{
    animation:fadeUp 1.5s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* ===================================
ESTADISTICAS
=================================== */

.stats-section{
    background:
    linear-gradient(
    135deg,
    #1B5E20,
    #2E7D32);
    color:white;
    padding:80px 0;
    padding-top: 5px;
    padding-bottom: 0px;
}

.stats-section h2{
    font-size:3rem;
    font-weight:800;
}

.stats-section p{
    font-size:1.1rem;
}

/* ===================================
SERVICIOS
=================================== */

.service-card{
    border:none;
    overflow:hidden;
    border-radius:20px;
    box-shadow:var(--sombra);
    transition:.5s;
}

.service-card:hover{
    transform:
    translateY(-10px);
}

.service-card img{
    height:250px;
    object-fit:cover;
    transition:.6s;
}

.service-card:hover img{
    transform:scale(1.1);
}

.service-card .card-body{
    padding:30px;
}

.service-card h3{
    color:var(--verde-principal);
    margin-bottom:15px;
}

/* ===================================
SECCION GENERAL
=================================== */

section h2{
    font-size:2.5rem;
    margin-bottom:20px;
    position:relative;
}

section h2::after{
    content:"";
    width:100px;
    height:4px;
    background:
    var(--verde-principal);
    display:block;
    margin:15px auto;
}

/* ===================================
EFECTO GLASSMORPHISM
=================================== */

.glass{
    background:
    rgba(255,255,255,.2);
    backdrop-filter:
    blur(15px);
    border:
    1px solid rgba(255,255,255,.3);
}

/* ===================================
SCROLLBAR
=================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:
    var(--verde-principal);
    border-radius:20px;
}

::-webkit-scrollbar-track{
    background:#efefef;
}
/* ===================================
GALERIA
=================================== */

.gallery-section{
    background:#f7faf7;
    padding:100px 0;
}

.gallery-img{
    width:100%;
    height:300px;
    object-fit:cover;
    border-radius:15px;
    cursor:pointer;
    transition:.5s;
    box-shadow:
    0 10px 25px rgba(0,0,0,.15);
}
.gallery-img:hover{
    transform:scale(1.05);
}

/* ===================================
PARALLAX
=================================== */

.parallax{
    background:
    url("../img/parallax.jpg")
    center center fixed;
    background-size:cover;
    min-height:500px;
    position:relative;
}

.parallax .overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:
    rgba(0,0,0,.5);
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.parallax h2{
    color:white;
    font-size:3rem;
    max-width:900px;
    line-height:1.4;
}

/* ===================================
TESTIMONIOS
=================================== */

.testimonials{
    background:white;
}

.testimonial-card{
    max-width:800px;
    margin:auto;
    text-align:center;
    padding:50px;
    background:white;
    border-radius:25px;
    box-shadow:
    0 15px 40px rgba(0,0,0,.12);
}

.stars{
    color:#FFD700;
    font-size:2rem;
    margin-bottom:20px;
}

.testimonial-card p{
    font-size:1.2rem;
    font-style:italic;
    margin-bottom:20px;
}

.testimonial-card h5{
    color:var(--verde-principal);
}

/* ===================================
PROCESO DE TRABAJO
=================================== */

.process-section{
    background:
    linear-gradient(
    135deg,
    #f8fff8,
    #eef7ee);
}

.process-box{
    background:white;
    padding:30px 15px;
    border-radius:20px;
    transition:.4s;
    box-shadow:
    0 8px 25px rgba(0,0,0,.08);
    height:100%;
}

.process-box:hover{
    transform:
    translateY(-10px);
}

.process-box i{
    font-size:3rem;
    color:var(--verde-principal);
    margin-bottom:15px;
}

.process-box h5{
    font-size:2rem;
    color:var(--verde-principal);
}

/* ===================================
CONTACTO
=================================== */

.contact-section{
    padding:100px 0;
    background:
    linear-gradient(
    135deg,
    #ffffff,
    #f5faf5);
}

.contact-card{
    background:white;
    padding:40px;
    border-radius:25px;
    box-shadow:
    0 15px 40px rgba(0,0,0,.12);
}

.contact-card input,
.contact-card textarea{
    border-radius:12px;
    padding:15px;
}

.contact-card input:focus,
.contact-card textarea:focus{
    border-color:
    var(--verde-principal);
    box-shadow:
    0 0 10px rgba(46,125,50,.3);
}

.contact-info{
    padding:30px;
}

.contact-info h2{
    margin-bottom:25px;
}

.contact-info p{
    font-size:1.1rem;
    margin-bottom:15px;
}

.contact-info i{
    color:
    var(--verde-principal);
    margin-right:10px;
}

.map-container{
    margin-top:30px;
    overflow:hidden;
    border-radius:20px;
    box-shadow:
    0 10px 25px rgba(0,0,0,.1);
}

.map-container iframe{
    width:100%;
    height:300px;
    border:none;
}

/* ===================================
FOOTER
=================================== */

.footer{
    background:
    #102a12;
    color:white;
    padding:
    80px 0 30px;
}

.footer h4{
    margin-bottom:20px;
    color:
    var(--verde-claro);
}

.footer ul{
    list-style:none;
    padding:0;
}

.footer ul li{
    margin-bottom:10px;
}

.footer hr{
    margin:
    40px 0;
    border-color:
    rgba(255,255,255,.2);
}

.social-icons{
    display:flex;
    gap:15px;
}

.social-icons a{
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
    rgba(255,255,255,.1);
    border-radius:50%;
    color:white;
    text-decoration:none;
    transition:.4s;
}

.social-icons a:hover{
    background:
    var(--verde-principal);
    transform:translateY(-5px);
}

/* ===================================
WHATSAPP
=================================== */

.whatsapp-btn{

    position:fixed;
    bottom:30px;
    right:30px;
    width:70px;
    height:70px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:2rem;
    text-decoration:none;
    z-index:9999;
    box-shadow:
    0 10px 30px rgba(0,0,0,.25);
    animation:
    pulse 2s infinite;
}

@keyframes pulse{
    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.12);
    }

    100%{
        transform:scale(1);
    }
}

/* ===================================
HOVER GLOBAL
=================================== */

img{
    transition:.5s;
}

img:hover{
    filter:
    brightness(1.05);
}

/* ===================================
SEPARADORES DECORATIVOS
=================================== */

.gallery-section,
.testimonials,
.contact-section{

    position:relative;

}

.gallery-section::before,
.contact-section::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:8px;
    background:
    linear-gradient(
    90deg,
    var(--verde-principal),
    var(--verde-claro));
}


/* ===================================
ANIMATION LEAVES
=================================== */
#contenedor-hojas {
 
  position: absolute; /* Cambiado de fixed a absolute */
  top: 0;
  left: 0;
  width: 100%;
  /* Usamos un cálculo para que mida el total real de la página */
  height: min(550vh, 550%); 
 
  pointer-events: none;
  overflow: hidden;
  z-index: 99999;
}

/* Forma y animación base de la hoja */
.hoja {
  position: absolute;
  top: -10%; /* Comienzan arriba, fuera de la pantalla */
  width: 25px;
  height: 25px;
 
  border-radius: 0 15px 0 15px; /* Le da forma de hoja */
  opacity: 0.8;
  /* Ejecuta dos animaciones al mismo tiempo: caer y balancearse */
  animation: caer linear infinite, balancear ease-in-out infinite alternate;
}

/* Animación de caída (de arriba hacia abajo) */
@keyframes caer {
  0% { top: -10%; }
  100% { top: 110%; } /* Caen hasta salir de la pantalla por abajo */
}

/* Animación de balanceo (simulando el viento) */
@keyframes balancear {
  0% { transform: translateX(-20px) rotate(-15deg) scale(var(--escala)); }
  100% { transform: translateX(20px) rotate(15deg) scale(var(--escala)); }
}


/* ===================================
RESPONSIVE
=================================== */

@media(max-width:991px){

    .hero-content h1{
        font-size:3rem;
    }

    .hero-content p{
        font-size:1.1rem;
    }

    .parallax h2{
        font-size:2rem;
    }

        /* ------------ ANIMATION LEAVES ----------- */
    #contenedor-hojas {
    /* Usamos un cálculo para que mida el total real de la página */
    height: min(620vh, 620%); 
    }

}

@media(max-width:768px){

    .hero-image{
        height:80vh;
    }

    .hero-content{
        bottom:20%;
    }

    .hero-content h1{
        font-size:2.2rem;
    }

    .stats-section h2{
        font-size:2rem;
        margin-bottom:10px;
    }

    .gallery-img{
        height:250px;
    }

    .testimonial-card{
        padding:30px;
    }

    .contact-card{
        margin-bottom:30px;
    }

    .whatsapp-btn{
        width:60px;
        height:60px;
        font-size:1.6rem;
    }

            /* ------------ ANIMATION LEAVES ----------- */
    #contenedor-hojas {
    /* Usamos un cálculo para que mida el total real de la página */
    height: min(870vh, 870%); 
    }

}

@media(max-width:576px){

    .hero-content h1{
        font-size:1.8rem;
    }

    .hero-content p{
        font-size:1rem;
    }

    section h2{
        font-size:2rem;
    }

    .parallax{
        min-height:350px;
    }

    .parallax h2{
        font-size:1.5rem;
    }



    /* ------------ ANIMATION LEAVES ----------- */
    #contenedor-hojas {
    /* Usamos un cálculo para que mida el total real de la página */
    height: min(830vh, 830%); 
    }

}

.leaf{
    position:fixed;
    top:-50px;
    font-size:2rem;
    animation:fall 15s linear infinite;
    z-index:1;
}

@keyframes fall{

    0%{
        transform:
        translateY(-100px)
        rotate(0deg);
    }

    100%{
        transform:
        translateY(120vh)
        rotate(360deg);
    }

}

body{

    cursor:url(
    https://cur.cursors-4u.net/nature/nat-11/nat1043.cur
    ),
    auto;

}