/* public/css/styles.css */
:root {
  /* ========================================================================
     1. PALETA DE COLORES DE MARCA Y SISTEMA
     ======================================================================== */
  --primary: #FF6B35;         /* Naranja Coral principal */
  --primary-color: #FF6B35;   /* Alias retrocompatible */
  --secondary: #2EC4B6;       /* Verde Turquesa para validación y éxito */
  --accent-primary: var(--primary);
  --accent-hover: #e85926;
  --alert: #EF4444;           /* Rojo para avisos urgentes/emergencias */

  /* Superficies y Fondos */
  --bg-app: #F9FAFB;          /* Gris Nieve para el fondo general */
  --bg-card: #FFFFFF;         /* Blanco puro para tarjetas y modales */
  --bg-body: var(--bg-app);
  --bg-page: var(--bg-app);
  --bg-surface: var(--bg-card);

  /* Tipografía y Textos */
  --text-main: #1F2937;       /* Grafito oscuro para títulos y texto principal */
  --text-muted: #6B7280;      /* Pizarra suave para metadatos y descripciones */
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-handwriting: 'Caveat', cursive;

  /* Bordes y Líneas Divisorias */
  --border-color: #E5E7EB;
  --border-light: #F3F4F6;

  /* Estados de Notificación y Alertas */
  --success-bg: #DCFCE7;
  --success-text: #166534;
  --warning-bg: #FEF9C3;
  --warning-text: #854D0E;
  --danger-bg: #FEE2E2;
  --danger-text: var(--alert);

  /* Radios de Esquinas */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Sombras y Elevación */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.05);
  --shadow-md: 0 4px 12px rgba(31, 41, 55, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Clases de Utilidad y Diseño Modular */
.micro-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.form-group-compact {
  margin: 0 !important;
}

.form-group-compact label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
}

.form-group-compact .text-input {
  padding: 8px 12px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn-icon-gap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

/* ==========================================================================
   PANTALLA DE INICIO / SPLASH SCREEN (FONDO NEGRO CON LOGO OFICIAL)
   ========================================================================== */
.rl-splash-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  user-select: none;
  -webkit-user-select: none;
}
.rl-splash-screen.splash-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.rl-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: splashFadeIn 0.3s ease-out;
}
.rl-splash-logo {
  width: 220px;
  height: auto;
  max-width: 82vw;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.7));
}
.rl-splash-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary, #FF6B35);
  border-radius: 50%;
  animation: splashSpin 0.7s linear infinite;
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes splashSpin {
  to { transform: rotate(360deg); }
}

.micrositio-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.micrositio-servicios-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.count-badge-premium {
  background: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 600 !important;
}

.plan-badge-inline-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.drawer-item-premium-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

html {
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* ========================================================================== */
/* ICONOS VECTORIALES (PHOSPHOR ICONS) - ESTILOS UI/UX                        */
/* ========================================================================== */
i.ph,
.ph {
  color: inherit;
  font-size: 1.2em;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Iconos de advertencia / alertas */
i.ph.ph-warning,
.ph-warning,
.icon-alert i.ph,
.rl-commercial-warning-icon i.ph,
.rl-info-card-commercial-alert .rl-info-card-icon i.ph {
  color: var(--alert) !important;
}

/* Iconos de elementos premium o destacados */
i.ph.ph-star,
i.ph.ph-sparkle,
.ph-star,
.ph-sparkle,
.icon-premium i.ph,
.rl-premium-crown-icon i.ph,
.rl-premium-destacado-badge i.ph,
.badge-premium i.ph {
  color: var(--secondary) !important;
}

/* Margen derecho en botones, enlaces o elementos con texto para separarlos */
button > i.ph,
a > i.ph,
.btn > i.ph,
.btn-filter-aviso > i.ph,
.drawer-nav-link > i.ph,
.drawer-auth-pill-btn > i.ph,
.login-tab-btn > i.ph,
.drawer-nav-link span > i.ph,
.panel-tab-btn span > i.ph,
.panel-drawer-item span > i.ph,
.stock-item > i.ph,
.legal-badge i.ph,
.legal-badge-contract i.ph {
  margin-right: 8px;
}

/* Excepciones donde el icono no debe tener margen derecho */
.btn-toggle-password > i.ph,
.stats-popup-close-x > i.ph,
.rl-registro-modal-close > i.ph,
.rl-aviso-detalle-close > i.ph,
.nav-item > i.ph,
.nav-item i.ph,
.rl-bottom-nav-item > i.ph,
.rl-bottom-nav-item i.ph,
.auth-pill-icon i.ph,
.cat-dropdown-icon i.ph,
.stats-popup-ico i.ph,
.rl-registro-icon-main i.ph,
.rl-registro-icon-shield i.ph,
.rl-info-card-icon i.ph,
.rl-grid-title-icon i.ph,
.rl-taxis-header-icon i.ph,
.rl-flame-icon i.ph,
.rl-premium-crown-icon i.ph,
.reach-kpi-icon i.ph,
.drawer-item-icon i.ph,
.admin-nav-icon i.ph,
.error-emoji i.ph,
.taxi-icon-large i.ph,
.micrositio-section-icon i.ph,
.input-lock-icon i.ph,
.role-icon i.ph,
.role-card-icon i.ph {
  margin-right: 0;
}

/* Ajustes específicos para Bottom Navigation */
.rl-bottom-nav-item i.ph {
  font-size: 1.45rem;
  color: var(--text-muted);
  transition: color 0.15s ease, transform 0.15s ease;
  display: block;
}

.rl-bottom-nav-item:hover i.ph,
.rl-bottom-nav-item.active i.ph {
  color: var(--primary) !important;
  transform: scale(1.08);
}

/* ========================================================================== */
/* REGLAS GLOBALES DEL SISTEMA DE DISEÑO (SUPER-APP VECINAL)                  */
/* ========================================================================== */

/* 1. Body y Main: Fondo Gris Nieve y Texto Grafito (sin negros puros #000) */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  width: 100%;
}

main,
.main-container,
.rl-main-content,
.mobile-app-shell,
.mobile-public-body {
  background-color: var(--bg-app);
  color: var(--text-main);
}

/* 2. Tipografía: Grafito para títulos/strong y Pizarra para párrafos/secundarios */
h1, h2, h3, h4, h5, h6, strong, b {
  color: var(--text-main);
}

p, small, .section-subtitle, .rl-section-subtitle, .text-secondary, .text-muted, .descripcion {
  color: var(--text-muted);
}

/* 3. Tarjetas, modales y aside: fondo blanco puro, bordes redondeados y sombra sutil */
.card,
.panel-card,
.locatario-card,
.admin-card,
.admin-aviso-card,
.admin-plan-card,
.colonia-detail-card,
.anuncio-card-item,
.rl-aviso-card,
.rl-mod-card,
.saldo-highlight-card,
.oferta-item-card,
.login-card,
.legal-card,
aside,
.mobile-drawer-panel,
.panel-drawer-panel,
.micrositio-floating-wrap,
dialog,
[role="dialog"],
.rl-taxis-dialog,
.rl-avisos-dialog,
.rl-anuncios-grid-dialog,
.rl-aviso-registro-dialog,
.rl-aviso-detalle-dialog,
.login-modal-dialog,
.rl-cita-dialog,
.slot-captura-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.05);
}

