/* =============================================
   ORGANIGRAMA VORECOL - CSS ULTRA OPTIMIZADO
   Version: 2.2 - Sin animaciones de colores, máxima fluidez
   ============================================= */

.container {
    max-width: 100%;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #34495e;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #7f8c8d;
}

/* =============================================
   CONTROLES DE ZOOM Y NAVEGACIÓN ULTRA OPTIMIZADOS
   ============================================= */
.zoom-controls {
    position: fixed;
    top: 65%;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* OPTIMIZACIÓN MÁXIMA: Forzar layer separado */
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.zoom-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    /* OPTIMIZACIÓN: Transición más rápida y suave */
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.25);
    /* OPTIMIZACIÓN MÁXIMA */
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.zoom-btn:hover {
    transform: translateY(-1px) scale(1.02) translateZ(0);
    box-shadow: 0 5px 18px rgba(52, 152, 219, 0.35);
}

.zoom-level {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    background: rgba(236, 240, 241, 0.9);
    border-radius: 15px;
    min-height: 30px;
    contain: layout style paint;
}

.control-actions {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.control-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.control-btn:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.35);
}

.control-btn.success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.25);
}

.control-btn.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.25);
}

/* =============================================
   CONTENEDOR CON ZOOM Y PAN ULTRA OPTIMIZADO
   ============================================= */
.chart-wrapper {
    background: rgba(255, 255, 255, 0.98);
    /* padding: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecef;
    position: relative;
    height: calc(100vh - 200px);
    min-height: 600px;
    cursor: grab;
    width: 100%;
    /* OPTIMIZACIÓN MÁXIMA */
    /* contain: layout style paint; */
}

.chart-wrapper.dragging {
    cursor: grabbing;
}

.organigrama-zoom-container,
.chart-wrapper.organigrama-zoom-container {
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
    /* background: 
        radial-gradient(circle at 25% 25%, rgba(52, 152, 219, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(155, 89, 182, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
    /* OPTIMIZACIÓN MÁXIMA */
    transform: translateZ(0);
    will-change: scroll-position;
    contain: layout style paint;
}

.organigrama-content {
    transform-origin: 0 0;
    /* OPTIMIZACIÓN: Transición más rápida, solo cuando no se arrastra */
    transition: transform 0.08s ease-out;
    width: fit-content;
    min-width: 100%;
    min-height: 100%;
    padding: 50px;
    position: relative;
    overflow: visible;
    /* OPTIMIZACIÓN MÁXIMA */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    contain: layout style paint;
}

/* OPTIMIZACIÓN: Sin transición durante arrastre */
.organigrama-content.dragging {
    transition: none !important;
}

/* =============================================
   ESTILOS DEL ORGANIGRAMA ULTRA OPTIMIZADOS
   ============================================= */
.organigrama * {
    margin: 0px;
    padding: 0px;
}

.organigrama {
    overflow: visible;
    padding: 20px;
    width: fit-content;
    margin: 0 auto;
    min-width: max-content;
    /* OPTIMIZACIÓN MÁXIMA */
    contain: layout style paint;
}

.organigrama ul {
    padding-top: 20px;
    position: relative;
}

.organigrama li {
    float: left;
    text-align: center;
    list-style-type: none;
    /* padding: 20px 5px 0px 5px; */
    position: relative;
    padding: 20px;
}

/* LÍNEAS DE CONEXIÓN OPTIMIZADAS */
.organigrama li::before,
.organigrama li::after {
    content: '';
    position: absolute;
    top: 0px;
    right: 50%;
    border-top: 3px solid #4a90e2;
    width: 50%;
    height: 20px;
    /* OPTIMIZACIÓN: Shadow más simple */
    filter: drop-shadow(0 0 2px rgba(74, 144, 226, 0.2));
}

.organigrama li::after {
    right: auto;
    left: 50%;
    border-left: 3px solid #4a90e2;
    filter: drop-shadow(0 0 2px rgba(74, 144, 226, 0.2));
}

.organigrama li:only-child::before,
.organigrama li:only-child::after {
    display: none;
}

.organigrama li:only-child {
    padding-top: 0;
}

.organigrama li:first-child::before,
.organigrama li:last-child::after {
    border: 0 none;
}

