/* ==========================================================================
   MI MASCOTA CONSENTIDA - ESTILOS PRINCIPALES
   Directorio Veterinario & Tarjeta de Descuentos - San Luis Potosí, México
   ========================================================================== */

:root {
  /* Paleta de colores oficial */
  --primary: #0288d1;
  --primary-hover: #0277bd;
  --primary-light: #00a8e8;
  --primary-gradient: linear-gradient(135deg, #00a8e8 0%, #0288d1 100%);
  --accent-red: #d90429;
  --accent-red-hover: #c1121f;
  --accent-gold: #ffb703;
  --accent-yellow: #fb8500;
  
  --whatsapp-color: #25d366;
  --whatsapp-hover: #128c7e;

  /* Fondos y superficies */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-card-glass: rgba(255, 255, 255, 0.85);

  /* Tipografía y textos */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-main);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Bordes y Sombras */
  --border-color: #e2e8f0;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  --border-radius-pill: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 20px -4px rgba(2, 136, 209, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.15);
  --shadow-card-3d: 0 25px 50px -12px rgba(2, 136, 209, 0.35);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   UTILIDADES & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.highlight-underline {
  position: relative;
  display: inline-block;
  color: var(--accent-red);
}

.highlight-underline::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(217, 4, 41, 0.2);
  border-radius: 4px;
  z-index: -1;
}