/* 4. Botones y CTAs Principales: Naranja Coral con texto blanco */
.btn-primary,
.btn-login-pill,
.btn-drawer-login-link,
#btn-submit-signin,
#btn-submit-signup,
#btn-modal-ir-registro,
#btn-submit-enviar-aviso,
#btn-publicar-aviso-grid,
#btn-publicar-aviso-oficial,
#btn-reach-hook-publicar,
.rl-btn-action-signup,
.btn-publicar-cta {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover:not(:disabled),
.btn-login-pill:hover,
.btn-drawer-login-link:hover,
#btn-submit-signin:hover:not(:disabled),
#btn-submit-signup:hover:not(:disabled),
#btn-modal-ir-registro:hover,
#btn-submit-enviar-aviso:hover:not(:disabled),
#btn-publicar-aviso-grid:hover,
#btn-publicar-aviso-oficial:hover:not(:disabled),
#btn-reach-hook-publicar:hover,
.rl-btn-action-signup:hover,
.btn-publicar-cta:hover {
  background-color: #e85926 !important;
  color: #ffffff !important;
  border-color: #e85926 !important;
}

/* 5. Destacados comerciales: Verde Turquesa (--secondary) */
.rl-oferta-card {
  border: 2px solid var(--secondary) !important;
}

.rl-premium-card,
.locatario-card-plus {
  border: 2px solid var(--secondary) !important;
  box-shadow: 0 4px 14px rgba(46, 196, 182, 0.15) !important;
}

.rl-premium-card:hover,
.locatario-card-plus:hover {
  border-color: var(--secondary) !important;
  box-shadow: 0 8px 22px rgba(46, 196, 182, 0.28) !important;
}

.btn-whatsapp,
.rl-btn-whatsapp-pill,
.btn-taxi-whatsapp,
.micrositio-floating-btn,
.btn-send-cita-wa {
  background-color: var(--secondary) !important;
  color: #ffffff !important;
  border-color: var(--secondary) !important;
}

.btn-whatsapp:hover,
.rl-btn-whatsapp-pill:hover,
.btn-taxi-whatsapp:hover,
.micrositio-floating-btn:hover,
.btn-send-cita-wa:hover {
  background-color: #26a99d !important;
  color: #ffffff !important;
  border-color: #26a99d !important;
}

/* 6. Alertas / Emergencias / Baches con var(--alert) */
.badge-alerta,
.status-error,
.status-inactivo,
.alert-hard-limit,
.login-alert-error {
  color: var(--alert);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Navbar */
.navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .navbar-content {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .navbar .brand-logo {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .navbar-actions {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }
  .navbar-actions .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .navbar-actions .brand-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
  }
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  text-decoration: none;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-page);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

/* Main Hero Header */
.hero-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.status-cargando {
  background-color: var(--warning-bg);
  color: var(--warning-text);
}

.status-activo {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.status-inactivo,
.status-error {
  background-color: var(--danger-bg);
  color: var(--danger-text);
}

.hero-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.territorio-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.territorio-meta code {
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Warning Banner */
.warning-banner {
  background-color: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid #fde047;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Sección de Locatarios / Directorio de Negocios */
.locatarios-section {
  margin-bottom: 2.25rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.count-badge {
  background-color: #e0e7ff;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.locatarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
}

.locatarios-empty {
  grid-column: 1 / -1;
  background-color: var(--bg-surface);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.locatario-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.locatario-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.locatario-card-plus {
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.locatario-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.locatario-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-badge-plus {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
}

.plan-badge-basico {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.locatario-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.locatario-detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.locatario-detail strong {
  color: var(--text-primary);
}

.anuncios-count-active {
  display: inline-block;
  background-color: var(--success-bg);
  color: var(--success-text);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
}

.anuncios-count-zero {
  display: inline-block;
  background-color: #f1f5f9;
  color: #64748b;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
}

.locatario-id-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.locatario-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

.btn-whatsapp {
  display: inline-block;
  width: 100%;
  text-align: center;
  background-color: var(--secondary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(46, 196, 182, 0.25);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-whatsapp:hover {
  background-color: #26a99d;
  box-shadow: 0 6px 16px rgba(46, 196, 182, 0.35);
}

/* Dev / Testing Panel */
.dev-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.dev-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.dev-panel p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  background: var(--bg-page);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.debug-item strong {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.debug-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text-primary);
  font-weight: 600;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.btn {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

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

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

.btn-primary:hover:not(:disabled) {
  background-color: #e85926;
  color: #ffffff;
}

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

.btn-outline:hover {
  background-color: var(--bg-page);
  border-color: #cbd5e1;
}

.seed-log {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  margin-top: 0.75rem;
}

footer {
  margin-top: auto;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Panel del Locatario (panel-locatario.html)
   ========================================================================== */
.session-simulator-bar {
  display: none !important;
  background-color: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 0.65rem 0;
  font-size: 0.85rem;
}

.session-simulator-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.session-select-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.session-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #16a34a;
  display: inline-block;
}

.session-select {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #93c5fd;
  background-color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-hero {
  padding: 2.25rem 0;
}

.panel-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.panel-identity-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.panel-header-badges {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.badge-status-activa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.1);
}

.status-dot-on {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.9);
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.9);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
    box-shadow: 0 0 3px rgba(22, 163, 74, 0.4);
  }
}

.panel-header-badges .status-badge {
  margin-bottom: 0;
}

.saldo-highlight-card {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 200px;
  max-width: 100%;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.saldo-highlight-card.saldo-agotado {
  background: linear-gradient(135deg, #7f1d1d, #dc2626);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
}

.saldo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.9;
}

.saldo-number {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0.25rem 0;
}

.saldo-caption {
  font-size: 0.75rem;
  opacity: 0.85;
}

.panel-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.panel-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.panel-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.alert-hard-limit {
  background-color: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #fca5a5;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}

.alert-success-oferta {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #86efac;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 1rem 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}

.oferta-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  white-space: normal;
  text-align: center;
}

.ofertas-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.oferta-item-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  background-color: var(--bg-page);
}

.oferta-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.oferta-item-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.caducidad-badge {
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.oferta-item-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Botones de acción en ofertas (Editar / Eliminar) */
.oferta-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-color);
}

.btn-xs {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 6px;
}

.btn-danger-outline {
  background-color: #ffffff;
  border-color: #fecaca;
  color: var(--danger-text);
}

.btn-danger-outline:hover:not(:disabled) {
  background-color: var(--danger-bg);
  border-color: #fca5a5;
}

.oferta-edit-inline {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.oferta-edit-inline label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.oferta-edit-inline input,
.oferta-edit-inline textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  background-color: #ffffff;
}

/* Header Identity & Logo Avatar */
.panel-identity-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.panel-logo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border: 2px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.panel-logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-initials {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.categoria-pill {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

/* Sección de Edición de Perfil e Imágenes del Locatario */
.panel-profile-section {
  margin-bottom: 1.5rem;
}

.perfil-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.media-upload-box {
  background-color: var(--bg-page);
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.media-upload-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.media-upload-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.media-dimension-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 4px;
  margin-bottom: 6px;
  width: fit-content;
}

.media-dimension-hint i {
  font-size: 0.95rem;
  color: #15803d;
}

.media-dimension-hint strong {
  font-weight: 700;
  color: #14532d;
}

.media-preview-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .media-preview-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

.logo-preview-circle {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
}

.logo-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.negocio-banner-preview {
  width: 100%;
  max-width: 100%;
  height: clamp(170px, 48vw, 220px);
  min-height: 160px;
  max-height: 250px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-color: #000000;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.82rem;
  color: #94a3b8;
  box-sizing: border-box;
  position: relative;
}

.negocio-banner-preview img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.media-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1;
  box-sizing: border-box;
}

.media-file-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.media-upload-controls-inline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Campos de entrada genéricos adaptables */
.text-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.62rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.text-input-sm {
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
}

input[type="file"],
.file-input {
  font-size: 0.78rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color: var(--text-secondary);
}

/* Indicadores de Estado y Barra de Progreso Sutil */
.upload-status-indicator {
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 0.45rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.upload-status-indicator[hidden] {
  display: none !important;
}

.upload-status-loading {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.upload-status-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.upload-status-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

/* Barra de progreso sutil y elegante */
.subtle-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.15rem;
  box-sizing: border-box;
}

.subtle-progress-container[hidden] {
  display: none !important;
}

.subtle-progress-bar {
  width: 100%;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.subtle-progress-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 999px;
  position: absolute;
  top: 0;
  left: 0;
  animation: subtleIndeterminate 1.4s infinite ease-in-out;
}

@keyframes subtleIndeterminate {
  0% {
    left: -35%;
    width: 35%;
  }
  50% {
    left: 30%;
    width: 55%;
  }
  100% {
    left: 100%;
    width: 35%;
  }
}

.subtle-progress-text {
  font-size: 0.78rem;
  color: #1e40af;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Spinner sutil circular */
.subtle-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: #2563eb;
  border-radius: 50%;
  display: inline-block;
  animation: subtleSpin 0.75s infinite linear;
  vertical-align: middle;
  flex-shrink: 0;
}

.subtle-spinner-white {
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
}

@keyframes subtleSpin {
  to {
    transform: rotate(360deg);
  }
}

.perfil-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  background-color: #ffffff;
}

.perfil-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.protected-fields-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ========================================================================== */
/* SELECTOR ESTRUCTURADO DE HORARIOS COMERCIALES                              */
/* ========================================================================== */
.schedule-builder-wrap {
  width: 100%;
}

.schedule-builder-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.schedule-builder-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.schedule-day-col {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}

.schedule-day-col strong {
  font-size: 0.88rem;
  color: var(--text-main);
  min-width: 60px;
}

.schedule-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-muted);
  user-select: none;
}

.schedule-switch input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.schedule-times-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.time-select-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.time-select-group select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
}

.schedule-closed-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ef4444;
  background-color: #fef2f2;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #fecaca;
  margin-left: auto;
}

.schedule-preview-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.schedule-preview-tag {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-preview-value {
  color: var(--primary);
  font-weight: 600;
}

/* ========================================================================== */
/* VERIFICADOR DINÁMICO DE ESTADO EN GUARDAR PERFIL                          */
/* ========================================================================== */
.perfil-status-box {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  animation: fadeInStatus 0.2s ease-out;
}

.perfil-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.perfil-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--primary);
}

.perfil-status-progress-track {
  width: 100%;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.perfil-status-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.perfil-status-box.is-updating .perfil-status-progress-bar {
  animation: fillingProgress 1.4s infinite ease-in-out;
}

.perfil-status-box.is-success {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
}

.perfil-status-box.is-success .perfil-status-header {
  color: #065f46;
}

.perfil-status-box.is-success .perfil-status-icon {
  color: #10b981;
}

.perfil-status-box.is-success .perfil-status-progress-bar {
  width: 100% !important;
  background: #10b981;
  animation: none;
}

.perfil-status-box.is-error {
  background-color: #fef2f2;
  border-color: #fecaca;
}

.perfil-status-box.is-error .perfil-status-header {
  color: #991b1b;
}

.perfil-status-box.is-error .perfil-status-icon {
  color: #ef4444;
}

.perfil-status-box.is-error .perfil-status-progress-bar {
  width: 100% !important;
  background: #ef4444;
  animation: none;
}

@keyframes fillingProgress {
  0% { width: 5%; transform: translateX(0%); }
  50% { width: 75%; transform: translateX(25%); }
  100% { width: 95%; transform: translateX(5%); }
}

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

/* Imágenes en las tarjetas públicas de negocios */
.locatario-card-banner {
  width: calc(100% + 2.5rem);
  margin: -1.25rem -1.25rem 1rem -1.25rem;
  height: 150px;
  overflow: hidden;
  border-top-left-radius: calc(var(--radius-md) - 1px);
  border-top-right-radius: calc(var(--radius-md) - 1px);
  border-bottom: 1px solid var(--border-color);
}

.locatario-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.locatario-card-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.locatario-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.locatario-categoria-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.locatario-desc-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Panel de Super Administrador (superadmin.html) — Dashboard Corporativo
   ========================================================================== */
.admin-dashboard-body {
  background-color: #f1f5f9;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Lateral */
.admin-sidebar {
  width: 270px;
  background-color: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #1e293b;
}

.admin-sidebar-brand {
  padding: 1.5rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid #1e293b;
}

.admin-brand-badge {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

.admin-brand-title {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.2;
}

.admin-brand-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}

.admin-sidebar-nav {
  padding: 1.25rem 0.85rem;
  flex: 1;
}

.admin-nav-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0 0.65rem;
  margin-bottom: 0.65rem;
}

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

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.admin-nav-item:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.admin-nav-item.active {
  background-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.admin-nav-icon {
  font-size: 1.05rem;
}

.admin-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-QuickLink {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.admin-QuickLink:hover {
  color: #ffffff;
}

/* Área Principal */
.admin-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.15rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-breadcrumb {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.admin-page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-topbar-meta .status-badge {
  margin-bottom: 0;
}

.admin-role-pill {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.admin-content {
  padding: 2rem;
  max-width: 1280px;
  width: 100%;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.admin-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.admin-step-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  background-color: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.admin-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.admin-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-helper {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.field-helper code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--accent-primary);
  font-weight: 700;
}

.admin-control-vars-preview {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
}

.admin-control-vars-preview strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.admin-control-vars-preview ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.admin-control-vars-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #1e40af;
}

.admin-locatarios-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-locatario-row {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-locatario-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-locatario-row-top h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-locatario-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #64748b;
}

.admin-locatario-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.admin-locatario-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-color);
}

@media (max-width: 820px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .admin-content {
    padding: 1.25rem;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* Campos Bloqueados / Automáticos en Formularios */
.badge-auto {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e40af;
  background-color: #dbeafe;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.input-locked-wrap {
  position: relative;
}

.input-locked {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  cursor: not-allowed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 600;
}

.admin-territorio-info-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-tab-pane[hidden] {
  display: none !important;
}

/* ==========================================================================
   Evolución de Centro de Mando Super Admin (Governance)
   ========================================================================== */

/* Planes, Ofertas y Avisos Vecinales Cards & Grids */
.admin-planes-grid,
.admin-ofertas-grid,
.admin-avisos-vecinales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-top: 1rem;
}

.admin-avisos-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.btn-filter-aviso {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-filter-aviso.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.admin-aviso-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.admin-aviso-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-aviso-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.admin-aviso-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.admin-aviso-meta {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
}

.admin-aviso-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-estado-pendiente {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-estado-aprobado {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-estado-rechazado {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.admin-plan-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.admin-plan-card:hover {
  border-color: #93c5fd;
}

.admin-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-plan-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-price-tag {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-primary);
}

.plan-price-tag small {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.admin-plan-detail {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Estado Suspendido */
.row-suspended {
  opacity: 0.65;
  background-color: #fef2f2 !important;
  border-color: #fca5a5 !important;
}

.btn-reactivar {
  border-color: #16a34a !important;
  color: #16a34a !important;
}

.btn-reactivar:hover {
  background-color: #dcfce7 !important;
}

/* Territorios Data Table */
.territorio-filters-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.datatable-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-height: 380px;
}

.admin-datatable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-datatable th {
  background-color: #f1f5f9;
  color: var(--text-secondary);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-datatable td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-datatable tr:hover td {
  background-color: #f8fafc;
}

.text-center {
  text-align: center;
}

.colonia-detail-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Franquiciatario Asignado Box */
.franquiciatario-assigned-box {
  background-color: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.65rem;
}

.franq-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  font-size: 0.82rem;
}

.franq-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
}

/* Toggle Switch (Interruptor) */
.toggle-switch-card {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.toggle-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.toggle-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #16a34a;
}

input:focus + .slider {
  box-shadow: 0 0 1px #16a34a;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Campos Dinámicos (Franquiciatarios) */
.dynamic-fields-section {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
}

.dynamic-fields-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.dynamic-fields-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dynamic-field-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dynamic-field-row input {
  flex: 1;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.btn-remove-dynamic {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-remove-dynamic:hover {
  background-color: #fecaca;
}

.info-adicional-box {
  background-color: #eff6ff;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
}

.info-adicional-box ul {
  list-style: none;
  margin-top: 0.25rem;
}

.admin-franq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* Acciones en Formulario (Guardar / Cancelar) */
.form-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-form-inline {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Categorías de Negocio (Chips) */
.categorias-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.categoria-chip {
  background-color: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.categoria-chip:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

.btn-remove-chip {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-remove-chip:hover {
  color: #ef4444;
}

/* ========================================================================== */
/* SLOTS DINÁMICOS DE IMÁGENES SEGÚN PLAN DEL LOCATARIO                      */
/* ========================================================================== */

.badge-plan-imagenes {
  display: inline-block;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.oferta-slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.oferta-slot-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.oferta-slot-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.slot-badge {
  font-weight: 700;
  color: var(--text-primary);
}

.btn-quitar-slot {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.btn-quitar-slot:hover {
  background-color: #fee2e2;
}

.slot-preview-box {
  width: 100%;
  height: 110px;
  background-color: #e2e8f0;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  padding: 0.25rem;
}

.slot-icon {
  font-size: 1.35rem;
}

.slot-inputs-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.slot-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.slot-quick-buttons-row {
  display: flex;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.slot-url-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.8rem;
  padding: 0.4rem 0.55rem;
}

.slot-file-input {
  font-size: 0.7rem;
  padding: 0.2rem 0;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Galería en tarjeta de oferta del locatario */
.oferta-item-galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.oferta-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: #f1f5f9;
}

/* Banner de imagen en Directorio Público */
.oferta-publica-banner {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  background-color: #0f172a;
}

.oferta-publica-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.locatario-card:hover .oferta-publica-img {
  transform: scale(1.03);
}

.oferta-fotos-count-tag {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* ========================================================================== */
/* VISTA PÚBLICA MOBILE-FIRST (MOCKUP REVISTA LOCAL)                          */
/* ========================================================================== */

.mobile-public-body {
  font-family: "Poppins", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  padding-bottom: calc(68px + env(safe-area-inset-bottom)); /* Compensa el tamaño de la barra + el área segura */
  -webkit-font-smoothing: antialiased;
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: clip; /* clip evita cortes indeseados y permite que los elementos fijos y sticky funcionen sin bloqueos */
  touch-action: pan-y;
}

.mobile-app-shell {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--bg-app);
  min-height: 100%;
  height: auto;
  box-shadow: 0 0 32px rgba(15, 23, 42, 0.08);
  position: relative;
  box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/* 1. HEADER CON CABECERA FIJA Y LOGO CENTRADO (RESPONSIVE MÓVIL Y PC)         */
/* -------------------------------------------------------------------------- */

.rl-top-fixed-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 640px;
  margin: 0 auto;
  z-index: 1000;
  width: 100%;
  background-color: #000000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.rl-main-content {
  padding-top: 164px; /* Altura exacta para compensar la cabecera fija y sub-barra ampliada */
}

@media (max-width: 480px) {
  .rl-main-content {
    padding-top: 160px;
  }
}

@media (min-width: 768px) {
  .rl-main-content {
    padding-top: 184px;
  }
}

.rl-hero-header {
  position: relative;
  background-color: #000000;
  background-image: url("/Cabecera.svg");
  background-size: auto 66px;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 0;
  color: #ffffff;
  width: 100%;
  max-width: 100%;
  height: 96px;
  min-height: 96px;
  box-sizing: border-box;
}

.rl-sticky-header {
  position: sticky;
  top: 0;
  z-index: 900;
}

/* Herramienta Superior Derecha: Campana de Notificaciones */
.rl-header-right-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  z-index: 20;
}

.rl-header-tool-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex: 0 0 34px;
  flex-shrink: 0;
  transition: all 0.15s ease;
  backdrop-filter: blur(4px);
  padding: 0;
}

.rl-header-tool-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fbbf24;
  color: #fbbf24;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/* 2. SUB-BARRA DEBAJO DE LA CABECERA Y COLONIA COLGANDO AL CENTRO            */
/* -------------------------------------------------------------------------- */

/* Nombre de la Colonia Colgando al Centro de la Base de la Cabecera */
.rl-header-colonia-hanging {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.rl-brand-colonia-pill {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background-color: #000000;
  border: 1.5px solid #f59e0b;
  border-radius: 999px;
  padding: 0.16rem 0.65rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.15;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.rl-sub-header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px; /* Mayor altura y amplitud del contenedor */
  min-height: 60px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.rl-sub-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.rl-sub-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  line-height: normal;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  color: #0b2e59;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  flex-shrink: 0;
}

.rl-menu-sub-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #0b2e59;
}

.rl-menu-sub-btn:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #0284c7;
}

/* Grupo de Acciones Izquierda (Sesión y Búsqueda Inteligente) */
.rl-sub-bar-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Grupo de Acciones Derecha (Botones Circulares Compactos) */
.rl-sub-bar-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.rl-circle-icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  color: #0b2e59;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  position: relative;
  flex-shrink: 0;
}

.rl-circle-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
}

/* Botón Circular Sesión / Menú (Verde como el botón de Comunidad) */
.rl-menu-circle-btn {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.rl-menu-circle-btn:hover {
  background-color: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.rl-menu-circle-btn.is-open {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

/* Botón Circular Búsqueda Inteligente (Color original del botón de sesión) */
.rl-search-circle-btn {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0b2e59;
}

.rl-search-circle-btn:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #0284c7;
}

.rl-search-circle-btn.is-open {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Botón Circular Categorías (Sólo Ícono) */
.rl-cat-circle-btn {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0b2e59;
}

.rl-cat-circle-btn:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #0284c7;
}

.rl-cat-circle-btn.is-open {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.rl-cat-circle-btn.has-active-filter {
  background-color: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.cat-grid-icon {
  stroke: currentColor;
  flex-shrink: 0;
}

/* Botón Circular Comunidad (Sólo Ícono con indicador en vivo) */
.rl-comunidad-circle-btn {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.rl-comunidad-circle-btn:hover {
  background-color: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.rl-comunidad-circle-btn.is-open {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.rl-comunidad-circle-btn .stats-live-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  border: 1.5px solid #ffffff;
  display: inline-block;
  animation: pulseDotLive 1.8s infinite;
}

.dropdown-active-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  background-color: #e0f2fe;
  color: #0284c7;
  border-radius: 12px;
  margin-left: 6px;
}

/* Menú Desplegable Flotante de Categorías */
.rl-categories-dropdown-card {
  position: absolute;
  top: calc(100% + 6px);
  left: 12px;
  right: 12px;
  max-width: 440px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.8rem 0.9rem 0.75rem;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.22), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  z-index: 1100;
  animation: popCatDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes popCatDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cat-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #f1f5f9;
}

.cat-dropdown-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cat-dropdown-close-x {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.cat-dropdown-close-x:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.cat-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

@media (max-width: 360px) {
  .cat-dropdown-grid {
    grid-template-columns: 1fr;
  }
}

.cat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.cat-dropdown-item:hover {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #0284c7;
  transform: translateY(-1px);
}

.cat-dropdown-item.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.cat-dropdown-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.cat-dropdown-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pop-up de Comunidad Flotante (Alineado a la derecha, auto-cierre máx. 3s o botón cerrar) */
.rl-stats-popup-card {
  position: absolute;
  top: calc(100% + 6px);
  right: 12px;
  left: auto;
  width: calc(100% - 24px);
  max-width: 360px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.75rem 0.9rem 0.45rem;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.22), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  z-index: 1100;
  animation: popStatsIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.comunidad-popup-svg {
  stroke: #0369a1;
  flex-shrink: 0;
}

@keyframes popStatsIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stats-popup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.stats-popup-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stats-popup-dot-live {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDotLive 1.8s infinite;
}

.stats-popup-close-x {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.stats-popup-close-x:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.stats-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.4rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

.stats-popup-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stats-popup-ico {
  font-size: 1.15rem;
  line-height: 1;
}

.stats-popup-stat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b2e59;
  line-height: 1.15;
}

.stats-popup-stat small {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.1;
}




/* Elementos limpios del Drawer para visitantes (Sólo Íconos y Botones Compactos) */
.drawer-guest-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem;
  box-sizing: border-box;
  width: 100%;
}

.drawer-guest-actions-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.drawer-auth-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.btn-login-pill {
  background-color: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.btn-login-pill:hover {
  background-color: #0369a1;
  color: #ffffff;
}

.btn-signup-pill {
  background-color: #ffffff;
  color: #0b2e59;
  border: 1.5px solid #cbd5e1;
}

.btn-signup-pill:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #0284c7;
}

.auth-pill-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.drawer-panel-shortcut {
  margin-top: 8px;
  font-size: 0.8rem;
  text-decoration: none;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* 3. BUSCADOR FLOTANTE INFERIOR (DESPLIEGUE SUAVE SOBRE EL MENÚ FIJO)        */
/* -------------------------------------------------------------------------- */

.rl-bottom-search-wrap {
  position: fixed;
  bottom: calc(66px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 616px;
  z-index: 1050;
  display: flex;
  align-items: center;
  animation: bottomSearchSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rl-bottom-search-wrap[hidden] {
  display: none !important;
}

@keyframes bottomSearchSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.rl-expandable-search-form {
  width: 100%;
  background-color: #ffffff;
  border-radius: 999px;
  height: 42px;
  padding: 0 10px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.12), 0 4px 18px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #0284c7;
  box-sizing: border-box;
}

.rl-search-close-action,
.rl-search-close-text-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}

.rl-search-close-action:hover,
.rl-search-close-text-btn:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.rl-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex: 0 0 38px;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.rl-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.rl-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  line-height: 1;
}

.rl-brand-suptitle,
.rl-brand-slogan,
.rl-pin-logo {
  display: none;
}

/* Barra de Búsqueda Integrada en Sub-Barra */
.rl-search-bar {
  background-color: #ffffff;
  border-radius: 999px;
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(11, 46, 89, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.95);
  width: 100%;
  box-sizing: border-box;
}

.rl-search-icon {
  color: #163a5f;
  flex-shrink: 0;
}

.rl-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  color: #1e293b;
  box-sizing: border-box;
}

/* Ocultar botones de cancelación nativos del navegador para evitar los 3 XXX */
.rl-search-input::-webkit-search-cancel-button,
.rl-search-input::-webkit-search-decoration,
.rl-search-input::-webkit-search-results-button,
.rl-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

.rl-search-input::placeholder {
  color: #64748b;
}

.rl-search-clear {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.rl-search-clear:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* -------------------------------------------------------------------------- */
/* 2. NAVEGACIÓN DE CATEGORÍAS (ICONOS CIRCULARES)                            */
/* -------------------------------------------------------------------------- */

.rl-categories-section {
  background-color: #ffffff;
  padding: 14px 12px 14px;
  border-bottom: 1px solid #edf2f7;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.rl-categories-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 2px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rl-categories-row::-webkit-scrollbar {
  display: none;
}

.rl-category-item {
  background: none;
  border: none;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 54px;
  min-width: 54px;
  width: 54px;
  font-family: inherit;
  transition: transform 0.15s ease;
}

.rl-category-item:hover,
.rl-category-item.active {
  transform: translateY(-2px);
}

.rl-category-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transition: box-shadow 0.15s ease, outline 0.15s ease;
}

.rl-category-item.active .rl-category-circle {
  outline: 3px solid #0b2e59;
  outline-offset: 2px;
}

.cat-comida {
  background-color: #f5a623;
}
.cat-oficios {
  background-color: #1da1f2;
}
.cat-salud {
  background-color: #10b981;
}
.cat-tiendas {
  background-color: #8b5cf6;
}
.cat-transporte {
  background-color: #ec4899;
}
.cat-avisos {
  background-color: #14b8a6;
}

.rl-category-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b2e59;
  white-space: nowrap;
}

.rl-category-label small {
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 1px;
}

/* -------------------------------------------------------------------------- */
/* 3. SECCIÓN 'OFERTAS DE LA SEMANA' (CARRUSEL HORIZONTAL SCROLL-X)           */
/* -------------------------------------------------------------------------- */

/* ==========================================================================
   FILTROS DE CATEGORÍAS (CHIPS HORIZONTALES CON 'TODAS' FIJO)
   ========================================================================== */

.categorias-historias {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #E5E7EB;
  background-color: var(--bg-app);
  position: relative;
}
.categorias-historias::-webkit-scrollbar {
  display: none;
}

/* Botón 'Todas' fijado en el extremo izquierdo mientras las demás categorías pasan por detrás */
.categoria-todas-sticky {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: var(--bg-app);
  padding-left: 16px;
  padding-right: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.categoria-todas-sticky::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  width: 10px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg-app), transparent);
}

.historia-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background-color: var(--bg-card);
  border: 1px solid #E5E7EB;
  min-width: max-content;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.historia-btn .historia-icon {
  width: 16px;
  height: 16px;
  border: none;
  font-size: 14px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.historia-btn span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}
.historia-btn.active {
  border-color: var(--primary);
  background-color: rgba(255, 107, 53, 0.08);
}
.historia-btn.active span {
  color: var(--primary);
  font-weight: 600;
}
.historia-btn.active .historia-icon i {
  color: var(--primary);
}

/* ==========================================================================
   ESTADÍSTICAS DE LA COMUNIDAD (GRID MINIMALISTA DE 3 COLUMNAS)
   ========================================================================== */

.comunidad-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 24px 0;
  padding: 0 16px;
  box-sizing: border-box;
  scroll-margin-top: 110px;
  transition: all 0.3s ease;
}
.comunidad-stats.highlight-stats {
  animation: pulse-stats 1.8s ease-out;
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 14px;
}
@keyframes pulse-stats {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5);
    background-color: rgba(255, 107, 53, 0.08);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    background-color: transparent;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-card);
  padding: 16px 8px;
  border-radius: 12px;
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.stat-item i { font-size: 22px; color: var(--secondary); margin-bottom: 6px; }
.stat-item strong { font-size: 16px; font-weight: 800; color: var(--text-main); }
.stat-item small { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* ==========================================================================
   CINTILLO TIPO BOLSA DE VALORES (SOLO TÍTULOS - 35PX DE ALTURA)
   ========================================================================== */

.rl-stock-ticker {
  display: flex;
  align-items: center;
  height: 35px;
  min-height: 35px;
  max-height: 35px;
  background-color: var(--bg-card);
  margin: 4px 16px 6px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-sizing: border-box;
  line-height: 1;
}
.rl-stock-ticker:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.rl-stock-ticker-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #FFF5F2;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0 8px;
  height: 100%;
  flex-shrink: 0;
  border-right: 1px solid #FFE4D9;
  z-index: 2;
  line-height: 1;
  box-sizing: border-box;
}
.ticker-live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--alert);
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.rl-stock-ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
}
.rl-stock-ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: stockMarqueeScroll 28s linear infinite;
  will-change: transform;
  line-height: 1;
}
.rl-stock-ticker:hover .rl-stock-ticker-content,
.rl-stock-ticker:active .rl-stock-ticker-content {
  animation-play-state: paused;
}
@keyframes stockMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stock-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-main);
  padding: 0 3px;
  line-height: 1;
}
.stock-item i {
  color: var(--primary);
  font-size: 13px;
  line-height: 1;
}
.stock-item strong {
  font-weight: 600;
  color: var(--text-main);
  font-size: 12px;
  line-height: 1;
}
.stock-sep {
  display: inline-block;
  margin: 0 10px;
  color: var(--secondary);
  font-size: 7px;
  opacity: 0.7;
  line-height: 1;
}

.rl-stock-ticker-action-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 0 8px;
  height: 100%;
  flex-shrink: 0;
  border-left: 1px solid #F3F4F6;
  z-index: 2;
  transition: color 0.15s ease;
  line-height: 1;
  box-sizing: border-box;
}
.rl-stock-ticker:hover .rl-stock-ticker-action-hint,
.rl-stock-ticker:active .rl-stock-ticker-action-hint {
  color: var(--primary);
}
.rl-stock-ticker-action-hint i {
  font-size: 13px;
  line-height: 1;
}
@media (max-width: 360px) {
  .rl-stock-ticker-action-hint span {
    display: none;
  }
}

.rl-ofertas-sub-header {
  padding: 4px 16px 8px;
  margin-top: 0;
}

.rl-section-ofertas {
  padding: 4px 0 6px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.rl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 10px;
}

.rl-section-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rl-flame-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.rl-section-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0b2e59;
  margin: 0;
  letter-spacing: -0.01em;
}

.rl-section-subtitle {
  font-size: 0.76rem;
  color: #64748b;
  margin: 2px 0 0;
}

.rl-see-all-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d63b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rl-see-all-link:hover {
  text-decoration: underline;
}

.rl-ofertas-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 16px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rl-ofertas-carousel::-webkit-scrollbar {
  display: none;
}

.rl-oferta-card {
  flex: 0 0 184px;
  max-width: 184px;
  background-color: var(--bg-card);
  border-radius: 14px;
  border: 2px solid var(--secondary);
  box-shadow: 0 4px 12px rgba(46, 196, 182, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rl-oferta-card:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
  box-shadow: 0 8px 18px rgba(46, 196, 182, 0.22);
}

.rl-oferta-img-box {
  position: relative;
  width: 100%;
  height: 112px;
  padding: 6px 6px 0 6px;
}

.rl-oferta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background-color: #e2e8f0;
}

.rl-oferta-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.rl-oferta-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.rl-oferta-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0b2e59;
  margin: 0;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-oferta-desc {
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.32;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.rl-oferta-distance {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1d63b8;
  margin-top: 1px;
}

.rl-btn-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: var(--secondary);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  align-self: flex-start;
  margin: 2px 0;
  box-shadow: 0 2px 6px rgba(46, 196, 182, 0.25);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.rl-btn-whatsapp-pill:hover {
  background-color: #26a99d;
  box-shadow: 0 4px 10px rgba(46, 196, 182, 0.35);
}

.rl-oferta-schedule {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  color: #475569;
  margin-top: auto;
  padding-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------- */
/* 4. BANNERS MODULARES (TAXIS, PIZARRÓN DE AVISOS, INSTALA LA APP)           */
/* -------------------------------------------------------------------------- */

.rl-modular-banners-section {
  padding: 2px 16px 14px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.rl-modular-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rl-modular-grid::-webkit-scrollbar {
  display: none;
}

.rl-mod-card {
  flex: 0 0 160px;
  min-width: 160px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 112px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease;
}

.rl-mod-card:hover {
  transform: translateY(-2px);
}

.rl-mod-disabled {
  opacity: 0.65;
  filter: grayscale(0.4);
}

/* Tarjeta 1: Taxis Locales */
.rl-mod-taxis {
  background: linear-gradient(135deg, #eaf3ff 0%, #dcebfb 100%);
  border: 1px solid #cfe2f9;
  display: flex;
  align-items: center;
  padding: 8px 10px 8px 0;
  gap: 6px;
}

.rl-mod-taxi-img-wrap {
  width: 66px;
  height: 82px;
  flex-shrink: 0;
  overflow: hidden;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.rl-mod-taxi-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-mod-taxis-content {
  flex: 1;
  padding-right: 18px;
}

.rl-mod-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0b2e59;
  margin: 0 0 4px;
  line-height: 1.18;
}

.rl-mod-subtitle {
  font-size: 0.66rem;
  color: #334155;
  margin: 0;
  line-height: 1.22;
}

/* Tarjeta 2: Pizarrón de Avisos */
.rl-mod-avisos {
  background-color: #eef5ff;
  border: 1px solid #cfe2f9;
  display: flex;
  flex-direction: column;
}

.rl-mod-avisos-top-img {
  width: 100%;
  height: 44px;
  overflow: hidden;
}

.rl-mod-avisos-top-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-mod-avisos-body {
  padding: 6px 10px 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: 1;
}

/* Tarjeta 3: Instala la app (PWA) */
.rl-mod-pwa {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 8px;
}

.rl-mod-phone-illustration {
  flex-shrink: 0;
  transform: rotate(-6deg);
}

.rl-mod-pwa-content {
  flex: 1;
  padding-right: 16px;
}

.rl-text-white {
  color: #ffffff !important;
}

.rl-text-light-green {
  color: #d1fae5 !important;
}

/* Botón flecha circular en tarjetas modulares */
.rl-mod-arrow-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.rl-arrow-blue {
  background-color: #1565c0;
  color: #ffffff;
}

.rl-arrow-white {
  background-color: #ffffff;
  color: #059669;
}

/* -------------------------------------------------------------------------- */
/* 5. BANNER DESTACADO 'APOYA EL COMERCIO LOCAL'                              */
/* -------------------------------------------------------------------------- */

.rl-support-banner-section {
  padding: 0 16px 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rl-support-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0b3b70;
  min-height: 128px;
  display: flex;
  box-shadow: 0 6px 16px rgba(11, 59, 112, 0.16);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rl-support-left {
  position: relative;
  z-index: 2;
  width: 60%;
  max-width: 60%;
  box-sizing: border-box;
  background-color: #0b3b70;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 5px solid #f5b027;
  border-top-right-radius: 80px 130px;
  border-bottom-right-radius: 30px 100px;
}

.rl-support-heart {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-support-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rl-support-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.18;
}

.rl-support-desc {
  font-size: 0.73rem;
  color: #dbeafe;
  margin: 0;
  line-height: 1.28;
}

.rl-btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f5b027;
  color: #0b2e59;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  text-decoration: none;
  align-self: flex-start;
  margin-top: 5px;
  box-shadow: 0 2px 8px rgba(245, 176, 39, 0.4);
  transition: transform 0.15s ease;
}

.rl-btn-amber:hover {
  transform: scale(1.03);
}

.rl-support-right-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  z-index: 1;
}

.rl-support-right-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* 4. CARRUSEL DE COMERCIOS DESTACADOS (PLAN PREMIUM)                         */
/* -------------------------------------------------------------------------- */

.rl-section-premium {
  padding: 4px 0 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.rl-premium-sub-header {
  padding: 0 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rl-premium-sub-header .rl-section-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-premium-crown-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.rl-premium-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.rl-locatarios-premium-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  box-sizing: border-box;
}

.rl-locatarios-premium-carousel::-webkit-scrollbar {
  display: none;
}

.rl-premium-card {
  flex: 0 0 230px;
  max-width: 230px;
  background-color: var(--bg-card);
  border-radius: 14px;
  border: 2px solid var(--secondary);
  box-shadow: 0 4px 14px rgba(46, 196, 182, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.rl-premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 196, 182, 0.25);
  border-color: var(--secondary);
}

.rl-premium-img-wrap {
  position: relative;
  width: 100%;
  height: 124px;
  padding: 6px 6px 0 6px;
  box-sizing: border-box;
}

.rl-premium-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background-color: #f1f5f9;
}

.rl-premium-destacado-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  background: linear-gradient(135deg, #0b2e59 0%, #1d63b8 100%);
  color: #fef08a;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(11, 46, 89, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rl-premium-cat-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.rl-premium-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.rl-premium-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0b2e59;
  margin: 0;
  line-height: 1.24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-premium-desc {
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.32;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.rl-premium-distance {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1d63b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-premium-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.rl-premium-actions .rl-btn-whatsapp-pill {
  margin: 0;
  flex: 1;
}

.rl-btn-ver-ficha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b2e59;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.rl-btn-ver-ficha:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.rl-premium-schedule {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.66rem;
  color: #64748b;
  margin-top: auto;
  padding-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------- */
/* 6. DIRECTORIO DE COMERCIOS ACTIVOS (SECCIÓN DE FIRESTORE)                  */
/* -------------------------------------------------------------------------- */

.rl-directorio-section {
  padding: 4px 0 20px;
}

.rl-directorio-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================================== */
/* DIRECTORIO DE NEGOCIOS: GRID Y TARJETAS PREMIUM                            */
/* ========================================================================== */

.directorio-grid,
.rl-locatarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding: 0 16px;
}

.negocio-card {
  background-color: var(--bg-card);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.negocio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #D1D5DB;
}

/* Estilos de la Cabecera (Logo e Info) */
.negocio-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.negocio-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: #F3F4F6;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: var(--text-muted);
  flex-shrink: 0;
  overflow: hidden;
}

.negocio-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.negocio-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.negocio-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.negocio-categoria {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.negocio-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #9CA3AF;
  flex-shrink: 0;
}

.status-dot.abierto {
  background-color: var(--secondary);
}

/* Cuerpo y Botones de Acción (El gancho final) */
.negocio-body {
  flex: 1;
}

.negocio-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.negocio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.btn-outline,
.negocio-actions .btn-outline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background-color: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover,
.negocio-actions .btn-outline:hover {
  background-color: #F9FAFB;
  border-color: #D1D5DB;
}

.btn-whatsapp,
.negocio-actions .btn-whatsapp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: var(--secondary); /* El turquesa da confianza y se asocia a WhatsApp */
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-whatsapp:hover,
.negocio-actions .btn-whatsapp:hover {
  opacity: 0.92;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* 7. DRAWER LATERAL Y PANEL DE DESARROLLO                                    */
/* -------------------------------------------------------------------------- */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
}

.mobile-drawer[hidden] {
  display: none !important;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

.mobile-drawer-panel {
  position: relative;
  z-index: 2001;
  width: 295px;
  max-width: 85vw;
  background-color: var(--bg-card);
  height: 100%;
  box-shadow: 4px 0 24px rgba(31, 41, 55, 0.08);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mobile-drawer-header {
  background-color: #0b3b70;
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-drawer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.drawer-territory-tag {
  font-size: 0.82rem;
  margin: 0;
}

.drawer-meta-text {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.drawer-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 4px 0;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background-color: #f8fafc;
  color: #0b2e59;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.drawer-nav-link:hover {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

.rl-dev-panel {
  margin: 12px 16px 24px;
}

/* -------------------------------------------------------------------------- */
/* 7. PIE DE PÁGINA PRINCIPAL (FOOTER Y LEYENDA INSTITUCIONAL)                */
/* -------------------------------------------------------------------------- */

.rl-main-footer {
  margin-top: 2.5rem;
  padding: 2rem 1.25rem calc(80px + env(safe-area-inset-bottom)) 1.25rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
  background-color: var(--bg-card, #ffffff);
  text-align: center;
  box-sizing: border-box;
}

.rl-main-footer-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rl-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #1f2937);
  letter-spacing: -0.01em;
}

.rl-footer-brand-dot {
  color: var(--primary, #ff6b35);
  font-size: 1rem;
  line-height: 1;
}

.rl-footer-brand-sub {
  color: var(--text-muted, #6b7280);
  font-weight: 500;
}

.rl-footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted, #6b7280);
  margin: 0;
  padding: 0 8px;
}

.rl-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  margin-top: 4px;
}

.rl-footer-link {
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.rl-footer-link:hover {
  color: var(--primary, #ff6b35);
  text-decoration: underline;
}

.rl-footer-link-sep {
  color: #cbd5e1;
  font-size: 0.7rem;
}

.rl-footer-copyright {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 4px 0 0;
}

.legal-disclaimer {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 auto 0.75rem auto;
  max-width: 520px;
}

/* -------------------------------------------------------------------------- */
/* 8. BOTTOM NAVIGATION (BARRA FIJA INFERIOR - REDISEÑO NATIVO MODERNO)       */
/* -------------------------------------------------------------------------- */

/* Contenedor del Bottom Nav con efecto Glassmorphism y soporte para Safe Area */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 640px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.92); /* Fondo semitransparente */
  backdrop-filter: blur(12px); /* Desenfoque tipo cristal iOS */
  -webkit-backdrop-filter: blur(12px); /* Soporte para Safari */
  border-top: 1px solid rgba(0, 0, 0, 0.08); /* Línea sutil de separación */
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* El env(safe-area-inset-bottom) evita que choque con la barra de gestos del iPhone */
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom)) 8px;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

/* Espacio inferior en el body para que el contenido no quede oculto detrás de la barra */
body {
  /* Compensa el tamaño de la barra compacta + el área segura */
  padding-bottom: calc(52px + env(safe-area-inset-bottom)); 
}

/* Items individuales de navegación */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-muted); /* Gris pizarra que definimos antes */
  min-width: 54px;
  padding: 3px 0;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent; /* Quita el cuadro azul al tocar en Android */
}

/* Iconos y su animación */
.nav-item i {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transition: transform 0.2s ease;
}

/* Texto de la etiqueta */
.nav-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ESTADO ACTIVO (Cuando el usuario está en esa sección) */
.nav-item.active {
  color: var(--primary); /* Naranja coral */
}

.nav-item.active i {
  transform: scale(1.15); /* El icono crece ligeramente indicando posición */
  font-weight: bold; /* Dependiendo de Phosphor, un bold sutil resalta más */
}

/* Compatibilidad retrospectiva */
.rl-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 640px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) 8px;
  z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);
}

.rl-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  min-width: 64px;
  padding: 6px 0;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.rl-bottom-nav-item:hover,
.rl-bottom-nav-item.active {
  color: var(--primary) !important;
}

.rl-bottom-nav-item i {
  font-size: 24px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rl-bottom-nav-item.active i {
  transform: scale(1.15);
}

.rl-bottom-nav-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Ajustes Responsivos para Pantallas Móviles Pequeñas */
@media (max-width: 480px) {
  .rl-hero-header {
    padding: 0;
    height: 94px;
    min-height: 94px;
    background-size: auto 60px;
    background-position: center 13px;
  }
  .rl-header-colonia-hanging {
    bottom: -10px;
  }
  .rl-brand-colonia-pill {
    font-size: 0.69rem;
    padding: 0.14rem 0.58rem;
  }
  .rl-brand-suptitle {
    font-size: 1.25rem;
  }
  .rl-brand-slogan {
    font-size: 1.15rem;
  }
  .rl-support-left {
    width: 65%;
    padding: 10px;
  }
  .rl-locatarios-grid {
    grid-template-columns: 1fr;
  }
}

/* Ajustes Específicos para Pantallas Grandes / Computadora (PC) */
@media (min-width: 768px) {
  .rl-hero-header {
    height: 116px;
    min-height: 116px;
    background-size: auto 78px;
    background-position: center 14px;
  }
  .rl-header-colonia-hanging {
    bottom: -12px;
  }
  .rl-brand-colonia-pill {
    font-size: 0.78rem;
    padding: 0.18rem 0.78rem;
  }
  .rl-header-right-tools {
    top: 16px;
    right: 20px;
  }
  .rl-header-tool-btn {
    width: 38px;
    height: 38px;
  }
  .rl-sub-header-bar {
    padding: 10px 18px;
  }
  .rl-bottom-search-wrap {
    bottom: 72px;
  }
}

/* -------------------------------------------------------------------------- */
/* 9. ESTILOS DE IDENTIFICACIÓN COMERCIAL (ID NUMÉRICO Y CAMPOS BLOQUEADOS)   */
/* -------------------------------------------------------------------------- */

.badge-afiliado-destacado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

.badge-afiliado-id {
  display: inline-block;
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  margin-right: 6px;
}

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

.form-input-readonly {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 700 !important;
  cursor: not-allowed;
  padding-right: 2.2rem !important;
  width: 100%;
}

.input-lock-icon {
  position: absolute;
  right: 12px;
  font-size: 0.95rem;
  opacity: 0.65;
  pointer-events: none;
}

.field-hint-inline {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 6px;
}

/* Hardening responsivo para paneles y formularios */
@media (max-width: 768px) {
  .panel-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .panel-identity-row {
    flex-wrap: wrap;
    gap: 0.85rem;
  }
  .saldo-highlight-card {
    min-width: 0;
    width: 100%;
  }
  .panel-main-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .media-upload-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .perfil-fields-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .oferta-form-grid {
    grid-template-columns: 1fr;
  }
  .navbar-content {
    gap: 0.5rem;
  }
  .session-simulator-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .session-select {
    width: 100%;
  }
  .container {
    padding: 0 0.85rem;
  }
}

/* ========================================================================== */
/* MÓDULO DE GALERÍA DE PRODUCTOS / SERVICIOS (PANEL DEL LOCATARIO)           */
/* ========================================================================== */

.panel-galeria-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.galeria-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.galeria-form {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0;
}

.galeria-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 0.75rem;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .galeria-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .galeria-col-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .galeria-form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.galeria-samples-row,
.portada-samples-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-color);
}

.samples-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-sample-preset,
.btn-sample-portada,
.btn-slot-preset {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-sample-preset:hover,
.btn-sample-portada:hover,
.btn-slot-preset:hover {
  background-color: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
  transform: translateY(-1px);
}

.media-file-actions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.slot-inputs-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.slot-url-input {
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
}

.slot-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.slot-quick-buttons-row {
  display: flex;
  gap: 0.25rem;
}

.galeria-subtitulo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.galeria-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.galeria-item-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.galeria-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.galeria-item-thumb-box {
  width: 100%;
  height: 130px;
  position: relative;
  background-color: #f1f5f9;
}

.galeria-item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeria-item-index-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.galeria-item-info {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 0.5rem;
}

.galeria-item-desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.galeria-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f8fafc;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  grid-column: 1 / -1;
}

.galeria-empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ========================================================================== */
/* MICROSITIO PÚBLICO DEL COMERCIO (comercio.html)                            */
/* ========================================================================== */

.micrositio-page {
  background-color: var(--bg-body);
  padding-bottom: 80px;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.micro-hero {
  background-color: var(--bg-card);
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.micro-cover {
  width: 100%;
  max-width: 100%;
  height: clamp(140px, 38vw, 220px);
  aspect-ratio: 16 / 9;
  background-color: #000000;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
  position: relative;
}

@media (max-width: 480px) {
  .micro-cover {
    height: clamp(125px, 36vw, 175px);
    aspect-ratio: 2.2 / 1;
    background-size: contain;
    background-position: center center;
    background-color: #000000;
  }
}
.micro-header-content { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -30px; padding: 0 16px; }
.micro-logo { width: 80px; height: 80px; border-radius: 50%; background-color: var(--bg-card); border: 4px solid var(--bg-card); display: flex; justify-content: center; align-items: center; font-size: 32px; color: var(--text-muted); box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow: hidden; z-index: 2; }
.micro-logo img { width: 100%; height: 100%; object-fit: cover; }
.micro-titles { margin-top: 12px; }
.micro-title { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin: 0; }
.micro-tags { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #9CA3AF; }
.status-dot.abierto { background-color: var(--secondary); }

/* Barra Sticky de Acciones del Micrositio (6 Acciones) */
.micro-actions {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-main, #1f2937);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  flex: 1 1 0px;
  min-width: 0;
  max-width: 56px;
  transition: transform 0.15s ease;
}

.action-btn i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #F1F5F9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 19px;
  color: #334155;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.action-btn span {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--text-main, #334155);
  line-height: 1.15;
  white-space: nowrap;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn:hover i {
  background-color: #E2E8F0;
}

.action-wa i {
  background-color: rgba(37, 211, 102, 0.14);
  color: #16a34a;
}
.action-wa:hover i {
  background-color: rgba(37, 211, 102, 0.24);
  color: #15803d;
}

.action-cita i {
  background-color: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
.action-cita:hover i {
  background-color: rgba(2, 132, 199, 0.22);
}

.action-llamar i {
  background-color: #F1F5F9;
  color: #1E293B;
}
.action-llamar:hover i {
  background-color: #E2E8F0;
  color: #0F172A;
}

.action-ubicacion i {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.action-ubicacion:hover i {
  background-color: rgba(239, 68, 68, 0.2);
}

.action-web i {
  background-color: rgba(14, 165, 233, 0.12);
  color: #0284c7;
}
.action-web:hover i {
  background-color: rgba(14, 165, 233, 0.22);
}

.action-compartir i {
  background-color: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}
.action-compartir:hover i {
  background-color: rgba(99, 102, 241, 0.2);
}

.micro-section { background-color: var(--bg-card); padding: 20px 16px; margin-bottom: 8px; }
.section-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin: 0 0 12px 0; }
.micro-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

.micro-gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.micro-gallery::-webkit-scrollbar { display: none; }
.gallery-item { scroll-snap-align: start; flex: 0 0 140px; display: flex; flex-direction: column; gap: 4px; }
.item-img { width: 140px; height: 140px; border-radius: 12px; background-color: #F3F4F6; display: flex; justify-content: center; align-items: center; color: #9CA3AF; font-size: 32px; overflow: hidden; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item span { font-size: 0.85rem; color: var(--text-muted); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; margin-top: 4px; }
.gallery-item strong { font-size: 1rem; color: var(--text-main); }

.micro-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.micro-info-list li { display: flex; gap: 12px; align-items: flex-start; }
.micro-info-list i { font-size: 20px; color: var(--primary); margin-top: 2px; }
.micro-info-list strong { display: block; font-size: 0.9rem; color: var(--text-main); }
.micro-info-list span { display: block; font-size: 0.85rem; color: var(--text-muted); }
.micro-info-list a { color: var(--primary); text-decoration: none; font-size: 0.85rem; font-weight: 600; word-break: break-all; }
.micro-info-list a:hover { text-decoration: underline; }

/* Botón Flotante Inferior (Volver a la Revista) */
.micrositio-floating-back-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: auto;
  min-width: 210px;
  max-width: 75%;
  padding: 12px 24px;
  border-radius: 9999px;
  background-color: #0F294A;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 41, 74, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.micrositio-floating-back-btn:hover {
  background-color: #091b31;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 41, 74, 0.35);
  color: #FFFFFF;
}

.micrositio-floating-back-btn:active {
  transform: translateX(-50%) translateY(0);
}

.micrositio-floating-back-btn .floating-back-arrow {
  font-size: 16px;
  line-height: 1;
}

.micro-sticky-bottom { display: none !important; }
.btn-sticky { display: none !important; }

.micrositio-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background-color: #f1f5f9;
  padding-bottom: 5.5rem;
  box-sizing: border-box;
}

.micrositio-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #0b2e59;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.micrositio-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.micrositio-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.micrositio-topbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.micrositio-brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  font-weight: 800;
}

.micrositio-colonia-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
}

.micrositio-topbar-action {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.micrositio-topbar-action:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Cargador y errores del Micrositio */
.micrositio-loader-card {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #475569;
}

.micrositio-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #cbd5e1;
  border-top-color: #1565c0;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: rl-spin 0.85s linear infinite;
}

@keyframes rl-spin {
  to {
    transform: rotate(360deg);
  }
}

.micrositio-error-card {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background-color: #ffffff;
  margin: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.micrositio-error-card .error-emoji {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

/* Cabecera Hero del Micrositio */
.micrositio-header-hero {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.micrositio-cover-container {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background-color: #0f172a;
}

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

.micrositio-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 46, 89, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.micrositio-identity-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 1rem;
  margin-top: -38px;
  position: relative;
  z-index: 2;
}

.micrositio-logo-avatar {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background-color: #ffffff;
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.micrositio-logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.micrositio-logo-avatar span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b2e59;
}

/* Badges del lado derecho justo debajo de la portada */
.micrositio-header-right-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 6px;
}

.micrositio-verified-pill {
  display: inline-block;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Renglón con Nombre del Negocio al Centro */
.micrositio-name-row {
  width: 100%;
  padding: 0.75rem 1rem 0.2rem;
  box-sizing: border-box;
  text-align: center;
}

.micrositio-nombre-title {
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 800;
  color: #0b2e59;
  line-height: 1.25;
  margin: 0;
  text-align: center;
  word-break: break-word;
}

/* Renglón con la Categoría del Negocio (sustituye 'Comercio verificado en tu comunidad') */
.micrositio-categoria-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 1rem 0.4rem;
  width: 100%;
  box-sizing: border-box;
}

.micrositio-categoria-pill {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.micrositio-descripcion-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
  padding: 0.35rem 1rem 0;
  margin: 0;
  text-align: center;
}

/* Barra de Acciones Rápidas */
.micrositio-quick-actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.btn-micrositio-action {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-wa-accion {
  flex: 1.4;
}

.btn-micrositio-action:active {
  transform: scale(0.98);
}

.btn-wa-accion {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.btn-tel-accion {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.btn-share-accion {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* =================================================================== */
/* MODAL: DIRECTORIO Y LISTA DE SITIOS DE TAXIS                        */
/* =================================================================== */
.rl-taxis-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rl-taxis-modal[hidden] {
  display: none !important;
}

.rl-taxis-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rl-taxis-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.12);
  border: 1px solid var(--border-color);
  overflow: hidden;
  animation: modal-enter-scale 0.22s ease-out;
}

.rl-taxis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1.5px solid #fde68a;
}

.rl-taxis-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rl-taxis-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-taxis-header-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.rl-taxis-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.rl-taxis-subtag {
  font-size: 0.75rem;
  color: #92400e;
  font-weight: 600;
}

.rl-taxis-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.rl-taxis-info-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #15803d;
}

.rl-taxis-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.taxis-lista-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rl-taxis-footer {
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* =================================================================== */
/* TARJETA DE SITIO DE TAXIS EN DIRECTORIO Y FEED (LISTA DE CONTACTO)  */
/* =================================================================== */
.rl-taxi-feed-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #fde68a;
  box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.12), 0 2px 5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rl-taxi-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.2);
}

.taxi-feed-top-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde68a;
}

.taxi-feed-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
  flex-shrink: 0;
}

.taxi-feed-emoji {
  font-size: 1.5rem;
  line-height: 1;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.taxi-feed-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.badge-taxi-sitio {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #d97706;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 8px;
  display: inline-block;
  align-self: flex-start;
}

.taxi-feed-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taxi-feed-distancia {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Lista ordenada de contactos y comunicación */
.taxi-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.taxi-feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

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

.taxi-feed-row-data {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.taxi-feed-label {
  font-size: 0.63rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.taxi-feed-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.taxi-feed-value-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: color 0.15s ease;
}

.taxi-feed-value-link:hover .taxi-feed-value {
  color: var(--primary, #ff6b35);
}

/* 1 y 2: Botones de Acción Luminosos en los Iconos */
.taxi-feed-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.taxi-feed-action-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.taxi-feed-action-btn:active {
  transform: scale(0.95);
}

/* Teléfono: Botón Azul con Iluminación Pulsante */
.taxi-feed-btn-tel {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: 1px solid #60a5fa;
  animation: taxiGlowPulseBlue 2.2s infinite ease-in-out;
}

@keyframes taxiGlowPulseBlue {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6), 0 2px 8px rgba(37, 99, 235, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0), 0 4px 14px rgba(37, 99, 235, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6), 0 2px 8px rgba(37, 99, 235, 0.35);
  }
}

/* WhatsApp: Botón Verde con Iluminación Pulsante */
.taxi-feed-btn-wa {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff !important;
  border: 1px solid #86efac;
  animation: taxiGlowPulseGreen 2.2s infinite ease-in-out;
}

@keyframes taxiGlowPulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65), 0 2px 8px rgba(34, 197, 94, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0), 0 4px 14px rgba(34, 197, 94, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65), 0 2px 8px rgba(34, 197, 94, 0.35);
  }
}

/* 3. Horario: Icono con Luz Verde Activa */
.taxi-feed-clock-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  background: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #86efac;
  animation: taxiGlowClockGreen 2.5s infinite ease-in-out;
}

@keyframes taxiGlowClockGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5), inset 0 0 4px rgba(34, 197, 94, 0.2);
    border-color: #86efac;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0), inset 0 0 8px rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5), inset 0 0 4px rgba(34, 197, 94, 0.2);
    border-color: #86efac;
  }
}

