html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #000000;
}

:root {
    --hero-height: clamp(360px, 80vh, 820px);
}

@media (max-width: 768px) {
    :root {
        --hero-height: clamp(260px, 55vh, 640px);
    }
}

/* Carrusel Hero */
.hero-carousel {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

/* Asegura que picture e img llenen el slide */
.carousel-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* llena sin deformar */
}

/* Contenido del carrusel */
.carousel-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    text-align: left;
    max-width: 500px;
}

.promo-badge {
    background: #06904c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

p.promo-title {
    margin: 0 0 30px 0;
    line-height: 1.1;
    font-weight: 900;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, .5);
    font-size: 23px;
}

/* Tamaño fluido para no desbordar cuando el hero es más bajo */
.promo-title {
    margin: 0 0 30px 0;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, .5);
    font-size: clamp(1.75rem, 6vw, 4rem);
}

.promo-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 5px 20px rgba(39, 154, 148, .4);
}

.promo-btn:hover {
    background: #18516b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 154, 148, .6);
}

/* Controles del carrusel */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: #06904c;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.563);
    transform: scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

@media (max-width: 430px) {

    .carousel-prev {
        transform: translateY(120%);
    }

    .carousel-next {
        transform: translateY(120%);
    }
}

@media (max-width: 768px) {

    .carousel-prev,
    .carousel-next {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: all .3s ease;
}

.indicator.active {
    background: #06904c;
    transform: scale(1.2);
}