@media (max-width: 768px) {
    /* Estilos para dispositivos pequeños */
    .navbar-brand {
        padding: 0;
        margin: 0;
    }
    .navbar {
        background-color: #26439b !important;
        position: absolute;
        width: 100%;
        z-index: 1000;
        padding-top: 0;
    }
    .navbar-nav {
        width: 100%;
        text-align: center;
        border-radius: 0 0 15px 15px
    }
    .carousel-item {
        height: 90vh;
        margin-top: 100px;
    }
    .carousel-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0);
    }
    .carousel-control-next, .carousel-control-prev {
        position: absolute;
        top: 50%;
        bottom: 50%;
    }
    .mobile-carousel-container {
        display: block;
        position: relative; /* Asegura que el carrusel se muestre correctamente */
        z-index: 1; /* Definir un z-index bajo para el contenedor */
    }

    .mobile-carousel-image {
        height: 60vh!important;
        object-fit: cover;
        width: 100%;
    }

    .mobile-carousel-overlay {
        padding: 0;
        text-align: center;
        position: absolute;
        bottom: 0;
        width: 100%; /* Asegura que el texto cubra todo el ancho */
        z-index: 10; /* Asegura que el texto quede sobre la imagen */
    }

    .mobile-carousel-overlay h1 {
        font-size: 1.5rem;
        padding: 20px;
        background-color: #010030; /* Fondo oscuro */
        color: white;
        margin-bottom: 0;
    }
    .mobile-carousel-overlay-interior {
        padding: 0;
        text-align: center;
        position: absolute;
        bottom: 0;
        width: 100%; /* Asegura que el texto cubra todo el ancho */
        z-index: 10; /* Asegura que el texto quede sobre la imagen */
    }

    .mobile-carousel-overlay-interior h1 {
        font-size: 1.5rem;
        padding: 20px;
        background-color: #2df2ff; /* Fondo oscuro */
        color: #010030;
        margin-bottom: 0;
    }

    .mobile-carousel-overlay p {
        font-size: 1rem;
        line-height: 1.5;
        background-color: white;
        color: #010030;
        padding: 20px;
    }

    .highlight {
        color: #60a5fa;
        font-weight: 600;
    }
    .image-clientes-icon    {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Estilos para tablets */
    .navbar-brand {
        padding: 0;
        margin: 0;
    }
    .navbar {
        background-color: #26439b !important;
        position: absolute;
        width: 100%;
        z-index: 1000;
        padding-top: 0;
    }
    .navbar-nav {
        width: 100%;
        text-align: center;
        border-radius: 0 0 15px 15px

    }
    .carousel-overlay p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .carousel-overlay p {
        font-weight: bold;
        margin-bottom: 0;
        display: inline-block;
        background-color: #ffffff;
        padding: 5px 10px 50px 40px;
        border-radius: 0 15px 0 0;
        color: #010030;
    }
    .carousel-overlay h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 0;
    }

}

@media (min-width: 1025px) and (max-width: 1390px) {
    .carousel-overlay p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .carousel-overlay p {
        font-weight: bold;
        margin-bottom: 0;
        display: inline-block;
        background-color: #ffffff;
        padding: 5px 10px 50px 40px;
        border-radius: 0 15px 0 0;
        color: #010030;
    }
    .carousel-overlay h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 0;
    }
    .image-wrapper {
        width: 100%;
    }
}
@media (min-width: 1390px) and (max-width: 1550px) {
    .image-wrapper {
        width: 100%;
    }
}


/**RESPONSIVE**/

.navbar-toggler {
    padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: var(--bs-navbar-color);
    background-color: #26439b;
    border: none;
    border-radius: var(--bs-navbar-toggler-border-radius);
    transition: var(--bs-navbar-toggler-transition);
    position: relative;
    right: 40px
}
.navbar-toggler-icon {
    width: 2.5em;
    height: 2.5em;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 16 16"%3E%3Cpath fill-rule="evenodd" d="M1.5 12h13a.5.5 0 010 1h-13a.5.5 0 010-1zm0-5h13a.5.5 0 010 1h-13a.5.5 0 010-1zm0-5h13a.5.5 0 010 1h-13a.5.5 0 010-1z"/%3E%3C/svg%3E');
}
.navbar-toggler-icon:hover {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23cccccc" viewBox="0 0 16 16"%3E%3Cpath fill-rule="evenodd" d="M1.5 12h13a.5.5 0 010 1h-13a.5.5 0 010-1zm0-5h13a.5.5 0 010 1h-13a.5.5 0 010-1zm0-5h13a.5.5 0 010 1h-13a.5.5 0 010-1z"/%3E%3C/svg%3E');
}
.custom-mobile-carousel {
    max-width: 400px;
    margin: 0 auto;
    background: #1e3475;
    overflow: hidden;
    padding: 20px;
}

.custom-carousel-inner {
    border-radius: 8px;
    background: #1e3475;
    position: relative;
    z-index: 2;
}

.custom-carousel-item {
    padding: 2rem;
    min-height: 400px;
    display: none;
}

.custom-carousel-item.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-carousel-content {
    color: white;
    text-align: center;
}
.custom-slide-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
}
 .custom-carousel-control {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0);
            border-radius: 50%;
            position: absolute;
            /* top: 50%; */
            transform: translateY(-50%);
            border: none;
        } 

       .custom-carousel-control-prev {
            left: 10px;
            position: absolute;
            z-index: 3;
            
        }

        .custom-carousel-control-next {
            right: 10px;
            position: absolute;
            z-index: 3;
        }