.taxi-clock-glow-ring {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #16a34a;
  animation: live-dot-glow 1.5s infinite ease-in-out;
}

@keyframes live-dot-glow {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* 4. Footer de Tarjeta de Taxi con Botón Estilizado hacia la Ficha */
.taxi-feed-card-footer {
  padding: 10px 14px 12px;
  background: #fafaf9;
  border-top: 1px solid #f1f5f9;
}

.btn-taxi-ver-ficha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-taxi-ver-ficha i.ph-identification-card {
  font-size: 1.15rem;
  color: var(--primary, #ff6b35);
  margin-right: 0;
}

.btn-taxi-ver-ficha .btn-arrow-icon {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-left: auto;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-right: 0;
}

.btn-taxi-ver-ficha:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary, #ff6b35);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-taxi-ver-ficha:hover .btn-arrow-icon {
  transform: translateX(3px);
  color: var(--primary, #ff6b35);
}

/* =================================================================== */
/* FICHA ESPECIAL PARA SITIO DE TAXIS (MICROSITIO)                     */
/* =================================================================== */
.micrositio-taxi-directorio-card {
  margin: 0.85rem 0.85rem 1rem;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #fde68a;
  box-shadow: 0 6px 20px -4px rgba(245, 158, 11, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.taxi-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1.5px solid #fde68a;
}

.taxi-avatar-color-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.taxi-icon-large {
  font-size: 2.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.taxi-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.taxi-pill-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #d97706;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
}

.taxi-title-sitio {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.25;
}

.taxi-live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #15803d;
}

.live-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-dot 2s infinite;
}

/* Lista ordenada de contactos y comunicación */
.taxi-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.taxi-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.taxi-list-item:last-child {
  border-bottom: none;
}

.taxi-item-icon-col {
  flex-shrink: 0;
}

.taxi-item-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.taxi-item-badge.bg-tel {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.taxi-item-badge.bg-wa {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.taxi-item-badge.bg-clock {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.taxi-item-data-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.taxi-item-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.taxi-item-value {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
  word-break: break-word;
}

.taxi-item-action-col {
  flex-shrink: 0;
}

.btn-taxi-llamar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.btn-taxi-llamar:hover, .btn-taxi-llamar:active {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-taxi-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  background: var(--secondary);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(46, 196, 182, 0.25);
  transition: all 0.15s ease;
}

.btn-taxi-whatsapp:hover, .btn-taxi-whatsapp:active {
  background: #26a99d;
  color: #ffffff;
  transform: translateY(-1px);
}

.badge-taxi-horario-live {
  display: inline-block;
  padding: 6px 12px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 480px) {
  .taxi-list-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
  }
  .taxi-item-action-col {
    width: 100%;
    margin-top: 4px;
  }
  .btn-taxi-llamar, .btn-taxi-whatsapp {
    width: 100%;
    text-align: center;
  }
}

/* Tarjetas de Sección en el Micrositio */
.micrositio-section-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  margin: 0.75rem 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.micrositio-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.micrositio-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.micrositio-section-icon {
  font-size: 1.2rem;
}

.micrositio-section-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0b2e59;
  margin: 0;
}

.micrositio-section-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.2rem 0 0.85rem;
}

/* Grid de Información y Atención */
.micrositio-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.micrositio-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.micrositio-info-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-pin {
  background-color: #eff6ff;
  color: #1d63b8;
}

.icon-clock {
  background-color: #fefce8;
  color: #ca8a04;
}

.icon-wa {
  background-color: #ecfdf5;
  color: #059669;
}

.micrositio-info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.micrositio-info-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0.1rem 0 0;
}

