/* ============================================================
   Gol2026 - Estilos principales
   Polla Mundialista 2026
   ============================================================ */

:root {
  --verde: #1a7a1a;
  --verde-oscuro: #0f5c0f;
  --verde-claro: #2ea82e;
  --dorado: #f5c518;
  --dorado-oscuro: #d4a017;
  --rojo: #c0392b;
  --azul: #2980b9;
  --gris-oscuro: #1e1e2e;
  --gris-medio: #2d2d3f;
  --gris-claro: #3d3d55;
  --blanco: #f0f0f0;
  --texto: #e8e8e8;
  --sombra: 0 4px 20px rgba(0,0,0,0.4);
  --radio: 12px;
  --radio-sm: 8px;
  --transicion: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gris-oscuro);
  color: var(--texto);
  min-height: 100vh;
  line-height: 1.6;
}

/* ─── TIPOGRAFÍA ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

a {
  color: var(--dorado);
  text-decoration: none;
  transition: color var(--transicion);
}
a:hover { color: var(--dorado-oscuro); }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, var(--verde-oscuro), var(--gris-oscuro));
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra);
  border-bottom: 2px solid var(--dorado);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dorado) !important;
  text-shadow: 0 0 10px rgba(245,197,24,0.4);
}

.navbar-brand span.emoji { font-size: 1.6rem; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--texto);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radio-sm);
  font-size: 0.9rem;
  transition: all var(--transicion);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(245,197,24,0.15);
  color: var(--dorado);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.badge-puntos {
  background: var(--dorado);
  color: var(--gris-oscuro);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
}

.btn-logout {
  background: rgba(192,57,43,0.2);
  color: #e74c3c !important;
  border: 1px solid rgba(192,57,43,0.4);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radio-sm);
  font-size: 0.8rem;
  transition: all var(--transicion);
}
.btn-logout:hover {
  background: rgba(192,57,43,0.4);
}

/* Hamburger menu */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--texto);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* ─── LAYOUT PRINCIPAL ───────────────────────────────────── */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--gris-medio);
  border-radius: var(--radio);
  padding: 1.25rem;
  box-shadow: var(--sombra);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dorado);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─── BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radio-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transicion);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  color: white;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--verde-claro), var(--verde));
  transform: translateY(-1px);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--dorado-oscuro), var(--dorado));
  color: var(--gris-oscuro);
}
.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: var(--gris-oscuro);
}

.btn-danger {
  background: rgba(192,57,43,0.2);
  color: #e74c3c;
  border: 1px solid rgba(192,57,43,0.4);
}
.btn-danger:hover {
  background: rgba(192,57,43,0.4);
  color: #e74c3c;
}

.btn-secondary {
  background: var(--gris-claro);
  color: var(--texto);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: var(--texto);
}

.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── FORMULARIOS ────────────────────────────────────────── */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  background: var(--gris-oscuro);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--texto);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radio-sm);
  font-size: 0.9rem;
  transition: border-color var(--transicion);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* ─── ALERTAS ────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radio-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-error {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.4);
  color: #e74c3c;
}
.alert-success {
  background: rgba(26,122,26,0.15);
  border: 1px solid rgba(26,122,26,0.4);
  color: #2ecc71;
}
.alert-info {
  background: rgba(41,128,185,0.15);
  border: 1px solid rgba(41,128,185,0.4);
  color: #3498db;
}
.alert-warning {
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.3);
  color: var(--dorado);
}

/* ─── TABLAS ─────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radio);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--gris-oscuro);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--dorado);
  border-bottom: 2px solid rgba(245,197,24,0.3);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transicion);
}

tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

tbody td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
}

/* ─── PARTIDO CARD ───────────────────────────────────────── */
.match-card {
  background: var(--gris-medio);
  border-radius: var(--radio);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transicion);
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--verde), var(--dorado));
}

.match-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0;
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  text-align: center;
}

.team-flag {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}

.team-flag-placeholder {
  width: 48px;
  height: 32px;
  background: var(--gris-claro);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.team-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blanco);
}

.match-vs {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dorado);
  padding: 0 0.5rem;
}

.match-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dorado);
  padding: 0 0.5rem;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.match-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-fase {
  background: rgba(41,128,185,0.2);
  color: #3498db;
  border: 1px solid rgba(41,128,185,0.3);
}

.badge-gol-oro {
  background: rgba(245,197,24,0.2);
  color: var(--dorado);
  border: 1px solid rgba(245,197,24,0.4);
}

.badge-partido-fecha {
  background: rgba(155,89,182,0.2);
  color: #9b59b6;
  border: 1px solid rgba(155,89,182,0.3);
}

.badge-apostado {
  background: rgba(26,122,26,0.2);
  color: #2ecc71;
  border: 1px solid rgba(26,122,26,0.3);
}

