/* ============================================================
   RANKING - ENCABEZADOS
   ============================================================ */

/* FORMATO UNIVERSAL: TÍTULOS Y TEXTOS */
.titulo-seccion {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 26px !important;
    color: #111 !important;
    margin: 40px auto 0 auto !important;
    max-width: 1280px;
    display: block !important;
    font-weight: 800;
}

.texto-seccion {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    line-height: 1.5 !important;
    margin: 15px auto 25px auto !important;
    max-width: 1280px;
    display: block !important;
}

/* El primer bloque no necesita margen top 40 */
.primero { margin-top: 0 !important; }

/* ============================================================
   RANKING LDDM - SISTEMA DE TABLA DE CRISTAL (GLASS TECH)
   ============================================================ */

.ranking-glass-card {
    max-width: 1280px;
    margin: 20px auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)) !important;
    backdrop-filter: blur(25px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tabla-tux-ranking {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    margin: 0;
}

/* Cabeceras: Solo aquí hay naranja al pasar el ratón */
.tabla-tux-ranking thead th {
    padding: 20px 15px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    color: #111;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: color 0.3s ease;
}

.tabla-tux-ranking thead th:hover {
    color: hsl(19, 100%, 50%); /* Indicador de acción */
}

/* Datos: 100% Sobrio, sin colores */
.tabla-tux-ranking td {
    padding: 15px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.tabla-tux-ranking tbody tr {
    transition: background 0.3s ease;
}

.tabla-tux-ranking tbody tr:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tabla-tux-ranking tbody tr:last-child td {
    border-bottom: none;
}

/* Indicador de columna activa (Gris sutil, sin color) */
.columna-activa {
    background: rgba(0, 0, 0, 0.03) !important;
    font-weight: 700;
}

/* Info de Distro */
.distro-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.logo-distro {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

#tooltip-tecnico {
    position: fixed;
    display: none;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    pointer-events: none; /* Para que no parpadee al tocarlo con el raton */
    font-family: 'Open Sans', sans-serif;
    min-width: 220px;
}

.tooltip-title { font-weight: 800; color: #111; margin-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,0.1); font-size: 14px; }
.tooltip-item { font-size: 12px; color: #333; margin: 4px 0; }
.tooltip-label { font-weight: 700; color: #555; }

/* Selectores Estilo Cristal */
.select-cristal {
    padding: 10px 15px;
    border-radius: 10px;
    /* Borde mínimo y gris suave (muy sutil) */
    border: 1px solid rgba(0, 0, 0, 0.1) !important; 
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333; /* Texto un pelín más suave que el negro puro */
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 180px; 
    flex: 1;
}

.select-cristal:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.select-cristal:focus {
    border-color: #ff9800 !important;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}

/* Contenedor de filtros para que se vea ordenado */
.filtros-gaming {
    max-width: 1280px;
    margin: 0 auto 20px auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Esto alinea el texto con la caja de cristal de 1280px */
.buscador-interactivo {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   RANKING DISTRO MAS BUSCADA
   ============================================================ */

.fila-popularidad td {
    padding: 10px 5px !important;
    vertical-align: middle;
}

.contenedor-barra-pct {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.barra-fondo {
    flex-grow: 1;
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.barra-relleno {
    height: 100%;
    border-radius: 10px;
    width: 0; /* Se anima con JS o PHP */
    transition: width 1s ease-out;
    /* El background-color lo inyectamos por PHP desde el color de la distro */
}

.valor-pct {
    font-family: 'Open Sans';
    font-weight: 800;
    font-size: 13px;
    min-width: 45px;
    text-align: right;
}