/* Cuadrícula de Galería de Productos del Micrositio */
.micrositio-galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.micrositio-producto-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.micrositio-producto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.micrositio-producto-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f1f5f9;
  overflow: hidden;
}

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

.micrositio-producto-body {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 0.45rem;
}

.micrositio-producto-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.micrositio-producto-ask-wa {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.micrositio-producto-ask-wa:hover {
  color: #047857;
  text-decoration: underline;
}

/* Ofertas en el Micrositio */
.micrositio-ofertas-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.micrositio-oferta-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.micrositio-oferta-banner {
  width: 100%;
  height: 140px;
  position: relative;
  background-color: #0f172a;
}

.micrositio-oferta-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.micrositio-oferta-caducidad-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.micrositio-oferta-body {
  padding: 0.85rem;
}

.micrositio-oferta-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0b2e59;
  margin: 0 0 0.35rem;
}

.micrositio-oferta-desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #475569;
  margin: 0 0 0.75rem;
}

.micrositio-oferta-footer {
  display: flex;
  justify-content: flex-end;
}

.micrositio-empty-card {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #64748b;
  font-size: 0.82rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.micrositio-empty-card .empty-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.35rem;
}

/* Footer del Micrositio */
.micrositio-footer {
  text-align: center;
  padding: 2rem 1rem calc(90px + env(safe-area-inset-bottom, 0px)) 1rem;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  color: #94a3b8;
  font-size: 0.78rem;
  box-sizing: border-box;
}

