.navbar {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: white;
            padding: 20px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
        }
        .navbar h1 { font-size: 26px; margin: 0; }
        .navbar h1:before { display: none; }
        .navbar a {
            color: white;
            text-decoration: none;
            margin-left: 15px;
            padding: 10px 18px;
            background: rgba(255,255,255,0.15);
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s;
        }
        .navbar a:hover {
            background: rgba(255,255,255,0.25);
            transform: translateY(-2px);
        }
        .tabs {
            display: flex;
            background: white;
            border-radius: var(--radius) var(--radius) 0 0;
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-top: 30px;
        }
        .tab {
            flex: 1;
            padding: 18px;
            text-align: center;
            cursor: pointer;
            background: white;
            border-bottom: 4px solid #ddd;
            font-weight: 700;
            transition: all 0.3s;
            color: var(--muted);
        }
        .tab:hover { background: #f9f9f9; }
        .tab.active {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: white;
            border-bottom-color: var(--accent-2);
        }
        .tab-content {
            background: white;
            padding: 35px;
            border-radius: 0 0 var(--radius) var(--radius);
            box-shadow: var(--shadow);
            min-height: 500px;
        }
        .phase-section { display: none; }
        .phase-section.active { display: block; }
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 18px;
            margin-bottom: 20px;
        }
        .form-group { display: flex; flex-direction: column; }
        label { font-weight: 600; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
        .alert {
            padding: 15px;
            border-radius: var(--radius);
            margin-bottom: 18px;
            border-left: 5px solid;
        }
        .alert-warning {
            background: #FFF3CD;
            border-color: #FFC107;
            color: #856404;
        }
        .badge {
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: 700;
        }
        .badge-warning { background: #FFC107; color: #000; }
        .badge-success { background: #198754; color: white; }
        .badge-danger { background: #DC3545; color: white; }
        .card-section {
            background: linear-gradient(180deg, #fffaf6 0%, #fff3ec 100%);
            padding: 25px;
            border-radius: var(--radius);
            margin-bottom: 25px;
            border: 1px solid rgba(255, 122, 24, 0.1);
        }
        .card-section h3 {
            color: var(--accent-1);
            margin-bottom: 20px;
            font-size: 20px;
        }
        .card-section h3:before { display: none; }
        
        /* ✅ Estilos para modales CORREGIDOS */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }
        
        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background-color: #ffffff;
            margin: auto;
            padding: 0;
            border-radius: 15px;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
        }
        
        @keyframes modalSlideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        .modal-header {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: white;
            padding: 25px 30px;
            border-radius: 15px 15px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h2 {
            margin: 0;
            font-size: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .modal-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 28px;
            cursor: pointer;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .modal-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }
        
        .modal-body {
            padding: 30px;
        }
        
        /* ✅ Estilos para búsqueda por cédulas */
        .search-card {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            border: 1px solid rgba(33, 150, 243, 0.2);
        }
        .search-card h3 {
            color: #1976d2;
        }
        .cedula-input-area {
            width: 100%;
            min-height: 120px;
            padding: 12px;
            border: 2px solid #2196f3;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            resize: vertical;
        }
        .cedula-input-area:focus {
            outline: none;
            border-color: #1565c0;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
        }
        .search-info {
            background: #e3f2fd;
            padding: 12px;
            border-radius: 6px;
            margin-top: 10px;
            font-size: 13px;
            color: #1565c0;
        }
        .result-card {
            background: white;
            padding: 20px;
            margin: 15px 0;
            border-radius: 8px;
            border-left: 4px solid #2196f3;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .result-card.no-encontrado {
            border-left-color: #dc3545;
            background: #fff5f5;
        }
        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        .cedula-badge {
            background: #2196f3;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 16px;
        }
        .proceso-count {
            background: #ff9800;
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-weight: 600;
        }
        .history-item {
            background: #f8f9fa;
            padding: 12px;
            margin: 8px 0;
            border-radius: 6px;
            border-left: 3px solid #dee2e6;
        }
        .history-item strong {
            color: #495057;
        }
        
        /* Estilos responsive para modales */
        @media (max-width: 768px) {
            .modal-content {
                width: 95%;
                max-height: 95vh;
            }
            
            .modal-header {
                padding: 20px;
            }
            
            .modal-header h2 {
                font-size: 20px;
            }
            
            .modal-body {
                padding: 20px;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Estilos para tablas */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        table th {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: white;
            padding: 12px;
            text-align: left;
            font-weight: 600;
        }
        
        table td {
            padding: 12px;
            border-bottom: 1px solid #ddd;
        }
        
        table tr:hover {
            background: #f9f9f9;
        }
        
        .btn-container {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
		/* ✅ Campo observación examen rechazado — oculto por defecto */
        #campo_observacion_rechazada {
            display: none;
            flex-direction: column;
            grid-column: 1 / -1;   /* ocupa todo el ancho del grid */
            background: #fff3cd;
            border: 2px solid #ffc107;
            border-radius: 8px;
            padding: 15px;
            margin-top: 5px;
        }
        #campo_observacion_rechazada.mostrar {
            display: flex;
        }
        #campo_observacion_rechazada label {
            color: #856404;
            font-weight: 700;
            margin-bottom: 8px;
        }
        #campo_observacion_rechazada textarea {
            border: 1px solid #ffc107;
            border-radius: 6px;
            padding: 10px;
            min-height: 90px;
            font-size: 14px;
            resize: vertical;
        }
        #campo_observacion_rechazada textarea:focus {
            outline: none;
            border-color: #e0a800;
            box-shadow: 0 0 0 3px rgba(255,193,7,0.2);
        }
		
        /* Ajustes para sección de información de candidato */
        .candidato-info {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 25px;
            border-left: 5px solid var(--accent-1);
        }
        
        .candidato-info h4 {
            margin-top: 0;
            color: var(--accent-1);
        }
        
        .candidato-info p {
            margin: 8px 0;
            color: #495057;
        }