
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.hero-carousel__container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel__slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.hero-carousel__picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel__slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.650));
    z-index: 1;
}

/* Contenido del slide */
.hero-carousel__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
}

/* Animaciones - Desde los bordes laterales */
.hero-carousel__subtitle {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    opacity: 0;
    /* Empieza COMPLETAMENTE fuera de la pantalla a la IZQUIERDA */
    transform: translateX(-100vw);
    /* Animación más rápida */
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel__title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    /* Empieza COMPLETAMENTE fuera de la pantalla a la DERECHA */
    transform: translateX(100vw);
    /* Animación más rápida con delay reducido */
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

/* Controles de navegación */
.hero-carousel__btn {
    position: absolute;
    top: 50%;
    /* transform: translateY(-50%); */
    background: none;
    border: none;
    width: 70px;
    height: 70px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.hero-carousel__btn:hover {
    opacity: 1;
    transform: translateY(-5%) scale(1.15);
}

.hero-carousel__btn--prev {
    left: 30px;
}

.hero-carousel__btn--next {
    right: 30px;
}

.hero-carousel__btn img {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Indicadores */
.hero-carousel__indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-carousel__dot--active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 500px;
    }

    .hero-carousel__title {
        font-size: 2rem;
        /* Sigue viniendo desde el borde derecho */
        transform: translateX(100vw);
    }

    .hero-carousel__subtitle {
        font-size: 1rem;
        /* Sigue viniendo desde el borde izquierdo */
        transform: translateX(-100vw);
    }

    .hero-carousel__btn {
        width: 55px;
        height: 55px;
    }

    .hero-carousel__btn img {
        width: 28px;
        height: 28px;
    }

    .hero-carousel__btn--prev {
        left: 15px;
    }

    .hero-carousel__btn--next {
        right: 15px;
    }

    .hero-carousel__indicators {
        bottom: 25px;
    }
}

@media (max-width: 480px) {
    .hero-carousel__title {
        font-size: 1.5rem;
        /* Sigue viniendo desde el borde derecho */
        transform: translateX(100vw);
    }

    .hero-carousel__subtitle {
        font-size: 0.9rem;
        /* Sigue viniendo desde el borde izquierdo */
        transform: translateX(-100vw);
    }

    .hero-carousel__btn {
        width: 50px;
        height: 50px;
    }

    .hero-carousel__btn img {
        width: 25px;
        height: 25px;
    }
}