.badge-cerrado {
  background: rgba(192,57,43,0.15);
  color: #e74c3c;
  border: 1px solid rgba(192,57,43,0.3);
}

/* ─── RANKING ────────────────────────────────────────────── */
.ranking-table .pos-1 td:first-child { color: #FFD700; font-size: 1.1rem; }
.ranking-table .pos-2 td:first-child { color: #C0C0C0; }
.ranking-table .pos-3 td:first-child { color: #CD7F32; }

.ranking-puntos {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dorado);
}

.racha-badge {
  background: rgba(245,197,24,0.15);
  color: var(--dorado);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─── STATS GRID ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--gris-medio);
  border-radius: var(--radio);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dorado);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── PREDICCIÓN FORM ────────────────────────────────────── */
.score-input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.score-input {
  width: 70px !important;
  text-align: center;
  font-size: 2rem !important;
  font-weight: 800 !important;
  padding: 0.5rem !important;
  border-radius: var(--radio) !important;
  border: 2px solid rgba(245,197,24,0.3) !important;
}

.score-input:focus {
  border-color: var(--dorado) !important;
}

.score-separator {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dorado);
}

.cards-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radio-sm);
  cursor: pointer;
  transition: background var(--transicion);
  border: 1px solid rgba(255,255,255,0.08);
}

.radio-option:hover {
  background: rgba(255,255,255,0.06);
}

.radio-option input[type="radio"] {
  width: auto;
  accent-color: var(--dorado);
}

.radio-option.selected {
  background: rgba(245,197,24,0.1);
  border-color: rgba(245,197,24,0.3);
}

.players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.player-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radio-sm);
  cursor: pointer;
  transition: background var(--transicion);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}

.player-option:hover {
  background: rgba(255,255,255,0.06);
}

.player-option input[type="checkbox"] {
  width: auto;
  accent-color: var(--dorado);
}

/* ─── TENDENCIAS ─────────────────────────────────────────── */
.tendencia-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tendencia-label {
  min-width: 80px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.tendencia-progress {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.tendencia-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--verde), var(--dorado));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.tendencia-pct {
  min-width: 40px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dorado);
}

/* ─── EQUIPO CARD ────────────────────────────────────────── */
.team-card {
  background: var(--gris-medio);
  border-radius: var(--radio);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all var(--transicion);
  text-align: center;
}

.team-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.team-card-flag {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  margin: 0 auto 0.5rem;
  display: block;
}

.team-card-flag-placeholder {
  width: 80px;
  height: 54px;
  background: var(--gris-claro);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 0.5rem;
}

.team-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blanco);
}

.team-card-grupo {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}

.team-favorito {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--dorado);
  font-size: 0.9rem;
}

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transicion);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--gris-medio);
  border-radius: var(--radio);
  padding: 1.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform var(--transicion);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: color var(--transicion);
}
.modal-close:hover { color: var(--texto); }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--gris-medio);
  border-radius: var(--radio-sm);
  padding: 0.75rem 1.1rem;
  min-width: 250px;
  max-width: 350px;
  border-left: 4px solid var(--verde);
  box-shadow: var(--sombra);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

.toast.error { border-left-color: var(--rojo); }
.toast.warning { border-left-color: var(--dorado); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── PÁGINA LOGIN ───────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, var(--verde-oscuro) 0%, var(--gris-oscuro) 70%);
}

.login-card {
  background: var(--gris-medio);
  border-radius: var(--radio);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo h1 {
  font-size: 2.5rem;
  color: var(--dorado);
  text-shadow: 0 0 20px rgba(245,197,24,0.4);
}

.login-logo p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ─── ADMIN SIDEBAR ──────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - 60px);
}

.admin-sidebar {
  background: var(--gris-medio);
  border-radius: var(--radio);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 75px;
  border: 1px solid rgba(255,255,255,0.06);
}

.admin-sidebar h3 {
  color: var(--dorado);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radio-sm);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transicion);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(245,197,24,0.1);
  color: var(--dorado);
}

/* ─── GRID LAYOUTS ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }

/* ─── UTILIDADES ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.text-gold { color: var(--dorado); }
.text-green { color: #2ecc71; }
.text-red { color: #e74c3c; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--gris-oscuro); padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 99; }
  .navbar-toggle { display: block; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cards-selector { grid-template-columns: 1fr; }
  .players-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
  .main-container { padding: 1rem 0.75rem; }
  .score-input { width: 60px !important; font-size: 1.5rem !important; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gris-oscuro); }
::-webkit-scrollbar-thumb { background: var(--gris-claro); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* ─── LOADER ─────────────────────────────────────────────── */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--dorado);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── PÁGINA VACÍA ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.3);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { font-size: 0.9rem; }
