.carousel-section-new {
    background-color: #0d104d; /* Fondo azul oscuro */
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.carousel-container-new {
    width: 100%;
    max-width: 1300px; /* Ancho máximo para el contenedor del carrusel */
    height: 600px; /* Altura fija para las diapositivas */
    overflow: hidden; /* Oculta las diapositivas que no están activas */
    position: relative;
    margin: 0 auto; /* Centra el contenedor */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.carousel-slide-new {
    display: none; /* Por defecto, todas las diapositivas están ocultas */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.7s ease-in-out; /* Transición más suave */
    opacity: 0; /* Inicialmente transparente */
}

.carousel-slide-new.active {
    display: block; /* Muestra la diapositiva activa */
    opacity: 1; /* Hace la diapositiva activa visible */
}

.carousel-slide-new img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
    display: block;
}

/* Estilos del Overlay para las imágenes del carrusel */
.overlay-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(99, 94, 165, 0.9); /* Naranja con transparencia */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Asegura que el overlay no bloquee el hover */
}

.carousel-slide-new:hover .overlay-new {
    opacity: 1;
}

.overlay-content-new {
    color: white;
    text-align: center;
    padding: 1rem;
}

.overlay-content-new h3 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

.overlay-content-new p {
    margin-top: 0.5rem;
    font-size: 1.1em;
}

/* Controles (Flechas) */
.carousel-controls-new {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px; /* Espaciado desde los bordes */
    z-index: 10;
    max-width: 900px; /* Coincide con el max-width del contenedor */
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-controls-new button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 12px; /* Ajuste para íconos */
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%; /* Botones redondos */
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex; /* Para centrar el ícono */
    align-items: center;
    justify-content: center;
    width: 50px; /* Ancho fijo para botones redondos */
    height: 50px; /* Altura fija para botones redondos */
}

.carousel-controls-new button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1) translateY(-50%); /* Efecto al pasar el ratón */
}

/* Puntos de Navegación */
.carousel-dots-new {
    margin-top: 30px; /* Más espacio desde el carrusel */
    display: flex;
    justify-content: center;
    gap: 12px; /* Espacio entre los puntos */
}

.dot-new {
    height: 14px;
    width: 14px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot-new.active {
    background-color: #f3f3f3; /* Naranja para el punto activo */
    transform: scale(1.3); /* Ligeramente más grande el punto activo */
}

.dot-new:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Media Queries para responsividad del nuevo carrusel */
@media (max-width: 768px) {
    .carousel-container-new {
        height: 300px; /* Altura más pequeña en móviles */
    }
    .carousel-controls-new button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 10px;
    }
    .carousel-controls-new {
        padding: 0 10px;
    }
    .overlay-content-new h3 {
        font-size: 1.4em;
    }
    .overlay-content-new p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .carousel-container-new {
        height: 250px;
    }
    .carousel-controls-new {
        padding: 0 5px;
    }
    .carousel-controls-new button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        padding: 8px;
    }
}

.carousel-controls-new button {
    background: none; 
    border: none;
    cursor: pointer;
    padding: 0; /* Remove default padding */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Ensure buttons are above the image overlay */
}

.carousel-controls-new button img {
    width: 30px; 
    height: 30px; 
    opacity: 0.7; 
    transition: opacity 0.3s ease; 
}

.carousel-controls-new button:hover img {
    opacity: 1; 
}

/* Position the left arrow */
#prevBtnNew {
    left: 20px; /* Adjust distance from the left edge */
}

/* Position the right arrow */
#nextBtnNew {
    right: 20px; /* Adjust distance from the right edge */
}