/**
 * ==========================================================================
 * PROYECTO: Tips del Mes (Galería / Carrusel de Seguridad)
 * DESCRIPCIÓN: Estilos para el contenedor principal, navegación de años/meses,
 *              carrusel de imágenes y overlay de reproducción de video.
 * NOTA: Se emplean sentencias !important en los controles del carrusel para 
 *       sobrescribir las reglas nativas de Bootstrap y evitar conflictos con 
 *       el archivo core15.css de SharePoint.
 * ==========================================================================
 */

/* ==========================================================================
   1. CONTENEDOR PRINCIPAL
   ========================================================================== */
.tips-container {
    font-family: "Work Sans", sans-serif;
    padding: 20px;
    padding-top: 0;
}

/* ==========================================================================
   2. NAVEGACIÓN (Pestañas de Años y Meses)
   ========================================================================== */
.nav-section-label {
    color: #002b5e;
    font-size: 16px;
    font-weight: 600;
}

/* Reseteo de botones estándar de DNP para las pestañas de navegación */
.nav-years button, 
.nav-months button {
    margin-right: 5px;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    justify-content: center;
    font-size: 14px;
    padding: 10px 20px;
    min-width: unset;
}

/* Estado Activo de la pestaña seleccionada */
.nav-years button.active, 
.nav-months button.active {
    border-color: #0943b5;
    background-color: #0943b5;
    color: #fff;
}

/* ==========================================================================
   3. ESTILOS DEL CARRUSEL (Estructura e Imágenes)
   ========================================================================== */
.carousel-inner {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra suave para dar profundidad */
}

/* Forzar proporción 16:9 para mantener uniformidad sin importar el tamaño de la imagen original */
.carousel-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000; /* Fondo negro por si la imagen tarda en cargar */
}

/* object-fit asegura que la imagen cubra todo el espacio 16:9 sin deformarse */
.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   4. OVERLAY DE VIDEO (Icono de Reproducción)
   ========================================================================== */
/* Capa semitransparente que cubre la miniatura del video */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-overlay:hover {
    background-color: rgba(0,0,0,0.5); /* Oscurece al hacer hover */
}

/* Círculo blanco con el icono de play */
.play-icon {
    font-size: 4rem;
    color: #ff0000;
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   5. CONTROLES DEL CARRUSEL (Indicadores y Flechas)
   ========================================================================== */
/* Posicionar los puntos indicadores por debajo del carrusel */
.carousel-indicators {
    bottom: -50px !important;
}

/* Diseño de los puntos (Círculos con borde azul) */
.carousel-indicators button {
    min-width: unset;
    border-radius: 50% !important;
    background-color: transparent !important;
    border: 2px solid #10417a !important; /* Borde azul institucional */
    margin: 0 6px !important;
    opacity: 1 !important;
    /* Se usan variables globales de tema si existen, sino tomará el fallback (calculado por navegador) */
    width: var(--fuente-2) !important;
    height: var(--fuente-2) !important;
}

/* Punto activo: Círculo lleno */
.carousel-indicators button.active {
    background-color: #10417a !important;
}

/* Se reutiliza una flecha hacia abajo (down-arrow) girándola para izquierda y derecha */
.carousel-control-prev img {
    transform: rotate(90deg);
    width: 30px;
}

.carousel-control-next img {
    transform: rotate(-90deg);
    width: 30px;
}

/* ==========================================================================
   6. SOBRESCRITURA Y CORRECCIONES DE CONFLICTOS
   ========================================================================== */
/* Evita que core15.css o estilos globales de SharePoint pongan fondos extraños 
   al pasar el cursor sobre las flechas del carrusel */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: transparent;
}

/* Footer de información extra (Si se requiere en un futuro para descripciones) */
.info-footer {
    background-color: #eaf3fb;
    color: #002b5e;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}