/* ============================================================
   POGS Directorio · main.css
   Base global: variables, reset, tipografía, layout,
   navbar, footer, directorio hero, categorías, cards
   de negocios, buscador, paginación y utilidades.
   ============================================================ */

/* ══════════════════════════════════════
   1. GOOGLE FONTS
══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════
   2. VARIABLES
══════════════════════════════════════ */
:root {
  /* Paleta principal */
  --azul:         #1A5EFF;
  --azul-mid:     #2D7DFF;
  --azul-light:   #5B9FFF;
  --azul-pale:    #EEF4FF;
  --cyan:         #00D4FF;
  --navy:         #0A1628;
  --navy-2:       #0D1E38;

  /* Neutros */
  --texto:        #111827;
  --texto-2:      #374151;
  --muted:        #6B7280;
  --muted-2:      #9CA3AF;
  --borde:        #E5E7EB;
  --borde-2:      #F3F4F6;
  --fondo:        #FFFFFF;
  --fondo-alt:    #F9FAFB;
  --fondo-hover:  #F3F4F6;

  /* Semánticos */
  --verde:        #10B981;
  --verde-pale:   #D1FAE5;
  --rojo:         #EF4444;
  --rojo-pale:    #FEE2E2;
  --gold:         #F59E0B;
  --wa-green:     #25D366;

  /* Plan badges */
  --badge-gray:   #6B7280;
  --badge-blue:   #1A5EFF;
  --badge-gold:   #D97706;
  --badge-purple: #7C3AED;

  /* Layout */
  --container:    1100px;
  --radio:        12px;
  --radio-lg:     20px;
  --sombra:       0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.06);
  --sombra-hover: 0 4px 16px rgba(0,0,0,0.10), 0 12px 32px rgba(0,0,0,0.08);
  --sombra-azul:  0 4px 20px rgba(26,94,255,0.25);

  /* Navbar */
  --nav-h: 64px;
}

/* ══════════════════════════════════════
   3. RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ══════════════════════════════════════
   4. TIPOGRAFÍA
══════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--texto);
}
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
p  { line-height: 1.7; color: var(--texto-2); }
.accent {
  background: linear-gradient(90deg, var(--azul-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   5. LAYOUT
══════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════
   6. NAVBAR
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--borde);
  box-shadow: 0 1px 0 var(--borde);
}
.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  flex-shrink: 0;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--azul);
  box-shadow: 0 0 8px var(--azul);
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .7; }
}
.nav-logo-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .3px;
}

/* Buscador inline en nav (versión compacta) */
.nav-search {
  flex: 1;
  max-width: 360px;
}
.nav-search-inner {
  display: flex;
  align-items: center;
  background: var(--fondo-alt);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.nav-search-inner:focus-within {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(26,94,255,.1);
  background: #fff;
}
.nav-search-icon { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.nav-search input {
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  outline: none;
  width: 100%;
  color: var(--texto);
}
.nav-search input::placeholder { color: var(--muted-2); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.activo { color: var(--texto); background: var(--fondo-alt); }
.nav-link.activo { color: var(--azul); }

/* CTA nav */
.nav-cta {
  background: var(--azul);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  box-shadow: var(--sombra-azul);
}
.nav-cta:hover { background: var(--azul-mid); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.abierto span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.abierto span:nth-child(2) { opacity: 0; }
.nav-toggle.abierto span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ══════════════════════════════════════
   7. HERO DEL DIRECTORIO
══════════════════════════════════════ */
.dir-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #12253d 55%, #0d1f38 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
/* Grid decorativo de fondo */
.dir-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,94,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,94,255,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* Glow blob */
.dir-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,94,255,.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%; pointer-events: none;
}

.dir-hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
}
.dir-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.25);
  color: var(--cyan);
  font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.dir-hero h1 {
  color: #fff; margin-bottom: 14px;
  font-size: clamp(28px, 5vw, 48px);
}
.dir-hero-desc {
  color: rgba(255,255,255,.7);
  font-size: 16px; font-weight: 300;
  margin-bottom: 32px; max-width: 520px;
}

/* Stats */
.dir-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
}
.dir-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.dir-stat strong {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800; color: #fff;
}
.dir-stat span { font-size: 12px; color: rgba(255,255,255,.55); }
.dir-stat-sep { color: rgba(255,255,255,.2); font-size: 20px; padding: 0 6px; }