.organigrama li:last-child::before {
    border-right: 3px solid #4a90e2;
    border-radius: 0 8px 0 0;
    filter: drop-shadow(0 0 2px rgba(74, 144, 226, 0.2));
}

.organigrama li:first-child::after {
    border-radius: 8px 0 0 0;
}

.organigrama ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 3px solid #4a90e2;
    width: 0;
    height: 20px;
    filter: drop-shadow(0 0 2px rgba(74, 144, 226, 0.2));
}

/* NODOS DEL ORGANIGRAMA ULTRA OPTIMIZADOS - SIN ANIMACIÓN DE COLORES */
.organigrama li a {
    border: 2px solid #bdc3c7;
    padding: 1.5em 1em;
    text-decoration: none;
    color: #2c3e50;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85em;
    display: inline-block;
    border-radius: 15px;
    /* OPTIMIZACIÓN: Transición más rápida y suave */
    transition: transform 0.12s ease-out, border-color 0.12s ease-out, box-shadow 0.12s ease-out;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    min-width: 160px;
    cursor: pointer;
    overflow: hidden;
    /* OPTIMIZACIÓN MÁXIMA */
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

/* ELIMINADA: Animación de colores arriba de las cards */
/* .organigrama li a::before - COMPLETAMENTE ELIMINADO */

.employee-name {
    font-weight: 700;
    font-size: 1em;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
}

.employee-position {
    font-weight: 400;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 8px;
    display: block;
}

.performance-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 8px;
    position: relative;
    /* OPTIMIZACIÓN: Pulse más suave y menos frecuente */
    animation: gentle-pulse 3s ease-in-out infinite;
}

/* OPTIMIZACIÓN: Animación pulse más suave */
@keyframes gentle-pulse {
    0%, 100% { 
        transform: scale(1) translateZ(0); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1) translateZ(0); 
        opacity: 0.9; 
    }
}

