        /* Contenedor principal */
        .costos-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .page-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary);
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .page-title i {
            color: var(--accent);
            margin-right: 0.75rem;
        }
        
        /* Cards de tablas */
        .table-card {
            background: var(--white);
            border-radius: 1.5rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
        }
        
        .table-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }
        
        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 1.2rem;
            padding-bottom: 0.8rem;
            border-bottom: 2px solid var(--accent);
        }
        
        .table-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0;
        }
        
        .table-title i {
            color: var(--accent);
            margin-right: 0.5rem;
        }
        
        .table-badge {
            background: var(--accent);
            color: var(--white);
            padding: 0.25rem 0.8rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .table-subtitle {
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 0.5rem;
            font-style: italic;
        }
        
        .table-subtitle i {
            color: var(--accent);
            margin-right: 0.3rem;
        }
        
        /* Estilos de tabla */
        .table-costos {
            margin-bottom: 0;
            font-size: 0.85rem;
        }
        
        .table-costos thead th {
            background: var(--primary);
            color: var(--white);
            font-weight: 600;
            text-align: center;
            border: none;
            padding: 0.6rem 0.8rem;
            white-space: nowrap;
        }
        
        .table-costos thead th:first-child {
            border-radius: 0.5rem 0 0 0;
        }
        
        .table-costos thead th:last-child {
            border-radius: 0 0.5rem 0 0;
        }
        
        .table-costos tbody td {
            text-align: center;
            padding: 0.5rem 0.8rem;
            vertical-align: middle;
            border-bottom: 1px solid var(--border-gray);
        }
        
        .table-costos tbody tr:hover {
            background: rgba(0, 84, 145, 0.03);
        }
        
        .table-costos tbody tr:last-child td {
            border-bottom: none;
        }
        
        .table-costos .highlight-row {
            background: rgba(233, 83, 9, 0.08) !important;
            font-weight: 600;
        }
        
        .table-costos .highlight-row td {
            border-bottom: 2px solid var(--accent);
        }
        
        .table-costos .text-monto {
            font-weight: 600;
            color: var(--primary);
        }
        
        .table-costos .text-monto-m2 {
            color: #2d3748;
        }
        
        .inc-mat {
            color: #2b6cb0;
            font-weight: 600;
        }
        
        .inc-mo {
            color: #2f855a;
            font-weight: 600;
        }
        
        .inc-eq {
            color: #805ad5;
            font-weight: 600;
        }
        
        /* Resumen de costos */
        .summary-card {
            background: linear-gradient(135deg, var(--primary) 0%, #003d66 100%);
            color: var(--white);
            border-radius: 1.5rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-md);
        }
        
        .summary-card h3 {
            color: var(--white);
            font-size: 1.1rem;
            margin-bottom: 1rem;
            text-align: center;
        }
        
        .summary-card h3 i {
            color: var(--accent);
            margin-right: 0.5rem;
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }
        
        .summary-item {
            text-align: center;
            padding: 0.8rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 0.8rem;
            transition: all 0.3s ease;
        }
        
        .summary-item:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        
        .summary-item .label {
            font-size: 0.7rem;
            text-transform: uppercase;
            opacity: 0.8;
            letter-spacing: 1px;
        }
        
        .summary-item .value {
            font-size: 1.2rem;
            font-weight: 700;
            color: #ffcc00;
        }
        
        .summary-item .value-m2 {
            font-size: 1rem;
            font-weight: 600;
            opacity: 0.9;
        }
        
        /* Badges de porcentajes */
        .badge-inc {
            padding: 0.2rem 0.6rem;
            border-radius: 2rem;
            font-size: 0.7rem;
            font-weight: 600;
        }
        
        .badge-inc.mat {
            background: #bee3f8;
            color: #2b6cb0;
        }
        
        .badge-inc.mo {
            background: #c6f6d5;
            color: #2f855a;
        }
        
        .badge-inc.eq {
            background: #e9d8fd;
            color: #805ad5;
        }
                
        .pt-spacer {
            padding-top: 76px;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .table-card {
                padding: 1rem;
            }
            
            .table-costos {
                font-size: 0.7rem;
            }
            
            .table-costos thead th,
            .table-costos tbody td {
                padding: 0.3rem 0.4rem;
            }
            
            .page-title {
                font-size: 1.5rem;
            }
            
            .table-title {
                font-size: 1rem;
            }
            
            .summary-grid {
                grid-template-columns: 1fr 1fr;
            }
            
            .table-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .summary-grid {
                grid-template-columns: 1fr;
            }
            
            .table-costos {
                font-size: 0.6rem;
            }
            
            .table-costos thead th,
            .table-costos tbody td {
                padding: 0.2rem 0.2rem;
            }
        }
		    
        .calc-container {
            max-width: 1100px;
            margin: 0 auto;
        }
        
        .calc-card {
            background: var(--white);
            border-radius: 1.5rem;
            padding: 2rem;
            box-shadow: var(--shadow-md);
        }
        
        .calc-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 1.5rem;
            text-align: center;
        }
        
        .result-box {
            background: linear-gradient(135deg, var(--primary), #003d66);
            color: white;
            border-radius: 1rem;
            padding: 1.5rem;
            text-align: center;
            margin-top: 1.5rem;
        }
        
        .result-value {
            font-size: 2.8rem;
            font-weight: 700;
        }
        
        .result-value.small-value {
            font-size: 2rem;
        }
        
        .result-label {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
        .result-detail {
            font-size: 0.75rem;
            opacity: 0.6;
            margin-top: 0.5rem;
        }
        
        .result-divider {
            opacity: 0.3;
            margin: 1rem 0;
        }
        
        /* ========================================= */
        /* TABLA CONGELADA                           */
        /* ========================================= */
        .table-wrapper {
            position: relative;
            max-height: 400px;
            overflow: auto;
            border: 1px solid var(--border-gray);
            border-radius: 0.5rem;
        }
        
        .table-wrapper table {
            border-collapse: separate;
            border-spacing: 0;
            width: 100%;
            font-size: 0.7rem;
        }
        
        .table-wrapper table thead th {
            position: sticky;
            top: 0;
            background: var(--primary);
            color: white;
            z-index: 20;
            padding: 0.4rem 0.5rem;
            text-align: center;
            border: 1px solid #003d66;
            white-space: nowrap;
            min-width: 80px;
        }
        
        .table-wrapper table thead th:first-child {
            position: sticky;
            left: 0;
            z-index: 30;
            background: var(--primary);
            min-width: 120px;
        }
        
        .table-wrapper table tbody td {
            padding: 0.3rem 0.5rem;
            text-align: center;
            border: 1px solid var(--border-gray);
            white-space: nowrap;
            min-width: 80px;
        }
        
        .table-wrapper table tbody td:first-child {
            position: sticky;
            left: 0;
            z-index: 10;
            background: #e9ecef;
            font-weight: 700;
            color: var(--primary);
            min-width: 120px;
        }
        
        .table-wrapper table tbody td:first-child.highlight-row {
            background: var(--accent);
            color: white !important;
        }
        
        .table-wrapper table tbody td.diagonal {
            background: #f0f0f0;
            font-weight: 700;
            color: var(--primary);
        }
        
        .table-wrapper table tbody td.highlight-cell {
            background: var(--accent) !important;
            color: var(--primary) !important;
            font-weight: 700;
            border-color: var(--accent);
        }
        
        .table-wrapper table tbody td.highlight-column {
            background: rgba(233, 83, 9, 0.15) !important;
        }
        
        .table-wrapper table tbody td:first-child::after {
            content: '';
            position: absolute;
            top: 0;
            right: -8px;
            width: 8px;
            height: 100%;
            background: linear-gradient(to right, rgba(0,0,0,0.08), transparent);
            pointer-events: none;
        }
        
        .table-wrapper table tbody td:first-child {
            position: sticky;
            left: 0;
            z-index: 10;
            background: #e9ecef;
            font-weight: 700;
            color: var(--primary);
            min-width: 120px;
        }
        
        .table-wrapper::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        .table-wrapper::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        .table-wrapper::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 4px;
        }
        
        .table-wrapper::-webkit-scrollbar-thumb:hover {
            background: var(--accent);
        }
        
        .cell-tooltip {
            cursor: help;
            position: relative;
        }
        
        .btn-custom {
            background: var(--accent);
            color: white;
            border: none;
            padding: 0.6rem 2rem;
            border-radius: 2rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-custom:hover {
            background: var(--primary);
            transform: translateY(-2px);
        }
        
        .pt-spacer {
            padding-top: 76px;
        }
        
        /* Input de presupuesto */
        .presupuesto-input {
            text-align: center;
        }
        
        .presupuesto-input input {
            font-size: 1.2rem;
            font-weight: 600;
            text-align: center;
        }
        
        .presupuesto-input .input-group-text {
            background: var(--primary);
            color: white;
            font-weight: 600;
            border: none;
        }
        
        @media (max-width: 768px) {
            .calc-card {
                padding: 1.5rem;
            }
            
            .result-value {
                font-size: 2rem;
            }
            
            .result-value.small-value {
                font-size: 1.5rem;
            }
            
            .table-wrapper {
                max-height: 300px;
                font-size: 0.6rem;
            }
            
            .table-wrapper table thead th,
            .table-wrapper table tbody td {
                min-width: 60px;
                padding: 0.2rem 0.3rem;
                font-size: 0.6rem;
            }
            
            .table-wrapper table thead th:first-child,
            .table-wrapper table tbody td:first-child {
                min-width: 90px;
                font-size: 0.6rem;
            }
        }
        
        @media (max-width: 576px) {
            .table-wrapper {
                max-height: 250px;
            }
            
            .table-wrapper table thead th,
            .table-wrapper table tbody td {
                min-width: 50px;
                padding: 0.15rem 0.2rem;
                font-size: 0.55rem;
            }
            
            .table-wrapper table thead th:first-child,
            .table-wrapper table tbody td:first-child {
                min-width: 70px;
            }
        }