#hero {
    width: 100%;
    min-height: 100vh; /* Altura para escritorio */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #175d3f;
      margin-top: -80px;
}

/* Solución para efectos visuales de Atropos.js */
.atropos-highlight,
.atropos-shadow {
    display: none !important;
}

/* Capas de fondo con nubes en movimiento */
.hero-background .parallax-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: repeat-x;
    mix-blend-mode: screen;
    opacity: 0.6;
    animation-name: scroll-left;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes scroll-left {
    0% { background-position-x: 0; }
    100% { background-position-x: -2000px; }
}

.hero-background .layer-bg { z-index: 1; background-size: cover; animation: none; }
.hero-background .layer-1 { z-index: 2; animation-duration: 90s; }
.hero-background .layer-2 { z-index: 3; animation-duration: 70s; }
.hero-background .layer-3 { z-index: 4; animation-duration: 50s; }
.hero-background .layer-4 { z-index: 5; animation-duration: 30s; }

#hero .container {
    position: relative;
    z-index: 10;
     margin-top: 70px;
}

/* Estilos de texto y botones */
#hero .hero-logo, #hero h1, #hero h2 {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#hero .hero-logo { font-size: 48px; font-weight: 700; margin-bottom: 20px; }
#hero h1 { font-size: 42px; font-weight: 700; }
#hero h2 { color: rgba(255, 255, 255, 0.8); margin-bottom: 40px; font-size: 20px; }

#hero .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 15px;
    justify-content: start;
}

#hero .btn-hero-main {
    font-weight: 500; font-size: 16px; display: inline-block; padding: 10px 30px;
    border-radius: 50px; transition: 0.3s; color: #fff; background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(5px); text-decoration: none;
}

#hero .btn-hero-main:hover {
    background: var(--lr-green);
    border-color: var(--lr-green);
}

/* --- SOLUCIÓN PARA DOBLE IMAGEN --- */
#hero .hero-img { z-index: 6; }
.fading-images-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Mantiene la proporción cuadrada, ajústalo si es necesario */
}
.fading-images-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation-name: crossfade;
    animation-duration: 10s;
    animation-iteration-count: infinite;
}
.fading-images-container img:nth-child(2) {
    animation-delay: 5s;
}
@keyframes crossfade {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

/* --- SOLUCIÓN PARA DISEÑO MÓVIL --- */
@media (max-width: 991px) {
    #hero {
        height: 100vh; /* Ocupa toda la pantalla */
        min-height: 700px; /* Altura mínima para dispositivos cortos */
        text-align: center;
        padding: 100px 0 60px 0;
    }
    #hero .container > .row {
        flex-direction: column; /* Apila las columnas */
    }
    #hero .hero-content {
        flex-grow: 1; /* Empuja la imagen hacia abajo */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #hero .hero-img {
        text-align: center;
        margin-top: 20px;
        padding-bottom: 20px;
    }
    #hero .hero-img .atropos {
        max-width: 280px; /* Reduce el tamaño de la imagen */
        margin: 0 auto;
    }
    #hero .hero-buttons {
        justify-content: center;
    }
    #hero h1 { font-size: 32px; }
    #hero h2 { font-size: 18px; margin-bottom: 30px; }
}