/* ══════════════════════════════════════
   8. BUSCADOR PRINCIPAL
══════════════════════════════════════ */
.buscador {
  width: 100%;
  max-width: 640px;
}
.buscador-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
}
.buscador-icon {
  padding: 0 14px;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--muted);
}
.buscador-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 0;
  font-size: 15px;
  color: var(--texto);
  background: transparent;
}
.buscador-input::placeholder { color: var(--muted-2); }
.buscador-cat {
  border: none;
  border-left: 1px solid var(--borde);
  outline: none;
  padding: 16px 12px;
  font-size: 13px;
  color: var(--muted);
  background: var(--fondo-alt);
  cursor: pointer;
  max-width: 160px;
}
.buscador-btn {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.buscador-btn:hover { background: var(--azul-mid); }

/* ══════════════════════════════════════
   9. SECCIONES GENERALES
══════════════════════════════════════ */
.dir-section { padding: 72px 0; }
.dir-section-alt { background: var(--fondo-alt); }
.dir-section-header {
  margin-bottom: 40px;
}
.dir-section-header h2 { margin-bottom: 8px; }
.dir-section-header p  { color: var(--muted); font-size: 15px; }
.dir-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ══════════════════════════════════════
   10. GRID DE CATEGORÍAS
══════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  text-align: center;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--azul-pale);
  opacity: 0;
  transition: opacity .25s;
}
.cat-card:hover {
  border-color: var(--azul);
  transform: translateY(-3px);
  box-shadow: var(--sombra-hover);
}
.cat-card:hover::before { opacity: 1; }
.cat-icon {
  font-size: 32px;
  line-height: 1;
  position: relative; z-index: 1;
  transition: transform .25s;
}
.cat-card:hover .cat-icon { transform: scale(1.1); }
.cat-nombre {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  position: relative; z-index: 1;
  transition: color .25s;
  line-height: 1.3;
}
.cat-card:hover .cat-nombre { color: var(--azul); }
.cat-count {
  font-size: 11px;
  color: var(--muted);
  background: var(--fondo-alt);
  padding: 1px 8px;
  border-radius: 20px;
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════
   11. CARDS DE NEGOCIOS
══════════════════════════════════════ */
.negocio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.negocio-card {
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 20px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--texto);
}
/* Línea superior de acento */
.negocio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--cyan));
  opacity: 0;
  transition: opacity .25s;
}
.negocio-card:hover {
  border-color: rgba(26,94,255,.3);
  box-shadow: var(--sombra-hover);
  transform: translateY(-4px);
}
.negocio-card:hover::before { opacity: 1; }

