/* ==========================================
   HERO
========================================== */

.hero-wrapper {
    background: var(--blanco);
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: hidden;
    width: 100%;
}

.hero {
    width: 100%;
    height: auto;
    aspect-ratio: 1578 / 742;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== IMAGEN =====
   BANNER FULL (cubre siempre el contenedor): ancho 100% de la pagina y alto
   proporcional (aspect-ratio 1578/742). En cualquier zoom el banner SIGUE
   cubriendo todo el ancho de la pagina (no se queda "flotando" ni deja
   espacios), mantienendo su proporcion. COVER: la imagen llena el area sin
   distorsionarse (recorte minimo y constante, como en el diseno). */
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ===== CAROUSEL ===== */
.hero--carousel {
    position: relative;
}

.hero-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ===== CONTROLES DEL CAROUSEL (flechas y puntos) ===== */

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    border-radius: 6px;
    transition: background 0.2s;
}

.hero-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-carousel-btn--left {
    left: 14px;
}

.hero-carousel-btn--right {
    right: 14px;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.18);
}

.hero-carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-carousel-dots span.active {
    background: #fff;
    transform: scale(1.25);
}


/* ===== OVERLAY (contenido sobre la imagen) ===== */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--hero-padding-left);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {
    .hero-overlay {
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 320px;
    }

    .hero-overlay {
        padding: 0 4%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 220px;
    }

    .hero-overlay {
        padding: 0 3%;
    }
}
