/* Estilos generales del contenedor del carrusel
/* 1. CONTENEDOR PRINCIPAL
   Diferenciamos este carrusel del principal con un fondo blanco, 
   sombras profundas y bordes redondeados. */
#carouselExampleCaptions {
    background-color: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
}

/* 2. TARJETAS DE PRODUCTO (card-producto) con efectos de elevacion. */
#carouselExampleCaptions .card-producto {
    background: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}

/* Efecto Hover: Eleva la tarjeta y cambia el color del borde al azul */
#carouselExampleCaptions{
    overflow: visible;
}

#carouselExampleCaptions .card-producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

/* Títulos y Etiquetas */
#carouselExampleCaptions .card-producto h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-top: 1rem;
    line-height: 1.4;
}

#carouselExampleCaptions .titulo {
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.5em 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. CONTROL DE IMÁGENES
   Asegura que todas las fotos de pantallas LED tengan el mismo tamaño visual. */
#carouselExampleCaptions .img-contenedor {
    width: 100%;
    height: 220px; /* Altura uniforme para que el carrusel no "salte" */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

#carouselExampleCaptions .img-contenedor img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Evita que la pantalla se corte o deforme */
    transition: transform 0.5s ease;
}

#carouselExampleCaptions .card-producto:hover img {
    transform: scale(1.08);
}

/* 4. BOTONES Y NAVEGACIÓN
   Mejora la visibilidad de las flechas sobre el fondo blanco. */

/* Flechas laterales */
#carouselExampleCaptions .carousel-control-prev-icon,
#carouselExampleCaptions .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Círculo oscuro */
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50%;
    transition: background-color 0.3s ease;
}

#carouselExampleCaptions .carousel-control-prev:hover .carousel-control-prev-icon,
#carouselExampleCaptions .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Indicadores (Bolitas inferiores) */
#carouselExampleCaptions .custom-indicators {
    margin-bottom: 1rem !important; /* Las baja un poco para no tapar el texto */
    z-index: 10 !important;
}

#carouselExampleCaptions .custom-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    background-color: #bdc3c7 !important; /* Gris neutro */
    border: none !important;
    margin: 0 6px !important;
}

#carouselExampleCaptions .custom-indicators .active {
    background-color: #0d6efd !important; /* Azul cuando está seleccionado */
    transform: scale(1.3) !important;
}

/* RESPONSIVE: Ajustes para móviles */
@media (max-width: 768px) {
    #carouselExampleCaptions .card-producto {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    #carouselExampleCaptions .img-contenedor {
        height: 160px;
    }
    #carouselExampleCaptions .carousel-inner {
        padding: 1rem 0.5rem;
    }
}