/* Header de la card */
.negocio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.negocio-emoji {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.negocio-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.negocio-cat {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.negocio-zona {
  font-size: 11px;
  color: var(--muted);
}

/* Plan badges */
.plan-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-gray   { background: #F3F4F6; color: var(--badge-gray); }
.badge-blue   { background: var(--azul-pale); color: var(--badge-blue); }
.badge-gold   { background: #FFFBEB; color: var(--badge-gold); }
.badge-purple { background: #F5F3FF; color: var(--badge-purple); }

/* Contenido de la card */
.negocio-nombre {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 6px;
  transition: color .2s;
  line-height: 1.3;
}
.negocio-card:hover .negocio-nombre { color: var(--azul); }
.negocio-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer de la card */
.negocio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--borde-2);
  gap: 8px;
  flex-wrap: wrap;
}
.negocio-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.star.full  { color: var(--gold); }
.star.half  { color: var(--gold); opacity: .6; }
.star.empty { color: #D1D5DB; }
.rating-num { font-weight: 700; color: var(--texto); }
.negocio-reviews { color: var(--muted); font-size: 12px; }
.negocio-features {
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.sin-web-tag {
  font-size: 11px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 3px;
}
.wa-icon { font-size: 13px; }

/* Card destacada */
.negocio-card.destacada {
  border-color: var(--azul);
  background: linear-gradient(to bottom, var(--azul-pale), var(--fondo));
}

/* ══════════════════════════════════════
   12. BANNER CTA NEGOCIOS
══════════════════════════════════════ */
.dir-cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  padding: 64px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner-left h2 {
  color: #fff;
  margin-bottom: 10px;
  font-size: clamp(20px,3vw,28px);
}
.cta-banner-left p {
  color: rgba(255,255,255,.65);
  font-size: 15px;
  font-weight: 300;
  max-width: 480px;
  line-height: 1.65;
}
.cta-banner-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   13. BOTONES GLOBALES
══════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--azul); color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--sombra-azul);
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover {
  background: var(--azul-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,94,255,.35);
}
.btn-primary:active { transform: scale(.98); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none; white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--azul);
  padding: 11px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 2px solid var(--azul);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-outline:hover { background: var(--azul); color: #fff; }

.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--wa-green); color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none; white-space: nowrap;
}
.btn-wa:hover { background: #1fba58; transform: translateY(-1px); }

/* ══════════════════════════════════════
   14. BREADCRUMB
══════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--azul);
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--azul-mid); }
.breadcrumb span { color: var(--texto-2); }

/* ══════════════════════════════════════
   15. PÁGINA DE CATEGORÍA
══════════════════════════════════════ */
.dir-page { padding-top: 0; padding-bottom: 72px; }
.cat-page-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--borde);
  margin-bottom: 36px;
}
.cat-page-icon { font-size: 48px; flex-shrink: 0; }
.cat-page-header h1 { margin-bottom: 6px; }
.cat-page-header p  { color: var(--muted); font-size: 14px; }
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
  font-size: 15px;
}
.empty-state a { color: var(--azul); font-weight: 600; }

/* ══════════════════════════════════════
   16. PAGINACIÓN
══════════════════════════════════════ */
.paginacion {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.paginacion ul {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.paginacion li a,
.paginacion li.activo {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--borde);
  color: var(--texto);
  transition: all .2s;
}
.paginacion li a:hover {
  border-color: var(--azul);
  color: var(--azul);
  background: var(--azul-pale);
}
.paginacion li.activo {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

/* ══════════════════════════════════════
   17. FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 18px; color: #fff;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,.5);
  font-weight: 300; margin-bottom: 18px;
}
.footer-social {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background .2s, transform .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

.footer-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700; color: #fff;
  letter-spacing: .3px; margin-bottom: 14px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: 13px; color: rgba(255,255,255,.55);
  padding: 4px 0;
  transition: color .2s;
  font-weight: 300;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #fff; }

/* ══════════════════════════════════════
   18. UTILIDADES
══════════════════════════════════════ */
.text-center   { text-align: center; }
.text-muted    { color: var(--muted); }
.text-azul     { color: var(--azul); }
.mt-8          { margin-top: 8px; }
.mt-16         { margin-top: 16px; }
.mt-24         { margin-top: 24px; }
.mt-48         { margin-top: 48px; }
.mb-0          { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Skeleton loader para cards ── */
.skeleton {
  background: linear-gradient(90deg, var(--fondo-alt) 25%, #eee 50%, var(--fondo-alt) 75%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
.skeleton-card {
  height: 220px;
  border-radius: var(--radio-lg);
}

/* ══════════════════════════════════════
   19. RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .cat-grid        { grid-template-columns: repeat(4, 1fr); }
  .negocio-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-search      { display: none; }
  .nav-links       {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--borde);
    box-shadow: var(--sombra);
    gap: 4px;
  }
  .nav-links.abierto { display: flex; }
  .nav-toggle    { display: flex; }
  .nav-cta       { display: none; }

  .dir-hero      { padding: 48px 0 56px; }
  .dir-section   { padding: 48px 0; }

  .buscador-cat  { display: none; }

  .cat-grid      { grid-template-columns: repeat(3, 1fr); }
  .negocio-grid  { grid-template-columns: 1fr; }

  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-right { width: 100%; }

  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .dir-stats     { gap: 16px; }
  .dir-stat-sep  { display: none; }
}

@media (max-width: 480px) {
  .cat-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr; }
  .dir-hero h1   { font-size: 26px; }
  .buscador-inner { flex-wrap: wrap; border-radius: 10px; }
  .buscador-btn  { width: 100%; border-radius: 0 0 10px 10px; padding: 12px; }
}

/* ── Reducción de movimiento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
