/* ==========================================================================
   Hero Carousel
   ========================================================================== */
.iubello-hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    background: var(--color-negro);
}

.iubello-hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.iubello-hero-carousel__slide.is-active {
    opacity: 1;
    z-index: 2;
}

.iubello-hero-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iubello-hero-carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 3;
}

.iubello-hero-carousel__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 3rem 0;
}

.iubello-hero-carousel__content-inner {
    color: #fff;
}

.iubello-hero-carousel__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 0.75rem;
}

.iubello-hero-carousel__desc {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.iubello-hero-carousel__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-rojo);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.iubello-hero-carousel__cta:hover {
    background: #a11320;
    color: #fff;
}

/* Controls */
.iubello-hero-carousel__controls {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.iubello-hero-carousel__btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background var(--transition);
}

.iubello-hero-carousel__btn:hover {
    background: rgba(255,255,255,0.35);
}

.iubello-hero-carousel__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.iubello-hero-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.iubello-hero-carousel__dot.is-active {
    background: #fff;
    width: 28px;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .iubello-hero-carousel {
        height: 50vh;
        min-height: 300px;
    }

    .iubello-hero-carousel__content {
        padding: 2rem 0;
    }

    .iubello-hero-carousel__controls {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .iubello-hero-carousel {
        height: 40vh;
    }
}

/* Video de fondo (marcado hero-carousel__* + CSS del plugin iubello-core) */
.iubello-hero-carousel .hero-carousel__viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.iubello-hero-carousel .hero-carousel__slide {
    position: absolute;
    inset: 0;
}

.iubello-hero-carousel .hero-carousel__media {
    position: absolute;
    inset: 0;
}

.iubello-hero-carousel .hero-carousel__poster.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.iubello-hero-carousel .hero-carousel__controls {
    flex-wrap: wrap;
    justify-content: center;
}
