/* === BOTONES DE DECISIÓN GO/NO-GO === */
.decision-buttons {
    display: flex;
    margin-top: 10px;
    gap: 10px;
  }
  
  .go-btn, .nogo-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
  }
  
  .go-btn {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 2px solid #86efac;
  }
  
  .nogo-btn {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
  }
  
  .go-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  }
  
  .nogo-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  }
  
  .go-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  }
  
  .nogo-btn.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  }
  
  .go-btn:disabled, .nogo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  
  /* === MODAL DE RESULTADO === */
  #resultadoProcesamientoModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(59, 130, 246, 0.6);
    backdrop-filter: blur(4px);
  }
  
  #resultadoProcesamientoModal .modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    border: 1px solid #e2e8f0;
    animation: slideUp 0.3s ease-out;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(50px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  #resultadoProcesamientoModal .close {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  #resultadoProcesamientoModal .close:hover {
    color: #ef4444;
    transform: scale(1.1);
  }
  
  #resultadoProcesamientoModal h2 {
    margin-top: 0;
    color: #3b82f6;
    font-weight: 600;
    font-size: 1.5rem;
  }
  
  #resultadoProcesamientoModal ul {
    margin: 15px 0;
    padding-left: 20px;
  }
  
  #resultadoProcesamientoModal .resumen-datos {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
  }
  
  #resultadoProcesamientoModal .modal-footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }
  
  #resultadoProcesamientoModal button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
  }
  
  #resultadoProcesamientoModal #verOfertaBtn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  }
  
  #resultadoProcesamientoModal #verOfertaBtn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  }
  
  #resultadoProcesamientoModal #cerrarModalBtn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border: 1px solid #cbd5e1;
  }
  
  #resultadoProcesamientoModal #cerrarModalBtn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
  }
  
  /* === TABLA DE SEGUIMIENTO === */
  .tabla-seguimiento {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .tabla-seguimiento th,
  .tabla-seguimiento td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .tabla-seguimiento th {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
  }
  
  .tabla-seguimiento tr:nth-child(even) {
    background-color: #f8fafc;
  }
  
  .tabla-seguimiento tr:hover {
    background-color: #e0f2fe;
    transition: background-color 0.2s ease;
  }
  
  .tabla-seguimiento a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .tabla-seguimiento a:hover {
    color: #2563eb;
    text-decoration: underline;
  }
  
  .tabla-seguimiento button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .tabla-seguimiento button:hover {
    background-color: #f1f5f9;
    transform: scale(1.1);
  }
  
  /* === ESTILOS DE ESTADOS === */
  .estado-borrador {
    color: #64748b;
    font-weight: 500;
  }
  
  .estado-activa {
    color: #10b981;
    font-weight: 600;
  }
  
  .estado-rechazada {
    color: #ef4444;
    font-weight: 600;
  }
  
  .estado-pendiente {
    color: #f59e0b;
    font-weight: 600;
  }
  
  /* === FILTROS Y CONTROLES DE SEGUIMIENTO === */
  .filtros-seguimiento {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .filtros-seguimiento select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s ease;
  }
  
  .filtros-seguimiento select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .filtros-seguimiento button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .filtros-seguimiento button:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-1px);
  }
  
  /* === ESTILOS DE ETIQUETAS Y TARJETAS === */
  .decision-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .decision-tag.go {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
  }
  
  .decision-tag.nogo {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
  }
  
  .decision-tag.pendiente {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    border: 1px solid #cbd5e1;
  }
  
  .tarjeta-go {
    border-left: 4px solid #10b981 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  }
  
  .tarjeta-nogo {
    border-left: 4px solid #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  }
  
  .tarjeta-pendiente {
    border-left: 4px solid #64748b !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  }
  
  .procesado-row {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  }
  
  .procesado-tag {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  
  /* === BOTONES DE PROCESAMIENTO === */
  .procesar-btn, .ver-procesamiento-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
  }
  
  .procesar-btn {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
    border: 2px solid #7dd3fc;
  }
  
  .procesar-btn:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  }
  
  .ver-procesamiento-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    border: 2px solid #cbd5e1;
  }
  
  .ver-procesamiento-btn:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
  }
  
  /* === INDICADORES DE PROCESAMIENTO === */
  .indicador-procesado {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
  }
  
  /* === CONTADORES DE SEGUIMIENTO === */
  .contadores-seguimiento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .contador {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
  }
  
  .contador:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
  }
  
  .contador .numero {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .contador .etiqueta {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .contador.borrador {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
  }
  
  .contador.borrador .numero {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .contador.activa {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
  }
  
  .contador.activa .numero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .contador.rechazada {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
  }
  
  .contador.rechazada .numero {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* === BOTONES DE EXPORTAR === */
  .botones-exportar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  
  .btn-exportar {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    color: #475569;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
  }
  
  .btn-exportar:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(148, 163, 184, 0.3);
    border-color: #94a3b8;
  }
  
  /* === ESTILOS PARA FILAS SEGÚN ESTADO === */
  .fila-borrador {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  }
  
  .fila-activa {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  }
  
  .fila-rechazada {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  }
  
  /* === AVISO DE OFERTA AUTOMATICA === */
  .aviso-oferta-automatica {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    color: #92400e;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    border: 1px solid #fbbf24;
  }
  
  .aviso-oferta-automatica p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
  }
  
  /* Modal para procesamiento Go/No-Go */
  .go-overlay-title {
    font-size: 2rem;
    color: #10b981;
    margin: 16px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  }
  
  .go-overlay-message {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: white;
    font-weight: 500;
  }
  
  /* Animación para el emoji del trofeo */
  #goNoGoOverlay .spinner {
    font-size: 5rem;
    animation: bounce 1.5s infinite alternate;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
  }
  
  @keyframes bounce {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-20px) scale(1.1); }
  }
  
  /* Personalización para el mensaje divertido */
  #goNoGoOverlay .funny-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    max-width: 400px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  }
  
  /* Estilos para la sección de licencias detectadas */
  .licencias-detectadas {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    border: 1px solid #86efac;
  }
  
  .licencias-detectadas h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #166534;
    font-size: 16px;
    font-weight: 600;
  }
  
  .licencias-detectadas ul {
    margin: 0;
    padding-left: 20px;
  }
  
  .licencias-detectadas li {
    margin-bottom: 6px;
    color: #166534;
    font-weight: 500;
  }
  
  /* Efectos adicionales para animaciones suaves */
  .decision-buttons button {
    position: relative;
    overflow: hidden;
  }
  
  .decision-buttons button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
    transform: translate(-50%, -50%);
  }
  
  .decision-buttons button:active::before {
    width: 300px;
    height: 300px;
  }
  
  /* Mejoras para responsive */
  @media (max-width: 768px) {
    .decision-buttons {
      flex-direction: column;
      gap: 8px;
    }
    
    .filtros-seguimiento {
      flex-direction: column;
      gap: 12px;
      align-items: stretch;
    }
    
    .botones-exportar {
      justify-content: center;
    }
    
    .contadores-seguimiento {
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 12px;
    }
    
    .tabla-seguimiento {
      font-size: 12px;
    }
    
    .tabla-seguimiento th,
    .tabla-seguimiento td {
      padding: 8px 12px;
    }
  }