/* ═══════════════════════════════════════════════════════════════════════════
   Arsenal Norteño — Repertorio Web
   styles.css — Design system completo
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  /* Colores */
  --bg-primary: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-2: #f0ede8;
  --text-primary: #1a1d23;
  --text-secondary: #5a5f6b;
  --text-muted: #9299a6;
  --accent: #1a1d23;
  --accent-hover: #2d3748;
  --border: #e2e0dc;
  --border-light: #ece9e3;
  --shadow-sm: 0 1px 3px rgba(26, 29, 35, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 29, 35, 0.10);
  --shadow-lg: 0 8px 32px rgba(26, 29, 35, 0.13);

  /* WhatsApp */
  --wa-green: #25d366;
  --wa-dark: #128c7e;

  /* Tipografía */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Espaciado */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transiciones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* Layout */
  --max-width: 1100px;
  --nav-height: 64px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accesibilidad: ocultar visualmente pero disponible para lectores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* ── Utilidad: reducir movimiento ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  /* background: linear-gradient(to bottom, rgba(26, 29, 35, 0.45) 0%, transparent 100%); */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.navbar-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--dur-fast);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #ffffff;
}

.navbar-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.navbar-social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* Hamburguesa — solo mobile */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.9);
  transition: background var(--dur-fast);
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Nav Dialog (mobile menu) ─────────────────────────────────────────────── */
#nav-dialog {
  border: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 480px;
  max-height: 60dvh;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

#nav-dialog::backdrop {
  background: rgba(26, 29, 35, 0.5);
  backdrop-filter: blur(4px);
}

.nav-dialog-inner {
  padding: var(--space-5);
}

.nav-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.nav-dialog-header img {
  height: auto;
}

.nav-dialog-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}

.nav-dialog-close:hover {
  background: var(--border);
}

.nav-dialog-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.nav-dialog-links a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast);
}

.nav-dialog-links a:hover {
  background: var(--bg-surface-2);
}

.nav-dialog-social {
  display: flex;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.nav-dialog-social a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface-2);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.nav-dialog-social a:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero picture,
.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Badge de evento activo ───────────────────────────────────────────────── */
.evento-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(37, 211, 102, 0.22);
  color: #2ecc71;
  border: 1px solid rgba(37, 211, 102, 0.45);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: pulse-live 2s infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTENIDO PRINCIPAL
   ══════════════════════════════════════════════════════════════════════════ */

.main-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-8);
}

/* ══════════════════════════════════════════════════════════════════════════
   BARRA DE BÚSQUEDA
   ══════════════════════════════════════════════════════════════════════════ */

#search-sentinel {
  position: absolute;
  top: -60px;
  /* Zona de amortiguación para evitar el parpadeo por re-cálculo de altura */
  height: 1px;
  width: 1px;
  pointer-events: none;
}

#search-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  /* El margin negativo siempre activo evita el reflow al añadir .is-sticky */
  margin: 0 calc(-1 * var(--space-5));
  padding: var(--space-4) var(--space-5);
  background: var(--bg-primary);
  transition: padding var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

#search-bar.is-sticky {
  padding: var(--space-2) var(--space-4);
  box-shadow: 0 2px 16px rgba(26, 29, 35, 0.10);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

#search-input {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-7) 0 var(--space-7);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none;
  appearance: none;
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 29, 35, 0.08);
}

/* Limpiar búsqueda */
#search-clear {
  position: absolute;
  right: var(--space-4);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast), background var(--dur-fast);
}

#search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}

#search-clear:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* Quitar el clear nativo de Safari/Chrome */
#search-input::-webkit-search-cancel-button {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   CANCIÓN ALEATORIA
   ══════════════════════════════════════════════════════════════════════════ */

.random-section {
  margin: var(--space-4) 0;
}

#random-btn {
  width: 100%;
  height: 52px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

#random-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-surface);
}

#random-card {
  display: none;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);

  /* Expand animation */
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

#random-card.expanded {
  grid-template-rows: 1fr;
}