.performance-excellent {
    background: radial-gradient(circle, #27ae60, #2ecc71);
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
}

.performance-good {
    background: radial-gradient(circle, #3498db, #5dade2);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.performance-average {
    background: radial-gradient(circle, #f39c12, #f4d03f);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
}

.performance-poor {
    background: radial-gradient(circle, #e74c3c, #ec7063);
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

/* OPTIMIZACIÓN: Hover más suave y responsivo */
.organigrama li a:hover {
    border: 2px solid #3498db;
    background: linear-gradient(145deg, #ebf3fd 0%, #d6eaff 100%);
    /* OPTIMIZACIÓN: Transform más suave */
    transform: translateY(-3px) scale(1.02) translateZ(0);
    box-shadow: 
        0 12px 30px rgba(52, 152, 219, 0.15),
        0 4px 15px rgba(52, 152, 219, 0.08);
    /* OPTIMIZACIÓN: Transición instantánea en hover */
    transition: all 0.1s ease-out;
}

/* ESTILOS POR NIVEL OPTIMIZADOS */
.organigrama>ul>li>a {
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: 2px solid #1a252f;
    min-width: 200px;
    padding: 1.5em 1.2em;
}

.organigrama>ul>li>a .employee-name {
    color: white;
    font-size: 1.1em;
}

.organigrama>ul>li>a .employee-position {
    color: #bdc3c7;
}

.organigrama>ul>li>a:hover {
    background: linear-gradient(145deg, #34495e 0%, #2c3e50 100%);
    border: 2px solid #5d6d7e;
}

.organigrama>ul>li>ul>li>a {
    background: linear-gradient(145deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: 2px solid #2471a3;
    min-width: 180px;
}

.organigrama>ul>li>ul>li>a .employee-name {
    color: white;
}

.organigrama>ul>li>ul>li>a .employee-position {
    color: #aed6f1;
}

.organigrama>ul>li>ul>li>a:hover {
    background: linear-gradient(145deg, #2980b9 0%, #3498db 100%);
    border: 2px solid #5dade2;
}

.organigrama>ul>li>ul>li>ul>li>a {
    background: linear-gradient(145deg, #16a085 0%, #138d75 100%);
    color: white;
    border: 2px solid #117a65;
}

.organigrama>ul>li>ul>li>ul>li>a .employee-name {
    color: white;
}

.organigrama>ul>li>ul>li>ul>li>a .employee-position {
    color: #a3e4d7;
}

.organigrama>ul>li>ul>li>ul>li>a:hover {
    background: linear-gradient(145deg, #138d75 0%, #16a085 100%);
    border: 2px solid #45b39d;
}

.organigrama>ul>li>ul>li>ul>li>ul>li>a {
    background: linear-gradient(145deg, #8e44ad 0%, #7d3c98 100%);
    color: white;
    border: 2px solid #6c3483;
}

.organigrama>ul>li>ul>li>ul>li>ul>li>a .employee-name {
    color: white;
}

.organigrama>ul>li>ul>li>ul>li>ul>li>a .employee-position {
    color: #d7bde2;
}

.organigrama>ul>li>ul>li>ul>li>ul>li>a:hover {
    background: linear-gradient(145deg, #7d3c98 0%, #8e44ad 100%);
    border: 2px solid #a569bd;
}

/* CONTEXT MENU OPTIMIZADO */
.context-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 11px;
    color: #7f8c8d;
    backdrop-filter: blur(5px);
}

.organigrama li a:hover .context-menu {
    opacity: 1;
}

/* =============================================
   MINI MAPA ULTRA OPTIMIZADO
   ============================================= */
.minimap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    z-index: 1500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.minimap-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.minimap-content {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e8ecef;
}

.minimap-viewport {
    position: absolute;
    border: 2px solid #3498db;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 3px;
    pointer-events: none;
    transition: all 0.08s ease-out;
    transform: translateZ(0);
    will-change: transform;
}

/* =============================================
   MODAL ULTRA OPTIMIZADO CON CONTROL DE SCROLL
   ============================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 10000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.15s ease-out;
    contain: layout style paint;
    /* Prevenir scroll en el modal background */
    overflow: hidden;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-height: 95vh;
    overflow: hidden;
    transform: translateY(-30px) translateZ(0);
    transition: transform 0.15s ease-out;
    position: relative;
    z-index: 10001 !important;
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style paint;
    /* Asegurar que el modal-content mantenga su estructura */
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0) translateZ(0);
}

.modal-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    display: block;
    z-index: 10002;
    /* Fijar header */
    flex-shrink: 0;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20v20h20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.modal-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.employee-header-info {
    flex: 1;
}

.employee-header-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.employee-header-position {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.employee-rating-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 5px;
}

.close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10003;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.modal-body {
    padding: 0;
    background: white;
    /* IMPORTANTE: Hacer que el body sea scrolleable */
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* Mejorar el scroll en el modal */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Asegurar que ocupe el espacio restante */
    min-height: 0;
}

/* MEJORAS PARA EL SCROLL DEL MODAL */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* Para Firefox */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #f8f9fa;
}

/* ESTILOS PARA BODY CON SCROLL DESHABILITADO */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

.employee-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.detail-section {
    padding: 30px;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
    background: white;
}

.detail-section:nth-child(odd) {
    border-right: 1px solid #ecf0f1;
}

.detail-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.detail-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.info-icon {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: white;
}

.evaluation-icon {
    background: linear-gradient(135deg, #38b2ac, #319795);
    color: white;
}

.objectives-icon {
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    color: white;
}

.detail-section h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #34495e;
    font-size: 0.9rem;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.performance-section {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: none;
}

.objectives-list {
    margin-top: 20px;
    display: grid;
    gap: 15px;
}

.objective-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); */
    border: 1px solid #f1f2f6;
    /* transition: transform 0.15s ease, box-shadow 0.15s ease; */
}

.objective-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.objective-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.objective-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    flex: 1;
}

.objective-percentage {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--progress-color);
    margin-left: 10px;
}

.objective-progress {
    background: #ecf0f1;
    height: 8px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.objective-progress-bar {
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* ELIMINADA: Animación shimmer para mejor performance */

.progress-excellent {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    --progress-color: #27ae60;
}

.progress-good {
    background: linear-gradient(135deg, #3498db, #5dade2);
    --progress-color: #3498db;
}

.progress-average {
    background: linear-gradient(135deg, #f39c12, #f4d03f);
    --progress-color: #f39c12;
}

.progress-poor {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    --progress-color: #e74c3c;
}

/* =============================================
   NOTIFICACIONES ULTRA OPTIMIZADAS
   ============================================= */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 2500;
    animation: notificationSlide 0.15s ease-out;
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translateX(100%) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

/* =============================================
   RESPONSIVE DESIGN ULTRA OPTIMIZADO
   ============================================= */
@media (max-width: 768px) {
    .zoom-controls {
        right: 10px;
        top: 80px;
        padding: 8px;
    }
    
    .control-actions {
        left: 10px;
        top: 80px;
    }
    
    .control-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
        transition: none; /* Sin transiciones en móvil */
    }
    
    .minimap {
        width: 150px;
        height: 120px;
        bottom: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .organigrama {
        transform: scale(0.9);
        transform-origin: top center;
    }
    
    .organigrama-content {
        transition: transform 0.05s ease-out; /* Más rápido en móvil */
    }
    
    .organigrama li a {
        transition: all 0.08s ease-out; /* Más rápido en móvil */
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 25px 20px;
    }
    
    .employee-header-name {
        font-size: 1.4rem;
    }
    
    .employee-details {
        grid-template-columns: 1fr;
    }
    
    .detail-section {
        padding: 25px 20px;
        border-right: none !important;
    }
    
    .detail-section:nth-child(even) {
        border-top: 1px solid #ecf0f1;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .zoom-controls {
        flex-direction: row;
        right: 50%;
        transform: translateX(50%);
        top: 60px;
    }
    
    .control-actions {
        flex-direction: row;
        left: 50%;
        transform: translateX(-50%);
        top: 120px;
        gap: 5px;
    }
    
    .minimap {
        display: none;
    }
    
    .organigrama {
        transform: scale(0.8);
    }
    
    .modal-header {
        padding: 20px 15px;
    }
    
    .employee-header-name {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-section {
        padding: 20px 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* =============================================
   ASEGURAR VISIBILIDAD DE CONTROLES
   ============================================= */
.zoom-controls,
.control-actions,
.minimap {
    z-index: 1000 !important;
    position: fixed !important;
}

.content-page,
.content,
.container-fluid {
    position: relative;
    z-index: 1;
}

/* =============================================
   EFECTOS ESPECIALES OPTIMIZADOS
   ============================================= */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
    }
    to {
        box-shadow: 0 0 25px rgba(52, 152, 219, 0.6);
    }
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* =============================================
   OPTIMIZACIONES ADICIONALES PARA MÁXIMA FLUIDEZ
   ============================================= */

/* Reducir repaint/reflow */
* {
    box-sizing: border-box;
}

/* Optimizar rendering de texto */
body, .organigrama {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Forzar aceleración de hardware en elementos críticos */
.organigrama li a,
.zoom-controls,
.minimap,
.modal-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimizar animaciones críticas */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================
   ESTILOS PARA LAS NUEVAS SECCIONES DEL MODAL
   ============================================= */

/* Sección de ancho completo */
.detail-section.full-width {
    grid-column: 1 / -1;
}

/* Iconos adicionales para las nuevas secciones */
.course-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.payroll-icon {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
}

.feedback-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

/* =============================================
   ESTILOS PARA OBJETIVOS MEJORADOS
   ============================================= */
.objective-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.objective-deadline {
    font-size: 0.8rem;
    color: #7f8c8d;
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.objective-status {
    margin-top: 8px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.progress-excellent {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.status-badge.progress-good {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.status-badge.progress-average {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.status-badge.progress-poor {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* =============================================
   ESTILOS PARA SEGUIMIENTO DE CURSO
   ============================================= */
.course-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.course-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.course-provider {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.course-progress-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.course-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.course-percentage {
    font-weight: 700;
    color: #3498db;
    font-size: 1.1rem;
}

.course-progress-bar {
    background: #e9ecef;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.course-progress-fill {
    background: linear-gradient(135deg, #3498db, #2980b9);
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 6px;
}

.course-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: #6c757d;
}

.course-modules h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.module-item.completed {
    background: rgba(39, 174, 96, 0.08);
    border-left: 3px solid #27ae60;
}

.module-item.pending {
    background: rgba(243, 156, 18, 0.08);
    border-left: 3px solid #f39c12;
}

.module-info {
    flex: 1;
}

.module-name {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.module-score {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* =============================================
   ESTILOS PARA INFORMACIÓN DE NÓMINA
   ============================================= */
.payroll-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.salary-main {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.salary-main .detail-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0;
}

.salary-main .detail-item:last-child {
    border-bottom: none;
}

.salary-main .detail-label,
.salary-main .detail-value {
    color: white;
}

.salary-amount {
    font-size: 1.3rem;
    font-weight: 700;
}

.increment-info small {
    opacity: 0.8;
    font-size: 0.8rem;
}

.benefits-section,
.bonuses-section {
    margin-bottom: 20px;
}

.benefits-section h5,
.bonuses-section h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-grid,
.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.benefit-item,
.bonus-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.benefit-name,
.bonus-name {
    font-weight: 500;
    color: #2c3e50;
}

.benefit-value,
.bonus-value {
    font-weight: 600;
    color: #27ae60;
}

/* =============================================
   ESTILOS PARA 360° FEEDBACK
   ============================================= */
.feedback-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.feedback-summary {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.overall-score {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.score-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.score-total {
    font-size: 0.9rem;
    opacity: 0.9;
}

.score-info p {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.score-info small {
    color: #7f8c8d;
}

.evaluators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.evaluator-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.evaluator-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.evaluator-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.evaluator-type {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.evaluator-score {
    display: block;
    font-weight: 700;
    color: #3498db;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.evaluator-item small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.competencies-section {
    margin-bottom: 20px;
}

.competencies-section h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.competencies-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.competency-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.competency-item:last-child {
    margin-bottom: 0;
}

.competency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.competency-name {
    font-weight: 500;
    color: #2c3e50;
}

.competency-scores {
    display: flex;
    align-items: center;
    gap: 10px;
}

.competency-score {
    font-weight: 600;
    color: #3498db;
}

.competency-improvement {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.competency-improvement.positive {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.competency-improvement.negative {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.competency-bar {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.competency-fill {
    background: linear-gradient(135deg, #3498db, #2980b9);
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 3px;
}

.feedback-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.strengths-section h5,
.improvement-section h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 35px;
}

.insight-item.positive {
    background: rgba(39, 174, 96, 0.08);
    border-left: 3px solid #27ae60;
    color: #1e6b47;
}

.insight-item.improvement {
    background: rgba(243, 156, 18, 0.08);
    border-left: 3px solid #f39c12;
    color: #8b5a00;
}

.insight-item.positive::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: #27ae60;
    font-weight: bold;
}

.insight-item.improvement::before {
    content: '↗';
    position: absolute;
    left: 12px;
    color: #f39c12;
    font-weight: bold;
}

.next-review {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #2c3e50;
}

/* =============================================
   RESPONSIVE PARA LAS NUEVAS SECCIONES
   ============================================= */
@media (max-width: 768px) {
    .evaluators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feedback-insights {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefits-grid,
    .bonuses-grid {
        grid-template-columns: 1fr;
    }
    
    .overall-score {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .course-dates {
        flex-direction: column;
        gap: 8px;
    }
    
    .objective-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .evaluators-grid {
        grid-template-columns: 1fr;
    }
    
    .competency-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .score-circle {
        width: 60px;
        height: 60px;
    }
    
    .score-number {
        font-size: 1.4rem;
    }
}

/* =============================================
   ESTILOS PARA LAS NUEVAS SECCIONES DEL MODAL
   ============================================= */

/* Sección de ancho completo */
.detail-section.full-width {
    grid-column: 1 / -1;
}

/* Iconos adicionales para las nuevas secciones */
.course-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.payroll-icon {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
}

.feedback-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

/* =============================================
   ESTILOS PARA OBJETIVOS MEJORADOS
   ============================================= */
.objectives-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.objectives-summary {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.performance-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.objectives-period-info {
    text-align: center;
}

.objectives-period-info h6 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.objectives-period-info p {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.period-description {
    background: rgba(116, 185, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #74b9ff;
    margin-top: 10px !important;
    font-size: 0.8rem !important;
    color: #2c3e50 !important;
    text-align: left;
    font-style: italic;
    justify-content: flex-start !important;
}

/* Objetivos individuales mejorados */
.objective-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #f1f2f6;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.objective-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.objective-item.high-performance {
    border-left: 4px solid #27ae60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.02), #ffffff);
}

.objective-item.good-performance {
    border-left: 4px solid #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.02), #ffffff);
}

.objective-item.needs-attention {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.02), #ffffff);
}

.objective-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.objective-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-high {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.priority-medium {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.priority-normal {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.objective-text {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.4;
}

.objective-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f8f9fa;
}

.objective-actions {
    display: flex;
    gap: 15px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-item:hover {
    color: #3498db;
}

.action-item i {
    font-size: 0.7rem;
}

/* Insights y recomendaciones */
.objectives-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.insight-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.insight-card h6 {
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-card.recommendations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-card.recommendations li {
    padding: 8px 0;
    font-size: 0.8rem;
    color: #2c3e50;
    position: relative;
    padding-left: 20px;
}

.insight-card.recommendations li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 8px;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.8rem;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    color: #3498db;
    font-weight: 600;
    font-size: 0.75rem;
}

.timeline-objective {
    color: #2c3e50;
    flex: 1;
    margin-left: 10px;
}

.objective-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.objective-deadline {
    font-size: 0.8rem;
    color: #7f8c8d;
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.objective-percentage {
    font-weight: 700;
    color: var(--progress-color);
    font-size: 1.1rem;
}

.objective-progress {
    background: #ecf0f1;
    height: 8px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin: 8px 0;
}

.objective-progress-bar {
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.progress-excellent {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.status-badge.progress-good {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.status-badge.progress-average {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.status-badge.progress-poor {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.progress-excellent {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    --progress-color: #27ae60;
}

.progress-good {
    background: linear-gradient(135deg, #3498db, #5dade2);
    --progress-color: #3498db;
}

.progress-average {
    background: linear-gradient(135deg, #f39c12, #f4d03f);
    --progress-color: #f39c12;
}

.progress-poor {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    --progress-color: #e74c3c;
}

/* =============================================
   ESTILOS PARA SEGUIMIENTO DE CURSO
   ============================================= */
.course-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.course-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.course-provider {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Estilos para la sección de video */
.course-video-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.live-indicator {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Diferentes estilos para tipos de video */
.live-indicator[data-type="live"] {
    background: rgba(220, 53, 69, 0.9);
    animation: pulse-live 2s infinite;
}

.live-indicator[data-type="recorded"] {
    background: rgba(108, 117, 125, 0.9);
}

.live-indicator[data-type="upcoming"] {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.video-info {
    text-align: center;
}

.video-info h6 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-info h6 i {
    color: #e74c3c;
    font-size: 1.1rem;
}

.video-info p {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 5px 0;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    justify-content: center;
}

.video-meta span {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    color: #3498db;
}

.video-description {
    font-style: italic;
    background: rgba(116, 185, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #74b9ff;
    margin-top: 10px !important;
    font-size: 0.8rem !important;
    color: #2c3e50 !important;
    text-align: left;
}

.course-progress-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.course-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.course-percentage {
    font-weight: 700;
    color: #3498db;
    font-size: 1.1rem;
}

.course-progress-bar {
    background: #e9ecef;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.course-progress-fill {
    background: linear-gradient(135deg, #3498db, #2980b9);
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 6px;
}

.course-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: #6c757d;
}

.course-modules h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.module-item.completed {
    background: rgba(39, 174, 96, 0.08);
    border-left: 3px solid #27ae60;
}

.module-item.pending {
    background: rgba(243, 156, 18, 0.08);
    border-left: 3px solid #f39c12;
}

.module-info {
    flex: 1;
}

.module-name {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.module-score {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* =============================================
   ESTILOS PARA INFORMACIÓN DE NÓMINA
   ============================================= */
.payroll-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.salary-main {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.salary-main .detail-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0;
}

.salary-main .detail-item:last-child {
    border-bottom: none;
}

.salary-main .detail-label,
.salary-main .detail-value {
    color: white;
}

.salary-amount {
    font-size: 1.3rem;
    font-weight: 700;
}

.increment-info small {
    opacity: 0.8;
    font-size: 0.8rem;
}

.benefits-section,
.bonuses-section {
    margin-bottom: 20px;
}

.benefits-section h5,
.bonuses-section h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-grid,
.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.benefit-item,
.bonus-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.benefit-name,
.bonus-name {
    font-weight: 500;
    color: #2c3e50;
}

.benefit-value,
.bonus-value {
    font-weight: 600;
    color: #27ae60;
}

/* =============================================
   ESTILOS PARA 360° FEEDBACK
   ============================================= */
.feedback-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.feedback-summary {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.overall-score {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.score-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.score-total {
    font-size: 0.9rem;
    opacity: 0.9;
}

.score-info p {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.score-info small {
    color: #7f8c8d;
}

.evaluators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.evaluator-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.evaluator-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.evaluator-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.evaluator-type {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.evaluator-score {
    display: block;
    font-weight: 700;
    color: #3498db;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.evaluator-item small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.competencies-section {
    margin-bottom: 20px;
}

.competencies-section h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.competencies-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.competency-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.competency-item:last-child {
    margin-bottom: 0;
}

.competency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.competency-name {
    font-weight: 500;
    color: #2c3e50;
}

.competency-scores {
    display: flex;
    align-items: center;
    gap: 10px;
}

.competency-score {
    font-weight: 600;
    color: #3498db;
}

.competency-improvement {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.competency-improvement.positive {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.competency-improvement.negative {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.competency-bar {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.competency-fill {
    background: linear-gradient(135deg, #3498db, #2980b9);
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 3px;
}

.feedback-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.strengths-section h5,
.improvement-section h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-item {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 35px;
}

.insight-item.positive {
    background: rgba(39, 174, 96, 0.08);
    border-left: 3px solid #27ae60;
    color: #1e6b47;
}

.insight-item.improvement {
    background: rgba(243, 156, 18, 0.08);
    border-left: 3px solid #f39c12;
    color: #8b5a00;
}

.insight-item.positive::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: #27ae60;
    font-weight: bold;
}

.insight-item.improvement::before {
    content: '↗';
    position: absolute;
    left: 12px;
    color: #f39c12;
    font-weight: bold;
}

.next-review {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #2c3e50;
}

/* =============================================
   RESPONSIVE PARA LAS NUEVAS SECCIONES
   ============================================= */
@media (max-width: 768px) {
    .evaluators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feedback-insights {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefits-grid,
    .bonuses-grid {
        grid-template-columns: 1fr;
    }
    
    .overall-score {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .course-dates {
        flex-direction: column;
        gap: 8px;
    }
    
    .objective-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Objetivos responsive */
    .performance-stats {
        flex-direction: row;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .objectives-insights {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .objectives-period-info p {
        flex-direction: column;
        gap: 8px;
    }
    
    .objective-title {
        flex-direction: column;
        gap: 8px;
    }
    
    .objective-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .objective-actions {
        align-self: stretch;
        justify-content: space-around;
    }
    
    /* Video responsive */
    .course-video-section {
        padding: 15px;
    }
    
    .video-info h6 {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .evaluators-grid {
        grid-template-columns: 1fr;
    }
    
    .competency-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .score-circle {
        width: 60px;
        height: 60px;
    }
    
    .score-number {
        font-size: 1.4rem;
    }
    
    /* Objetivos mobile */
    .objectives-summary {
        padding: 15px;
    }
    
    .performance-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .objectives-period-info h6 {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .period-description {
        font-size: 0.75rem !important;
        padding: 8px;
    }
    
    .objective-item {
        padding: 15px;
    }
    
    .objective-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .objective-title {
        flex-direction: column;
        gap: 5px;
    }
    
    .priority-badge {
        align-self: flex-start;
    }
    
    .objective-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-item {
        font-size: 0.7rem;
        justify-content: center;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .timeline-objective {
        margin-left: 0;
    }
    
    .insight-card {
        padding: 12px;
    }
    
    .insight-card h6 {
        font-size: 0.85rem;
    }
    
    /* Video mobile */
    .course-video-section {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .video-info h6 {
        font-size: 0.85rem;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .video-meta span {
        font-size: 0.75rem;
        justify-content: center;
    }
    
    .video-description {
        font-size: 0.75rem !important;
        padding: 8px;
    }
}