
        :root {
            /* Paleta VectraSur Consultores */
            --vectra-deep-navy: #002C52;
            --tech-blue: #2A6E9E;
            --horizon-blue: #5B98C5;
            --consulting-gray: #444E58;
            --pure-white: #FFFFFF;
            
            /* Aliases para compatibilidad */
            --azul-marino: var(--vectra-deep-navy);
            --azul-medio: var(--tech-blue);
            --azul-acero: var(--horizon-blue);
            --blanco-corporativo: var(--pure-white);
            
            /* Colores funcionales */
            --rojo-critico: #D90429;
            --rojo-error: #ef4444;
            --verde-exito: #16a34a;
            --color-status-pendiente: var(--horizon-blue);
            --color-status-proceso: var(--tech-blue);
            --color-status-recibido: var(--verde-exito);

            /* Fondos y bordes */
            --gris-fondo: #F8F9FA;
            --gris-borde: #E5E7EB;
            --text-primary: var(--vectra-deep-navy);
            --text-secondary: var(--consulting-gray);
        }

        body {
            font-family: 'Roboto', sans-serif;
            background: linear-gradient(135deg, #F8F9FA 0%, #E8EBED 100%);
            color: var(--text-primary);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            -webkit-tap-highlight-color: rgba(0, 44, 82, 0.1);
            touch-action: manipulation;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        /* ===== HEADER FIJO SUPERIOR ===== */
        .top-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 128px;
            background: linear-gradient(135deg, #F8F9FA 0%, #E8EBED 100%);
            border-bottom: 2px solid var(--gris-borde);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 2rem;
            z-index: 1000;
            box-shadow: 0 2px 8px rgba(0, 44, 82, 0.08);
        }

        .top-header-left {
            flex: 0 0 auto;
        }

        .top-header-logo {
            height: 96px;
            width: auto;
        }

        .top-header-center {
            flex: 1;
            text-align: center;
            padding: 0 2rem;
        }

        .top-header-title {
            font-size: 2.4rem;
            font-weight: 700;
            color: var(--vectra-deep-navy);
            margin: 0;
            letter-spacing: -0.5px;
        }

        .top-header-subtitle {
            font-size: 1.52rem;
            color: var(--tech-blue);
            margin: 0.4rem 0 0 0;
            font-weight: 500;
        }

        .top-header-right {
            flex: 0 0 auto;
        }

        .user-badge {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            background: linear-gradient(135deg, var(--vectra-deep-navy) 0%, var(--tech-blue) 100%);
            padding: 0.5rem 0.9rem;
            border-radius: 50px;
            box-shadow: 0 2px 8px rgba(0, 44, 82, 0.2);
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--pure-white);
            color: var(--vectra-deep-navy);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.7rem;
            border: 2px solid var(--pure-white);
            flex-shrink: 0;
        }

        .user-info {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            align-items: flex-start;
        }

        .user-name {
            color: var(--pure-white);
            font-weight: 600;
            font-size: 0.75rem;
            line-height: 1.2;
        }

        .user-company {
            color: #B8E6FF;
            font-weight: 500;
            font-size: 0.65rem;
            line-height: 1.2;
        }

        /* ===== BOTONES DE NAVEGACIÓN DE CONFIGURACIÓN ===== */
        .config-nav-btn {
            background: var(--pure-white);
            border: 2px solid var(--tech-blue);
            color: var(--tech-blue);
            padding: 0.5rem 1.25rem;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 0;
        }

        .config-nav-btn:hover {
            background: var(--horizon-blue);
            color: var(--pure-white);
            border-color: var(--horizon-blue);
        }

        .config-nav-btn.active {
            background: linear-gradient(135deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            color: var(--pure-white);
            border-color: var(--vectra-deep-navy);
            box-shadow: 0 2px 8px rgba(0, 44, 82, 0.3);
        }

        /* ===== PANEL DE CAMBIO DE CONTRASEÑA ===== */
        #config-panel-password .card {
            border: 2px solid var(--tech-blue);
        }

        #config-panel-password input[type="password"],
        #config-panel-password input[type="text"] {
            border: 2px solid var(--gris-borde);
            border-radius: 4px;
        }

        #config-panel-password input:focus {
            border-color: var(--tech-blue);
            box-shadow: 0 0 0 3px rgba(42, 110, 158, 0.1);
        }

        #config-panel-password button[type="button"].absolute {
            background: none;
            border: none;
            padding: 0;
        }

        /* ===== SIDEBAR DE NAVEGACIÓN ===== */
        .sidebar {
            position: fixed;
            top: 128px;
            left: 0;
            width: 240px;
            height: calc(100vh - 128px);
            background: linear-gradient(180deg, var(--vectra-deep-navy) 0%, #001A33 100%);
            border-right: 1px solid var(--tech-blue);
            display: flex;
            flex-direction: column;
            padding: 1.5rem 0;
            z-index: 999;
            box-shadow: 4px 0 12px rgba(0, 44, 82, 0.15);
            overflow-y: auto;
            overflow-x: hidden;
        }

        .sidebar-btn {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            font-weight: 500;
            text-align: left;
            border-left: 4px solid transparent;
        }

        .sidebar-btn i {
            font-size: 1.2rem;
            width: 24px;
            text-align: center;
        }

        .sidebar-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--pure-white);
            border-left-color: var(--horizon-blue);
        }

        .sidebar-btn-active {
            background: rgba(91, 152, 197, 0.2);
            color: var(--pure-white);
            border-left-color: var(--horizon-blue);
            font-weight: 600;
        }

        .sidebar-btn-logout {
            margin-top: auto;
            color: rgba(255, 255, 255, 0.7);
        }

        .sidebar-btn-logout:hover {
            background: rgba(217, 4, 41, 0.2);
            color: var(--pure-white);
            border-left-color: var(--rojo-critico);
        }

        .sidebar-divider {
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
            margin: 1rem 1.5rem;
        }

        /* ===== DROPDOWN GENERAR PDF ===== */
        .pdf-dropdown-container {
            position: relative;
        }

        .pdf-dropdown-container .sidebar-btn {
            justify-content: space-between;
            position: relative;
        }

        .pdf-dropdown-container .dropdown-arrow {
            font-size: 0.75rem;
            transition: transform 0.3s ease;
            margin-left: auto;
        }

        .pdf-dropdown-container.active .dropdown-arrow {
            transform: rotate(180deg);
        }

        .pdf-dropdown-menu {
            display: none;
            visibility: hidden;
            opacity: 0;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: linear-gradient(180deg, #003A66 0%, #002244 100%);
            border-radius: 0 0 8px 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            z-index: 10001;
            overflow: hidden;
            margin-top: -4px;
            pointer-events: none;
        }

        .pdf-dropdown-menu.active {
            display: block;
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .pdf-dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.9rem 1.5rem;
            color: rgba(255, 255, 255, 0.85);
            cursor: pointer;
            transition: all 0.2s ease;
            border-left: 4px solid transparent;
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .pdf-dropdown-item i {
            font-size: 1rem;
            width: 20px;
            text-align: center;
        }

        .pdf-dropdown-item:hover {
            background: rgba(91, 152, 197, 0.25);
            color: var(--pure-white);
            border-left-color: var(--horizon-blue);
        }

        .pdf-dropdown-item:active {
            background: rgba(91, 152, 197, 0.35);
        }

        /* ===== CONTENIDO PRINCIPAL =====*/
        .main-content {
            margin-top: 128px;
            margin-left: 240px;
            padding: 2rem;
            min-height: calc(100vh - 128px);
        }

        /* ===== FOOTER ===== */
        footer {
            margin-left: 240px;
            margin-top: 0;
        }

        /* ===== RESPONSIVE DESIGN ===== */
        @media (max-width: 1024px) {
            .top-header {
                padding: 0 1rem;
            }
            
            .top-header-title {
                font-size: 2rem;
            }
            
            .top-header-subtitle {
                font-size: 1.36rem;
            }
            
            .sidebar {
                width: 200px;
            }
            
            .main-content {
                margin-left: 200px;
                padding: 1.5rem;
            }
            
            footer {
                margin-left: 200px;
            }
        }

        @media (max-width: 768px) {
            .top-header {
                height: 112px;
                padding: 0 0.75rem;
            }
            
            .top-header-logo {
                height: 72px;
            }
            
            .top-header-title {
                font-size: 1.6rem;
            }
            
            .top-header-subtitle {
                font-size: 1.2rem;
            }
            
            .user-badge {
                padding: 0.4rem 0.75rem;
                gap: 0.5rem;
            }
            
            .user-avatar {
                width: 32px;
                height: 32px;
                font-size: 0.7rem;
            }
            
            .user-name {
                font-size: 0.7rem;
            }
            
            .user-company {
                font-size: 0.6rem;
            }
            
            .sidebar {
                width: 70px;
                padding: 1rem 0;
            }
            
            .sidebar-btn {
                padding: 1rem 0.75rem;
                justify-content: center;
                gap: 0;
            }
            
            .sidebar-btn span {
                display: none;
            }
            
            .sidebar-btn i {
                font-size: 1.5rem;
            }

            /* Ajustes para dropdown de PDF en móvil */
            .pdf-dropdown-container .dropdown-arrow {
                display: none;
            }

            .pdf-dropdown-menu {
                left: 70px;
                min-width: 220px;
                border-radius: 0 8px 8px 0;
            }

            .pdf-dropdown-item {
                padding: 0.9rem 1rem;
            }
            
            .main-content {
                margin-left: 70px;
                margin-top: 112px;
                padding: 1rem;
            }
            
            footer {
                margin-left: 70px;
            }
        }

        .card {
            background-color: var(--pure-white);
            border: 1px solid var(--tech-blue);
            box-shadow: 0 2px 8px rgba(0, 44, 82, 0.08);
            transition: box-shadow 0.3s ease;
        }
        
        .card:hover {
            box-shadow: 0 4px 16px rgba(0, 44, 82, 0.12);
        }

        .header-main { 
            color: var(--vectra-deep-navy); 
            font-weight: 700;
            letter-spacing: -0.5px;
        }
        .header-secondary { 
            color: var(--tech-blue); 
            font-weight: 500;
        }
        
        /* Logotipo corporativo */
        .brand-logo {
            max-height: 116px;
            height: auto;
            width: auto;
            display: block;
        }
        @media (max-width: 640px) {
            .brand-logo { max-height: 91px; }
        }

                /* Readonly inputs en sección Datos del Proyecto: fondo blanco y sin contornos */
                #project-data-container input[readonly] {
                    background-color: #ffffff !important;
                    border: none !important;
                    outline: none !important;
                    box-shadow: none !important;
                }
                #project-data-container input[readonly]:focus {
                    outline: none !important;
                    box-shadow: none !important;
                }
        
        .table-header {
            background: linear-gradient(180deg, var(--vectra-deep-navy) 0%, #003A66 100%);
            color: var(--pure-white);
            font-weight: 600;
            letter-spacing: 0.3px;
        }
        .critical-path-row {
            background-color: rgba(217, 4, 41, 0.06);
            border-left: 4px solid var(--rojo-critico);
            transition: background-color 0.2s ease;
        }
        .critical-path-row:hover {
            background-color: rgba(217, 4, 41, 0.12);
        }
        .non-critical-path-row {
            background-color: rgba(91, 152, 197, 0.08);
            border-left: 4px solid var(--horizon-blue);
            transition: background-color 0.2s ease;
        }
        .non-critical-path-row:hover {
            background-color: rgba(91, 152, 197, 0.15);
        }
        .task-completed {
            color: #9ca3af;
        }
        .task-completed .font-medium {
            text-decoration: line-through;
        }

        /* Modal de confirmación/alerta personalizado */
        .custom-dialog-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 44, 82, 0.65);
            backdrop-filter: blur(4px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        .custom-dialog-overlay.active {
            display: flex;
        }
        .custom-dialog-box {
            background-color: var(--pure-white);
            border: 1px solid var(--tech-blue);
            border-top: 4px solid var(--tech-blue);
            border-radius: 0;
            padding: 28px;
            min-width: 340px;
            max-width: 520px;
            box-shadow: 0 12px 32px rgba(0, 44, 82, 0.25);
            animation: dialogSlideIn 0.3s ease-out;
        }
        @keyframes dialogSlideIn {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        .custom-dialog-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--vectra-deep-navy);
            margin-bottom: 14px;
            letter-spacing: -0.3px;
        }
        .custom-dialog-message {
            font-size: 15px;
            color: var(--consulting-gray);
            margin-bottom: 24px;
            line-height: 1.6;
        }
        .custom-dialog-buttons {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        .custom-dialog-btn {
            padding: 8px 20px;
            font-size: 14px;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }
        .custom-dialog-btn-confirm {
            background: linear-gradient(135deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            color: var(--pure-white);
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(42, 110, 158, 0.3);
        }
        .custom-dialog-btn-confirm:hover {
            background: linear-gradient(135deg, var(--vectra-deep-navy) 0%, #001A33 100%);
            box-shadow: 0 4px 12px rgba(0, 44, 82, 0.4);
            transform: translateY(-1px);
        }
        .custom-dialog-btn-cancel {
            background-color: #e5e7eb;
            color: var(--azul-marino);
        }
        .custom-dialog-btn-cancel:hover {
            background-color: #d1d5db;
        }
        .custom-dialog-btn-alert {
            background: linear-gradient(135deg, var(--horizon-blue) 0%, var(--tech-blue) 100%);
            color: var(--pure-white);
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(91, 152, 197, 0.3);
        }
        .custom-dialog-btn-alert:hover {
            background: linear-gradient(135deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            box-shadow: 0 4px 10px rgba(42, 110, 158, 0.4);
            transform: translateY(-1px);
        }

        .timeline-container {
            position: relative;
            width: 100%;
            height: 20px;
            background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 100%);
            /* Permitir que el tooltip se muestre fuera de la barra */
            overflow: visible;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        .timeline-bar {
            position: absolute;
            height: 100%;
            background: linear-gradient(90deg, var(--horizon-blue) 0%, var(--tech-blue) 100%);
            transition: all 0.3s ease-in-out;
            box-shadow: inset 0 -2px 4px rgba(0, 44, 82, 0.2);
        }
        .timeline-bar-critical {
            background: linear-gradient(90deg, var(--rojo-critico) 0%, #B00322 100%);
        }
        
        .timeline-bar-completed {
            background-image: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 5px,
                rgba(255, 255, 255, 0.6) 5px,
                rgba(255, 255, 255, 0.6) 10px
            );
        }

        #gantt-chart {
            position: relative;
        }

        .today-marker {
            position: absolute;
            top: -5px;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            z-index: 5;
            box-shadow: 0 0 8px rgba(42, 110, 158, 0.5);
        }
        .today-marker::before {
            content: 'Hoy';
            position: absolute;
            top: -24px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            color: var(--pure-white);
            padding: 3px 8px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(42, 110, 158, 0.4);
        }

        .tooltip {
            visibility: hidden;
            background: linear-gradient(135deg, var(--vectra-deep-navy) 0%, #003A66 100%);
            color: var(--pure-white);
            border: 1px solid var(--tech-blue);
            text-align: center;
            padding: 10px 12px;
            position: absolute;
            z-index: 10;
            bottom: 125%;
            left: 50%;
            margin-left: -85px;
            opacity: 0;
            transition: opacity 0.3s ease;
            font-size: 0.8rem;
            width: 170px;
            line-height: 1.5;
            box-shadow: 0 4px 12px rgba(0, 44, 82, 0.3);
            font-weight: 500;
        }
        .has-tooltip:hover .tooltip {
            visibility: visible;
            opacity: 1;
        }
        
        .has-tooltip-info {
            position: relative;
            cursor: help;
        }
        .info-tooltip {
            visibility: hidden;
            background: linear-gradient(135deg, var(--vectra-deep-navy) 0%, #003A66 100%);
            color: var(--pure-white);
            border: 1px solid var(--tech-blue);
            text-align: left;
            padding: 12px;
            position: absolute;
            z-index: 10;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s ease;
            font-size: 0.8rem;
            width: 260px;
            pointer-events: none;
            box-shadow: 0 4px 12px rgba(0, 44, 82, 0.3);
            line-height: 1.5;
        }
        .has-tooltip-info:hover .info-tooltip {
            visibility: visible;
            opacity: 1;
        }

        .node { cursor: pointer; }
        .node-rect { 
            stroke-width: 2.5px; 
            transition: all 0.25s ease; 
            filter: drop-shadow(0 2px 4px rgba(0, 44, 82, 0.15));
        }
        .node-rect-critical { 
            stroke: var(--rojo-critico); 
            fill: rgba(217, 4, 41, 0.12); 
        }
        .node-rect-normal { 
            stroke: var(--tech-blue); 
            fill: rgba(91, 152, 197, 0.15); 
        }
        .node-text { 
            font-size: 11px; 
            fill: var(--vectra-deep-navy); 
            pointer-events: none; 
            font-weight: 600;
        }
        .link { 
            stroke: var(--tech-blue); 
            stroke-width: 2px; 
            opacity: 0.7;
        }
        .link-critical { 
            stroke: var(--rojo-critico); 
            stroke-width: 2.5px;
            opacity: 0.9;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            color: var(--pure-white);
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(42, 110, 158, 0.25);
            border: none;
        }
        .btn-primary:hover {
            background: linear-gradient(135deg, var(--horizon-blue) 0%, var(--tech-blue) 100%);
            box-shadow: 0 4px 16px rgba(42, 110, 158, 0.35);
            transform: translateY(-2px);
        }
        .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(42, 110, 158, 0.3);
        }
        .btn-primary:disabled {
            background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
            cursor: not-allowed;
            opacity: 0.6;
            box-shadow: none;
            transform: none;
        }
        .btn-confirm {
            background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
            color: var(--pure-white);
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
            transition: all 0.25s ease;
        }
        .btn-confirm:hover {
            background: linear-gradient(135deg, #15803d 0%, #166534 100%);
            box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
            transform: translateY(-2px);
        }
        .form-input {
            background-color: var(--pure-white);
            border: 1px solid var(--tech-blue);
            color: var(--text-primary);
            transition: all 0.2s ease;
            padding: 0.625rem 0.875rem;
        }
        .form-input:focus {
            outline: none;
            border-color: var(--tech-blue);
            box-shadow: 0 0 0 3px rgba(42, 110, 158, 0.1);
        }
        .form-input:hover:not([readonly]) {
            border-color: var(--horizon-blue);
        }
        .form-input[readonly] {
            background-color: transparent;
            border-color: transparent;
            padding-left: 1px;
            cursor: default;
            box-shadow: none;
        }
        .gantt-delete-btn {
            background: none;
            border: none;
            color: var(--rojo-critico);
            font-size: 1.5rem;
            line-height: 1;
            cursor: pointer;
            padding: 0 5px;
            transition: all 0.2s ease;
        }
        .gantt-delete-btn:hover {
            color: #B00322;
            transform: scale(1.15);
        }
        .dependency-select {
            height: 120px;
            border: 2px solid var(--gris-borde);
            transition: border-color 0.2s ease;
        }
        .dependency-select:focus {
            outline: none;
            border-color: var(--tech-blue);
            box-shadow: 0 0 0 3px rgba(42, 110, 158, 0.1);
        }
        .dependency-select option {
            padding: 6px;
        }
        .dependency-select option:checked {
            background: linear-gradient(90deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            color: var(--pure-white);
            font-weight: 600;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 44, 82, 0.65);
            backdrop-filter: blur(4px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 50;
            transition: opacity 0.3s ease-in-out;
            overflow-y: auto;
            padding: 2rem 0;
        }
        .modal-content {
            background-color: var(--pure-white);
            border: 1px solid var(--tech-blue);
            box-shadow: 0 16px 48px rgba(0, 44, 82, 0.25);
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            margin: auto;
        }
        .modal-header {
            padding: 1.25rem;
            color: var(--pure-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
        }
        .modal-header-normal { 
            background: linear-gradient(135deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
        }
        .modal-header-critical { 
            background: linear-gradient(135deg, var(--rojo-critico) 0%, #B00322 100%);
        }
        .modal-close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .tab-container {
            border: 1px solid var(--tech-blue);
            background: linear-gradient(180deg, var(--pure-white) 0%, #F8F9FA 100%);
            box-shadow: 0 1px 4px rgba(0, 44, 82, 0.06);
        }

        .tab-btn {
            border: 1px solid transparent;
            margin: 4px;
            padding: 0.875rem 1.25rem;
            font-size: 1rem;
            font-weight: 600;
            color: var(--tech-blue);
            transition: all 0.25s ease;
            display: inline-flex;
            align-items: center;
            border-bottom: 3px solid transparent;
            position: relative;
        }
        .tab-btn:hover {
            color: var(--vectra-deep-navy);
            background-color: rgba(91, 152, 197, 0.1);
            transform: translateY(-1px);
        }
        .tab-btn-active {
            color: var(--vectra-deep-navy);
            border-bottom-color: var(--tech-blue);
            background-color: var(--pure-white);
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0, 44, 82, 0.08);
        }
        
        .sub-nav-btn {
            background-color: var(--gris-fondo);
            border: 1px solid var(--gris-borde);
            color: var(--tech-blue);
            padding: 0.625rem 1.25rem;
            font-weight: 600;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.25s ease;
        }
        .sub-nav-btn:hover {
            background-color: rgba(91, 152, 197, 0.12);
            color: var(--vectra-deep-navy);
            transform: translateY(-1px);
        }
        .sub-nav-btn.active {
            color: var(--vectra-deep-navy);
            border-bottom-color: var(--tech-blue);
            font-weight: 700;
            background-color: var(--pure-white);
            border-color: var(--gris-borde);
            border-bottom-color: var(--tech-blue);
            box-shadow: 0 2px 6px rgba(0, 44, 82, 0.08);
        }
        
        .config-list-item {
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 0.75rem;
            border-left: 3px solid transparent;
        }
        .config-list-item:hover {
            background-color: rgba(91, 152, 197, 0.1);
            border-left-color: var(--horizon-blue);
        }
        .config-list-item.selected {
            background: linear-gradient(90deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            color: var(--pure-white);
            font-weight: 700;
            border-left-color: var(--pure-white);
        }
        .config-list-item.marked-for-deletion {
            opacity: 0.5;
            text-decoration: line-through;
            background-color: #fee2e2;
        }

        .status-badge {
            padding: 0.3rem 0.75rem;
            font-size: 0.75rem;
            font-weight: 700;
            color: white;
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        }
        .status-badge.Pendiente { 
            background: linear-gradient(135deg, var(--horizon-blue) 0%, var(--tech-blue) 100%);
        }
        .status-badge.En_Proceso { 
            background: linear-gradient(135deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
        }
        .status-badge.Recibido { 
            background: linear-gradient(135deg, var(--verde-exito) 0%, #15803d 100%);
        }
        .status-badge.Finalizada { 
            background: linear-gradient(135deg, var(--verde-exito) 0%, #15803d 100%);
        }

        .costs-table tr.marked-for-deletion {
            opacity: 0.5;
            text-decoration: line-through;
            background-color: #fee2e2;
        }

        .card, button, input, select, .modal-content, .modal-header, .tooltip, .info-tooltip, .today-marker::before, .sub-nav-btn, .tab-container, .tab-btn, .status-badge, .timeline-container, .timeline-bar, .node-card, .custom-dialog-box, .project-card, .projects-drawer {
            border-radius: 0 !important;
        }

        /* Panel lateral de Mis Proyectos */
        .projects-drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 44, 82, 0.65);
            backdrop-filter: blur(4px);
            z-index: 9998;
            transition: opacity 0.3s ease;
        }
        
        .projects-drawer {
            position: fixed;
            top: 0;
            right: -500px;
            width: 500px;
            max-width: 90vw;
            height: 100%;
            background-color: var(--pure-white);
            border-left: 1px solid var(--tech-blue);
            box-shadow: -8px 0 32px rgba(0, 44, 82, 0.25);
            z-index: 9999;
            overflow-y: auto;
            transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
        }
        
        .projects-drawer-overlay.active .projects-drawer {
            right: 0;
        }
        
        .projects-drawer-header {
            background: linear-gradient(135deg, var(--vectra-deep-navy) 0%, #003A66 100%);
            color: var(--pure-white);
            padding: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0, 44, 82, 0.2);
        }
        
        .projects-drawer-header button {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            cursor: pointer;
            transition: all 0.25s ease;
            padding: 8px;
            color: var(--pure-white);
            border-radius: 0;
        }
        
        .projects-drawer-header button:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: scale(1.1);
        }
        
        .projects-drawer-actions {
            padding: 20px;
            border-bottom: 2px solid var(--gris-borde);
            flex-shrink: 0;
        }
        
        .projects-list-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }
        
        .project-card {
            background-color: var(--pure-white);
            border: 1px solid var(--tech-blue);
            border-left: 4px solid var(--horizon-blue);
            padding: 18px;
            margin-bottom: 18px;
            transition: all 0.25s ease;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 44, 82, 0.08);
        }
        
        .project-card:hover {
            border-left-color: var(--tech-blue);
            box-shadow: 0 6px 20px rgba(0, 44, 82, 0.18);
            transform: translateX(-4px);
        }
        
        .project-card-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 12px;
        }
        
        .project-card-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--vectra-deep-navy);
            margin-bottom: 6px;
            letter-spacing: -0.2px;
        }
        
        .project-card-meta {
            font-size: 13px;
            color: var(--consulting-gray);
            margin-bottom: 3px;
            font-weight: 500;
        }
        
        .project-card-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--gris-borde);
        }
        
        .project-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        .project-stat-label {
            font-size: 11px;
            color: #6b7280;
            margin-bottom: 4px;
        }
        
        .project-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--vectra-deep-navy);
            letter-spacing: -0.5px;
        }
        
        .project-stat-value.warning {
            color: #f59e0b;
        }
        
        .project-stat-value.danger {
            color: var(--rojo-critico);
        }
        
        .project-stat-value.success {
            color: var(--verde-exito);
        }
        
        .project-card-actions {
            display: flex;
            gap: 8px;
        }
        
        .project-action-btn {
            padding: 7px 14px;
            font-size: 13px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.25s ease;
            background: linear-gradient(135deg, var(--tech-blue) 0%, var(--vectra-deep-navy) 100%);
            color: var(--pure-white);
            box-shadow: 0 2px 6px rgba(42, 110, 158, 0.25);
        }
        
        .project-action-btn:hover {
            background: linear-gradient(135deg, var(--horizon-blue) 0%, var(--tech-blue) 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(42, 110, 158, 0.35);
        }
        
        .project-action-btn.danger {
            background-color: var(--rojo-error);
        }
        
        .project-action-btn.danger:hover {
            background-color: var(--rojo-critico);
        }
        
        .empty-projects-message {
            text-align: center;
            padding: 48px 24px;
            color: var(--consulting-gray);
        }
        
        .empty-projects-message i {
            font-size: 56px;
            margin-bottom: 20px;
            color: var(--horizon-blue);
            opacity: 0.7;
        }

        @media print {
            body {
                background-color: #fff !important;
            }
            .no-print {
                display: none !important;
            }
            #print-header {
                display: block !important;
            }
            body > #main-content > *:not(#tab-content-dashboard):not(#print-header) {
                display: none !important;
            }
             #main-content, #tab-content-dashboard {
                display: block !important;
            }
            .card {
                box-shadow: none;
                border: 1px solid #ddd;
                page-break-inside: avoid;
            }
        }

        /* Estados iniciales ocultos (antes estaban inline) */
        #edit-project-data-btn,
        #project-data-edit-actions,
        #save-status-indicator,
        #tab-content-planning,
        #tab-content-costs-list,
        #tab-content-dashboard,
        #tab-content-analysis,
        #tab-content-configuration,
        #undo-btn,
        #costs-list-edit-buttons,
        #config-panel-costos,
        #config-panel-password,
        #add-cost-category-btn,
        #add-cost-item-btn,
        #cost-config-edit-buttons,
        footer.no-print,
        #task-modal,
        #delete-confirm-modal,
        #edit-task-modal,
        #responsible-modal,
        #cost-config-modal,
        #project-cost-modal,
        #view-cost-modal,
        #projects-drawer-overlay {
            display: none;
        }
        
        /* Tab content visible por defecto, controlado por JS */
        .tab-content {
            display: none;
        }
        
        #tab-content-summary {
            display: block;
        }
        
        /* Config panels: solo responsables visible por defecto */
        .config-panel {
            display: none;
        }
        
        #config-panel-responsables {
            display: block;
        }

        /* Utilidades de color trasladadas de inline */
        .status-border-pendiente { border-left-color: var(--color-status-pendiente) !important; }
        .status-border-proceso { border-left-color: var(--color-status-proceso) !important; }
        .status-border-recibido { border-left-color: var(--color-status-recibido) !important; }

        .bg-azul-marino { background-color: var(--azul-marino) !important; }
        .border-azul-marino { border-color: var(--azul-marino) !important; }
        .border-azul-acero { border-color: var(--azul-acero) !important; }
        .border-verde-exito { border-color: var(--verde-exito) !important; }

        /* ============================================ */
        /* RESPONSIVE DESIGN - MOBILE & TABLET         */
        /* ============================================ */

        /* Tablets (768px - 1023px) */
        @media (max-width: 1023px) {
            body {
                padding: 0.75rem !important;
            }
            
            .card {
                padding: 1rem !important;
            }

            /* Navegación responsive */
            nav button {
                font-size: 0.875rem;
                padding: 0.5rem 0.75rem;
            }

            /* Tablas responsive */
            table {
                font-size: 0.875rem;
            }

            /* Botones más pequeños */
            button {
                font-size: 0.875rem;
                padding: 0.5rem 0.75rem;
            }

            /* Modal más ancho en tablets */
            .modal-content {
                max-width: 90% !important;
            }

            /* Gráficos se adaptan */
            canvas {
                max-height: 300px !important;
            }

            /* Header más compacto */
            h1 {
                font-size: 1.5rem !important;
            }

            h2 {
                font-size: 1.25rem !important;
            }

            h3 {
                font-size: 1.125rem !important;
            }
        }

        /* Móviles (hasta 767px) */
        @media (max-width: 767px) {
            body {
                padding: 0.5rem !important;
            }

            /* Logo más pequeño */
            .brand-logo {
                max-height: 60px !important;
            }

            /* Navegación móvil - Stack vertical */
            nav {
                flex-direction: column !important;
            }

            nav button {
                width: 100%;
                text-align: left;
                padding: 0.75rem 1rem;
                border-radius: 0 !important;
                border-bottom: 1px solid var(--gris-borde);
            }

            /* Cards full width */
            .card {
                padding: 0.75rem !important;
                margin-bottom: 0.75rem !important;
            }

            /* Headers más pequeños */
            h1 {
                font-size: 1.25rem !important;
            }

            h2 {
                font-size: 1.125rem !important;
            }

            h3 {
                font-size: 1rem !important;
            }

            /* Inputs y selects más grandes para móvil */
            input, select, textarea {
                font-size: 16px !important; /* Evita zoom en iOS */
                padding: 0.625rem !important;
            }

            /* Botones full width en móvil */
            button:not(.modal-close-btn):not([class*="w-8"]) {
                width: 100%;
                margin-bottom: 0.5rem;
            }

            /* Tablas responsive - Scroll horizontal */
            .table-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            table {
                min-width: 600px;
                font-size: 0.75rem;
            }

            table th, table td {
                padding: 0.5rem !important;
            }

            /* Modal full screen en móvil */
            .modal-content {
                width: 95% !important;
                max-width: none !important;
                max-height: 95vh !important;
                margin: 0.5rem auto !important;
            }

            .modal-overlay {
                padding: 0.5rem 0 !important;
            }

            /* Gráficos más pequeños */
            canvas {
                max-height: 200px !important;
            }

            /* Grid responsive */
            .grid {
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }

            /* Formularios stack vertical */
            form > div {
                flex-direction: column !important;
            }

            form label {
                margin-bottom: 0.25rem;
            }

            /* Espaciado reducido */
            .space-y-4 > * + * {
                margin-top: 0.75rem !important;
            }

            .space-x-4 > * + * {
                margin-left: 0 !important;
            }

            /* Dashboard cards stack */
            #tab-content-dashboard > div {
                flex-direction: column !important;
            }

            /* Footer más compacto */
            footer {
                font-size: 0.75rem;
                padding: 0.5rem !important;
            }

            /* Iconos más visibles */
            i.fas, i.far, i.fab {
                font-size: 1.125rem;
            }

            /* Sub-navegación responsive */
            .sub-nav-btn {
                font-size: 0.75rem;
                padding: 0.5rem 0.75rem;
            }

            /* Gantt chart responsive */
            #gantt-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            svg {
                min-width: 100%;
            }
        }

        /* Móviles pequeños (hasta 480px) */
        @media (max-width: 480px) {
            body {
                padding: 0.25rem !important;
            }

            .card {
                padding: 0.5rem !important;
                border-radius: 0.5rem !important;
            }

            h1 {
                font-size: 1.125rem !important;
            }

            h2 {
                font-size: 1rem !important;
            }

            h3 {
                font-size: 0.875rem !important;
            }

            button {
                font-size: 0.75rem;
                padding: 0.5rem;
            }

            table {
                font-size: 0.625rem;
            }

            input, select, textarea {
                font-size: 14px !important;
            }

            /* Modal casi full screen */
            .modal-content {
                width: 98% !important;
                max-height: 98vh !important;
            }
        }

        /* Landscape móvil */
        @media (max-height: 500px) and (orientation: landscape) {
            .modal-content {
                max-height: 95vh !important;
            }

            nav button {
                padding: 0.375rem 0.75rem;
                font-size: 0.75rem;
            }

            .brand-logo {
                max-height: 40px !important;
            }
        }

        /* Touch targets más grandes para móvil */
        @media (hover: none) and (pointer: coarse) {
            button, a, input[type="checkbox"], input[type="radio"] {
                min-height: 44px;
                min-width: 44px;
            }
        }

        /* Prevenir zoom en inputs en iOS */
        @media screen and (-webkit-min-device-pixel-ratio: 0) {
            select, textarea, input {
                font-size: 16px !important;
            }
        }

        /* Mejoras adicionales para dispositivos táctiles */
        button, a, input, select, textarea {
            -webkit-tap-highlight-color: rgba(42, 110, 158, 0.15);
            tap-highlight-color: rgba(42, 110, 158, 0.15);
        }

        button:active, a:active {
            transform: scale(0.97);
            transition: transform 0.1s ease;
        }

        /* Scroll suave en todos los elementos scrolleables */
        * {
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }

        /* Ocultar scrollbar pero mantener funcionalidad en móviles */
        @media (max-width: 767px) {
            ::-webkit-scrollbar {
                width: 4px;
                height: 4px;
            }

            ::-webkit-scrollbar-thumb {
                background: rgba(42, 110, 158, 0.4);
                border-radius: 2px;
            }
            
            ::-webkit-scrollbar-thumb:hover {
                background: rgba(42, 110, 158, 0.6);
            }

            ::-webkit-scrollbar-track {
                background: transparent;
            }
        }

        /* Asegurar que los selectores funcionan bien en touch */
        select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23002C52' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 12px;
            padding-right: 2.5rem;
        }

        /* Mejora de contraste para accesibilidad */
        @media (prefers-contrast: high) {
            .card {
                border: 2px solid var(--vectra-deep-navy);
            }

            button {
                border: 2px solid currentColor;
            }
            
            .tab-btn-active {
                border-bottom-width: 4px;
            }
        }

        /* Modo oscuro para dispositivos que lo prefieren */
        @media (prefers-color-scheme: dark) {
            /* Por ahora mantenemos el tema claro, pero está preparado para futuro */
        }

        /* Barras de progreso (estado inicial) */
        #planned-progress-bar { 
            width: 0%; 
            background: linear-gradient(90deg, var(--horizon-blue) 0%, var(--tech-blue) 100%);
            transition: width 0.5s ease;
        }
        #actual-progress-bar { 
            width: 0%; 
            background: linear-gradient(90deg, var(--verde-exito) 0%, #15803d 100%);
            transition: width 0.5s ease;
        }
        /* ===== TABLERO KANBAN ESTILO TRELLO ===== */
        .kanban-board {
            display: flex;
            gap: 1.5rem;
            overflow-x: auto;
            padding: 1rem 0.5rem;
            min-height: 500px;
            background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
            border-radius: 8px;
        }

        .kanban-column {
            flex: 1 1 0;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            background: #f8fafc;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 44, 82, 0.08);
        }

        .kanban-column-header {
            padding: 1rem 1.25rem;
            border-radius: 8px 8px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #e2e8f0;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .kanban-column-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--vectra-deep-navy);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .kanban-column-count {
            background: var(--vectra-deep-navy);
            color: white;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.25rem 0.6rem;
            border-radius: 12px;
            min-width: 24px;
            text-align: center;
        }

        .kanban-column-body {
            flex: 1;
            padding: 0.75rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            min-height: 400px;
        }

        /* Estilos de scroll para las columnas */
        .kanban-column-body::-webkit-scrollbar {
            width: 6px;
        }

        .kanban-column-body::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 3px;
        }

        .kanban-column-body::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        .kanban-column-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Tarjetas Kanban (estilo Trello) */
        .kanban-card {
            background: white !important;
            border-radius: 6px !important;
            padding: 0.875rem !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
            cursor: grab !important;
            transition: all 0.2s ease !important;
            border-left: 4px solid transparent !important;
            position: relative !important;
            display: block !important;
            margin-bottom: 0 !important;
        }

        .kanban-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }

        .kanban-card:active {
            cursor: grabbing;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            transform: scale(1.02);
        }

        .kanban-card.dragging {
            opacity: 0.5;
            cursor: grabbing;
        }

        /* Tarjetas críticas (rojo) */
        .kanban-card.critical {
            border-left-color: #D90429;
            background: linear-gradient(to right, rgba(217, 4, 41, 0.05) 0%, white 10%);
        }

        /* Tarjetas no críticas (azul) */
        .kanban-card.non-critical {
            border-left-color: #5B98C5;
            background: linear-gradient(to right, rgba(91, 152, 197, 0.05) 0%, white 10%);
        }

        .kanban-card-header {
            display: flex !important;
            justify-content: space-between !important;
            align-items: flex-start !important;
            margin-bottom: 0.75rem !important;
        }

        .kanban-card-title {
            font-size: 0.9rem !important;
            font-weight: 600 !important;
            color: var(--vectra-deep-navy) !important;
            line-height: 1.3 !important;
            flex: 1 !important;
            padding-right: 0.5rem !important;
        }

        .kanban-card-actions {
            display: flex !important;
            gap: 0.25rem !important;
            flex-shrink: 0 !important;
        }

        .kanban-card-btn {
            background: transparent !important;
            border: none !important;
            color: #64748b !important;
            font-size: 0.85rem !important;
            cursor: pointer !important;
            padding: 0.25rem !important;
            border-radius: 4px !important;
            transition: all 0.2s ease !important;
            width: 28px !important;
            height: 28px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .kanban-card-btn:hover {
            background: #f1f5f9 !important;
            color: var(--tech-blue) !important;
            transform: scale(1.1) !important;
        }

        .kanban-card-body {
            display: flex !important;
            flex-direction: column !important;
            gap: 0.5rem !important;
        }

        .kanban-card-field {
            display: flex !important;
            align-items: center !important;
            gap: 0.5rem !important;
            font-size: 0.82rem !important;
        }

        .kanban-card-label {
            color: #64748b !important;
            font-weight: 500 !important;
            min-width: 80px !important;
            display: inline-block !important;
        }

        .kanban-card-value {
            color: var(--vectra-deep-navy) !important;
            font-weight: 600 !important;
            flex: 1 !important;
        }

        /* Badge de estado */
        .kanban-card-badge {
            display: inline-flex !important;
            align-items: center !important;
            gap: 0.35rem !important;
            padding: 0.25rem 0.65rem !important;
            border-radius: 12px !important;
            font-size: 0.7rem !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            letter-spacing: 0.3px !important;
        }

        .kanban-card-badge.delayed {
            background: #fee2e2 !important;
            color: #b91c1c !important;
        }

        .kanban-card-badge.on-time {
            background: #d1fae5 !important;
            color: #065f46 !important;
        }

        .kanban-card-badge.completed {
            background: #dbeafe !important;
            color: #1e40af !important;
        }

        /* Zona de drop cuando se arrastra */
        .kanban-column-body.drag-over {
            background: linear-gradient(135deg, rgba(42, 110, 158, 0.1) 0%, rgba(91, 152, 197, 0.05) 100%);
            border: 2px dashed var(--tech-blue);
            border-radius: 6px;
        }

        .kanban-card-footer {
            margin-top: 0.75rem !important;
            padding-top: 0.75rem !important;
            border-top: 1px solid #f1f5f9 !important;
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
        }

        .kanban-card-id {
            font-size: 0.7rem !important;
            color: #94a3b8 !important;
            font-weight: 600 !important;
        }

        /* Mensaje cuando no hay tarjetas */
        .kanban-empty-message {
            text-align: center;
            color: #94a3b8;
            font-size: 0.85rem;
            padding: 2rem 1rem;
            font-style: italic;
        }

        /* Responsive Kanban */
        @media (max-width: 1200px) {
            .kanban-board {
                overflow-x: auto;
                padding-bottom: 1.5rem;
            }
            
            .kanban-column {
                flex: 1 1 0;
                min-width: 280px;
            }
        }

        @media (max-width: 767px) {
            .kanban-board {
                flex-direction: column;
                gap: 1rem;
            }
            
            .kanban-column {
                flex: 1 1 auto;
                min-width: 100%;
                max-width: 100%;
            }
            
            .kanban-column-body {
                min-height: 200px;
            }
        }

        /* Animación para cuando se mueve una tarjeta */
        @keyframes cardMove {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }

        .kanban-card.moving {
            animation: cardMove 0.3s ease;
        }