.random-card-inner {
  overflow: hidden;
  padding: var(--space-5) var(--space-6);
}

.random-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

#random-content {
  transition: opacity var(--dur-base), transform var(--dur-base);
}

#random-content.shuffle-out {
  opacity: 0;
  transform: translateY(4px);
}

#random-content.shuffle-in {
  opacity: 1;
  transform: translateY(0);
}

#random-titulo {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.random-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

#random-artista {
  font-size: 14px;
  color: var(--text-secondary);
}

.random-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   TABS DE MODO
   ══════════════════════════════════════════════════════════════════════════ */

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.mode-tab {
  height: 52px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.mode-tab:hover:not(.active) {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--accent);
}

.mode-tab.active {
  background: var(--accent);
  color: #f4f2ef;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(26, 29, 35, 0.18);
}

/* ══════════════════════════════════════════════════════════════════════════
   BOTONES GENERALES
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Pedir Canción ─────────────────────────────────────────────────────────── */
.btn-pedir {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}

.btn-pedir:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 29, 35, 0.20);
}

.btn-pedir:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-pedir-card {
  padding: 10px var(--space-3);
  font-size: 12px;
  flex-shrink: 0;
}

.btn-empty-wa {
  margin-top: var(--space-4);
  font-size: 14px;
  padding: 12px var(--space-5);
}

/* ── Otra/Cerrar (en random) ──────────────────────────────────────────────── */
.btn-otra {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-surface-2);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.btn-otra:hover {
  background: var(--border);
  border-color: var(--text-secondary);
}

.btn-close-random {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: var(--bg-surface-2);
  font-size: 18px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.btn-close-random:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* ── Volver ───────────────────────────────────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.btn-back:hover {
  color: var(--text-primary);
  background: var(--bg-surface-2);
}

/* ── Cargar más ───────────────────────────────────────────────────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: var(--space-5) 0;
}

.btn-load-more {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-6);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.btn-load-more:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-surface-2);
}

/* ── Reintentar ───────────────────────────────────────────────────────────── */
.btn-retry {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 12px var(--space-6);
  border-radius: var(--radius-full);
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.btn-retry:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════
   GENRE BADGE
   ══════════════════════════════════════════════════════════════════════════ */

.genre-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--accent);
  color: var(--bg-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   TABLA DE REPERTORIO (Desktop / Tablet)
   ══════════════════════════════════════════════════════════════════════════ */

.table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.repertorio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.repertorio-table thead {
  background: var(--bg-surface-2);
  border-bottom: 1.5px solid var(--border);
}

.repertorio-table th {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

.sort-header {
  cursor: pointer;
  user-select: none;
  transition: color var(--dur-fast);
}

.sort-header:hover,
.sort-header.sort-active {
  color: var(--text-primary);
}

.sort-icon {
  font-size: 12px;
  opacity: 0.5;
  margin-left: 4px;
}

.sort-header.sort-active .sort-icon {
  opacity: 1;
}

.sort-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.col-genero {
  width: 120px;
}

.col-pedir {
  width: 160px;
  text-align: right;
}

.song-row {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.song-row:last-child {
  border-bottom: none;
}

.song-row:hover {
  background: var(--bg-surface-2);
}

.song-row td {
  padding: var(--space-3) var(--space-4);
  vertical-align: middle;
}

.col-titulo {
  font-weight: 500;
  color: var(--text-primary);
}

.col-artista {
  color: var(--text-secondary);
}

.col-pedir {
  text-align: right;
}

/* Animación entrada de filas */
@keyframes rowFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row-fadein {
  animation: rowFadeIn var(--dur-base) var(--ease-out) both;
}

/* ── Skeleton loader ──────────────────────────────────────────────────────── */
#repertorio-skeleton {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-row {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.skeleton-row:last-child {
  border-bottom: none;
}

.skeleton-cell {
  height: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-surface-2) 25%, var(--border-light) 50%, var(--bg-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-cell.sm {
  width: 60%;
}

.skeleton-cell.md {
  width: 80%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE CARDS
   ══════════════════════════════════════════════════════════════════════════ */

.cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.song-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--dur-fast), border-color var(--dur-fast);
}

.song-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--text-muted);
}

.song-card-info {
  flex: 1;
  min-width: 0;
}

.song-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  /* Truncar en 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-secondary);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-fadein {
  animation: cardFadeIn var(--dur-base) var(--ease-out) both;
}

/* ══════════════════════════════════════════════════════════════════════════
   PILLS (Artistas / Géneros)
   ══════════════════════════════════════════════════════════════════════════ */

.pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) 0;
}

