
:root {
  --color-primary: #004C66;
  --color-secondary: #ED6D25;
  --color-hover: #D45F1F;
}    

body {
  background: linear-gradient(135deg, #f9f9f9 0%, var(--color-secondary)30 100%);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

h1 {
  color: var(--color-primary);
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  line-height: 1.3;
}

.boton-flotante {
  position: fixed;
  bottom: 80%; /* más arriba que el típico "bottom: 30px" */
  right: 30px;
  background-color: var(--naranjo);
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.boton-flotante:hover {
  background-color: #004c66;
}

.boton-flotante img {
  width: 28px;
  height: 28px;
}

/* Estilos optimizados para la tabla */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border: 1px solid var(--color-secondary);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  will-change: transform;
}

.table {
  min-width: 600px;
  width: 100%;
  table-layout: fixed;
}

.table th {
  background-color: var(--color-primary);
  color: white;
  position: sticky;
  top: 0;
}

.table th, .table td {
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.patente-link {
  color: #3386ff;
  transition: color 0.2s;
}

.patente-link:hover {
  color: var(--color-hover);
  text-decoration: underline;
}

.search-box {
  margin-bottom: 15px;
  border: 2px solid var(--color-secondary);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.no-results {
  display: none;
  color: var(--color-secondary);
  font-weight: bold;
}

.modal-header {
  background-color: var(--color-primary) !important;
}

/* Spinner optimizado */
.spinner-border {
  color: var(--color-secondary);
  animation: spinner-rotate 0.8s linear infinite;
  width: 3rem;
  height: 3rem;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .priority-5, .priority-4 {
    display: none;
  }
  
  .table th, .table td {
    padding: 6px 4px;
    font-size: 0.9rem;
  }
}