.micrositio-footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 auto 0.75rem auto;
  max-width: 480px;
  padding: 0 8px;
}

.micrositio-footer-text {
  margin-bottom: 0.65rem;
}

/* Botón Flotante Permanente de WhatsApp */
.micrositio-floating-wrap {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
}

.micrositio-floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--secondary);
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(46, 196, 182, 0.45);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  animation: rl-pulse-wa 2.5s infinite;
}

.micrositio-floating-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(46, 196, 182, 0.55);
  background-color: #26a99d;
  color: #ffffff;
}

@keyframes rl-pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(46, 196, 182, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 196, 182, 0);
  }
}

@media (max-width: 360px) {
  .micrositio-floating-btn .floating-text {
    display: none;
  }
  .micrositio-floating-btn {
    padding: 0.75rem;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
}

/* ========================================================================== */
/* PWA MOBILE APP EXPERIENCE & NATIVE POLISH                                  */
/* ========================================================================== */

/* Comportamiento fluido tipo app nativa en dispositivos móviles */
html, body {
  -webkit-tap-highlight-color: transparent;
}

/* Soporte para Safe Area (iPhone X / Dynamic Island / Barra inferior) */
body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.micrositio-floating-wrap {
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
}

/* Banner Flotante de Instalación PWA */
.pwa-install-banner {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 1000;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pwaSlideUp {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.pwa-banner-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-banner-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0b2e59;
  line-height: 1.2;
}

.pwa-banner-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-pwa-install-action {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-pwa-install-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

.btn-pwa-dismiss-action {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 0.95rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.btn-pwa-dismiss-action:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Botón de instalación en la barra superior o en el Drawer */
.btn-instalar-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(8px);
}

.btn-instalar-app-pill:hover {
  background-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* Cuando ya está corriendo instalada en modo Standalone (App) */
@media all and (display-mode: standalone) {
  .pwa-install-banner,
  .btn-instalar-app-pill {
    display: none !important;
  }
}

/* Notificación Flotante de Actualización PWA Disponible */
.pwa-update-toast {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  z-index: 9999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.pwa-update-toast.pwa-update-toast-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pwa-update-toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.pwa-update-icon-box {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.pwa-update-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pwa-update-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-update-desc {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.25;
}

.pwa-update-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-pwa-actualizar-action {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.btn-pwa-actualizar-action:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  transform: translateY(-1px);
}

.btn-pwa-close-toast {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.btn-pwa-close-toast:hover {
  color: #ffffff;
}

/* ========================================================================== */
/* PANTALLA DE AUTENTICACIÓN Y ROLES (LOGIN / SIGNUP)                        */
/* ========================================================================== */

/* Layout base moderno de autenticación */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-app, #F9FAFB);
  background-image: radial-gradient(circle at 50% 8%, rgba(255, 107, 53, 0.08) 0%, transparent 60%);
  padding: 24px 16px;
  box-sizing: border-box;
  font-family: var(--font-main, 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--text-main, #1F2937);
}

.auth-container {
  background-color: var(--bg-card, #FFFFFF);
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(229, 231, 235, 0.85);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  animation: authCardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 1. Cabecera y Bienvenida */
.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.14) 0%, rgba(255, 107, 53, 0.04) 100%);
  border: 1.5px solid rgba(255, 107, 53, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary, #FF6B35);
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.12);
}

.auth-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main, #1F2937);
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted, #6B7280);
  margin: 0;
  line-height: 1.4;
}

/* 2. Pestañas de Navegación (Tabs) */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #F1F5F9;
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
}

.auth-tab {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  outline: none;
}

.auth-tab:hover:not(.active) {
  color: #1E293B;
}

.auth-tab.active {
  background-color: #FFFFFF;
  color: var(--primary, #FF6B35);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* 3. Contenedor de Formularios */
.auth-forms-wrapper {
  position: relative;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  animation: formFadeIn 0.25s ease-out;
}

.auth-form[hidden] {
  display: none !important;
}

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

/* Grupos de Entradas con Iconos */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-group > i.ph {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #94A3B8;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1E293B;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-group input:hover,
.input-group select:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
}

.input-group input:focus,
.input-group select:focus {
  background-color: #FFFFFF;
  border-color: var(--primary, #FF6B35);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
}

.input-group:focus-within > i.ph {
  color: var(--primary, #FF6B35);
}

.input-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20256%20256%27%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27%2394A3B8%27%3E%3Cpath%20d%3D%27M213.66%2C101.66l-80%2C80a8%2C8%2C0%2C0%2C1-11.32%2C0l-80-80A8%2C8%2C0%2C0%2C1%2C48%2C88H208a8%2C8%2C0%2C0%2C1%2C5.66%2C13.66Z%27%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.input-group .btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.2rem;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.input-group .btn-toggle-password:hover {
  color: #1E293B;
  transform: translateY(-50%) scale(1.08);
}

/* Opciones de Login */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted, #6B7280);
  margin: 2px 0 4px 0;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: #475569;
}

.remember-me input[type="checkbox"] {
  accent-color: var(--primary, #FF6B35);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.forgot-password {
  color: var(--primary, #FF6B35);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.forgot-password:hover {
  color: #E85926;
  text-decoration: underline;
}

/* Botón de Autenticación Principal */
.btn-primary.btn-auth {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #FF6B35 0%, #F55A20 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.btn-primary.btn-auth:hover {
  background: linear-gradient(135deg, #FF7A47 0%, #E8541D 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.42);
}

.btn-primary.btn-auth:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-primary.btn-auth:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Campos dinámicos para Locatarios / Negocios */
.signup-locatario-fields {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px;
  background: #FFFBF7;
  border: 1.5px dashed #FED7AA;
  border-radius: 14px;
  animation: formFadeIn 0.25s ease-out;
}

.auth-terms {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.45;
  margin: 2px 0;
}

.auth-terms .terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.auth-terms input[type="checkbox"] {
  accent-color: var(--primary, #FF6B35);
  margin-top: 2px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  cursor: pointer;
}

.auth-terms a.legal-link {
  color: var(--primary, #FF6B35);
  text-decoration: underline;
  font-weight: 600;
}

.terms-legal-note {
  display: block;
  font-size: 0.72rem;
  color: #B45309;
  background-color: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  line-height: 1.35;
}

/* Pie de Tarjeta y Enlace de Retorno */
.auth-footer {
  text-align: center;
  padding-top: 8px;
}

.auth-footer-disclaimer {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted, #6B7280);
  margin: 0 auto 0.85rem auto;
  max-width: 380px;
  padding: 0 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--primary, #FF6B35);
}

/* Accesos rápidos plegables */
.login-quick-roles-details {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 12px;
  background-color: #F8FAFC;
  transition: all 0.2s ease;
}

.login-quick-roles-details[open] {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
}

.quick-roles-summary {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-roles-summary:hover {
  color: var(--primary, #FF6B35);
}

.quick-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.btn-quick-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-role:hover {
  background-color: #FFF7ED;
  border-color: #FDBA74;
  color: #C2410C;
  transform: translateY(-1px);
}

/* Adaptación responsive */
@media (max-width: 480px) {
  .auth-page {
    padding: 16px 12px;
  }
  .auth-container {
    padding: 28px 18px;
    border-radius: 20px;
  }
  .auth-title {
    font-size: 1.4rem;
  }
}

/* Clases clásicas retrocompatibles */
.login-body {
  background-color: var(--bg-app);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  font-family: "Poppins", "Roboto", system-ui, sans-serif;
  color: var(--text-main);
}

.login-shell {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-brand-header {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.05);
}

.login-brand-logo-link {
  display: inline-block;
  max-width: 220px;
}

.login-brand-logo {
  width: 100%;
  height: auto;
  display: block;
}

.login-brand-tagline {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.login-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(31, 41, 55, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.login-tab-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-tab-btn.active {
  background-color: var(--bg-card);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.login-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-alert-error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: var(--alert);
}

.login-alert-success {
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.login-form-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form-pane[hidden] {
  display: none !important;
}

/* Password Toggle y Recuperación de Contraseña */
.form-group-password-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.35rem;
}

.btn-forgot-password-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0284c7;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.btn-forgot-password-link:hover {
  color: #0369a1;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap .text-input {
  width: 100%;
  padding-right: 42px !important;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px 6px;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  color: #64748b;
  border-radius: 6px;
  user-select: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-toggle-password:hover {
  opacity: 0.8;
  transform: translateY(-50%) scale(1.08);
}

/* Modal de Recuperación de Contraseña */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.login-modal[hidden] {
  display: none !important;
}

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
  animation: fadeInBackdrop 0.2s ease-out;
}

.login-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.12);
  overflow: hidden;
  animation: scaleInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
}

.login-modal-header {
  background: linear-gradient(135deg, #0b1528 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #38bdf8;
}

.login-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.login-modal-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.login-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  font-family: inherit;
}

.login-modal-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  display: block;
}

.login-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.login-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.login-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
}

.login-modal-instructions {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.login-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.select-rol {
  appearance: auto;
  cursor: pointer;
  font-weight: 600;
}

/* Sección de Acceso Rápido por Rol */
.login-quick-roles-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.quick-roles-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-roles-divider::before,
.quick-roles-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.quick-roles-divider span {
  padding: 0 0.75rem;
}

.quick-roles-desc {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin: 0;
}

.quick-roles-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-quick-role {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-quick-role:hover {
  background-color: #f0fdf4;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.btn-quick-role .role-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.btn-quick-role .role-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.btn-quick-role .role-info strong {
  font-size: 0.88rem;
  color: #0f172a;
}

.btn-quick-role .role-info small {
  font-size: 0.72rem;
  color: #64748b;
}

.btn-quick-role .role-arrow {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 700;
}

.btn-role-superadmin:hover {
  background-color: #faf5ff;
  border-color: #d8b4fe;
}

.btn-role-locatario:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
}

.btn-role-franquicia:hover {
  background-color: #fffbeb;
  border-color: #fcd34d;
}

/* Aviso Amigable de Cero Fricción en Login */
.login-free-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.login-free-notice .notice-icon {
  font-size: 1.15rem;
  line-height: 1.2;
}

.login-free-notice .notice-content {
  font-size: 0.78rem;
  color: #166534;
  line-height: 1.35;
}

.login-free-notice strong {
  color: #0f172a;
}

/* Clasificador de Perfil con Tarjetas Visuales */
.form-label-bold {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.signup-role-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .signup-role-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.signup-role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.95rem;
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.signup-role-card input[type="radio"] {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  accent-color: #0284c7;
  transform: scale(1.15);
  cursor: pointer;
}

.signup-role-card:hover {
  background-color: #f0f9ff;
  border-color: #bae6fd;
}

.signup-role-card.active {
  background-color: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.role-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.role-card-icon {
  font-size: 1.3rem;
}

.role-card-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 2px 7px;
  border-radius: 12px;
}

.role-card-pill.pill-comercio {
  background-color: #fef3c7;
  color: #b45309;
}

.role-card-title {
  font-size: 0.88rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.role-card-desc {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
  margin: 0;
}

.signup-locatario-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.signup-locatario-fields[hidden] {
  display: none !important;
}

/* Casilla de Verificación Legal (Clickwrap / Firma Electrónica) */
.signup-terms-group {
  margin: 0.5rem 0 0.25rem;
  padding: 0.85rem 1rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
}

.signup-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
  user-select: none;
}

.signup-terms-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: #0284c7;
  cursor: pointer;
}

.signup-terms-label a.legal-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-terms-label a.legal-link:hover {
  color: #0369a1;
}

.terms-legal-note {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.45;
  padding: 6px 8px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}

/* Detalles plegables para accesos de prueba */
.login-quick-roles-details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.4rem 0.75rem;
  background-color: #fafafa;
}

.quick-roles-summary {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.quick-roles-summary:hover {
  color: #0284c7;
}

.login-card-footer {
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.login-back-link {
  color: #0284c7;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.login-back-link:hover {
  text-decoration: underline;
}

/* ========================================================================== */
/* BOTONES Y BADGES DE SESIÓN Y LOGOUT GLOBALES                               */
/* ========================================================================== */

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-logout:hover {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #f87171 !important;
  transform: translateY(-1px);
}

/* Tarjeta de Usuario en Drawer */
.drawer-user-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.drawer-user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drawer-user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  width: fit-content;
}

.btn-drawer-logout {
  width: 100%;
  padding: 0.4rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #dc2626;
  background-color: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-drawer-logout:hover {
  background-color: #fee2e2;
  border-color: #f87171;
}

.btn-drawer-login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  transition: all 0.15s ease;
  margin-bottom: 0.5rem;
}

.btn-drawer-login-link:hover {
  transform: translateY(-1px);
  background: #e85926;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}

/* ========================================================================== */
/* MODAL DE AVISOS Y NOTIFICACIONES DE LA COMUNIDAD (Campana de Avisos)       */
/* ========================================================================== */

.rl-avisos-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.rl-avisos-modal[hidden] {
  display: none !important;
}

.rl-avisos-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2501;
}

.rl-avisos-dialog {
  position: relative;
  z-index: 2502;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  background-color: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popInAvisos 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes popInAvisos {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.rl-avisos-header {
  background: linear-gradient(135deg, #0b2e59 0%, #1e40af 100%);
  color: #ffffff;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rl-avisos-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rl-avisos-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-avisos-bell-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.rl-avisos-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  line-height: 1.25;
}

.rl-avisos-colonia-tag {
  font-size: 0.76rem;
  color: #fbbf24;
  font-weight: 700;
}

.rl-avisos-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.rl-avisos-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.rl-avisos-body {
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  -webkit-overflow-scrolling: touch;
  max-height: calc(85vh - 130px);
}

.rl-avisos-status-banner {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rl-avisos-status-banner.status-suspendido {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.rl-status-dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.7);
}

.rl-avisos-status-banner.status-suspendido .rl-status-dot-active {
  background-color: #dc2626;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.7);
}

.rl-avisos-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rl-aviso-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.rl-aviso-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.rl-aviso-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.rl-aviso-icon-wrap.bg-blue {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
}

.rl-aviso-icon-wrap.bg-orange {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
}

.rl-aviso-icon-wrap.bg-green {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.rl-aviso-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.rl-aviso-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rl-aviso-titulo {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.rl-aviso-time {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2563eb;
  background-color: #dbeafe;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.rl-aviso-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

.btn-aviso-action {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.rl-avisos-footer {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  gap: 0.5rem;
}

.rl-notification-badge.badge-leido {
  display: none !important;
}

/* ==========================================================================
   MODAL DE ANUNCIOS DE LA COMUNIDAD EN CUADRÍCULA (VISTA POPUP AL DAR CLIC)
   ========================================================================== */

.rl-anuncios-grid-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.rl-anuncios-grid-modal[hidden] {
  display: none !important;
}

.rl-anuncios-grid-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2501;
}

.rl-anuncios-grid-dialog {
  position: relative;
  z-index: 2502;
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  background-color: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popInAvisos 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.rl-anuncios-grid-header {
  background: linear-gradient(135deg, #090e1a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #334155;
}

.rl-anuncios-grid-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rl-anuncios-grid-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-grid-title-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.rl-anuncios-grid-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.rl-anuncios-grid-subtag {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.rl-anuncios-grid-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.rl-anuncios-grid-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.rl-anuncios-grid-info-bar {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rl-anuncios-grid-body {
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(88vh - 150px);
  background-color: #f1f5f9;
}

.anuncios-cuadricula-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.anuncio-card-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.anuncio-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #94a3b8;
}

.anuncio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.anuncio-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-alerta {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-vial {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-comunidad {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-compraventa {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-comercio {
  background-color: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-servicios {
  background-color: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.badge-transporte {
  background-color: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.badge-salud {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.anuncio-time-tag {
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.anuncio-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.anuncio-card-text {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.anuncio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #e2e8f0;
  margin-top: auto;
}

.anuncio-loc-tag {
  font-size: 0.66rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.btn-anuncio-action {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-anuncio-action:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.rl-anuncios-grid-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .anuncios-cuadricula-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NUEVO SISTEMA VISUAL: VENTANAS EMERGENTES (MODALES PERSUASIVOS)
   ========================================================================== */

/* 1. Overlay (Fondo) y Animación del Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background-color: rgba(17, 24, 39, 0.4); /* Fondo oscuro transparente */
  backdrop-filter: blur(4px); /* Efecto cristal */
  -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: center; padding: 20px;
  z-index: 1000;
  opacity: 0; animation: fadeIn 0.2s forwards;
  box-sizing: border-box;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-backdrop-clickable {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.modal-container {
  background-color: var(--bg-card);
  width: 100%; max-width: 400px;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.95); animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes scaleUp { to { transform: scale(1); } }

/* 2. Cabecera del Modal (Icono y Título) */
.modal-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.modal-icon-circle { 
  width: 64px; height: 64px; border-radius: 50%; 
  background-color: rgba(255, 107, 53, 0.1); /* Primary con opacidad */
  color: var(--primary); font-size: 32px;
  display: flex; justify-content: center; align-items: center; margin-bottom: 12px;
}
.modal-header h2 { font-size: 1.25rem; font-weight: 800; color: var(--text-main); margin: 0; line-height: 1.3; }
.modal-header p { font-size: 0.875rem; color: var(--text-muted); margin-top: 8px; margin-bottom: 0; }

/* 3. Viñetas de Beneficios (Sustituyendo el texto largo) */
.modal-benefits { list-style: none; padding: 0; margin: 0 0 24px 0; display: flex; flex-direction: column; gap: 16px; }
.modal-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.modal-benefits i { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.modal-benefits strong { display: block; font-size: 0.95rem; color: var(--text-main); font-weight: 700; margin-bottom: 2px; }
.modal-benefits span { display: block; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* 4. Botones de Acción (CTAs) */
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.modal-actions .btn-primary { 
  display: flex; justify-content: center; align-items: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: 12px;
  background-color: var(--primary); color: #fff; 
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer; text-decoration: none;
}
.modal-actions .btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.btn-secondary {
  display: flex; justify-content: center; align-items: center;
  width: 100%; padding: 12px;
  background-color: transparent; color: var(--text-muted);
  font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; text-decoration: none;
}
.modal-actions .btn-secondary:hover,
.btn-secondary:hover:not(:disabled) {
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}

/* ==========================================================================
   POP-UP: REGISTRO REQUERIDO PARA PUBLICAR AVISOS VECINALES (MODERACIÓN)
   ========================================================================== */

.rl-aviso-registro-modal {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.rl-aviso-registro-modal[hidden] {
  display: none !important;
}

.rl-aviso-registro-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  animation: fadeInBackdrop 0.2s ease-out;
}

.rl-aviso-registro-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.12);
  z-index: 2;
  display: flex;
  flex-direction: column;
  animation: popInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes popInModal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rl-registro-modal-header {
  position: relative;
  background: linear-gradient(135deg, #071e3d 0%, #0b3b70 55%, #0284c7 100%);
  padding: 26px 20px 20px;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.rl-registro-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rl-registro-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.rl-registro-modal-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 12px;
}

.rl-registro-icon-main {
  font-size: 2.3rem;
  background: rgba(255, 255, 255, 0.16);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.rl-registro-icon-shield {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 1.15rem;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.rl-registro-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.rl-registro-modal-subtitle {
  font-size: 0.8rem;
  color: #bae6fd;
  margin: 0;
  line-height: 1.35;
}

.rl-registro-modal-body {
  padding: 20px 18px;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.rl-registro-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.rl-info-card-moderation {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left: 4px solid #16a34a;
}

.rl-info-card-commercial-alert {
  background: #fffbeb;
  border-color: #fde68a;
  border-left: 4px solid #f59e0b;
}

.rl-info-card-commercial-alert .rl-info-card-text strong {
  color: #b45309;
}

.rl-info-card-commercial-alert .rl-info-card-text p {
  color: #92400e;
}

.rl-comercial-modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #78350f 100%) !important;
  border-bottom: 2px solid #f59e0b !important;
}

.rl-commercial-live-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  animation: fadeInBackdrop 0.2s ease-out;
}

.rl-commercial-live-warning[hidden] {
  display: none !important;
}

.rl-commercial-warning-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.rl-commercial-warning-text {
  font-size: 0.74rem;
  line-height: 1.35;
  color: #92400e;
}

.rl-commercial-warning-text strong {
  display: block;
  font-size: 0.77rem;
  color: #b45309;
}

.rl-info-card-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.rl-info-card-text {
  flex: 1;
}

.rl-info-card-text strong {
  display: block;
  font-size: 0.84rem;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.25;
}

.rl-info-card-moderation .rl-info-card-text strong {
  color: #166534;
}

.rl-info-card-text p {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

.rl-info-card-moderation .rl-info-card-text p {
  color: #15803d;
}

.rl-registro-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.rl-btn-action-signup {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  text-decoration: none !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  cursor: pointer !important;
}

.rl-btn-action-signup:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
}

.rl-btn-action-login {
  background: #ffffff !important;
  color: #0b2e59 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  text-decoration: none !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
  cursor: pointer !important;
}

.rl-btn-action-login:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.rl-registro-modal-footer-note {
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   MODAL DE DETALLE DE AVISO VECINAL (REEMPLAZO DE ALERT CON MARCA DINÁMICA)
   ========================================================================== */

.rl-aviso-detalle-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.rl-aviso-detalle-modal[hidden] {
  display: none !important;
}

.rl-aviso-detalle-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  animation: fadeInBackdrop 0.2s ease-out;
}

.rl-aviso-detalle-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.12);
  overflow: hidden;
  animation: scaleInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
}

.rl-aviso-detalle-header {
  background: linear-gradient(135deg, #0b1528 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #38bdf8;
}

.rl-aviso-detalle-brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rl-aviso-detalle-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.rl-aviso-detalle-brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-aviso-detalle-brand-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  display: block;
}

.rl-aviso-detalle-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.rl-aviso-detalle-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.rl-aviso-detalle-body {
  padding: 18px 20px;
  background: #f8fafc;
}

.rl-aviso-detalle-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.rl-aviso-detalle-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1e293b;
  font-weight: 500;
  word-break: break-word;
}

.rl-aviso-detalle-footer {
  padding: 12px 20px 18px;
  background: #f8fafc;
}

.rl-aviso-detalle-btn-ok {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.rl-aviso-detalle-btn-ok:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
}

/* ==========================================================================
   PANEL LOCATARIO: NAVEGACIÓN LATERAL (DRAWER) Y VISTAS AISLADAS
   ========================================================================== */

.panel-nav-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}

.panel-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  gap: 0.75rem;
}

.panel-nav-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.btn-panel-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-panel-menu-trigger:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.panel-active-view-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.panel-desktop-tabs {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .panel-desktop-tabs {
    display: flex;
  }
}

.panel-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.panel-tab-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.panel-tab-btn.active {
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
}

.panel-tab-badge {
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.08);
}

.panel-tab-btn.active .panel-tab-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Drawer Lateral Desplegable */
.panel-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  visibility: visible;
  transition: visibility 0.25s ease;
}

.panel-drawer[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.panel-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.25s ease;
}

.panel-drawer-panel {
  position: relative;
  width: 86%;
  max-width: 340px;
  height: 100%;
  background-color: var(--bg-card);
  box-shadow: 4px 0 24px rgba(31, 41, 55, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 101;
}

.panel-drawer[hidden] .panel-drawer-panel {
  transform: translateX(-100%);
}

.panel-drawer-header {
  padding: 1.15rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.drawer-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.drawer-business-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.drawer-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-business-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.drawer-business-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-drawer-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.drawer-locatario-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #e2e8f0;
  margin-top: 0.75rem;
}

.drawer-locatario-badge strong {
  color: #38bdf8;
}

.panel-drawer-nav {
  padding: 0.85rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.panel-drawer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.panel-drawer-item:hover {
  background-color: #f8fafc;
}

.panel-drawer-item.active {
  background-color: #e0f2fe;
  color: #0369a1;
}

.drawer-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.drawer-item-text {
  flex: 1;
  min-width: 0;
}

.drawer-item-text strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.25;
}

.panel-drawer-item.active .drawer-item-text strong {
  color: #0369a1;
}

.drawer-item-text small {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.2;
}

.drawer-credit-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background-color: #e2e8f0;
  color: #334155;
  white-space: nowrap;
}

.panel-drawer-item.active .drawer-credit-pill {
  background-color: #0284c7;
  color: #ffffff;
}

.drawer-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0.5rem 0.85rem;
}

.panel-drawer-secondary-links {
  padding: 0.65rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drawer-secondary-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: #475569;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.drawer-secondary-link:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.btn-drawer-logout-red {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #fee2e2;
  background-color: #fef2f2;
  color: #dc2626;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  margin-top: 0.25rem;
}

.btn-drawer-logout-red:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
}

/* Vistas aisladas: una sola sección visible a la vez */
.panel-view-section {
  animation: fadeInPanel 0.2s ease;
}

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

/* ==========================================================================
   MINI BOTONES Y GRID DE SLOTS COMPACTOS PARA OFERTAS (HASTA 10 IMÁGENES)
   ========================================================================== */

.slot-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
  margin-bottom: 0.75rem;
}

.slot-thumb-btn {
  aspect-ratio: 1 / 1;
  position: relative;
  background-color: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  overflow: hidden;
}

.slot-thumb-btn:hover {
  border-color: #0284c7;
  background-color: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.slot-thumb-btn.has-image {
  border-style: solid;
  border-color: #10b981;
  background-color: #ffffff;
  padding: 0;
}

.slot-thumb-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  background-color: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  line-height: 1.1;
  z-index: 2;
}

.slot-thumb-btn.has-image .slot-thumb-badge {
  background-color: #10b981;
}

.slot-thumb-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.slot-thumb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #64748b;
  text-align: center;
  user-select: none;
}

.slot-thumb-empty .slot-empty-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.slot-thumb-empty .slot-empty-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
}

/* ==========================================================================
   MODAL DE CAPTURA / ASIGNACIÓN DE FOTO PARA SLOT
   ========================================================================== */

.slot-captura-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.slot-captura-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slot-captura-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 111;
  animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.slot-captura-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.slot-captura-title-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slot-captura-icon {
  font-size: 1.2rem;
}

.slot-captura-title-box h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.btn-slot-modal-cerrar {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-slot-modal-cerrar:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

.slot-captura-body {
  padding: 1rem 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slot-modal-preview-box {
  width: 100%;
  height: 160px;
  background-color: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
}

.slot-modal-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #64748b;
  text-align: center;
  padding: 1rem;
}

.slot-modal-placeholder .placeholder-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.slot-modal-placeholder p {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

.slot-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slot-modal-option-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slot-modal-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.slot-modal-label .opt-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.slot-modal-label .opt-desc {
  font-size: 0.74rem;
  color: #64748b;
}

.modal-galeria-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 0.4rem;
  max-height: 130px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.btn-modal-picker-item {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background-color: #e2e8f0;
  transition: all 0.15s ease;
}

.btn-modal-picker-item:hover {
  border-color: #0284c7;
  transform: scale(1.05);
}

.btn-modal-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-modal-samples-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-slot-sample-chip {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-slot-sample-chip:hover {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.slot-modal-url-row {
  display: flex;
  gap: 0.4rem;
}

.slot-captura-footer {
  padding: 0.75rem 1.15rem;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ==========================================================================
   WIDGET DESTACADO: CONTADOR DE ALCANCE Y AUDIENCIA (GANCHO COMERCIAL)
   ========================================================================== */

.panel-reach-hook-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  position: relative;
  overflow: hidden;
}

.panel-reach-hook-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.reach-hook-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.reach-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.reach-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  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);
  }
}

.reach-colonia-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0369a1;
  background-color: #e0f2fe;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.reach-stat-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.reach-digits-box {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  line-height: 1;
}

.reach-number {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.reach-plus-sign {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0284c7;
}

.reach-digits-caption {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reach-digits-caption strong {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 800;
}

.reach-digits-caption span {
  font-size: 0.78rem;
  color: #64748b;
}

.reach-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.reach-kpi-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.reach-kpi-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.reach-kpi-data {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.reach-kpi-data strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.reach-kpi-data small {
  font-size: 0.7rem;
  color: #64748b;
}

.reach-hook-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #bae6fd;
  flex-wrap: wrap;
}

.reach-hook-quote {
  font-size: 0.8rem;
  color: #334155;
  margin: 0;
  flex: 1;
  min-width: 220px;
}

.reach-mini-hook {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.reach-mini-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.reach-mini-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.reach-mini-text strong {
  font-size: 0.84rem;
  color: #14532d;
}

.reach-mini-text span {
  font-size: 0.74rem;
  color: #166534;
  line-height: 1.3;
}

.drawer-reach-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-top: 0.45rem;
}

.drawer-reach-badge strong {
  color: #15803d;
}

/* Banner de captación de locatarios en el Inicio */
.rl-community-audience-banner {
  margin: 1.5rem 0;
  padding: 0 0.5rem;
}

.audience-banner-inner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.audience-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: #38bdf8;
  margin-bottom: 0.4rem;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38bdf8;
  animation: pulseGreen 1.8s infinite;
}

.audience-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.audience-title strong {
  color: #38bdf8;
}

.audience-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
  max-width: 520px;
  line-height: 1.4;
}

.audience-banner-cta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-audience-action {
  white-space: nowrap;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.audience-cta-note {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}

/* ==========================================================================
   PERIFONEO LOCAL DE OFERTAS (AUDIO SINTETIZADO Y ANUNCIOS EN VIVO)
   ========================================================================== */

.rl-perifoneo-bar {
  margin: 4px 16px 2px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rl-perifoneo-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  width: 100%;
}

.rl-btn-perifoneo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  margin: 0 auto;
}

.rl-btn-perifoneo:hover {
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary);
  transform: translateY(-1px);
}

.rl-btn-perifoneo.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.perifoneo-icon-box {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.rl-btn-perifoneo.active .perifoneo-icon-box {
  color: #ffffff;
  animation: megaphoneShake 0.6s infinite alternate ease-in-out;
}

@keyframes megaphoneShake {
  0% { transform: rotate(-8deg) scale(1); }
  100% { transform: rotate(12deg) scale(1.15); }
}

.perifoneo-live-tag {
  background-color: rgba(0, 0, 0, 0.25);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.perifoneo-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 170px;
  background-color: #ffffff;
  border: 1px solid #fef08a;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
}

.perifoneo-soundwaves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  flex-shrink: 0;
}

.wave-bar {
  width: 3.5px;
  background-color: #d97706;
  border-radius: 2px;
  animation: soundwave 0.8s infinite ease-in-out alternate;
}

.wave-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.wave-bar:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.wave-bar:nth-child(4) { height: 18px; animation-delay: 0.1s; }

@keyframes soundwave {
  0% { height: 4px; }
  100% { height: 18px; }
}

.perifoneo-soundwaves.paused .wave-bar {
  animation-play-state: paused;
}

.perifoneo-ticker-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.perifoneo-ticker-text strong {
  font-size: 0.82rem;
  color: #92400e;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perifoneo-ticker-text span {
  font-size: 0.72rem;
  color: #78350f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perifoneo-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.btn-perifoneo-ctrl {
  background-color: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-perifoneo-ctrl:hover {
  background-color: #fef3c7;
  transform: scale(1.08);
}

.btn-perifoneo-play {
  font-size: 0.95rem;
  background-color: #fef08a;
  border-color: #facc15;
}

.btn-perifoneo-stop:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
}

/* Resaltado dinámico para la tarjeta de oferta en perifoneo activo */
.rl-oferta-card.oferta-perifoneada-activa {
  box-shadow: 0 0 0 3px #f59e0b, 0 8px 20px rgba(245, 158, 11, 0.3) !important;
  transform: translateY(-4px) scale(1.02);
  transition: all 0.25s ease;
}

/* ==========================================================================
   1. BOTÓN Y MODAL DE SOLICITAR CITA PREVIA (MICROSITIO COMERCIO)
   ========================================================================== */

.btn-cita-accion {
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f0fdf4 !important;
  color: #166534 !important;
  border: 1.5px solid #86efac !important;
  font-weight: 700 !important;
  border-radius: 10px;
}

.btn-cita-accion[hidden] {
  display: none !important;
}

.btn-cita-accion:hover {
  background-color: #dcfce7 !important;
  border-color: #22c55e !important;
  transform: translateY(-1px);
}

.micrositio-cita-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  margin: 0 16px 12px 16px;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.micrositio-cita-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.1);
  border-color: #4ade80;
}

.cita-banner-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.btn-cita-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
  transition: all 0.15s ease;
}

.btn-cita-cta:hover {
  background: #15803d;
  transform: translateY(-1px);
}

/* Modal de Solicitar Cita Previa */
.rl-cita-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}

.rl-cita-modal[hidden] {
  display: none !important;
}

.rl-cita-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.rl-cita-dialog {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: popInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popInModal {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.rl-cita-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
}

.rl-cita-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cita-header-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.rl-cita-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.rl-cita-subtitle {
  font-size: 0.76rem;
  opacity: 0.9;
  display: block;
}

.rl-cita-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
}

.rl-cita-close-btn:hover {
  opacity: 1;
}

.rl-cita-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cita-form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.textarea-cita {
  resize: vertical;
  min-height: 60px;
}

.btn-send-cita-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16a34a !important;
  color: #ffffff !important;
  font-weight: 700;
}

.btn-send-cita-wa:hover {
  background: #15803d !important;
}

/* ==========================================================================
   2. MÓDULO INTELIGENTE DE AFLUENCIA Y RENOVACIÓN (PANEL LOCATARIO)
   ========================================================================== */

.panel-smart-renewal-card {
  border-left: 4px solid #0284c7;
  background-color: #ffffff;
  margin-bottom: 1.5rem;
}

.renewal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 10px;
  flex-wrap: wrap;
}

.renewal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.renewal-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.renewal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b2e59;
}

.renewal-sub {
  margin: 2px 0 0 0;
  font-size: 0.76rem;
  color: #64748b;
}

.renewal-badge-positive {
  font-size: 0.72rem;
  font-weight: 800;
  color: #166534;
  background-color: #dcfce7;
  border: 1px solid #86efac;
  padding: 4px 10px;
  border-radius: 20px;
}

.renewal-badge-neutral {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 20px;
}

.renewal-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}

.renewal-metric-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}

.metric-big-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0284c7;
  line-height: 1.1;
}

.metric-caption {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
  display: block;
  line-height: 1.25;
}

.renewal-smart-msg-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  padding: 1rem;
}

.smart-msg-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369a1;
  margin-bottom: 6px;
}

.smart-msg-text {
  font-size: 0.86rem;
  font-style: italic;
  color: #0f172a;
  background: #ffffff;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border-left: 3px solid #0284c7;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.smart-msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-renewal-wa {
  font-weight: 700;
  text-decoration: none;
}

.renewal-low-box {
  background-color: #fefce8;
  border: 1.5px dashed #facc15;
  border-radius: 14px;
  padding: 1rem;
}

.low-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #854d0e;
  margin-bottom: 6px;
}

.low-text {
  font-size: 0.84rem;
  color: #713f12;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.low-tip {
  font-size: 0.76rem;
  color: #854d0e;
  margin: 0 0 10px 0;
}

/* Configuración de Módulo de Citas en Panel Locatario */
.panel-citas-config-card {
  border-left: 4px solid #16a34a;
  background-color: #ffffff;
  margin-bottom: 1.5rem;
}

.citas-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 10px;
  flex-wrap: wrap;
}

.citas-config-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.citas-config-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.citas-config-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b2e59;
}

.citas-config-sub {
  margin: 2px 0 0 0;
  font-size: 0.76rem;
  color: #64748b;
}

.citas-badge-pro {
  font-size: 0.72rem;
  font-weight: 800;
  color: #166534;
  background-color: #dcfce7;
  border: 1px solid #86efac;
  padding: 4px 10px;
  border-radius: 20px;
}

.citas-badge-locked {
  font-size: 0.72rem;
  font-weight: 800;
  color: #b45309;
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 20px;
}

.citas-explain {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.citas-feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
}

.citas-bullet-item {
  font-size: 0.78rem;
  font-weight: 600;
  color: #166534;
}

.citas-upgrade-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fcd34d;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  flex-wrap: wrap;
}

.citas-upgrade-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: #78350f;
  flex: 1;
  min-width: 220px;
}

/* ==========================================================================
   3. BARRA VISIBLE DE CONTADORES COMUNITARIOS EN VIVO (INDEX.HTML)
   ========================================================================== */

.rl-community-live-stats-bar {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1.15rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.community-stats-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDotLive 1.8s infinite;
}

@keyframes pulseDotLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.community-stats-badge-text {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369a1;
}

.community-stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.community-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-stat-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.community-stat-data {
  display: flex;
  flex-direction: column;
}

.community-stat-data .stat-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b2e59;
  line-height: 1.1;
}

.community-stat-data .stat-label {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.community-stat-divider {
  width: 1px;
  height: 28px;
  background-color: #e2e8f0;
}

/* ==========================================================================
   DASHBOARD DEL LOCATARIO (B2B PREMIUM)
   ========================================================================== */

/* Layout del Dashboard */
.dashboard-page {
  background-color: var(--bg-app);
  min-height: 100vh;
  padding: 16px 14px 80px 14px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Cabecera */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  margin-bottom: 20px;
  border: 1px solid #F3F4F6;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.dash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #F3F4F6;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--text-muted);
  overflow: hidden;
  flex-shrink: 0;
}
.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-user-info {
  min-width: 0;
  flex: 1;
}
.dash-user-info h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-plan.premium {
  background-color: rgba(255, 107, 53, 0.1);
  color: var(--primary);
}
.badge-plan.basico {
  background-color: #F3F4F6;
  color: var(--text-muted);
}
.btn-icon-outline {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s;
  background: var(--bg-card);
  cursor: pointer;
}
.btn-icon-outline:hover {
  background-color: #F9FAFB;
  border-color: #D1D5DB;
}

/* KPIs (Estadísticas) */
.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  border: 1px solid #F3F4F6;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-details {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

/* Secciones Generales */
.dash-section {
  margin-bottom: 24px;
}
.dash-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 12px 0;
}

/* Acciones Rápidas */
.dash-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .dash-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
.action-card {
  background-color: var(--bg-card);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.action-card:active {
  transform: scale(0.96);
}
.action-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.08);
}
.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #F9FAFB;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--primary);
}
.action-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

/* Listado de Ofertas */
.dash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-list-item {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #F3F4F6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: border-color 0.2s;
}
.dash-list-item:hover {
  border-color: #E5E7EB;
}
.item-icon-left {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(46, 196, 182, 0.1);
  color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.item-actions {
  display: flex;
  gap: 8px;
}
.btn-action-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-action-sm.edit {
  background-color: #F3F4F6;
  color: var(--text-main);
}
.btn-action-sm.edit:hover {
  background-color: #E5E7EB;
}
.btn-action-sm.delete {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--alert);
}
.btn-action-sm.delete:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* Subvistas del Dashboard (Perfil, Catálogo, Publicar) */
.dash-subview {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  border: 1px solid #F3F4F6;
  margin-bottom: 24px;
}
.dash-back-bar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}
.btn-volver-dashboard {
  background-color: #F3F4F6;
  color: var(--text-main);
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-volver-dashboard:hover {
  background-color: #E5E7EB;
  color: var(--text-main);
}

/* ==========================================================================
   REDESISEÑO: PIZARRÓN VECINAL Y MODAL DE PUBLICAR AVISOS
   ========================================================================== */

/* Pizarrón Header */
.pizarron-section { 
  padding: 16px; 
  margin-bottom: 24px; 
  scroll-margin-top: 150px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 350px;
}
.pizarron-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 16px; 
}
.pizarron-title-group { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}
.pizarron-title-group h2 { 
  font-size: 1.25rem; 
  font-weight: 800; 
  color: var(--text-main); 
  margin: 0; 
}
.btn-sm { 
  padding: 8px 12px; 
  font-size: 0.85rem; 
  border-radius: 8px; 
}

/* Tarjetas del Pizarrón */
.pizarron-feed { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}
.pizarron-card { 
  background-color: var(--bg-card); 
  border-radius: 16px; 
  padding: 16px; 
  border: 1px solid #E5E7EB; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pizarron-card:active {
  transform: scale(0.99);
}
.pizarron-card-header { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 12px; 
}
.aviso-avatar { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  background-color: #F3F4F6; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  font-size: 20px; 
  color: var(--text-muted); 
  flex-shrink: 0;
}
.aviso-meta { 
  display: flex; 
  flex-direction: column; 
}
.aviso-meta strong { 
  font-size: 0.95rem; 
  color: var(--text-main); 
}
.aviso-meta span { 
  font-size: 0.75rem; 
  color: var(--text-muted); 
  margin-top: 2px; 
}
.aviso-tag { 
  display: inline-block; 
  padding: 2px 6px; 
  border-radius: 4px; 
  font-size: 0.7rem; 
  font-weight: 700; 
  background-color: #F3F4F6; 
  color: var(--text-muted); 
  margin-left: 4px; 
}
.aviso-tag.urgente { 
  background-color: rgba(239, 68, 68, 0.1); 
  color: var(--alert, #EF4444); 
}
.aviso-tag.mascota {
  background-color: rgba(245, 158, 11, 0.12);
  color: #D97706;
}
.aviso-tag.venta {
  background-color: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.aviso-tag.general,
.aviso-tag.aviso {
  background-color: rgba(59, 130, 246, 0.12);
  color: #2563EB;
}

/* Cuerpo de la Tarjeta */
.pizarron-card-body { 
  margin-bottom: 12px; 
}
.aviso-titulo { 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: var(--text-main); 
  margin: 0 0 6px 0; 
}
.aviso-texto { 
  font-size: 0.9rem; 
  color: var(--text-muted); 
  line-height: 1.5; 
  margin: 0; 
}

/* Footer de la Tarjeta */
.pizarron-card-footer { 
  display: flex; 
  gap: 16px; 
  border-top: 1px solid #F3F4F6; 
  padding-top: 12px; 
}
.btn-flat { 
  background: none; 
  border: none; 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  color: var(--text-muted); 
  font-size: 0.85rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: color 0.2s; 
  padding: 4px 0; 
}
.btn-flat:active,
.btn-flat:hover { 
  color: var(--primary); 
}

/* Formulario limpio para Modal */
.form-vertical { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  margin-bottom: 24px; 
}
.form-group label { 
  display: block; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: var(--text-main); 
  margin-bottom: 6px; 
}
.input-clean { 
  width: 100%; 
  padding: 12px 16px; 
  border: 1px solid #E5E7EB; 
  border-radius: 10px; 
  font-size: 0.95rem; 
  background-color: #F9FAFB; 
  color: var(--text-main); 
  font-family: inherit; 
  transition: border-color 0.2s, background-color 0.2s; 
}
.input-clean:focus { 
  outline: none; 
  border-color: var(--primary); 
  background-color: var(--bg-card); 
}
.textarea-clean { 
  resize: vertical; 
  min-height: 80px; 
}
.form-vertical .input-group select.input-clean,
.form-vertical .input-group select {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 0.95rem;
  background-color: #F9FAFB;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}
.form-vertical .input-group select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-card);
}

/* Ficha Pública: Lista de Servicios Limpia y Elegante */
.micro-servicios-lista {
  list-style: none;
  padding: 0;
  margin: 6px 0 14px 0;
  display: flex;
  flex-direction: column;
}

.micro-servicio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main, #1F2937);
}

.micro-servicio-item:last-child {
  border-bottom: none;
}

.micro-servicio-item i {
  color: var(--secondary, #2EC4B6);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.micro-servicio-item span {
  flex: 1;
  line-height: 1.35;
}

.micro-servicios-grid {
  display: flex;
  flex-direction: column;
  margin: 6px 0 14px 0;
}

/* ========================================================================== */
/* VISOR DE IMAGEN COMPLETA DE OFERTA EN PANTALLA (LIGHTBOX)                  */
/* ========================================================================== */
.rl-visor-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.rl-visor-modal[hidden] {
  display: none !important;
}

.rl-visor-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInVisor 0.2s ease-out;
}

.rl-visor-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 94vh;
  animation: zoomInVisor 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rl-visor-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.rl-visor-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.rl-visor-img-wrap {
  width: 100%;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.rl-visor-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.rl-visor-info-card {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rl-visor-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rl-visor-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rl-visor-negocio {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.rl-visor-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ea580c;
  background-color: #ffedd5;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.rl-visor-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  max-height: 3.8em;
  overflow-y: auto;
}

.rl-visor-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-visor-wa {
  flex: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #22c55e;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

.btn-visor-wa:hover {
  background-color: #16a34a;
  transform: translateY(-1px);
}

.btn-visor-micro {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #f1f5f9;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-visor-micro:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

@keyframes fadeInVisor {
  from { opacity: 0; }
  to { opacity: 1; }
}

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



