.iubello-hero-carousel {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--color-negro);
}
@media (min-width: 640px) {
    .iubello-hero-carousel { height: 520px; }
}
@media (min-width: 1024px) {
    .iubello-hero-carousel { height: 600px; }
}
.hero-carousel__viewport {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}
.hero-carousel__slide.is-active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}
.hero-carousel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-carousel__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-carousel__poster {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.45s ease;
}
.hero-carousel__poster.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.hero-carousel__video-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.hero-carousel__iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}
.hero-carousel__video--native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-carousel__video-error {
    margin: 0;
    padding: 1rem;
    color: var(--color-blanco);
}
.hero-carousel__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, rgba(15,15,15,0.2) 50%, rgba(15,15,15,0.4));
    pointer-events: none;
}
.hero-carousel__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .hero-carousel__content { padding: 0 1.5rem; }
}
@media (min-width: 768px) {
    .hero-carousel__content { padding: 0 2rem; }
}
@media (min-width: 1024px) {
    .hero-carousel__content { padding: 0 3rem; }
}

/* Bloque titulo + descripcion + CTA: alineacion en el slide */
.hero-carousel__content--pos-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 4.25rem;
}
.hero-carousel__content--pos-bottom-center {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4.25rem;
}
.hero-carousel__content--pos-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 4.25rem;
}
.hero-carousel__content--pos-center-left {
    align-items: center;
    justify-content: flex-start;
}
.hero-carousel__content--pos-center {
    align-items: center;
    justify-content: center;
}
.hero-carousel__content--pos-center-right {
    align-items: center;
    justify-content: flex-end;
}
.hero-carousel__content--pos-top-left {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2.5rem;
}
.hero-carousel__content--pos-top-center {
    align-items: flex-start;
    justify-content: center;
    padding-top: 2.5rem;
}
.hero-carousel__content--pos-top-right {
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 2.5rem;
}
@media (min-width: 640px) {
    .hero-carousel__content--pos-bottom-left,
    .hero-carousel__content--pos-bottom-center,
    .hero-carousel__content--pos-bottom-right {
        padding-bottom: 4.75rem;
    }
    .hero-carousel__content--pos-top-left,
    .hero-carousel__content--pos-top-center,
    .hero-carousel__content--pos-top-right {
        padding-top: 3rem;
    }
}

.hero-carousel__content-inner {
    max-width: 42rem;
    width: 100%;
    margin: 0 auto 0 0;
}
.hero-carousel__content--pos-center .hero-carousel__content-inner,
.hero-carousel__content--pos-bottom-center .hero-carousel__content-inner,
.hero-carousel__content--pos-top-center .hero-carousel__content-inner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hero-carousel__content--pos-center-right .hero-carousel__content-inner,
.hero-carousel__content--pos-bottom-right .hero-carousel__content-inner,
.hero-carousel__content--pos-top-right .hero-carousel__content-inner {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}
@media (min-width: 768px) {
    .hero-carousel__content-inner { max-width: 1200px; margin: 0 auto; }
    .hero-carousel__content-inner > * { max-width: 42rem; }
    .hero-carousel__content--pos-center-left .hero-carousel__content-inner,
    .hero-carousel__content--pos-bottom-left .hero-carousel__content-inner,
    .hero-carousel__content--pos-top-left .hero-carousel__content-inner {
        margin-left: 0;
        margin-right: auto;
    }
    .hero-carousel__content--pos-center-right .hero-carousel__content-inner,
    .hero-carousel__content--pos-bottom-right .hero-carousel__content-inner,
    .hero-carousel__content--pos-top-right .hero-carousel__content-inner {
        margin-left: auto;
        margin-right: 0;
    }
    .hero-carousel__content--pos-center .hero-carousel__content-inner,
    .hero-carousel__content--pos-bottom-center .hero-carousel__content-inner,
    .hero-carousel__content--pos-top-center .hero-carousel__content-inner {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}
.hero-carousel__title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-blanco);
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
@media (min-width: 640px) {
    .hero-carousel__title { font-size: 1.875rem; margin-bottom: 1rem; }
}
@media (min-width: 768px) {
    .hero-carousel__title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
    .hero-carousel__title { font-size: 3rem; }
}
@media (min-width: 1280px) {
    .hero-carousel__title { font-size: 3.75rem; }
}
.hero-carousel__description {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-blanco);
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
@media (min-width: 640px) {
    .hero-carousel__description { font-size: 1rem; margin-bottom: 1.5rem; }
}
@media (min-width: 768px) {
    .hero-carousel__description { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
    .hero-carousel__description { font-size: 1.25rem; }
}
.hero-carousel__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: linear-gradient(to right, var(--color-azul-celeste), var(--color-azul));
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-blanco);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(137,196,226,0.4);
    border: 2px solid rgba(245,245,245,0.2);
    transition: all 0.3s ease;
}
@media (min-width: 640px) {
    .hero-carousel__cta { padding: 1.25rem 2.5rem; font-size: 1.125rem; gap: 0.75rem; }
}
.hero-carousel__cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(25,83,135,0.5);
    border-color: rgba(245,245,245,0.4);
}
.hero-carousel__cta-shine {
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(to right, transparent, rgba(245,245,245,0.2), transparent);
    transition: transform 0.7s ease;
    pointer-events: none;
}
.hero-carousel__cta:hover .hero-carousel__cta-shine {
    transform: translateX(100%);
}
.hero-carousel__cta-label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}
.hero-carousel__cta-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}
@media (min-width: 640px) {
    .hero-carousel__cta-arrow { width: 1.5rem; height: 1.5rem; }
}
.hero-carousel__cta:hover .hero-carousel__cta-arrow {
    transform: translateX(4px);
}

/* Navigation arrows */
.hero-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245,245,245,0.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 0.5rem;
    color: var(--color-blanco);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-carousel__nav:hover {
    background: rgba(245,245,245,0.3);
    transform: translateY(-50%) scale(1.1);
}
.hero-carousel__nav--prev { left: 1rem; }
.hero-carousel__nav--next { right: 1rem; }

/* Dots & play/pause */
.hero-carousel__controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-carousel__dots {
    display: flex;
    gap: 0.5rem;
}
.hero-carousel__dot {
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
    background: rgba(245,245,245,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-carousel__dot:hover {
    background: rgba(245,245,245,0.75);
}
.hero-carousel__dot.is-active {
    width: 2rem;
    background: var(--color-blanco);
}
.hero-carousel__playpause {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245,245,245,0.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 0.375rem;
    color: var(--color-blanco);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-carousel__playpause:hover {
    background: rgba(245,245,245,0.3);
    transform: scale(1.1);
}
