@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

main {
    padding: 0;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

/* Estilos generales para la página de Rótulos LED */
.rotulo-led {
    display: flex;
    align-items: center;
    padding: 80px 30px;
    background-color: #f9f9f9;
}

.imagen-container {
    flex: 1;
    text-align: center;
}

.imagen-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.imagen-container img:hover {
    transform: scale(1.02);
}

.descripcion {
    flex: 1;
    padding-left: 50px;
}

.descripcion h1 {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.descripcion p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
}

.descripcion ul {
    list-style: none;
    padding: 0;
}

.descripcion li {
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
    position: relative;
}

.descripcion i {
    color: #3498db;
    margin-right: 10px;
}

/* Estilos para la sección de opciones */
.opciones {
    padding: 50px 20px;
    background-color: #f0f0f0;
    max-width: 100%;
}

.opciones h2 {
    text-align: center;
    font-size: 2.2em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
}

.opciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.opcion {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

.opcion:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.opcion.visible {
    opacity: 1;
    transform: translateY(0);
}

.opcion-imagen {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.opcion-titulo {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.opcion-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opcion-caracteristicas {
    width: 100%;
    margin-top: 20px;
    background-color: #f0f0f0; /* Fondo para las características */
    padding: 15px;
    border-radius: 8px;
}

.opcion-caracteristicas h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left;
}

.opcion-caracteristicas ul {
    list-style: none;
    padding: 0;
}

.opcion-caracteristicas li {
    font-size: 1em;
    color: #555;
    margin-bottom: 5px;
    text-align: left;
}

.opcion-icono {
    font-size: 2em;
    color: #3498db;
    margin-top: 20px;
}

/* Estilos para el botón "Ver Detalles" */
.ver-detalles {
    background-color: #3498db; /* Color de fondo inicial (azul) */
    color: white; /* Color de texto inicial (blanco) */
    font-family: 'Montserrat', sans-serif; /* Aplicamos la fuente Montserrat */
    padding: 10px 20px;
    border: none; /* Sin borde */
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Transiciones suaves */
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sutil sombra inicial */
}

.ver-detalles:hover {
    background-color: #2980b9; /* Azul más oscuro al pasar el ratón */
    transform: translateY(-2px); /* Ligeramente hacia arriba al hacer hover */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada al hacer hover */
}

.ver-detalles:active {
    transform: translateY(0); /* Evita que se mueva al hacer clic */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Restaura la sombra al hacer clic */
}

/* Clase para ocultar las características inicialmente */
.opcion-caracteristicas.oculto {
    display: none;
}

/* Estilos para el botón de WhatsApp */
.whatsapp-btn {
    background-color: #2ecc71;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    animation: pulse 2s infinite alternate;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn img {
    height: 22px;
    margin-right: 8px;
}

/* Animación de pulsación */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Estilos para la sección de instalaciones (sin cambios, pero los incluyo por si acaso) */
.instalaciones {
    padding: 50px 20px;
    background-color: #e0f0ff;
    max-width: 100%;
}

.instalaciones h2 {
    text-align: center;
    font-size: 2.2em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
}

.instalaciones h2 i {
    color: #3498db;
    margin-left: 10px;
}

.instalaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.instalacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.instalacion:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.instalacion img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.instalacion h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.instalacion p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .rotulo-led {
        flex-direction: column;
        padding: 50px 20px;
    }

    .imagen-container, .descripcion {
        flex: 1;
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .descripcion {
        margin-top: 30px;
    }

    .descripcion h1 {
        font-size: 2.2em;
    }

    .descripcion p {
        font-size: 1.1em;
    }
}

/* Media queries para responsividad del botón de WhatsApp */
@media (max-width: 768px) {
    .whatsapp-btn {
        padding: 10px 20px;
        font-size: 0.85em;
        bottom: 10px;
        right: 10px;
    }

    .whatsapp-btn img {
        height: 18px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        padding: 8px 16px;
        font-size: 0.8em;
        bottom: 8px;
        right: 8px;
    }

    .whatsapp-btn img {
        height: 16px;
        margin-right: 5px;
    }
}

@media (max-width: 320px) {
    .whatsapp-btn {
        padding: 7px 14px;
        font-size: 0.75em;
        bottom: 5px;
        right: 5px;
    }

    .whatsapp-btn img {
        height: 14px;
        margin-right: 4px;
    }
}

/* Carrusel */

.imagen-container {
    max-width: 600px;
    margin: 0 auto;
    object-fit: cover;
}

.imagen {
    height: 600px;
    object-fit: contain; /* Para que no se deformen los banderines */
}

.carousel-item img {
    height: 600px;   
    background: transparent;
}

/* Forzamos el estilo usando el ID directo para que no haya fallos */
#verOpciones {
    border: 2px solid #3498db !important;
    background-color: transparent !important;
    color: #3498db !important;
    font-family: 'Montserrat', sans-serif;
    padding: 15px 30px !important;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    outline: none;
    box-shadow: none;
    display: inline-block; /* Para que respete el padding */
}

/* Estado al pasar el ratón */
#verOpciones:hover {
    background-color: #3498db !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4) !important;
}

/* Estado Focus/Active */
#verOpciones:focus, 
#verOpciones:active {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
    color: white !important;
}

/* 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;
    }
}