.main_hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    margin-top: 80px;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel_wrapper {
    display: flex;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: scroll;
    overflow-y: hidden;

     overflow-x: scroll; /* Permite el scroll, pero lo controlaremos con JS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.carousel_wrapper::-webkit-scrollbar {
    display: none;
}

.carousel_wrapper > div {
    flex: 1 0 100%;
    height: 100%;
    position: relative;
    scroll-snap-align: start;
    width:100%;
}

.carousel_nav{
    position: absolute;
    bottom: 20px;
    left:50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}


.carousel_nav a {
    /* Estilos para los botones, por ejemplo */
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--mainColor);
    text-indent: -9999px; /* Ocultar el '*' */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel_nav a:hover {
    background-color:var(--neutral2);
}


/* Slider */

.carousel_slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start; /* Alinea el slide al inicio del contenedor */
}
.carousel_slide_container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel_slide_container img,
.carousel_slide_container video{
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el contenedor */
    display: block; /* Elimina el espacio debajo de la imagen */
    object-position: center center;
}

#carousel_slide3img {
    object-position: top center;;
}

/* Opcional: Estilo para el botón activo */
.carousel_nav a.active {
    background-color: var(--CTA);
}

.carousel_slide_text{
    padding: var(--space-padding);
    position: absolute;
    top: 50px;
    left: var(--Space-padding);
    color: var(--neutral1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: clamp(16px, 3vw, 24px);

}

.carousel_slide_text h1 {
    font-size: clamp(24px, 5vw, 60px);
}

.globos_section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite que los clics pasen a los elementos debajo */
    overflow: hidden;
}

.globos_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.globos_item {
    position:absolute;
    bottom: 0;
    width: 150px; 
    height: 150px;  
    animation: float 5s ease-in-out infinite;
}

.globos_item img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center;
}

#globo1{
    left:25%;
    animation: float 10s ease-in-out infinite;
}

#globo2{
    left:35%;
    animation: float 15s ease-in-out infinite;
}

#globo3{
    left:60%;
    animation: float 22s ease-in-out infinite;
}

#globo4{
    left:45%;
    animation: float 17s ease-in-out infinite;
}

#globo5{
    left:80%;
    animation: float 23s ease-in-out infinite;
}

#globo6{
    left:85%;
    animation: float 18s ease-in-out infinite;
}

#globo7{
    left:70%;
    animation: float 13s ease-in-out infinite;
}



@keyframes float {
    0% {
        bottom:-30%;
    }
    50% {
        bottom: 50%;
    }
    100% {
        bottom:150%;
    }
}

@media (max-width: 768px) {
    .main_hero{
        margin-top: 0;
        max-height: 600px;
    }

    .carousel_wrapper {
        scroll-behavior: auto !important;
    }

    .carousel_slide_text{
        top: auto;
        bottom: 50px;
        font-size: 1.3rem;
    }

    /*Gñobos Slider 1 */
    #globo1{
        left: 2%;
    }

    #globo2{
        left: 15%;
    }

    #globo3{
        left: 25%;
    }

    #globo4{
        left: 45%;
    }

    #globo5{
        left: 55%;
    }

    #globo6{
        left: 60%;
    }

    #globo7{
        left: 65%;
    }
}

