/* ===============================
   Hero Slider con efecto fade
   =============================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    /* ocupa todo el alto del viewport en escritorio */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

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

/* Imagen dentro del slide */
.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* cubre todo el contenedor */
    display: block;
}

/* Overlay de títulos */
.hero-overlay {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 2.5rem;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 0;
}

/* Botones */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Indicadores */
.slider-indicators {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #aaa;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: #333;
}

/* Ajuste móvil */

@media (max-width: 768px) {
    .hero-slider {
        height: auto !important;
        /* fuerza a ignorar el 100vh */
    }

    .slide {
        position: relative !important;
        height: auto !important;
    }

    .hero-slider img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}


