/* dgahpef/index.css */

/* 1. Configuración General y Reset */
body {
    background-color: #f4f7f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #2d3748;
}

/* 2. Contenedor Principal */
.dashboard-container {
    padding: 2.5rem 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* 3. Header con espaciado equilibrado */
.dashboard-header {
    text-align: center;
    margin-bottom: 50px; /* Reducido ligeramente para ajustarse al título menor */
    padding-top: 10px;
}

/* 4. Título con Formato 1.9rem e Interlineado corregido */
.dashboard-title {
    font-weight: 800;
    font-size: 1.9rem; /* Ajuste final del usuario */
    line-height: 1.3;  /* Interlineado para las dos líneas con <BR> */
    margin-bottom: 5px;
    letter-spacing: -1px;
    
    /* Efecto de degradado empresarial */
    background: linear-gradient(180deg, #1a202c 30%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Sombra sutil de profundidad */
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.1));
    
    text-align: center;
}

/* Línea de acento proporcional al tamaño 1.9rem */
.dashboard-title::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: #3182ce;
    margin: 12px auto 0;
    border-radius: 10px;
    opacity: 0.8;
}

/* 5. Leyenda de Niveles (L2, L3, L4) - Proporción Corregida */
.levels-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.level-badge {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 8px 16px; /* Más compacto */
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.level-number {
    width: 28px;  /* Tamaño reducido */
    height: 28px; /* Tamaño reducido */
    border-radius: 6px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 12px;
}

.level-text {
    font-size: 0.95rem; /* Texto más fino para acompañar el título */
    color: #4a5568;
    font-weight: 600;
}

/* Colores de Identidad por Nivel */
.bg-l2 { background-color: #2d3748; } /* Ejes Estratégicos */
.bg-l3 { background-color: #38a169; } /* Proyectos */
.bg-l4 { background-color: #3182ce; } /* Equipos de Apoyo */

/* 6. Contenedor del Gráfico Sunburst */
#chart-container {
    width: 100%;
    height: 850px;
    margin: 0 auto;
    background: transparent;
}

/* 7. Optimizaciones para Tooltips y Popups */
.highcharts-tooltip {
    z-index: 9999 !important;
}

/* 8. Adaptabilidad para pantallas móviles */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 1.6rem;
    }
    .levels-legend {
        gap: 10px;
    }
    .level-badge {
        padding: 6px 12px;
    }
    .level-text {
        font-size: 0.85rem;
    }
}