/* === AJUSTE DE SECCIÓN DE STATS (IGUALADO A TARJETAS) === */
.video-section-stats {
    display: block;
    max-width: 1280px;
    /* Ajuste de 10px para igualar el inicio visual de las tarjetas */
    padding: 10px 10px 0 10px; 
    margin: 40px auto 0 auto !important; 
}

/* TÍTULO EXCLUSIVO DE STATS (MISMA FUENTE Y COLOR QUE TARJETAS) */
.stats-section-title {
    margin-bottom: 40px !important; /* Igualamos el aire (20px margin + 20px gap del grid) */
    margin-top: 0 !important;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    display: block;
    width: 100%;
}

/* === EL CONTENEDOR BLANCO (SIN CAMBIOS) === */
.seccion-metricas-tux {
    width: 100% !important;
    max-width: 1280px !important;
    height: 600px !important;
    margin: 0 auto 30px auto !important; 
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 20px 40px 30px 40px; 
    box-sizing: border-box;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* --- ELEMENTOS INTERNOS (INTACTOS) --- */
#chartTitle {
    text-align: center;
    margin: 5px 0 15px 0 !important; 
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    font-family: 'Open Sans', sans-serif;
}

#pantalla-stats {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    transition: opacity 0.4s ease; 
}

.nav-bar-stats {
    display: flex;
    justify-content: center; 
    gap: 15px;
    margin-top: 20px; 
}

.dot-stat {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cccccc; 
    cursor: pointer;
    border: none;
}

.dot-stat.active {
    background: #222222; 
    transform: scale(1.4);
}

/* ============================================================
   NUEVOS BOTONES LATERALES (CRISTAL OSCURO)
   ============================================================ */
.nav-stat-btn {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0; /* Ocultos por defecto */
    transition: all 0.4s ease;
    
    /* Efecto Cristal Oscuro */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 35px;
    user-select: none;
}

/* Área de detección invisible de 50px adicionales */
.nav-stat-btn::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 130px; /* 80px del botón + 50px de margen */
}

.nav-stat-btn.prev { 
    left: 0; 
}

.nav-stat-btn.prev::after {
    left: 0;
}

.nav-stat-btn.next { 
    right: 0; 
}

.nav-stat-btn.next::after {
    right: 0;
}

/* Aparecen solo cuando el ratón entra en el área del botón o su margen */
.nav-stat-btn:hover {
    opacity: 1;
}

.nav-stat-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.nav-stat-btn span {
    transition: transform 0.2s ease;
}

.nav-stat-btn:active span {
    transform: scale(0.85);
}