/* Estilos para el Módulo de Análisis de Utilidad y Viabilidad Financiera */

:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #38bdf8;
    --accent-green: #22c55e;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

html, body {
    height: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

/* Layout General para la pantalla de Análisis de Utilidad */
.main-content {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px 22px 30px 22px;
}

.btn-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 28px;
    background: #0284c7;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    gap: 6px;
    z-index: 9999;
    transition: all 0.2s ease;
}

.btn-scroll-top:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
}

.app-header {
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Selector Card */
/* Selector Card Rediseñada: Espaciosa, Elegante y Full-Width */
.selector-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Fila 1: Título y Acciones */
.selector-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.selector-title h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px 0;
}

.selector-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

.selector-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-counter {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 5px 12px;
    border-radius: 9999px;
    white-space: nowrap;
}

.btn-reset-filters {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-reset-filters:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.7);
}

.btn-recargar-modern {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-recargar-modern:hover {
    background: rgba(56, 189, 248, 0.22);
    color: #ffffff;
    border-color: var(--accent-blue);
}

/* Fila 2: Barra de Filtros Avanzados (3 Columnas con Ancho Completo) */
.licitaciones-filters-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .licitaciones-filters-bar {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-select {
    width: 100%;
    height: 35px;
    background: rgba(13, 21, 39, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.filter-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.filter-select option {
    background: #0b1329;
    color: #f1f5f9;
}

/* Fila 3: Buscador y Selector en Dos Columnas */
.selector-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .selector-inputs-row {
        grid-template-columns: 1fr;
    }
}

.search-col {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 0.88rem;
    color: var(--accent-blue);
    pointer-events: none;
    opacity: 0.85;
}

.input-buscar-licitacion {
    width: 100%;
    height: 38px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--text-primary);
    padding: 8px 36px 8px 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.input-buscar-licitacion:focus {
    border-color: var(--accent-blue);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.28);
}

.input-buscar-licitacion::placeholder {
    color: #64748b;
    font-size: 0.82rem;
}

.btn-clear-search {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.btn-clear-search:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.15);
}

.select-col {
    width: 100%;
}

.select-wrapper {
    width: 100%;
}

.select-licitacion {
    width: 100%;
    height: 38px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.select-licitacion:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.select-licitacion option {
    background: #0b1329;
    color: #f1f5f9;
}

/* Autocomplete flotante con resultados en vivo */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 380px;
    overflow-y: auto;
    background: #0d1527;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75);
    z-index: 1000;
    backdrop-filter: blur(14px);
}

.autocomplete-item {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
}

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

.autocomplete-item:hover {
    background: rgba(56, 189, 248, 0.14);
}

.ac-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.ac-folio {
    font-family: 'Consolas', monospace;
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.84rem;
}

.ac-dep {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ac-tag-costo {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: auto;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.ac-tag-cat {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: auto;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ac-nombre {
    font-size: 0.77rem;
    color: var(--text-secondary);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.autocomplete-more {
    padding: 8px;
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-secondary);
    background: rgba(30, 41, 59, 0.6);
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.licitacion-info-bar {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.badge-folio {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Consolas', monospace;
}

.badge-inst {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-tipo {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.76rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-caracter {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.76rem;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.ac-tag-tipo {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    font-weight: 700;
    font-size: 0.68rem;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.ac-tag-caracter {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.68rem;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.text-nombre {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-fallo {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Panel de Resumen Financiero Flotante (KPIs) */
.financial-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
    position: static;
}

.financial-summary-grid .kpi-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

.financial-summary-grid .kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.kpi-num {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 3px;
}

.kpi-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.kpi-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.highlight-amber { color: var(--accent-amber); }
.highlight-blue { color: var(--accent-blue); }
.highlight-green { color: var(--accent-green); }

.highlight-glow {
    border-color: rgba(34, 197, 94, 0.3) !important;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.08), rgba(15, 23, 42, 0.85)) !important;
}

/* Evaluador de Flete / Logística */
.kpi-logistics {
    border-color: rgba(56, 189, 248, 0.25) !important;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.05), rgba(15, 23, 42, 0.85)) !important;
}

.flete-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.flete-currency {
    color: var(--text-secondary);
    font-weight: 700;
    margin-right: 4px;
}

.flete-input-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
}

.flete-result {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.viability-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-transform: uppercase;
}

.viability-ok {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.viability-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Toolbar & Botones */
.toolbar-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    background: rgba(30, 41, 59, 0.4);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cb-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.filter-group {
    display: flex;
    gap: 4px;
}

.btn-filter {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter.active, .btn-filter:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.quick-margin-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-margin-quick {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-margin-quick:hover {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

.btn-export {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: var(--accent-green);
    color: #000;
}

.btn-sync-costos {
    width: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.3));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sync-costos:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(59, 130, 246, 0.5));
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Tabla de Partidas */
.table-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 25px;
    min-height: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.table-responsive {
    width: 100%;
    min-height: 460px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
}

/* Scrollbar estilizada para la tabla */
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.7);
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

.utilidad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.utilidad-table th {
    background: #0f172a;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.76rem;
    padding: 8px 6px;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 20;
    line-height: 1.15;
}

.th-momento1 {
    background: #0f2444 !important;
    border-top: 2px solid #3b82f6 !important;
}

.th-momento2 {
    background: #362208 !important;
    border-top: 2px solid #f59e0b !important;
}

.th-sub {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-secondary);
    display: block;
}

.utilidad-table td {
    padding: 6px 6px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

/* Columna de descripción compacta y legible */
.th-descripcion {
    width: 220px;
    max-width: 220px;
}

.td-descripcion {
    width: 220px;
    max-width: 220px;
    vertical-align: middle;
    overflow: hidden;
}

.desc-text {
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.25;
    color: #f1f5f9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    cursor: help;
}

.desc-text:hover {
    color: var(--accent-blue);
}

.desc-lab {
    font-size: 0.67rem;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.utilidad-table tbody tr:last-child td {
    padding-bottom: 24px;
}

.utilidad-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.utilidad-table tbody tr.row-deseleccionada {
    opacity: 0.45;
    background: rgba(0, 0, 0, 0.2);
}

/* Inputs de edición en tabla */
.input-table {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 6px;
    border-radius: 6px;
    width: 100%;
    text-align: right;
    outline: none;
    transition: all 0.2s;
}

.input-table:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.input-momento2 {
    border-color: rgba(245, 158, 11, 0.4) !important;
    background: rgba(245, 158, 11, 0.05) !important;
}

.input-momento2:focus {
    border-color: var(--accent-amber) !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3) !important;
}

.input-precio-venta {
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(56, 189, 248, 0.05) !important;
}

/* Badges y Tags */
.badge-costo-hist {
    font-weight: 700;
    font-family: 'Consolas', monospace;
    font-size: 0.82rem;
}

.tag-fuente {
    display: inline-block;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 2px;
}

.tag-historico {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-participaciones {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.tag-sin-costo {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.tag-apoyo-activo {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
    font-size: 0.62rem;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
    margin-top: 2px;
    display: inline-block;
}

/* Badges de Estatus de Licitación Histórica en Precio de Venta */
.badge-precio-estatus {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    margin-top: 3px;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    max-width: 120px;
    width: 100%;
    box-sizing: border-box;
}

.badge-ganada {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.12);
}

.badge-perdida {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.32);
}

.badge-perdida-detail {
    font-size: 0.63rem;
    color: #fca5a5;
    font-weight: 400;
    display: block;
    margin-top: 1px;
}

.badge-catalogo {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-pendiente {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Margen % */
.badge-margen {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.margen-alto {
    background: rgba(34, 197, 94, 0.18);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.margen-medio {
    background: rgba(245, 158, 11, 0.18);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.margen-bajo {
    background: rgba(239, 68, 68, 0.18);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.empty-message {
    text-align: center;
    padding: 40px !important;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--accent-blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 0.88rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividad para pantallas medianas / laptops pequeñas */
@media (max-width: 1250px) {
    .financial-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
}

@media (max-height: 650px) {
    .main-content {
        overflow-y: auto !important;
    }
    .table-section {
        min-height: 300px;
    }
}

/* Banner de Aviso de Discrepancias Económicos vs Anexos */
.discrepancias-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.22), rgba(15, 23, 42, 0.75));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    padding: 7px 14px;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.discrepancias-alert-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.discrepancias-alert-text {
    font-size: 0.75rem;
    color: #e2e8f0;
    line-height: 1.35;
}

.discrepancias-alert-text strong {
    color: #38bdf8;
}

.discrepancias-alert-text u {
    text-decoration-color: #38bdf8;
}

.discrepancias-alert-text em {
    color: #fcd34d;
    font-style: normal;
    font-weight: 600;
}

/* Botón Nueva Partida */
.btn-nueva-partida {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.35));
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.45);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.btn-nueva-partida:hover {
    background: #10b981;
    color: #000;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Input Cantidad Editable */
.input-cantidad {
    font-family: 'Consolas', monospace;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    text-align: right;
    width: 100%;
    min-width: 55px;
    padding: 3px 5px !important;
    font-size: 0.82rem !important;
}

.input-cantidad:focus {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
}

/* Badge y Botón de Partida Manual */
.badge-manual {
    display: inline-block;
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 2px;
    vertical-align: middle;
}

.btn-delete-manual {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s;
    line-height: 1;
    margin-left: 3px;
    vertical-align: middle;
}

.btn-delete-manual:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.15);
}

/* Modal Partida Manual */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.modal-container {
    background: #0d1527;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    width: 90%;
    max-width: 580px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon {
    font-size: 1.3rem;
}

.modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.modal-subtitle {
    margin: 2px 0 0 0;
    font-size: 0.73rem;
    color: var(--text-secondary);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    max-height: 70vh;
}

.form-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.col-span-2 {
    grid-column: span 2;
}

.form-group-modal label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.req {
    color: var(--accent-red);
    font-weight: 700;
}

.input-modal {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: #fff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.input-modal:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.input-modal-textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.82rem;
    color: #fff;
    outline: none;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.3;
}

.input-modal-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(15, 23, 42, 0.4);
}

.btn-secondary-modal {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-modal:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-primary-modal {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #10b981;
    color: #fff;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.btn-primary-modal:hover {
    background: #10b981;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

/* Buscador Rápido de Catálogo en Modal */
.input-search-catalogo {
    background: rgba(14, 116, 144, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    font-weight: 600;
}

.input-search-catalogo:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
    background: rgba(14, 116, 144, 0.25) !important;
}

.modal-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #0b1329;
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9);
    z-index: 10005;
}

.modal-ac-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s;
}

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

.modal-ac-item:hover, .modal-ac-item.active {
    background: rgba(56, 189, 248, 0.16);
}

.modal-ac-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.modal-ac-clave {
    font-family: 'Consolas', monospace;
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.8rem;
}

.modal-ac-cucop {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.modal-ac-costo {
    margin-left: auto;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.modal-ac-desc {
    font-size: 0.74rem;
    color: #e2e8f0;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-ac-lab {
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-sync-catalogos {
    width: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.3));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
    padding: 9px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sync-catalogos:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(126, 34, 206, 0.5));
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   CONMUTADOR DE VISTAS (COTIZADOR VS PANORAMA DE MERCADO)
   ========================================================================== */
.header-main-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.view-switch-nav {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.view-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-tab-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.view-tab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.25));
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.tab-counter-pill {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 1px 7px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.view-panel {
    animation: fadeInView 0.25s ease-out;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DASHBOARD DE PANORAMA DE MERCADO (PARTIDA 25301)
   ========================================================================== */
.mercado-header-card {
    background: linear-gradient(180deg, #161f30 0%, #111827 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mercado-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mercado-badge-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mercado-main-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.mercado-main-sub {
    font-size: 0.86rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
    max-width: 900px;
}

.mercado-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mercado-filters-bar {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr 1.5fr;
    gap: 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
}

@media (max-width: 1100px) {
    .mercado-filters-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .mercado-filters-bar {
        grid-template-columns: 1fr;
    }
}

/* KPI CARDS */
.mercado-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

@media (max-width: 1200px) {
    .mercado-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .mercado-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.m-kpi-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.m-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.m-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.m-kpi-card.kpi-abierto::before { background: linear-gradient(90deg, #10b981, #34d399); }
.m-kpi-card.kpi-tratados::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.m-kpi-card.kpi-nacional::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.m-kpi-card.kpi-modalidad::before { background: linear-gradient(90deg, #a855f7, #c084fc); }

.m-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.m-kpi-icon-wrap {
    font-size: 1.5rem;
}

.m-kpi-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-green { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-blue { background: rgba(99, 102, 241, 0.18); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.35); }
.badge-amber { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

.m-kpi-value-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.m-kpi-num {
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
}

.m-kpi-pct {
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
}

.kpi-abierto .m-kpi-num { color: #34d399; }
.kpi-tratados .m-kpi-num { color: #818cf8; }
.kpi-nacional .m-kpi-num { color: #fbbf24; }
.kpi-modalidad .m-kpi-num { color: #c084fc; }

.m-kpi-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.m-kpi-desc {
    font-size: 0.77rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

/* STRATEGY CARDS */
.mercado-strategies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

@media (max-width: 1150px) {
    .mercado-strategies-grid {
        grid-template-columns: 1fr;
    }
}

.m-strategy-card {
    background: #111827;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.m-strategy-card.border-green { border-left: 4px solid #10b981; }
.m-strategy-card.border-blue { border-left: 4px solid #6366f1; }
.m-strategy-card.border-amber { border-left: 4px solid #f59e0b; }

.m-strategy-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.m-strategy-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.m-strategy-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.m-strategy-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.tag-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-blue { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.tag-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.m-strategy-body p {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0 0 12px 0;
}

.m-strategy-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
}

.m-strategy-list li {
    margin-bottom: 6px;
}

.m-strategy-list strong {
    color: #e2e8f0;
}

/* CHARTS GRID */
.mercado-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

@media (max-width: 1000px) {
    .mercado-charts-grid {
        grid-template-columns: 1fr;
    }
}

.m-chart-card {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.m-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.m-chart-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-chart-icon {
    font-size: 1.25rem;
}

.m-chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 2px 0;
}

.m-chart-sub {
    font-size: 0.74rem;
    color: #94a3b8;
    margin: 0;
}

.m-chart-canvas-container {
    position: relative;
    width: 100%;
    height: 270px;
}

/* TABLE SECTION */
.mercado-table-card {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.m-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.m-table-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-table-icon {
    font-size: 1.3rem;
}

.m-table-title {
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 3px 0;
}

.m-table-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

.m-table-count {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.m-table-scroll {
    max-height: 480px;
    overflow-y: auto;
}

.btn-evaluar-cotizador {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(34, 197, 94, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-evaluar-cotizador:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(34, 197, 94, 0.4));
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    transform: scale(1.02);
}

.tag-estrategico-abierto {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.tag-estrategico-tlc {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.tag-estrategico-nac {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ========================================================================= */
/* MEJORAS DE ESTRUCTURA Y ORDEN: PANORAMA DE MERCADO (PARTIDA 25301)        */
/* ========================================================================= */

.mercado-section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 28px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.m-sec-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-portal {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-market {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-directorio {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.m-sec-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.m-sec-desc {
    font-size: 0.84rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* BOTONES DE ACCIÓN EN TARJETAS DE ESTRATEGIA */
.m-strategy-footer {
    margin-top: auto;
    padding-top: 14px;
}

.btn-estrategia-action {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.btn-act-india {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.btn-act-india:hover {
    background: #10b981;
    color: #064e3b;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-act-tlc {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.btn-act-tlc:hover {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.btn-act-nac {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.btn-act-nac:hover {
    background: #f59e0b;
    color: #451a03;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

/* BARRA DE ACCESO RÁPIDO TOP COMPRADORES */
.top-buyers-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 16px;
}

.top-buyers-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    margin-right: 4px;
}

.buyer-chip {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buyer-chip:hover {
    border-color: #38bdf8;
    color: #ffffff;
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-1px);
}

.buyer-chip.active {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

/* KPI CARDS INTERACTIVAS */
.m-kpi-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.m-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.22);
}

.m-kpi-card.active-kpi {
    box-shadow: 0 0 0 2px #38bdf8, 0 8px 25px rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
}

.m-strategy-card.active-strategy {
    box-shadow: 0 0 0 2px #38bdf8, 0 8px 25px rgba(56, 189, 248, 0.25);
}

/* AVISO DE AUDITORÍA Y ALCANCE */
.auditoria-disclaimer-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-left: 4px solid #38bdf8;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 14px;
    margin-bottom: 6px;
}

.auditoria-disclaimer-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.auditoria-disclaimer-body {
    flex: 1;
}

.auditoria-disclaimer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auditoria-disclaimer-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
}

.auditoria-disclaimer-highlight {
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    color: #fde68a;
    font-size: 0.8rem;
}

/* NOTAS DE AUDITORÍA EN TARJETAS DE ESTRATEGIA */
.strategy-audit-note {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.strategy-audit-note.note-green {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.strategy-audit-note.note-blue {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

.strategy-audit-note.note-amber {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* BOTÓN COMPRAS MX EN TABLA DE AUDITORÍA */
.btn-comprasmx-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-comprasmx-table:hover {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.45);
    transform: translateY(-1px);
}

/* ========================================================================= */
/* BARRA DE ESTUDIOS ESPECIALIZADOS PREGENERADOS                            */
/* ========================================================================= */
.estudios-especializados-container {
    margin-top: 18px;
    margin-bottom: 16px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.6));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.estudios-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.estudios-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.estudios-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.estudios-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.btn-estudio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    user-select: none;
}

.btn-estudio:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.btn-estudio.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(2, 132, 199, 0.45));
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.btn-estudio-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.btn-estudio-text {
    flex: 1;
    line-height: 1.25;
}

/* BANNER INFORMATIVO DINÁMICO DEL ESTUDIO ACTIVO */
.estudio-banner-info {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: fadeInSlide 0.3s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.estudio-banner-icon {
    font-size: 1.8rem;
    line-height: 1;
    padding: 4px;
}

.estudio-banner-content {
    flex: 1;
}

.estudio-banner-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 4px;
}

.estudio-banner-desc {
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.4;
    margin-bottom: 8px;
}

.estudio-banner-kpis {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.estudio-kpi-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.estudio-kpi-chip strong {
    color: #38bdf8;
}

.btn-cerrar-estudio {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cerrar-estudio:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* INPUTS DE FECHAS PERSONALIZADAS */
.filter-date-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #f8fafc;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.filter-date-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* BADGE DE ENTIDAD FEDERATIVA EN TABLA */
.badge-entidad-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.badge-umae-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(236, 72, 153, 0.18);
    border: 1px solid rgba(236, 72, 153, 0.45);
    color: #f472b6;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

.badge-consolidada-si {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(168, 85, 247, 0.22);
    border: 1px solid #a855f7;
    color: #d8b4fe;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.2px;
}

.badge-consolidada-no {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(100, 116, 139, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #94a3b8;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 5px;
}

.cell-uc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 280px;
}

.cell-uc-main {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.cell-uc-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.25;
}

/* ========================================================================= */
/* TABLERO DINÁMICO DE ESTUDIOS ESPECIALIZADOS Y HEATMAP */
/* ========================================================================= */
.dashboard-estudio-container {
    margin-bottom: 24px;
}

.estudio-panel-view {
    animation: fadeInStudy 0.28s ease-in-out;
}

@keyframes fadeInStudy {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.estudio-view-header {
    margin-bottom: 14px;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.45);
    border-left: 3px solid #38bdf8;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left-width: 3px;
}

.estudio-view-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 3px 0;
}

.estudio-view-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}

.estudio-grid-2cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 960px) {
    .estudio-grid-2cols {
        grid-template-columns: 1fr;
    }
}

.estudio-insight-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.estudio-insight-banner .insight-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.estudio-insight-banner strong {
    color: #38bdf8;
}

/* MAPA DE CALOR GEOGRÁFICO DE MÉXICO (HEATMAP) */
.heatmap-section-wrapper {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.heatmap-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: #94a3b8;
}

.legend-chip {
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
}

.heatmap-grid-estados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 8px;
}

.heatmap-tile {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 54px;
    border: 1px solid transparent;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.heatmap-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
    filter: brightness(1.2);
}

.heatmap-tile.active-state {
    outline: 2px solid #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
    filter: brightness(1.25);
}

.heatmap-tile-name {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 4px;
}

.heatmap-tile-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
}

.heatmap-tile-count {
    font-size: 0.84rem;
    font-family: Consolas, monospace;
}

/* NIVELES TÉRMICOS DE CALOR */
.heat-0 {
    background: rgba(30, 41, 59, 0.45);
    color: #64748b;
    border-color: rgba(255, 255, 255, 0.04);
}
.heat-0 .heatmap-tile-name { color: #94a3b8; }
.heat-0 .heatmap-tile-count { color: #64748b; }

.heat-1 {
    background: rgba(14, 116, 144, 0.22);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}
.heat-1 .heatmap-tile-name { color: #bae6fd; }
.heat-1 .heatmap-tile-count { color: #38bdf8; }

.heat-2 {
    background: rgba(16, 185, 129, 0.24);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}
.heat-2 .heatmap-tile-name { color: #a7f3d0; }
.heat-2 .heatmap-tile-count { color: #34d399; }

.heat-3 {
    background: rgba(245, 158, 11, 0.26);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}
.heat-3 .heatmap-tile-name { color: #fde68a; }
.heat-3 .heatmap-tile-count { color: #fbbf24; }

.heat-4 {
    background: rgba(239, 68, 68, 0.32);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.15);
}
.heat-4 .heatmap-tile-name { color: #fecaca; }
.heat-4 .heatmap-tile-count { color: #ef4444; }

/* KPIS URGENTES EN ESTUDIO 4 */
.estudio-kpi-urgentes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .estudio-kpi-urgentes-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-urgente-card {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kpi-urgente-card.red {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.kpi-urgente-card.red .kpi-urgente-num { color: #f87171; }
.kpi-urgente-card.red .kpi-urgente-lbl { color: #fca5a5; }

.kpi-urgente-card.amber {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.kpi-urgente-card.amber .kpi-urgente-num { color: #fbbf24; }
.kpi-urgente-card.amber .kpi-urgente-lbl { color: #fde68a; }

.kpi-urgente-card.blue {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
}
.kpi-urgente-card.blue .kpi-urgente-num { color: #38bdf8; }
.kpi-urgente-card.blue .kpi-urgente-lbl { color: #bae6fd; }

.kpi-urgente-num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.kpi-urgente-lbl {
    font-size: 0.76rem;
    font-weight: 600;
}

/* ========================================================================= */
/* BARRA DE BOTONES DIRECTOS POR CONSOLIDACIÓN                               */
/* ========================================================================= */
.top-consolidacion-bar {
    margin-top: -8px;
    margin-bottom: 18px;
    border-color: rgba(168, 85, 247, 0.3) !important;
    background: linear-gradient(135deg, rgba(28, 20, 52, 0.75), rgba(15, 23, 42, 0.8)) !important;
}

.chip-cons {
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.chip-cons:hover {
    transform: translateY(-1px);
}

.chip-cons[data-cons="SI"]:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
}

.chip-cons[data-cons="NO"]:hover {
    border-color: #94a3b8;
    background: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
}

.chip-cons[data-cons="SI"].active {
    background: #a855f7 !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.5) !important;
}

.chip-cons[data-cons="NO"].active {
    background: #334155 !important;
    border-color: #64748b !important;
    color: #f1f5f9 !important;
    box-shadow: 0 0 14px rgba(100, 116, 139, 0.4) !important;
}

.chip-cons[data-cons=""].active {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.4) !important;
}