.pill-item {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}

.pill-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pill-item:active {
  transform: translateY(0);
}

/* Pills de géneros usan colores inline (style="") */
.pill-genero {
  border-color: transparent;
}

.pill-genero:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

@keyframes pillFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pill-fadein {
  animation: pillFadeIn var(--dur-base) var(--ease-out) both;
}

/* ══════════════════════════════════════════════════════════════════════════
   DRILL-DOWN HEADER
   ══════════════════════════════════════════════════════════════════════════ */

.drill-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.drill-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGINACIÓN
   ══════════════════════════════════════════════════════════════════════════ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-5) 0;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.page-btn:hover:not(:disabled):not(.active) {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text-primary);
}

.page-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-prev,
.page-next {
  font-size: 18px;
  font-weight: 400;
}

.page-ellipsis {
  display: flex;
  align-items: center;
  padding: 0 var(--space-2);
  color: var(--text-muted);
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ESTADO VACÍO
   ══════════════════════════════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  min-height: 280px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  display: block;
}

.empty-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--text-primary);
  color: rgba(244, 242, 239, 0.7);
  padding: var(--space-8) var(--space-6) var(--space-6);
  margin-top: var(--space-8);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: start;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-3);
  filter: brightness(0) invert(1) opacity(0.8);
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.5;
  max-width: 240px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
}

.footer-social-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 242, 239, 0.4);
}

.footer-social-links {
  display: flex;
  gap: var(--space-3);
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(244, 242, 239, 0.08);
  color: rgba(244, 242, 239, 0.7);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.footer-social-links a:hover {
  background: rgba(244, 242, 239, 0.16);
  color: #f4f2ef;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-6) auto 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244, 242, 239, 0.08);
  font-size: 12px;
  color: rgba(244, 242, 239, 0.35);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Mobile: < 768px ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --space-5: 16px;
  }

  .navbar {
    padding: 0 var(--space-4);
  }

  .navbar-links,
  .navbar-social {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .main-content {
    padding: 0 var(--space-4) var(--space-7);
  }

  /* Tabla → se oculta en mobile, se usa cards */
  .table-wrapper {
    display: none;
  }

  .repertorio-table {
    display: none;
  }

  .pagination {
    display: none;
  }

  .skeleton-row {
    grid-template-columns: 3fr 1fr;
  }

  .skeleton-row .skeleton-cell:nth-child(n+3) {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    align-items: center;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .mode-tab {
    font-size: 12px;
    height: 44px;
    letter-spacing: 0.04em;
  }

  #search-bar.is-sticky {
    margin: 0 calc(-1 * var(--space-4));
    padding: var(--space-2) var(--space-4);
  }
}

/* ── Tablet: 768px – 1023px ──────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .cards-list {
    display: none;
  }

  .load-more-wrap {
    display: none;
  }

  .navbar-social {
    display: none;
  }

  .col-genero {
    width: 100px;
  }

  .col-pedir {
    width: 140px;
  }
}

/* ── Desktop: >= 1024px ──────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .cards-list {
    display: none;
  }

  .load-more-wrap {
    display: none;
  }

  .nav-hamburger {
    display: none;
  }
}

/* ── Ajuste fino 768+ para skeleton ─────────────────────────────────────── */
@media (min-width: 768px) {
  #repertorio-skeleton .skeleton-row {
    grid-template-columns: 3fr 2fr 1fr 1fr;
  }
}