/* --- Estilos del Carrusel --- */
.carousel {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.carousel-slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 500px; /* Altura fija para el carrusel */
}

/* Controles de Navegación (Flechas) */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* Puntos de Navegación (Indicadores) */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.4s ease;
    border: 2px solid white;
}

.carousel-dot.active {
    background-color: #3B82F6; /* Azul de la marca */
}

/* Fade animation */
.initial-fade {
  animation-name: initial-fade;
  animation-duration: 1.5s;
}

@keyframes initial-fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Estilos para Responsividad */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 400px; /* Altura ajustada para tablets */
    }

    .carousel-control {
        padding: 12px;
        font-size: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: 300px; /* Altura ajustada para móviles */
    }

    .carousel-control {
        display: none; /* Ocultar flechas en pantallas muy pequeñas */
    }
}
