/* =========================================
   HERO SLIDER - OPTIMIZADO PARA MÓVILES
   ========================================= */

.hero-slider {
    position: relative;
    width: 100%;
    /* Altura base para escritorio */
    height: 60vh; 
    min-height: 400px;
    overflow: hidden;
    background-image: url('images/bg-somos.webp');
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

/* Manejo de la imagen de fondo */
.hero-slider .bg-somos {
    background-image: url('images/bg-somos.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Capa oscura semitransparente para legibilidad */
.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-slider .slide-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    padding: 0 20px;
    max-width: 900px;
}

.hero-slider .slide-content h1 {
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-slider .slide-content p {
    font-size: 1.25rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    margin-top: 15px;
}

/* =========================================
   MEDIA QUERIES (MÓVILES Y TABLETS)
   ========================================= */

@media screen and (max-width: 992px) {
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    .hero-slider .slide-content h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-slider {
        /* En móviles, evitamos vh puro para prevenir saltos al scrollear */
        height: 400px; 
    }
    
    .hero-slider .slide-content h1 {
        font-size: 2rem;
    }

    .hero-slider .slide-content p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-slider {
        height: 350px; 
    }

    .hero-slider .slide-content h1 {
        font-size: 1.75rem;
    }

    .hero-slider .slide-content p {
        font-size: 1rem;
    }
}