.small-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.flex-1 { flex: 1; }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(2, 136, 209, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 136, 209, 0.45);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary {
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-md {
  padding: 10px 22px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-xs {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   BARRA SUPERIOR DE ANUNCIOS
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, #d90429 0%, #b70923 100%);
  color: var(--text-white);
  padding: 7px 15px;
  font-size: 0.86rem;
  text-align: center;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-badge {
  background: var(--accent-gold);
  color: #1a1a24;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.5px;
}

.announcement-text {
  margin: 0;
}

.announcement-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-link:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.main-header {
  background-color: #1a202c;
  color: var(--text-white);
  border-bottom: 3px solid var(--accent-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-badge {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.brand-logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--primary-light);
}

.brand-city {
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.nav-icon {
  width: 17px;
  height: 17px;
}

.nav-item:hover, .nav-item.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.highlight-link {
  color: var(--accent-gold);
}

.btn-header-cta {
  margin-left: 8px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0b1329 0%, #1e293b 60%, #0d2137 100%);
  color: var(--text-white);
  padding: 50px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 620px;
  line-height: 1.6;
}

/* Buscador Rápido Hero */
.hero-search-box {
  background: #ffffff;
  padding: 8px;
  border-radius: var(--border-radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  max-width: 660px;
  margin-bottom: 30px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1.4;
  padding: 6px 14px;
}

.search-field.search-zone {
  flex: 1;
  border-left: 1px solid var(--border-color);
}

.field-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.search-field input, .search-field select {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.search-field select {
  cursor: pointer;
}

.hero-search-btn {
  padding: 12px 24px;
  font-size: 0.98rem;
  flex-shrink: 0;
}

/* Estadísticas de Confianza */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   TARJETA FLOTANTE 3D HERO PREVIEW (CON IMÁGENES REALES Y BARRA ROJA)
   ========================================================================== */
.hero-card-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-flip-card-container {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1000 / 630;
  perspective: 1200px;
  cursor: pointer;
  margin: 0 auto;
  position: relative;
}

/* Barra roja destacada con la leyenda solicitada */
.hero-card-red-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #d32f2f 0%, #ef4444 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 14px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.hero-card-flip-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  margin-top: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.hero-flip-card-container:hover ~ .hero-card-flip-hint,
.hero-flip-card-container.flipped ~ .hero-card-flip-hint {
  background: #0288d1;
  color: #ffffff;
  border-color: #0288d1;
}

.hero-card-caption {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 14px;
  text-align: center;
  max-width: 380px;
}

/* Botón de Geolocalización en el buscador */
.hero-loc-btn {
  background: #ffffff;
  color: #0288d1;
  border: 2px solid #0288d1;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}

.hero-loc-btn:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #0369a1;
}

.hero-loc-btn.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Distancia calculada en tarjetas del directorio */
.biz-distance-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.biz-card-distance-detail {
  font-size: 0.82rem;
  color: #0284c7;
  font-weight: 700;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Banner de estado de geolocalización */
.geo-status-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.1);
}

.geo-status-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.geo-icon {
  font-size: 1.6rem;
}

.geo-status-text strong {
  display: block;
  font-family: var(--font-display);
  color: #166534;
  font-size: 0.98rem;
}

.geo-status-text p {
  font-size: 0.84rem;
  color: #15803d;
  margin: 2px 0 0;
}

/* Modal de Geolocalización */
.modal-dialog-geo {
  max-width: 520px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  background: #ffffff;
}

.geomodal-header {
  padding: 28px 24px 16px;
  text-align: center;
  background: #ffffff;
}

.geomodal-badge {
  display: inline-flex;
  align-items: center;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 12px;
}

.geomodal-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 8px;
}

.geomodal-header p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 440px;
  margin: 0 auto;
}

.geomodal-card-preview {
  padding: 8px 24px 18px;
  background: #ffffff;
}

.geomodal-card-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1000 / 630;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.geomodal-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.geomodal-card-red-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #d32f2f 0%, #ef4444 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 6px 10px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}

.geomodal-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 20px 24px 24px;
  text-align: center;
}

.geomodal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-geo-allow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0288d1 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2, 136, 209, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-geo-allow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 136, 209, 0.45);
}

.btn-geo-skip {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-geo-skip:hover {
  background: #e2e8f0;
  color: #334155;
}

.geomodal-footnote {
  color: #94a3b8;
  font-size: 0.74rem;
  margin-top: 14px;
  line-height: 1.35;
}

/* Marcador con pulso de la ubicación del usuario en Leaflet */
.user-marker-container {
  background: transparent;
  border: none;
}

.user-pulse-marker {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-core {
  width: 28px;
  height: 28px;
  background: #0288d1;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(2, 136, 209, 0.45);
  animation: pulseRadar 2s infinite ease-out;
  z-index: 1;
}

@keyframes pulseRadar {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ==========================================================================
   CATEGORÍAS
   ========================================================================== */
.categories-section {
  padding: 30px 0 15px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.categories-header {
  margin-bottom: 18px;
}

.categories-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.categories-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.category-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.category-pills-row::-webkit-scrollbar {
  height: 5px;
}

.category-pills-row::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 9px 18px;
  border-radius: var(--border-radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.cat-pill:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.cat-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

.pill-count {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ==========================================================================
   DIRECTORIO & MAPA INTERACTIVO (SPLIT LAYOUT)
   ========================================================================== */
.split-directory-section {
  padding: 25px 0 50px;
}

.split-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.split-heading {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  margin-left: 10px;
}

.split-view-toggles {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Botón para abrir el apartado de Promociones en otra ventana */
.btn-promociones-window {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #be123c;
  border: 1.5px solid #fda4af;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-promociones-window:hover {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  border-color: #be123c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.3);
}

.btn-promociones-window svg {
  transition: transform 0.2s ease;
}

.btn-promociones-window:hover svg {
  transform: translate(2px, -2px);
}

.btn-promo-fire {
  font-size: 1.05rem;
}

.toggle-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toggle-buttons-group {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-main);
}

.view-btn.active {
  background: var(--primary);
  color: #ffffff;
}

/* Layout Split */
.split-content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Modos de vista */
.split-content-layout.mode-map-only {
  grid-template-columns: 1fr;
}
.split-content-layout.mode-map-only .listings-column {
  display: none;
}

.split-content-layout.mode-list-only {
  grid-template-columns: 1fr;
}
.split-content-layout.mode-list-only .map-column {
  display: none;
}

/* Columna de Listado */
.listings-column {
  max-height: 820px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.listings-column::-webkit-scrollbar {
  width: 6px;
}

.listings-column::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.listings-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Tarjeta de Negocio en la Lista */
.biz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.biz-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.biz-card.highlighted {
  border: 2px solid var(--accent-red);
  background: #fffdfd;
}

.biz-card-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.biz-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.biz-card:hover .biz-card-img {
  transform: scale(1.05);
}

.biz-featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.biz-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.biz-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.biz-category-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.biz-rating {
  font-size: 0.8rem;
  font-weight: 700;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 3px;
}

.biz-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
  line-height: 1.3;
}

.biz-card-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 6px;
}

.biz-card-phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.biz-card-discount-badge {
  background: #fef2f2;
  border: 1px dashed var(--accent-red);
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.biz-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* Columna del Mapa */
.map-column {
  position: relative;
}

.map-sticky-wrapper {
  position: sticky;
  top: 85px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 18px;
}

.map-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
}

.status-dot.pulsing {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.map-actions {
  display: flex;
  gap: 6px;
}

.map-actions .btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.map-actions .btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Altura obligatoria para evitar colapso CF2 */
.interactive-map {
  width: 100%;
  height: 600px;
  min-height: 520px;
  background-color: #e5e7eb;
}

/* Leyenda del Mapa */
.map-legend {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.legend-hint {
  color: var(--text-muted);
}

/* Tooltip Flotante al señalar con el Mouse (Hover) */
.map-hover-tooltip {
  position: absolute;
  top: 60px;
  left: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  width: 290px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.2s ease;
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.tooltip-logo {
  width: 32px;
  height: 34px;
}

.tooltip-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.tooltip-zone {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.tooltip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
}

.tooltip-discount {
  background: #fef2f2;
  color: var(--accent-red);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.tooltip-footer {
  font-size: 0.74rem;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   SECCIÓN DE LA TARJETA 'MI MASCOTA CONSENTIDA' (SHOWCASE & BENEFICIOS)
   ========================================================================== */
.card-showcase-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.card-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.section-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0288d1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 14px;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.showcase-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.65;
}

.benefits-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 35px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
}

.benefit-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.benefit-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.bg-blue { background: #e0f2fe; }
.bg-red { background: #ffe4e6; }
.bg-yellow { background: #fef3c7; }
.bg-green { background: #dcfce7; }

.benefit-content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.benefit-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.showcase-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Tarjeta 3D Giratoria (Flip Card) */
.flip-card-container {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1000 / 630;
  perspective: 1200px;
  cursor: pointer;
  margin: 0 auto;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

/* Efecto al pasar el mouse (hover en desktop) o al tocar (.flipped en mobile) */
.flip-card-container:hover .flip-card-inner,
.flip-card-container.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.26), 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.flip-card-front {
  transform: rotateY(0deg);
}

.flip-card-back {
  transform: rotateY(180deg);
}

.card-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* Brillo realista de credencial plástica PVC */
.card-gloss-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 60%);
  pointer-events: none;
  border-radius: 18px;
}

/* Badge con leyenda destacada solicitada por el usuario */
.card-display-header-badge {
  text-align: center;
  background: linear-gradient(135deg, #0288d1 0%, #0369a1 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(2, 136, 209, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-badge-lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.card-badge-sub {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e0f2fe;
}

.showcase-legend-highlight {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0288d1;
  margin-top: -6px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.flip-hint-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-top: 18px;
  transition: all 0.25s ease;
}

.flip-card-container:hover ~ .flip-hint-badge,
.flip-card-container.flipped ~ .flip-hint-badge {
  background: #0288d1;
  color: #ffffff;
  border-color: #0288d1;
}

.card-meta-notes {
  margin-top: 14px;
}

/* ==========================================================================
   SECCIÓN DE AFILIACIÓN DE VETERINARIAS
   ========================================================================== */
.affiliate-section {
  padding: 70px 0;
  background-color: var(--bg-body);
}

.affiliate-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--border-radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.affiliate-badge {
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
}

.affiliate-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.affiliate-p {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.affiliate-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

/* Tarjeta de Planes de Afiliación y Beneficio NFC cortesía de NFCMX */
.affiliate-pricing-card {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(2, 136, 209, 0.2), rgba(15, 23, 42, 0.7));
  border: 2px solid var(--accent-gold);
  border-radius: var(--border-radius-md);
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pricing-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-prefix {
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 600;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pricing-frequency {
  font-size: 1rem;
  font-weight: 600;
  color: #90caf9;
}

.pricing-card-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  padding: 12px 14px;
}

.perk-nfc-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.perk-nfc-text {
  margin-bottom: 6px;
}

.nfc-parenthesis-note {
  font-size: 0.81rem;
  color: #e2e8f0;
  line-height: 1.4;
  font-weight: 500;
  display: inline-block;
  opacity: 0.95;
}

.perk-courtesy-badge {
  display: inline-block;
  font-size: 0.82rem;
  color: #a7f3d0;
  font-weight: 600;
}

.perk-courtesy-badge strong {
  color: #34d399;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nfcmx-badge-link {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.nfcmx-badge-link:hover {
  color: #a7f3d0;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.affiliate-form-wrapper {
  background: #ffffff;
  color: var(--text-main);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #0f172a;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #334155;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-surface);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.15);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

/* ==========================================================================
   MODALES (FICHA DE NEGOCIO, TARJETA, API KEY)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--border-radius-xl);
  max-width: 680px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-dialog-md {
  max-width: 520px;
  padding: 32px;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-red);
}

/* Header Ficha de Negocio */
.biz-modal-header {
  position: relative;
  background: #1e293b;
  color: #ffffff;
  padding: 40px 24px 20px;
}

.biz-cover-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.biz-header-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.biz-avatar-box {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-md);
  background: #ffffff;
  padding: 6px;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.biz-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.biz-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 4px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.biz-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.biz-zone {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Cuerpo Ficha de Negocio */
.biz-modal-body {
  padding: 24px;
}

.biz-action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.biz-discount-banner {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px dashed var(--accent-red);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.banner-icon {
  font-size: 1.6rem;
}

.banner-content h4 {
  font-size: 0.88rem;
  color: var(--accent-red);
  font-weight: 800;
}

.banner-content p {
  font-size: 0.84rem;
  color: #475569;
  font-weight: 600;
}

.biz-details-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}

.services-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
}

.biz-description {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hours-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.hour-row {
  display: flex;
  justify-content: space-between;
}

.hour-emergency-note {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
  color: var(--accent-red);
  font-weight: 700;
}

.biz-address-full {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal Solicitud de Tarjeta & API Key */
.card-request-header {
  text-align: center;
  margin-bottom: 20px;
}

.card-request-header h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 10px 0 6px;
}

.card-request-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.demo-key-link {
  display: block;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  margin-top: 8px;
  text-align: center;
  border: 1px solid #bae6fd;
}

.demo-key-link:hover {
  background: #bae6fd;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 25px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #94a3b8;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.footer-contact-item a {
  color: var(--primary-light);
  font-weight: 600;
}

.footer-contact-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.contact-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.footer-menu a {
  color: #94a3b8;
}

.footer-menu a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-compliance-text a {
  color: #94a3b8;
  text-decoration: underline;
}

.footer-credit-link {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.footer-credit-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(147, 197, 253, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-card-preview-col {
    order: -1;
  }
  .split-content-layout {
    grid-template-columns: 1fr;
  }
  .map-sticky-wrapper {
    position: static;
  }
  .interactive-map {
    height: 480px;
  }
  .card-showcase-grid {
    grid-template-columns: 1fr;
  }
  .affiliate-box {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 10px 16px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a202c;
    flex-direction: column;
    padding: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  .main-nav.mobile-active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-search-box {
    flex-direction: column;
    border-radius: var(--border-radius-md);
    padding: 12px;
  }
  .search-field.search-zone {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
  }
  .hero-search-btn {
    width: 100%;
  }
  .benefits-checklist {
    grid-template-columns: 1fr;
  }
  .biz-card {
    flex-direction: column;
  }
  .biz-card-img-wrap {
    width: 100%;
    height: 180px;
  }
  .biz-details-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BANNER DE ESTADO Y DIAGNÓSTICO DE GOOGLE MAPS
   ========================================================================== */
.gmaps-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease;
}

.gmaps-alert-banner .alert-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmaps-alert-banner.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.gmaps-alert-banner.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.gmaps-alert-banner.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.api-status-badge {
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-status-badge.status-active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.api-status-badge.status-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   PÁGINA DEDICADA: AFILIACIÓN DE VETERINARIAS Y NEGOCIOS PET (afiliar.html)
   ========================================================================== */
.page-afiliacion {
  background-color: var(--bg-body);
}

.affil-hero {
  background: radial-gradient(circle at 80% 20%, rgba(2, 136, 209, 0.25) 0%, rgba(15, 23, 42, 0.95) 70%), #0f172a;
  color: #ffffff;
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-red);
}

.affil-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.affil-hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  max-width: 950px;
  margin: 0 auto 20px;
}

.affil-hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 860px;
  margin: 0 auto 35px;
}

.affil-hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.affil-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.affil-metric-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-md);
  padding: 16px 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(6px);
  transition: transform var(--transition-fast);
}

.affil-metric-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
}

.metric-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.metric-text strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.metric-text span {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.3;
  display: block;
}

/* 16 Beneficios Grid */
.benefits-16-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.benefit-item {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 22px 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  gap: 14px;
  transition: all var(--transition-normal);
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(2, 136, 209, 0.12);
  border-color: var(--primary-light);
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(2, 136, 209, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-content h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}

.benefit-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Tablas de Propuestas Comerciales */
.proposals-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.proposal-box {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.proposal-box-header {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 3px solid var(--primary);
}

.proposal-box-header .box-icon {
  font-size: 2.2rem;
}

.proposal-box-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.proposal-box-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.proposal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.proposal-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.proposal-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.proposal-table tr:hover td {
  background-color: #f8fafc;
}

.badge-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: var(--border-radius-pill);
}

.badge-tag.highlight {
  background: #fef3c7;
  color: #b45309;
}

/* Tarjetas de Precios */
.pricing-cards-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  max-width: 950px;
  margin: 40px auto 0;
  align-items: center;
}

.pricing-tier-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
}

.pricing-tier-card.tier-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 16px 36px rgba(2, 136, 209, 0.16);
  transform: scale(1.03);
}

.tier-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 4px 16px;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(217, 4, 41, 0.35);
  white-space: nowrap;
}

.tier-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.tier-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tier-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.tier-currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.tier-amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.tier-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
}

.tier-saving {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 20px;
}

.tier-regular-note {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 20px;
}

.nfc-gift-highlight {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.nfc-gift-icon {
  font-size: 1.8rem;
}

.nfc-gift-text strong {
  display: block;
  font-size: 0.88rem;
  color: #166534;
  line-height: 1.35;
  margin-bottom: 3px;
}

.nfc-gift-text span {
  font-size: 0.78rem;
  color: #15803d;
}

.nfc-gift-text a {
  color: #16a34a;
  text-decoration: underline;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: #334155;
}

/* Formulario Principal de Afiliación */
.affil-form-container {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.form-fieldset {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border-color);
}

.form-fieldset:last-of-type {
  border-bottom: none;
}

.fieldset-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step-num {
  width: 30px;
  height: 30px;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-agreement {
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-submit-actions {
  text-align: center;
}

.submit-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Modal de Éxito */
.affil-modal-success-header {
  text-align: center;
  padding-top: 10px;
  margin-bottom: 18px;
}

.success-icon-badge {
  font-size: 3rem;
  margin-bottom: 8px;
}

.affil-folio-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  text-align: center;
  margin-bottom: 20px;
}

.affil-folio-box span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.affil-folio-box strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.info-bubble {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: #166534;
  line-height: 1.5;
}

.info-bubble p {
  margin: 4px 0;
}

.modal-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive para afiliar.html */
@media (max-width: 1024px) {
  .benefits-16-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proposals-split-grid {
    grid-template-columns: 1fr;
  }
  .pricing-cards-container {
    grid-template-columns: 1fr;
  }
  .pricing-tier-card.tier-featured {
    transform: none;
  }
  .affil-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .affil-hero-title {
    font-size: 1.95rem;
  }
  .benefits-16-grid {
    grid-template-columns: 1fr;
  }
  .affil-metrics-grid {
    grid-template-columns: 1fr;
  }
  .affil-form-container {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   VENTANA EMERGENTE FLIPHTML5 (REVISTA DIGITAL DE BIENVENIDA)
   ========================================================================== */
.modal-fliphtml5-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-fliphtml5-backdrop.show,
.modal-fliphtml5-backdrop[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
}

.modal-dialog-fliphtml5 {
  max-width: 550px;
  width: 100%;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  text-align: center;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flipmodal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0284c7 100%);
  color: #ffffff;
  padding: 32px 24px 22px;
  position: relative;
}

.flipmodal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fef08a;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flipmodal-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #ffffff;
}

.flipmodal-header p {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.flipmodal-body {
  padding: 24px 20px 16px;
  background: #f8fafc;
}

.fliphtml5-embed-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

.fliphtml5-embed-wrapper:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 42px rgba(2, 132, 199, 0.35);
}

.fliphtml5-cover-img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 14px;
  transition: filter 0.25s ease;
}

.fliphtml5-embed-wrapper:hover .fliphtml5-cover-img {
  filter: brightness(1.05);
}

.fliphtml5-click-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flipmodal-footer {
  padding: 20px 24px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.flipmodal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-open-flip {
  flex: 1 1 200px;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: var(--border-radius-pill);
  background: #0288d1 !important;
  background: linear-gradient(135deg, #00a8e8 0%, #0288d1 100%) !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 136, 209, 0.4);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-open-flip:hover {
  background: linear-gradient(135deg, #0288d1 0%, #01579b 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 136, 209, 0.5);
  color: #ffffff !important;
}

.btn-close-flip {
  flex: 1 1 150px;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: var(--border-radius-pill);
  border: 2px solid #cbd5e1 !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-close-flip:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.flipmodal-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 0;
}

/* Botón estilizado en la barra de navegación para Revista Digital */
.nav-item-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.nav-item-btn:hover {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
}

/* Ajustes globales para que el Lightbox oficial de FlipHTML5 se vea perfecto */
.fh5-light-box-background {
  z-index: 99999999 !important;
}

.fh5-light-box {
  max-width: 95vw !important;
  max-height: 90vh !important;
  border-radius: 12px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
}

.fh5-light-box iframe {
  max-width: 100% !important;
  max-height: 82vh !important;
}

/* ==========================================================================
   PÁGINA DEDICADA DE PROMOCIONES (promociones.html)
   ========================================================================== */
.promo-hero {
  padding: 50px 0 35px;
  background: linear-gradient(135deg, #091e3a 0%, #0f172a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.promo-hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.promo-badge-lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  margin-bottom: 16px;
}

.promo-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.promo-hero-p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.promo-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.promo-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.promo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sección de Esquemas Rápidos de Descuentos */
.promo-schemes-section {
  padding: 35px 0 25px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.promo-schemes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.promo-scheme-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
}

.promo-scheme-card:hover {
  transform: translateY(-3px);
  border-color: #0288d1;
  box-shadow: 0 8px 20px rgba(2, 136, 209, 0.12);
}

.scheme-icon {
  font-size: 1.6rem;
}

.scheme-discount {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #d32f2f;
}

.scheme-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
}

.scheme-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

/* Marcadores más grandes en Google Maps y Leaflet para la página de promociones */
.custom-mascota-marker.marker-large {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-mascota-marker.marker-large:hover {
  transform: scale(1.15) translateY(-6px);
  filter: drop-shadow(0 12px 24px rgba(2, 136, 209, 0.55));
  z-index: 9999 !important;
}

/* Realce visual en tarjetas del directorio de promociones */
.page-promociones .biz-card {
  border: 1.5px solid #e2e8f0;
}

.page-promociones .biz-card.highlighted {
  border-color: #ef4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}

.page-promociones .biz-card-discount-badge {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  font-size: 0.92rem;
  padding: 10px 14px;
}

.page-promociones .biz-card-discount-badge strong {
  color: #b91c1c;
  font-size: 0.96rem;
}

@media (max-width: 900px) {
  .promo-hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}



