@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --g-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --g-font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  font-family: var(--g-font-body);
}

body, html, button, input, textarea, select, optgroup, option, p, span, a, div, li, ul, ol, td, th, label, small, b, strong, em, i, .btn, .nav-link, .tab-item, .card, .feed-card, .comment-body {
  font-family: var(--g-font-body) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

h1, h2, h3, h4, h5, h6,
.logo, .logo b, .brand, .brand-chip, .heading h1, .heading h2, .heading h3,
.spa-view-head h1, .spa-view-head h2, .onb-single-card h1, .onb-card h1,
#memberGreeting, .hero h1, .hero h1 span, .ask h2, .step h3, .strip h2,
.section-title, .modal-title, .category-title, .provider-title,
.community-header h2, .requests-header h2 {
  font-family: var(--g-font-display) !important;
  letter-spacing: -0.025em !important;
}

/* =========================================================================
   GUAYAIA - MI LOCAL & SOLICITUDES VISUAL SYSTEM (ANTIGRAVITY)
   Diseño de contenedor anclado a la pestaña activa (Speech Bubble Container)
   y tarjetas de solicitud con anatomía de mensaje conversacional.
   ========================================================================= */

:root {
  --g-live: #087a55;
  --g-blue: #087fa7;
  --g-cyan: #20bfe4;
  --g-deep: #063f59;
  --g-deep-dark: #042838;
  --g-line: #dce7eb;
  --g-line-soft: rgba(8, 127, 167, 0.12);
  --g-muted: #5c7a88;
  --g-muted-light: #839ca7;
  --g-surface: #ffffff;
  --g-soft: #f4f8fa;
  --g-radius: 18px;
  --g-radius-card: 16px;
  --g-shadow-card: 0 4px 18px rgba(6, 63, 89, 0.05);
  --g-shadow-hover: 0 8px 26px rgba(6, 63, 89, 0.10);
  --notch-pos: 37.5%;
}

/* --- 1. CONTENEDOR ANCLADO A LA PESTAÑA ACTIVA --- */
.speech-bubble-anchor {
  position: relative;
  width: 100%;
  height: 14px;
  background: transparent;
  pointer-events: none;
  z-index: 20;
}

.bubble-notch {
  position: absolute;
  top: 0;
  left: var(--notch-pos);
  transform: translateX(-50%);
  width: 22px;
  height: 14px;
  transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bubble-notch svg {
  display: block;
  width: 100%;
  height: 100%;
}

.outer-celeste-canvas {
  width: 100%;
  background: linear-gradient(180deg, #edf7fb 0%, #e4f2f8 100%);
  border: 1.5px solid rgba(8, 127, 167, 0.16);
  border-radius: 22px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 30px rgba(6, 63, 89, 0.06);
}

.speech-bubble-shell {
  position: relative;
  background: var(--g-surface);
  border: 1px solid var(--g-line-soft);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(6, 63, 89, 0.04);
  padding: 16px 14px 18px;
  transition: all 0.3s ease;
}

/* --- 2. SELECTOR DE CONTEXTO (Mis pedidos vs Oportunidades en red) --- */
.segment-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f1f7f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.segment-btn {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  color: var(--g-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.segment-btn.active {
  background: var(--g-deep);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(6, 63, 89, 0.18);
}

/* --- 3. TARJETAS CON ANATOMÍA DE MENSAJE (SIN BARRAS LATERALES DURAS) --- */
.msg-card,
.spa-request-card.msg-style {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  background: #ffffff !important;
  border: 1px solid var(--g-line-soft) !important;
  border-radius: var(--g-radius-card) !important;
  padding: 13px 14px !important;
  box-shadow: var(--g-shadow-card) !important;
  cursor: pointer !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.18s ease !important;
  text-decoration: none !important;
  color: inherit !important;
  width: 100% !important;
  border-left-width: 1px !important; /* Elimina la franja gruesa izquierda */
}

.msg-card:hover,
.spa-request-card.msg-style:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--g-shadow-hover) !important;
  border-color: rgba(8, 127, 167, 0.32) !important;
}

.msg-card:active,
.spa-request-card.msg-style:active {
  transform: translateY(0) !important;
}

/* Avatar Circular */
.msg-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #dcf3fa, #c5eaf5) !important;
  color: var(--g-blue) !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(8, 127, 167, 0.12) !important;
  margin-top: 1px !important;
}

.msg-avatar svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2 !important;
}

/* Cuerpo del mensaje */
.msg-body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.msg-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.msg-title {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: var(--g-deep) !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Badges discretos en píldora suave */
.msg-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-transform: lowercase !important;
}

.msg-badge.urgent {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}

.msg-badge.active {
  background: #eef9f4 !important;
  color: var(--g-live) !important;
  border: 1px solid #c7eedb !important;
}

.msg-badge.searching {
  background: #eef7fc !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

.msg-badge.completed {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

/* Fila de metadatos */
.msg-meta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}

.meta-items-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.meta-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--g-muted) !important;
  white-space: nowrap !important;
}

.meta-item svg {
  width: 12px !important;
  height: 12px !important;
  stroke-width: 2 !important;
  opacity: 0.85 !important;
  color: var(--g-blue) !important;
}

.meta-item.highlight {
  color: var(--g-live) !important;
  font-weight: 750 !important;
}

.meta-item.highlight svg {
  color: var(--g-live) !important;
}

.meta-action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--g-blue) !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

.meta-action svg {
  width: 11px !important;
  height: 11px !important;
  stroke-width: 2.5 !important;
  transition: transform 0.15s ease !important;
}

.msg-card:hover .meta-action svg {
  transform: translateX(2px) !important;
}

/* --- 4. RESPONSIVE BREAKPOINTS (320px - 1280px) --- */
@media (max-width: 360px) {
  .msg-avatar { width: 38px !important; height: 38px !important; }
  .msg-title { font-size: 13.5px !important; }
  .meta-items-group { gap: 6px !important; }
  .speech-bubble-shell { padding: 14px 10px 18px !important; }
}

@media (min-width: 768px) {
  .speech-bubble-shell {
    padding: 24px 24px 28px !important;
    border-radius: 22px !important;
  }
  .msg-card {
    padding: 15px 18px !important;
  }
}

/* =========================================================================
   5. MAPEO DIRECTO A CLASES EXISTENTES DE PRODUCCIÓN EN GUAYAIA
   Permite que al vincular este CSS, las tarjetas de spa-request-card
   adopten automáticamente la anatomía de mensaje conversacional y el
   contenedor celeste de fondo.
   ========================================================================= */

/* =========================================================================
   5. CONTENEDOR TIPO SOBRE INTERACTIVO (SOLICITUDES ESTILO ANDROID)
   - Contenedor en forma de sobre elegante interactivo con la pestaña activa
   - Columna vertical única deslizable
   - Exactamente 5 opciones / solicitudes visibles en amplia vista
   - Barra de desplazamiento sutil estilo sobre
   - Conector visual y reactivo con la pestaña "Solicitudes"
   ========================================================================= */

#guayaiaRequestsView,
#viewSolicitudes {
  padding-bottom: 30px !important;
  display: block;
}

/* El Sobre Exterior (Envelope Shell) */
#guayaiaRequestsView > .wrap,
.requests-envelope-container,
#viewSolicitudes .requests-envelope-container {
  position: relative !important;
  background: linear-gradient(180deg, #f4fafd 0%, #e8f5fa 100%) !important;
  border: 1.5px solid rgba(8, 127, 167, 0.22) !important;
  border-radius: 24px !important;
  padding: 12px !important;
  box-shadow: 0 14px 40px rgba(6, 63, 89, 0.08), inset 0 2px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(32, 191, 228, 0.12) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

/* Solapa / Pliegue superior del sobre (Envelope Flap) */
#guayaiaRequestsView > .wrap::before,
.requests-envelope-container::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 20px !important;
  right: 20px !important;
  height: 3.5px !important;
  background: linear-gradient(90deg, transparent 0%, #20bfe4 25%, #087fa7 50%, #20bfe4 75%, transparent 100%) !important;
  border-radius: 99px !important;
  opacity: 0.85 !important;
  pointer-events: none !important;
}

/* Interacción del contenedor con la pestaña activa ("Solicitudes") */
body[data-app-view="requests"] #guayaiaRequestsView > .wrap,
.tab-btn[data-tab="solicitudes"].active ~ main .requests-envelope-container,
.requests-envelope-container.is-active,
#guayaiaRequestsView > .wrap:hover,
.requests-envelope-container:hover {
  border-color: rgba(32, 191, 228, 0.55) !important;
  box-shadow: 0 18px 48px rgba(8, 127, 167, 0.14), 0 0 26px rgba(32, 191, 228, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.95) !important;
}

/* Cabecera / Pestaña interna del sobre */
#guayaiaRequestsView .spa-view-head,
.requests-envelope-head {
  background: #ffffff !important;
  border-radius: 18px 18px 0 0 !important;
  padding: 16px 18px 14px !important;
  border: 1px solid rgba(8, 127, 167, 0.14) !important;
  border-bottom: 1px solid #eef5f8 !important;
  box-shadow: 0 2px 8px rgba(6, 63, 89, 0.03) !important;
  position: relative !important;
  z-index: 2 !important;
}

.requests-envelope-kicker {
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  color: var(--g-blue) !important;
  text-transform: uppercase !important;
  display: block !important;
  margin-bottom: 3px !important;
}

.requests-envelope-title {
  font-size: 19px !important;
  font-weight: 850 !important;
  color: var(--g-deep) !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.requests-envelope-subtitle {
  font-size: 12px !important;
  color: var(--g-muted) !important;
  margin: 3px 0 0 !important;
}

.requests-envelope-chips {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 10px !important;
  flex-wrap: wrap !important;
}

.envelope-chip {
  border: 1px solid rgba(8, 127, 167, 0.18) !important;
  background: #f4f9fb !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  color: var(--g-muted) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.envelope-chip:hover,
.envelope-chip.active {
  background: var(--g-blue) !important;
  color: #ffffff !important;
  border-color: var(--g-blue) !important;
  box-shadow: 0 2px 8px rgba(8, 127, 167, 0.25) !important;
}

/* Columna deslizable: Exactamente 5 opciones visibles en amplia vista */
#guayaiaRequestsContent,
.spa-request-list,
.requests-stream {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  background: #ffffff !important;
  border-radius: 0 0 18px 18px !important;
  padding: 12px 14px 16px !important;
  border: 1px solid rgba(8, 127, 167, 0.14) !important;
  border-top: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: contain !important;
  scroll-behavior: smooth !important;
  box-shadow: inset 0 3px 10px rgba(6, 63, 89, 0.02) !important;
  /* En amplia vista (pantallas estándar y superiores):
     5 opciones visibles cómodamente.
     Cada tarjeta mide 68px de alto + 8px gap = 76px.
     5 tarjetas = 5 * 68px + 4 * 8px = 372px.
     Con padding 12px superior + margen de corte limpio: 395px.
  */
  max-height: 395px !important;
}

/* Scrollbar personalizado estilo sobre GuayaIA */
#guayaiaRequestsContent::-webkit-scrollbar,
.spa-request-list::-webkit-scrollbar,
.requests-stream::-webkit-scrollbar {
  width: 6px !important;
}

#guayaiaRequestsContent::-webkit-scrollbar-track,
.spa-request-list::-webkit-scrollbar-track,
.requests-stream::-webkit-scrollbar-track {
  background: #f0f6f9 !important;
  border-radius: 99px !important;
  margin: 6px 0 !important;
}

#guayaiaRequestsContent::-webkit-scrollbar-thumb,
.spa-request-list::-webkit-scrollbar-thumb,
.requests-stream::-webkit-scrollbar-thumb {
  background: rgba(8, 127, 167, 0.3) !important;
  border-radius: 99px !important;
  transition: background 0.2s ease !important;
}

#guayaiaRequestsContent::-webkit-scrollbar-thumb:hover,
.spa-request-list::-webkit-scrollbar-thumb:hover,
.requests-stream::-webkit-scrollbar-thumb:hover {
  background: var(--g-cyan) !important;
}

/* Tarjeta individual de solicitud dentro del sobre */
.spa-request-card,
button.spa-request-card,
.msg-card,
.requests-stream .msg-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(8, 127, 167, 0.12) !important;
  padding: 11px 14px !important;
  background: #fbfdfe !important;
  box-shadow: 0 2px 10px rgba(6, 63, 89, 0.03) !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  min-height: 66px !important;
}

.spa-request-card:hover,
.msg-card:hover,
.requests-stream .msg-card:hover {
  transform: translateY(-2px) !important;
  background: #ffffff !important;
  border-color: rgba(32, 191, 228, 0.5) !important;
  box-shadow: 0 6px 20px rgba(6, 63, 89, 0.08), 0 0 12px rgba(32, 191, 228, 0.12) !important;
}

/* Avatar circular para la miniatura de la solicitud */
.spa-request-thumb {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #dcf3fa, #c5eaf5) !important;
  color: var(--g-blue) !important;
  display: grid !important;
  place-items: center !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(8, 127, 167, 0.12) !important;
  padding: 0 !important;
  flex: 0 0 44px !important;
}

.spa-request-thumb img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Cuerpo y copia de la solicitud */
.spa-request-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.spa-request-copy strong {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: var(--g-deep) !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

.spa-request-copy p {
  display: none !important; /* Limpia el snippet cortado para que respire */
}

/* Fila de metadatos */
.spa-request-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  color: var(--g-muted) !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}

.spa-request-meta > span {
  color: #a0b6bf !important;
}

/* Enlace ver detalle alineado */
.request-card-open {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--g-blue) !important;
  font-style: normal !important;
  margin-left: auto !important;
}

/* Estado de la solicitud como píldora sutil */
.request-state {
  align-self: flex-start !important;
  margin-left: auto !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  text-transform: lowercase !important;
}



/* =========================================================================
   GUAYAIA PARITY SYSTEM: COMUNIDAD, MERCADO Y SOLICITUD
   Paridad visual 1:1 con la aplicación móvil Android Flutter.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. COMUNIDAD PARITY
   - Cuadrícula limpia tipo mosaico (solo contenido audiovisual)
   - Sin textos ni nombres encima en la vista inicial
   - Categorías ocultas
   - Línea slide / piso de separación bajo el título
   - Botón publicar fuera de esta sección
   - Aura animada en la cápsula del autor
   - Botón de corazón "Me gusta" interactivo
   ------------------------------------------------------------------------- */

/* --- CHOICES / FILTROS DE COMUNIDAD MÁS GRANDES Y ACCESIBLES --- */
#communityWorkFilters,
.community-work-toolbar,
.community-filters,
.gfeed-filters {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 6px 2px 10px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

#communityWorkFilters::-webkit-scrollbar,
.community-work-toolbar::-webkit-scrollbar,
.community-filters::-webkit-scrollbar,
.gfeed-filters::-webkit-scrollbar {
  display: none !important;
}

.community-work-toolbar__label {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #173d4e !important;
  padding-right: 6px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

.community-work-toolbar button,
.community-chip,
.gfeed-filters .member-cat,
[data-community-filter] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  padding: 11px 22px !important;
  font-size: 14.5px !important;
  font-weight: 850 !important;
  border-radius: 999px !important;
  border: 1.5px solid #d0e3eb !important;
  background: #ffffff !important;
  color: #3b5f70 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(6, 63, 89, 0.05) !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
  min-height: 46px !important;
  white-space: nowrap !important;
}

.community-work-toolbar button:hover,
.community-chip:hover,
.gfeed-filters .member-cat:hover,
[data-community-filter]:hover {
  border-color: #087fa7 !important;
  color: #087fa7 !important;
  background: #f0f8fb !important;
  transform: translateY(-1px) !important;
}

.community-work-toolbar button.active,
.community-chip.active,
.gfeed-filters .member-cat.active,
[data-community-filter].active {
  border-color: #087fa7 !important;
  background: #087fa7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(8, 127, 167, 0.28) !important;
}

@media (max-width: 768px) {
  #communityWorkFilters,
  .community-work-toolbar,
  .community-filters,
  .gfeed-filters {
    gap: 10px !important;
    padding: 6px 4px 12px !important;
  }

  .community-work-toolbar button,
  .community-chip,
  .gfeed-filters .member-cat,
  [data-community-filter] {
    min-height: 52px !important;
    padding: 13px 26px !important;
    font-size: 16px !important;
    border-width: 2px !important;
  }

  .community-work-toolbar__label {
    font-size: 13.5px !important;
  }
}

/* =========================================================================
   OPTIMIZACIONES DE RENDIMIENTO MULTIMEDIA (60/120 FPS FLUIDO EN MEDIA)
   Aislamiento de layout, compositing en GPU y reducción de consumo de decodificadores
   ========================================================================= */
.gfeed-post,
#communityPosts .gfeed-post,
.post-video-shell,
.gfeed-media,
.mp-card,
.market-card {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
  contain: layout paint style;
}

.gfeed-video-shell,
.post-video-shell,
.gfeed-media video,
.gfeed-media img,
.post-photo-img,
.mp-card-media img,
.market-card-media img {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* Línea divisora slide / piso bajo el título de comunidad */
.guayaia-community .heading,
#guayaiaCommunity .heading,
.community-header {
  position: relative !important;
  border-bottom: 2px solid rgba(8, 127, 167, 0.12) !important;
  padding-bottom: 14px !important;
  margin-bottom: 18px !important;
}

.guayaia-community .heading::after,
#guayaiaCommunity .heading::after,
.community-header::after {
  content: "" !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 96px !important;
  height: 3.5px !important;
  background: linear-gradient(90deg, #087fa7 0%, #20bfe4 100%) !important;
  border-radius: 99px !important;
  box-shadow: 0 0 12px rgba(32, 191, 228, 0.55) !important;
}

/* Mosaico de comunidad: vista de PC amplificada ~300% (2 columnas de alto impacto) */
html body.app-ready[data-app-view="community"] #communityPosts,
html body.app-ready[data-app-view="community"] .gfeed-posts,
html body #guayaiaCommunity #communityPosts,
html body #guayaiaCommunity .community-posts,
#communityPosts,
.community-posts,
.gfeed-posts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  padding: 12px 0 32px !important;
  columns: auto !important;
  column-gap: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* En tablets intermedias (601px - 860px): 2 columnas proporcionadas */
@media (max-width: 860px) and (min-width: 601px) {
  html body.app-ready[data-app-view="community"] #communityPosts,
  html body.app-ready[data-app-view="community"] .gfeed-posts,
  html body #guayaiaCommunity #communityPosts,
  html body #guayaiaCommunity .community-posts,
  #communityPosts,
  .community-posts,
  .gfeed-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 8px 0 20px !important;
  }
}

/* En móvil (≤ 600px): 1 columna para visualización inmersiva en celular */
@media (max-width: 600px) {
  html body.app-ready[data-app-view="community"] #communityPosts,
  html body.app-ready[data-app-view="community"] .gfeed-posts,
  html body #guayaiaCommunity #communityPosts,
  html body #guayaiaCommunity .community-posts,
  #communityPosts,
  .community-posts,
  .gfeed-posts {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 6px 0 16px !important;
  }
}

.gfeed-post,
#communityPosts .gfeed-post,
body.app-ready[data-app-view="community"] .gfeed-post {
  margin: 0 !important;
  position: relative !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #072333 !important;
  aspect-ratio: 4 / 5 !important;
  min-height: 480px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
  cursor: pointer !important;
}

@media (max-width: 600px) {
  .gfeed-post,
  #communityPosts .gfeed-post,
  body.app-ready[data-app-view="community"] .gfeed-post {
    border-radius: 14px !important;
    min-height: 320px !important;
  }
}

.gfeed-post:hover,
#communityPosts .gfeed-post:hover,
body.app-ready[data-app-view="community"] .gfeed-post:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 24px rgba(32, 191, 228, 0.24) !important;
  border-color: rgba(32, 191, 228, 0.6) !important;
}

.gfeed-media,
.gfeed-media img,
.gfeed-media video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* En vista inicial: SOLO CONTENIDO (sin nombres ni textos encima) */
#communityPosts .gfeed-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(3, 18, 27, 0.95) 100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 14px !important;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s ease !important;
  transform: translateY(6px) !important;
}

/* Al pasar el mouse o tocar, se revela la información con aura */
#communityPosts .gfeed-post:hover .gfeed-overlay,
#communityPosts .gfeed-post:focus-within .gfeed-overlay,
#communityPosts .gfeed-post.is-info-open .gfeed-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Cápsula del autor con efecto AURA LUMINOSA */
.gfeed-overlay-author,
.community-author-capsule {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 4px 12px 4px 4px !important;
  background: rgba(3, 20, 30, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(32, 191, 228, 0.65) !important;
  box-shadow: 0 0 16px rgba(32, 191, 228, 0.40), inset 0 0 8px rgba(32, 191, 228, 0.2) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
  width: max-content !important;
}

.gfeed-overlay-author:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 0 24px rgba(32, 191, 228, 0.75), inset 0 0 12px rgba(32, 191, 228, 0.35) !important;
  border-color: #20bfe4 !important;
}

.gfeed-overlay-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #20bfe4 !important;
}

.gfeed-overlay-title {
  color: #ffffff !important;
  font-size: 16.5px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  margin: 0 0 10px !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

/* Botón interactivo de Me Gusta (Corazón) */
.community-like-fab,
.gfeed-like-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 5 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(4, 24, 35, 0.72) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  font-size: 19px !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
}

.community-like-fab:hover,
.gfeed-like-btn:hover {
  transform: scale(1.15) !important;
  background: rgba(4, 24, 35, 0.85) !important;
}

.community-like-fab.is-liked,
.gfeed-like-btn.is-liked {
  color: #ff3366 !important;
  background: rgba(255, 51, 102, 0.2) !important;
  border-color: rgba(255, 51, 102, 0.6) !important;
  animation: heartBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes heartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}


/* -------------------------------------------------------------------------
   2. MERCADO PARITY
   - Cuadrícula de productos de 2 columnas en móvil
   - Píldora de precio sobrepuesta en la foto
   - Running Border animado en el contorno del vendedor según su rango
   - Modal de detalle del producto idéntico a la app
   ------------------------------------------------------------------------- */

.mp-grid,
#marketFeed {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
  gap: 12px !important;
}

@media (max-width: 580px) {
  .mp-grid,
  #marketFeed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

.mp-card,
.market-card {
  position: relative !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(8, 127, 167, 0.12) !important;
  box-shadow: 0 4px 16px rgba(6, 63, 89, 0.05) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
}

.mp-card:hover,
.market-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 26px rgba(6, 63, 89, 0.12) !important;
  border-color: rgba(8, 127, 167, 0.28) !important;
}

.mp-card-media {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  background: #edf5f8 !important;
  overflow: hidden !important;
}

.mp-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Píldora de precio en la esquina de la foto (optimizado sin blur GPU) */
.mp-card-price,
.market-card-price {
  position: absolute !important;
  left: 8px !important;
  bottom: 8px !important;
  background: rgba(4, 24, 35, 0.90) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  z-index: 2 !important;
}

/* Borde de rango del vendedor ultra-ligero (cero repaints, 60fps) */
.market-seller-running-border,
.mstore-identity.aura-live[data-aura] {
  position: relative !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 2px solid var(--aura, #20bfe4) !important;
  box-shadow: 0 2px 10px rgba(32, 191, 228, 0.16) !important;
}


/* -------------------------------------------------------------------------
   3. SOLICITUD PARITY
   - Tarjetas de solicitud limpias con forma de mensaje conversacional
   - Badges con indicador luminoso verde en tiempo real
   - Selector de contexto anclado a la pestaña activa
   ------------------------------------------------------------------------- */

.request-live-badge,
.spa-request-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

.request-live-badge.open,
.request-live-badge.active {
  background: #eef9f4 !important;
  color: #087a55 !important;
  border: 1px solid #c7eedb !important;
}

.request-live-badge.open::before,
.request-live-badge.active::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #087a55 !important;
  box-shadow: 0 0 6px #087a55 !important;
  animation: livePulse 1.8s infinite ease-in-out !important;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.request-live-badge.accepted {
  background: #eef7fc !important;
  color: #087fa7 !important;
  border: 1px solid #bae6fd !important;
}

.request-live-badge.completed {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}


/* =========================================================================
   GUAYAIA INICIO (HOME) PARITY 1:1 CON FLUTTER APP
   - Banner oscuro _LiveHomeBanner (#12394B con cyan #39C4EB)
   - Creador de solicitudes siempre visible (_HomeRequestComposer)
   - Eliminación de filtros sociales tipo red social (Tráfico, Noticias, etc.)
   - Eliminación de métricas sobredimensionadas del panel en Inicio
   ========================================================================= */

/* =========================================================================
   GUAYAIA 4K ATMOSPHERIC WEATHER CONTAINER (_LiveHomeWeatherBanner)
   - Fondos fotográficos 4K de clima real (Tormenta eléctrica, Noche despejada,
     Lluvia, Día soleado, Atardecer dorado, Nublado).
   - Acabado Glassmorphism ultra-premium con scrim degradado oscuro para legibilidad 100%.
   - Resplandor y auras dinámicas según la atmósfera del clima.
   - Píldoras táctiles y chips esmerilados con refracción y contraste cristalino.
   ========================================================================= */

:root {
  --weather-img-thunderstorm: url("/assets/weather/thunderstorm.jpg");
  --weather-img-clear-night: url("/assets/weather/clear_night.jpg");
  --weather-img-rain: url("/assets/weather/rain.jpg");
  --weather-img-clear-day: url("/assets/weather/clear_day.jpg");
  --weather-img-sunset: url("/assets/weather/sunset.jpg");
  --weather-img-cloudy: url("/assets/weather/cloudy.jpg");
}

.guayaia-urban-banner,
#homeDynamicBanner {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  padding: 16px 20px 14px !important;
  margin-top: 14px !important;
  max-width: 820px !important;
  color: #ffffff !important;
  background-color: #0b1e2e !important;
  background-size: cover !important;
  background-position: center 35% !important;
  background-repeat: no-repeat !important;
  transition: background-image 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.25s ease !important;
  isolation: isolate !important;
  /* Por defecto (noche despejada de Guayaquil): */
  background-image: linear-gradient(180deg, rgba(8, 20, 36, 0.46) 0%, rgba(4, 10, 22, 0.84) 100%), var(--weather-img-clear-night) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 14px 38px rgba(4, 15, 30, 0.5), 0 0 25px rgba(56, 189, 248, 0.16) !important;
}

/* Variantes temáticas dinámicas de clima */
#homeDynamicBanner[data-weather-theme="thunderstorm"] {
  background-image: linear-gradient(180deg, rgba(12, 14, 34, 0.44) 0%, rgba(6, 7, 20, 0.86) 100%), var(--weather-img-thunderstorm) !important;
  border-color: rgba(192, 132, 252, 0.5) !important;
  box-shadow: 0 16px 42px rgba(10, 8, 30, 0.65), 0 0 32px rgba(168, 85, 247, 0.3) !important;
}

#homeDynamicBanner[data-weather-theme="clear-night"] {
  background-image: linear-gradient(180deg, rgba(8, 20, 36, 0.46) 0%, rgba(4, 10, 22, 0.84) 100%), var(--weather-img-clear-night) !important;
  border-color: rgba(56, 189, 248, 0.38) !important;
  box-shadow: 0 14px 38px rgba(4, 15, 30, 0.52), 0 0 24px rgba(56, 189, 248, 0.18) !important;
}

#homeDynamicBanner[data-weather-theme="rain"] {
  background-image: linear-gradient(180deg, rgba(10, 24, 38, 0.48) 0%, rgba(5, 14, 24, 0.86) 100%), var(--weather-img-rain) !important;
  border-color: rgba(56, 189, 248, 0.38) !important;
  box-shadow: 0 14px 40px rgba(6, 18, 30, 0.55), 0 0 26px rgba(14, 165, 233, 0.22) !important;
}

#homeDynamicBanner[data-weather-theme="clear-day"] {
  background-image: linear-gradient(180deg, rgba(12, 36, 62, 0.40) 0%, rgba(5, 18, 32, 0.82) 100%), var(--weather-img-clear-day) !important;
  border-color: rgba(56, 189, 248, 0.48) !important;
  box-shadow: 0 14px 40px rgba(6, 28, 48, 0.5), 0 0 28px rgba(56, 189, 248, 0.25) !important;
}

#homeDynamicBanner[data-weather-theme="sunset"] {
  background-image: linear-gradient(180deg, rgba(36, 18, 22, 0.42) 0%, rgba(16, 7, 12, 0.86) 100%), var(--weather-img-sunset) !important;
  border-color: rgba(251, 146, 60, 0.48) !important;
  box-shadow: 0 16px 42px rgba(32, 10, 14, 0.58), 0 0 30px rgba(249, 115, 22, 0.28) !important;
}

#homeDynamicBanner[data-weather-theme="cloudy"] {
  background-image: linear-gradient(180deg, rgba(14, 26, 42, 0.45) 0%, rgba(7, 15, 26, 0.84) 100%), var(--weather-img-cloudy) !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  box-shadow: 0 14px 38px rgba(8, 20, 32, 0.52), 0 0 22px rgba(148, 163, 184, 0.2) !important;
}

/* Destello de luz superior tipo cristal esmerilado */
#homeDynamicBanner::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 48% !important;
  border-radius: inherit !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Resplandor perimetral de vidrio */
#homeDynamicBanner::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.35) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Cabecera del Banner */
.urban-banner-header {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding-bottom: 11px !important;
  margin-bottom: 11px !important;
}

.urban-live-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(16, 185, 129, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(52, 211, 153, 0.6) !important;
  color: #a7f3d0 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: 0.1em !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.28) !important;
  text-transform: uppercase !important;
}

.urban-beacon {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #34d399 !important;
  box-shadow: 0 0 10px #34d399 !important;
  animation: urbanBeaconPulse 2s infinite ease-in-out !important;
}

.urban-category-tag,
#urbanCategoryTag {
  color: #38bdf8 !important;
  font-weight: 900 !important;
  letter-spacing: 0.9px !important;
  font-size: 11px !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75) !important;
  text-transform: uppercase !important;
}

.urban-now {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}
.urban-now:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

.urban-now-icon {
  font-size: 16px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) !important;
}

.urban-now-temp,
.urban-hl-temp {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 14.5px !important;
  letter-spacing: -0.2px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}

.urban-now-cond {
  position: relative !important;
  padding-left: 8px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}
.urban-now-cond::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 1px !important;
  height: 12px !important;
  margin-top: -6px !important;
  background: rgba(255, 255, 255, 0.35) !important;
}

.openLocation,
.home-context-location {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 999px !important;
  padding: 5px 14px 5px 10px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  max-width: 50% !important;
}
.openLocation:hover,
.home-context-location:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-1px) !important;
}

.openLocation .pin,
.home-context-location .pin {
  font-size: 13px !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4)) !important;
}

.openLocation b,
.home-context-location b {
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.openLocation .change,
.home-context-location .change {
  color: #38bdf8 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}

.openLocation span,
.openLocation small {
  color: #ffffff !important;
}

/* Pantalla y Slide del Banner */
.urban-banner-screen {
  position: relative !important;
  z-index: 2 !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
}

.urban-slide-content {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  color: #ffffff !important;
}

.urban-weather-chip,
.urban-icon-chip {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px !important;
  padding: 7px 14px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}
.urban-weather-chip:hover,
.urban-icon-chip:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  transform: scale(1.03) !important;
}

.urban-weather-chip #weatherIcon {
  font-size: 17px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) !important;
}

.urban-weather-chip b,
.urban-weather-chip .urban-hl-temp {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}

.urban-slide-text {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  line-height: 1.44 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.1px !important;
}

.urban-hl-brand,
.urban-hl-pro,
.urban-hl-time {
  color: #38bdf8 !important;
  font-weight: 850 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.45) !important;
}

/* Footer con puntos de navegación y barra de progreso */
.urban-banner-footer {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 11px !important;
  padding-top: 2px !important;
}

.urban-dots {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.urban-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.32) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.urban-dot.active {
  width: 22px !important;
  background: linear-gradient(90deg, #38bdf8, #06b6d4) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65) !important;
}

.urban-progress-track {
  flex: 1 !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 99px !important;
  overflow: hidden !important;
}

.urban-progress-fill {
  height: 100% !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, #38bdf8, #22d3ee) !important;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.75) !important;
  transition: width 0.1s linear !important;
}

/* Adaptaciones responsive móvil */
@media (max-width: 640px) {
  .guayaia-urban-banner,
  #homeDynamicBanner {
    padding: 13px 14px 11px !important;
    border-radius: 18px !important;
  }
  .urban-banner-header {
    gap: 7px !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }
  .urban-category-tag,
  #urbanCategoryTag {
    display: none !important;
  }
  .urban-now {
    padding: 3px 9px !important;
    gap: 5px !important;
  }
  .urban-now-temp {
    font-size: 13.5px !important;
  }
  .urban-now-cond {
    display: none !important;
  }
  .openLocation,
  .home-context-location {
    max-width: 58% !important;
    padding: 4px 10px 4px 7px !important;
  }
  .openLocation .pin,
  .home-context-location .pin {
    display: none !important;
  }
  .urban-slide-content {
    gap: 10px !important;
  }
  .urban-weather-chip,
  .urban-icon-chip {
    padding: 6px 10px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }
  .urban-slide-text {
    font-size: 13px !important;
    line-height: 1.38 !important;
  }
}

/* Creador de Solicitud en Inicio visible para TODOS los usuarios */
#clientDashboard,
.client-dashboard {
  display: block !important;
  margin: 18px 0 !important;
}

#clientRequestCtaCard,
.guayaia-client-request-cta {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1.5px solid rgba(8, 127, 167, 0.18) !important;
  box-shadow: 0 8px 30px rgba(6, 63, 89, 0.06) !important;
  padding: 20px !important;
}

.client-cta-title {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  font-size: 20px !important;
  color: #07344d !important;
  margin: 0 !important;
}

.client-cta-subtitle {
  font-size: 13px !important;
  color: #5c7a88 !important;
  margin: 3px 0 0 !important;
}

.client-cta-textarea {
  background: #f4f8fa !important;
  border: 1px solid #dce7eb !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: #17242c !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 12px 0 !important;
}

.client-cta-textarea:focus {
  outline: none !important;
  border-color: #087fa7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 167, 0.12) !important;
}

.client-cta-submit-btn {
  background: linear-gradient(135deg, #087fa7, #20bfe4) !important;
  color: #ffffff !important;
  font-weight: 850 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  border: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(8, 127, 167, 0.3) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.client-cta-submit-btn:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(8, 127, 167, 0.45) !important;
}

/* Ocultar el viejo provider-dashboard masivo que no existe en el Inicio de la app */
#providerDashboard,
.provider-dashboard {
  display: none !important;
}

/* Ocultar filtros irrelevantes que no existen en la app (Tráfico, Eventos, Noticias, Otros) */
#homeSocialFilters,
.home-social-filters {
  display: none !important;
}

/* Ocultar textos de prueba o debug */
.home-social-feed-col .gfeed-post:has(img[src*="guayaia-feed-preview"]),
.home-social-feed-col .gfeed-post:has(:contains("$BOOSHPOTENCIADORR")) {
  display: none !important;
}


/* Selector de foto en el formulario de producto */
.mlo-form-photo-upload {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  border: 1.5px dashed #087fa7 !important;
  background: #f0f7fa !important;
  cursor: pointer !important;
  transition: background 0.15s, border-color 0.15s !important;
}
.mlo-form-photo-upload:hover {
  background: #e2f0f5 !important;
  border-color: #20bfe4 !important;
}
.mlo-form-photo-upload span {
  font-size: 20px !important;
  line-height: 1 !important;
}


/* =========================================================================
   GUAYAIA - SOLICITUDES & TABS SLIDER (ANTIGRAVITY)
   Solo aplica al módulo de Solicitudes y transición de pestañas.
   Inicio y Comunidad se preservan intactos sin modificaciones de feed.
   ========================================================================= */

/* --- 8. SOLICITUDES: PÁGINA ESTÁTICA Y COLUMNA SCROLEABLE CON 5 OPCIONES VISIBLES --- */
body.app-ready[data-app-view="requests"],
body.app-ready[data-app-view="provider-requests"] {
  overflow-y: hidden !important;
}

body.app-ready[data-app-view="requests"] #guayaiaRequestsView,
body.app-ready[data-app-view="provider-requests"] #guayaiaRequestsView {
  height: calc(100vh - 100px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Cabecera del sobre fijada estática */
.requests-envelope-head,
#guayaiaRequestsView .spa-view-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
}

/* Columna scroleable con 5 opciones visibles amplia vista */
.requests-stream,
#guayaiaRequestsContent,
.spa-request-list {
  flex: 1 1 auto !important;
  max-height: calc(5 * 84px + 4 * 10px) !important;
  height: calc(5 * 84px + 4 * 10px) !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
}

/* --- 9. SLIDE HORIZONTAL ENTRE PESTAÑAS (INICIO - SOLICITUDES - COMUNIDAD - MARKET) --- */
html, body {
  overflow-x: hidden !important;
}

.guayaia-view-slide-forward,
.guayaia-view-slide-left {
  animation: guayaiaSlideForward 0.16s cubic-bezier(0.08, 0.9, 0.25, 1) both !important;
  will-change: transform, opacity !important;
}

.guayaia-view-slide-backward,
.guayaia-view-slide-right {
  animation: guayaiaSlideBackward 0.16s cubic-bezier(0.08, 0.9, 0.25, 1) both !important;
  will-change: transform, opacity !important;
}

@keyframes guayaiaSlideForward {
  0% {
    transform: translate3d(36px, 0, 0);
    opacity: 0.88;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes guayaiaSlideBackward {
  0% {
    transform: translate3d(-36px, 0, 0);
    opacity: 0.88;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

/* =========================================================================
   GUAYAIA - FEED SOCIAL DE RECOMENDACIONES EN INICIO (PARIDAD ULTRA-PREMIUM CON FOTO 1)
   ========================================================================= */

/* Contenedor de publicaciones en Inicio */
#homeSocialPosts,
.home-social-posts {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

/* Tarjeta social / recomendación profesional */
#homeSocialPosts .guayaia-social-card,
.guayaia-social-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 18px !important;
  padding: 18px 20px !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  position: relative !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
}

#homeSocialPosts .guayaia-social-card:hover,
.guayaia-social-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(8, 127, 167, 0.22) !important;
}

/* Desactivar bordes naranjas y barras superiores estridentes */
#homeSocialPosts .guayaia-social-card.is-post-epic,
#homeSocialPosts .guayaia-social-card.is-post-expert,
#homeSocialPosts .guayaia-social-card.is-post-featured,
.guayaia-social-card.is-post-epic,
.guayaia-social-card.is-post-expert,
.guayaia-social-card.is-post-featured {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04) !important;
}

#homeSocialPosts .guayaia-social-card::before,
.guayaia-social-card::before {
  display: none !important;
}

/* Cabecera del autor */
.post-card-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 2px !important;
}

.post-author-block {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  min-width: 0 !important;
}

/* Avatar circular con badge azul de verificado superpuesto abajo a la derecha */
.post-author-avatar-wrap {
  position: relative !important;
  width: 48px !important;
  height: 48px !important;
  flex-shrink: 0 !important;
}

.post-author-avatar-wrap .post-author-avatar,
.post-author-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  display: block !important;
}

.post-author-avatar-badge {
  position: absolute !important;
  bottom: -1px !important;
  right: -1px !important;
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  background: #007aff !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 9.5px !important;
  font-weight: 900 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Meta del autor */
.post-author-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.post-author-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.post-author-name {
  color: #0f172a !important;
  font-size: 15.5px !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.author-verified-badge {
  display: inline-grid !important;
  place-items: center !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #007aff !important;
  color: #fff !important;
  font-size: 9.5px !important;
  font-weight: 900 !important;
}

/* Sublínea: Rol / Especialidad ("Proveedor · Muebles a medida") */
.post-author-subline {
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 550 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Píldora de Rango Oficial (Paridad con Foto 1: "◉ Profesional consolidado", "🛡️ Maestro recomendado") */
.post-rank-capsule {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  width: fit-content !important;
  margin-top: 2px !important;
}

.post-rank-capsule.consolidated,
.post-rank-capsule.epic {
  background: #e6f7ec !important;
  color: #087a55 !important;
  border: 1px solid rgba(8, 122, 85, 0.18) !important;
}

.post-rank-capsule.master,
.post-rank-capsule.expert {
  background: #e8f4fd !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.18) !important;
}

.post-rank-capsule.citizen {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid rgba(71, 85, 105, 0.15) !important;
}

.post-rank-capsule.new {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid rgba(100, 116, 139, 0.15) !important;
}

/* Opciones superiores y tiempo ("hace 8 h  •••") */
.post-header-time-menu {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  margin-left: auto !important;
}

.post-menu-trigger {
  color: #94a3b8 !important;
  font-size: 18px !important;
  padding: 2px 6px !important;
}

/* Ocultar la fila antigua de prestigio con texto apretado genérico */
.post-trust-row,
.post-prestige-card {
  display: none !important;
}

/* --- COLLAGE ASIMÉTRICO MULTI-FOTO (PARIDAD FOTO 1) --- */
.post-media-collage {
  display: grid !important;
  gap: 8px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  margin: 6px 0 !important;
  background: #f1f5f9 !important;
}

/* Collage con 1 grande a la izquierda y 2 apiladas a la derecha */
.post-media-collage.layout-featured-split {
  grid-template-columns: 1.8fr 1fr !important;
  grid-template-rows: repeat(2, 130px) !important;
  height: 268px !important;
}

.post-media-collage.layout-featured-split .collage-item-main {
  grid-row: span 2 !important;
  height: 100% !important;
}

/* Collage con 1 foto principal */
.post-media-collage.layout-single {
  grid-template-columns: 1fr !important;
  height: 220px !important;
}

/* Collage con tira horizontal de 4 o 5 fotos */
.post-media-collage.layout-row-strip {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
  height: 124px !important;
}

.post-media-collage .collage-item {
  position: relative !important;
  overflow: hidden !important;
  background: #0f172a !important;
  cursor: pointer !important;
  height: 100% !important;
}

.post-media-collage .collage-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.25s ease !important;
}

.post-media-collage .collage-item:hover img {
  transform: scale(1.03) !important;
}

/* Overlay "+N" sobre la última imagen del collage */
.collage-more-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.44) !important;
  backdrop-filter: blur(2px) !important;
  display: grid !important;
  place-items: center !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  pointer-events: none !important;
}

/* Contenido del texto de publicación */
.post-body-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.post-description {
  color: #1e293b !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

/* Fila de ubicación y badge de reputación/trabajos */
.post-meta-footer-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
}

.post-location-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 550 !important;
}

.post-location-tag .loc-icon {
  color: #94a3b8 !important;
  font-size: 14px !important;
}

/* Badge de Reputación estilo azul marino oscuro (⭐ 4.9 (12 trabajos)) */
.post-rating-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #082333 !important;
  color: #ffffff !important;
  border-radius: 9px !important;
  padding: 5px 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(8, 35, 51, 0.15) !important;
  white-space: nowrap !important;
  margin-left: auto !important;
}

.post-rating-badge .star-icon {
  color: #f59e0b !important;
  font-size: 14px !important;
}

.post-rating-badge .works-count {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
}

/* --- BARRA DE ACCIONES INFERIOR CON BOTÓN "VER PERFIL" (PARIDAD FOTO 1) --- */
.post-actions-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 12px !important;
  margin-top: 6px !important;
  gap: 12px !important;
}

.post-actions-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.post-social-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}

.post-social-action-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.post-social-action-btn.is-liked {
  color: #ef4444 !important;
}

.post-social-action-btn .action-icon {
  font-size: 15px !important;
}

/* Botón llamativo azul píldora "Ver perfil" */
.post-view-profile-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #007aff !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  border-radius: 999px !important;
  padding: 8px 22px !important;
  border: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.28) !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  margin-left: auto !important;
}

.post-view-profile-btn:hover {
  background: #0066d6 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.38) !important;
}

.post-view-profile-btn:active {
  transform: translateY(0) !important;
}

/* --- 10. ADAPTACIÓN DE SOLICITUDES EN CELULAR (SIN MEZCLA DE LETRAS NI TEXTOS DESALINEADOS) --- */
@media (max-width: 768px) {
  /* En celular el scroll debe ser vertical libre y natural */
  body.app-ready[data-app-view="requests"],
  body.app-ready[data-app-view="provider-requests"] {
    overflow-y: auto !important;
    height: auto !important;
  }

  body.app-ready[data-app-view="requests"] #guayaiaRequestsView,
  body.app-ready[data-app-view="provider-requests"] #guayaiaRequestsView {
    height: auto !important;
    min-height: calc(100vh - 80px) !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 95px !important;
  }

  .requests-stream,
  #guayaiaRequestsContent,
  .spa-request-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Barra de filtros de solicitudes deslizable en móvil */
  .request-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding: 2px 2px 10px !important;
    scrollbar-width: none !important;
  }

  .request-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .request-filter {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    min-height: 36px !important;
  }

  /* Tarjeta de solicitud móvil: distribución limpia con cero encimados */
  .spa-request-card,
  button.spa-request-card,
  .msg-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 10px 12px !important;
    align-items: start !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(8, 127, 167, 0.14) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(6, 63, 89, 0.04) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  /* Miniatura / Avatar en columna 1 */
  .spa-request-thumb {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    flex: 0 0 46px !important;
    display: grid !important;
    place-items: center !important;
    background: linear-gradient(135deg, #dcf3fa, #c5eaf5) !important;
    color: #087fa7 !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(8, 127, 167, 0.12) !important;
  }

  .spa-request-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  /* Cuerpo del texto en columna 2 */
  .spa-request-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
    width: 100% !important;
    padding-right: 76px !important; /* Espacio limpio reservado para la píldora de estado */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Título de la solicitud perfectamente alineado y delimitado */
  .spa-request-copy strong {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #063f59 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    white-space: normal !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .spa-request-copy p {
    display: none !important;
  }

  /* Fila de metadatos (fecha, ubicación, precio, propuestas) */
  .spa-request-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 3px 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #5c7a88 !important;
    line-height: 1.35 !important;
    margin-top: 3px !important;
    padding: 0 !important;
    word-break: break-word !important;
  }

  .spa-request-meta > span {
    color: #9ab2be !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    display: inline-block !important;
    margin: 0 1px !important;
  }

  /* Enlace 'Ver detalle' */
  .request-card-open {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #087fa7 !important;
    font-style: normal !important;
    margin-top: 4px !important;
  }

  /* Píldora de estado anclada en la esquina superior derecha sin invadir los textos */
  .request-state {
    position: absolute !important;
    top: 11px !important;
    right: 12px !important;
    margin: 0 !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    text-transform: capitalize !important;
    box-shadow: 0 1px 4px rgba(6, 63, 89, 0.06) !important;
    z-index: 2 !important;
  }
}

/* =========================================================================
   11. COLA DEL CONTENEDOR ANCLADA A LA PESTAÑA ACTIVA & BOTÓN DE RED (PARIDAD ANDROID)
   ========================================================================= */

:root {
  --active-tab-notch-x: 41px;
}

/* Cola triangular en el borde superior del contenedor blanco */
body.app-ready #memberHome > .wrap,
body.app-ready #guayaiaRequestsView > .wrap,
body.app-ready #guayaiaCommunity > .wrap,
body.app-ready #guayaiaMarketView > .wrap,
body.app-ready #guayaiaProviderRequestsView > .wrap,
body.app-ready .guayaia-community > .wrap,
body.app-ready #guayaiaCommunity .wrap {
  position: relative !important;
}

body.app-ready #memberHome > .wrap::after,
body.app-ready #guayaiaRequestsView > .wrap::after,
body.app-ready #guayaiaCommunity > .wrap::after,
body.app-ready #guayaiaMarketView > .wrap::after,
body.app-ready #guayaiaProviderRequestsView > .wrap::after,
body.app-ready .guayaia-community > .wrap::after,
body.app-ready #guayaiaCommunity .wrap::after {
  content: "" !important;
  position: absolute !important;
  top: -8px !important;
  left: var(--active-tab-notch-x, 41px) !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 11px solid transparent !important;
  border-right: 11px solid transparent !important;
  border-bottom: 9px solid #ffffff !important;
  z-index: 25 !important;
  transition: left 0.16s cubic-bezier(0.08, 0.9, 0.25, 1) !important;
  filter: drop-shadow(0 -1.5px 0.8px rgba(8, 127, 167, 0.22)) !important;
  pointer-events: none !important;
}

/* Botón de Red en el Header (Paridad con AppBar Android Icons.hub_outlined) */
#guayaiaNetworkBtn,
.header-network-btn {
  width: 33px !important;
  height: 33px !important;
  min-width: 33px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(175, 210, 224, 0.75) !important;
  display: grid !important;
  place-items: center !important;
  color: #087fa7 !important;
  padding: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(5, 54, 74, 0.05) !important;
  position: relative !important;
  transition: transform .12s ease, background .12s ease !important;
}

#guayaiaNetworkBtn:hover {
  background: #eaf6fa !important;
  border-color: #087fa7 !important;
}

#guayaiaNetworkBtn:active {
  transform: scale(0.92) !important;
  background: #dcf3fa !important;
}

#guayaiaNetworkBtn svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  stroke: #087fa7 !important;
}

/* Pestaña activa en barra de navegación: píldora suave con borde celeste (Paridad Android) */
header#mainHeader .nav-links .nav-link.app-active,
body.app-ready header#mainHeader .nav-links > .nav-link.app-active {
  background: #e7f6fb !important;
  color: #087fa7 !important;
  border: 1px solid rgba(8, 127, 167, 0.22) !important;
  box-shadow: 0 2px 8px rgba(8, 127, 167, 0.08) !important;
}

/* =========================================================================
   BLOQUEO ESTRICTO: PROHIBIDO EXPLORAR SIN CUENTA
   Obligatorio Iniciar Sesión o Registrarse para ingresar a GuayaIA.
   ========================================================================= */
#continueGuest,
[data-continue-guest],
.btn-continue-guest,
.continue-guest-btn,
.role-guest-link {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Blindaje de pantalla de bienvenida / login obligatorio */
body.pre-auth .onboarding {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  z-index: 99999 !important;
}

body.role-guest main,
body.role-guest #memberHome,
body.role-guest .wrap.nav,
body.role-guest #mobileNav {
  display: none !important;
}

/* =========================================================================
   ANIMACIÓN ISOTIPO GUAYAIA: 2 GG Y LA ESTRELLA (ACCESO BLOQUEADO / KEYAPI)
   ========================================================================= */

.guayaia-emblem-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Aura y resplandor de fondo pulsante */
.guayaia-emblem-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 191, 228, 0.45) 0%, rgba(8, 127, 167, 0.25) 45%, rgba(220, 53, 69, 0.22) 75%, transparent 100%);
  filter: blur(14px);
  animation: emblemGlowPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes emblemGlowPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.65;
    filter: blur(12px) hue-rotate(0deg);
  }
  50% {
    transform: scale(1.12);
    opacity: 0.95;
    filter: blur(18px) hue-rotate(25deg);
  }
  100% {
    transform: scale(0.95);
    opacity: 0.70;
    filter: blur(14px) hue-rotate(-20deg);
  }
}

/* Anillo cibernético giratorio a 60 FPS */
.guayaia-emblem-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #20bfe4, #087fa7, #071f30, #ff4757, #20bfe4);
  animation: emblemRotateRing 6s linear infinite;
  z-index: 2;
  box-shadow: 0 0 16px rgba(32, 191, 228, 0.35);
}

@keyframes emblemRotateRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Núcleo del emblema con el isotipo de las 2 GG */
.guayaia-emblem-core {
  position: relative;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: #071927;
  overflow: hidden;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.15), inset 0 -4px 14px rgba(0, 0, 0, 0.65);
}

.guayaia-emblem-img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  border-radius: 50%;
  animation: emblemImgFloat 3.8s ease-in-out infinite alternate;
  filter: contrast(1.08) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

@keyframes emblemImgFloat {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.04) translateY(-2px);
  }
  100% {
    transform: scale(0.98) translateY(1.5px);
  }
}

/* Animación de la estrella con destello continuo y rotación */
.guayaia-star-sparkle {
  position: absolute;
  top: 13px;
  right: 28px;
  font-size: 20px;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 8px #ffffff, 0 0 16px #20bfe4, 0 0 24px #20bfe4;
  animation: starTwinkle 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

@keyframes starTwinkle {
  0%, 100% {
    transform: scale(0.75) rotate(0deg);
    opacity: 0.55;
    filter: drop-shadow(0 0 4px #20bfe4);
  }
  50% {
    transform: scale(1.35) rotate(144deg);
    opacity: 1;
    filter: drop-shadow(0 0 14px #20bfe4) drop-shadow(0 0 22px #ffffff);
  }
}

/* Insignia BLOCKED sobrepuesta en el emblema */
.guayaia-emblem-badge {
  position: absolute;
  bottom: -6px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0c1620;
  border: 1px solid rgba(235, 68, 68, 0.65);
  color: #ff5252;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.35);
  animation: blockedBadgePulse 2.4s ease-in-out infinite;
}

@keyframes blockedBadgePulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.35);
    border-color: rgba(235, 68, 68, 0.65);
  }
  50% {
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.65);
    border-color: rgba(255, 90, 90, 0.95);
  }
}

/* Píldora de estado: BLOCKED / Debes tener una keyAPI */
.onb-blocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.32);
  color: #c92a2a;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.06);
}

.blocked-beacon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e03131;
  box-shadow: 0 0 10px #e03131;
  animation: beaconFlash 1.4s ease-in-out infinite;
}

@keyframes beaconFlash {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
    box-shadow: 0 0 6px #e03131;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 14px #e03131;
  }
}

.blocked-title {
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #c92a2a;
}

.blocked-slash {
  color: #e59999;
  font-weight: 600;
}

.blocked-text {
  font-weight: 750;
  color: #8c1e1e;
}

/* Formulario KeyAPI */
.onb-keyapi-form {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 12px;
}

.keyapi-input-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #d0e4ee;
  border-radius: 14px;
  padding: 4px 6px 4px 12px;
  box-shadow: 0 4px 14px rgba(5, 54, 74, 0.05);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.keyapi-input-shell:focus-within {
  border-color: #087fa7;
  box-shadow: 0 0 0 3px rgba(8, 127, 167, 0.15);
}

.keyapi-key-icon {
  color: #087fa7;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.keyapi-field {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #08293b;
  min-width: 0;
}

.keyapi-field::placeholder {
  color: #9cb1bc;
  font-weight: 500;
}

.keyapi-submit-btn {
  background: linear-gradient(135deg, #087fa7, #20bfe4);
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 127, 167, 0.25);
  transition: transform .12s ease, filter .12s ease;
  white-space: nowrap;
}

.keyapi-submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.keyapi-submit-btn:active {
  transform: translateY(0);
}

.keyapi-feedback {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1.35;
}

.keyapi-feedback.error {
  background: #fff0f0;
  color: #c92a2a;
  border: 1px solid rgba(201, 42, 42, 0.2);
}

.keyapi-feedback.success {
  background: #edfbf4;
  color: #087a55;
  border: 1px solid rgba(8, 122, 85, 0.2);
}

.keyapi-field.shake {
  animation: inputShake 0.4s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* =========================================================================
   BARRA DE TIEMPO PROVEEDOR DEMO (1 HORA DE USO)
   ========================================================================= */

.demo-timer-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25000;
  background: linear-gradient(90deg, #071e2c, #0a2e42 50%, #071e2c);
  color: #e5f6fc;
  border-bottom: 1.5px solid rgba(32, 191, 228, 0.35);
  box-shadow: 0 4px 18px rgba(3, 27, 39, 0.28);
  font-size: 12.5px;
  animation: timerSlideDown 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: none !important;
}

body.demo-session-active .demo-timer-bar:not([hidden]),
.demo-timer-bar.show:not([hidden]) {
  display: block !important;
}

.demo-timer-bar[hidden] {
  display: none !important;
}

/* =========================================================================
   MODAL DE TIEMPO EXPIRADO (FIN DE HORA DEMO)
   ========================================================================= */

.demo-expired-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: rgba(4, 25, 37, 0.78);
  backdrop-filter: blur(10px);
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal .3s ease;
}

.demo-expired-backdrop.open,
.demo-expired-backdrop.show {
  display: flex !important;
}

.demo-expired-backdrop[hidden],
[hidden].demo-expired-backdrop {
  display: none !important;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.demo-expired-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 28px;
  padding: 38px 30px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(220, 236, 242, 0.9);
  animation: scaleInCard .34s cubic-bezier(0.2, 0.9, 0.3, 1);
}

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

.demo-expired-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: hourGlassRotate 2.5s ease-in-out infinite alternate;
}

@keyframes hourGlassRotate {
  0% { transform: rotate(0deg) scale(0.95); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(0.95); }
}

.demo-expired-card h3 {
  font-size: 22px;
  font-weight: 900;
  color: #072e42;
  margin: 0 0 10px;
  line-height: 1.25;
}

.demo-expired-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #557280;
  margin: 0 0 24px;
}

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

@media (max-width: 600px) {
  .demo-timer-inner {
    padding: 6px 12px;
  }
  .demo-timer-text {
    display: none;
  }
  .demo-timer-badge {
    font-size: 9px;
  }
  .demo-timer-clock {
    font-size: 13.5px;
  }
  .demo-timer-btn-register {
    padding: 4px 9px;
    font-size: 10px;
  }
  .demo-expired-card {
    padding: 28px 18px;
  }
}

/* Eliminación definitiva de estrellas y banderas residuales en Mi Local */
#guayaiaMiLocalView header,
#guayaiaMiLocalView nav,
#guayaiaMiLocalView .mlo-head,
#guayaiaMiLocalView .mlo-nav,
.mlo-shell header,
.mlo-shell nav,
.mlo-head,
.mlo-nav {
  background-image: none !important;
}

body.app-ready .onboarding {
  display: none !important;
}

/* =========================================================================
   ONBOARDING & REGISTRO: LLAVE DE INVITACIÓN + VERIFICACIÓN OTP POR CORREO
   ========================================================================= */
.onb-field-key {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfe2e9;
  background: #ffffff;
  border-radius: 15px;
  padding: 0 13px;
  box-shadow: 0 6px 18px rgba(7, 67, 90, 0.035);
  transition: all 0.2s ease;
}
.onb-field-key:focus-within {
  border-color: #087fa7;
  box-shadow: 0 0 0 4px rgba(8, 127, 167, 0.12);
}
.onb-field-key .key-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e6f7ec;
  color: #087a55;
  white-space: nowrap;
}
.onb-field-key.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}
.onb-field-key.is-invalid .key-badge {
  background: #fee2e2;
  color: #dc2626;
}

.onb-key-hint {
  font-size: 11.5px;
  color: #56727f;
  margin: -4px 0 6px 4px;
  line-height: 1.35;
}

/* Pantalla de Verificación de Código de Correo (OTP) */
.onb-otp-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  width: 100%;
}
.onb-otp-shell {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.onb-otp-digit {
  width: 46px;
  height: 56px;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  border: 1.5px solid #cfe2e9;
  border-radius: 12px;
  background: #f8fdff;
  color: #072f49;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.onb-otp-digit:focus {
  border-color: #087fa7;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(8, 127, 167, 0.15);
  transform: translateY(-2px);
}
.onb-otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 12px;
  color: #56727f;
}
.onb-otp-resend {
  background: none;
  border: none;
  color: #087fa7;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}
.onb-otp-resend:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .onb-otp-digit {
    width: 38px;
    height: 48px;
    font-size: 20px;
  }
}

/* =========================================================================
   ELIMINACIÓN DE PANTALLA WELCOME Y EMBLEMA ANIMADO EN LOGIN
   ========================================================================= */
.onb-screen[data-screen="welcome"],
.onb-screen[data-screen="login"] .onb-back[data-back="welcome"] {
  display: none !important;
}

/* En la pantalla de login, asegurar que el logo animado tenga el tamaño y centrado perfecto */
.onb-screen[data-screen="login"] .onb-visual .onb-logo {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.onb-screen[data-screen="login"] .onb-visual .guayaia-emblem-wrap {
  margin: 0 !important;
  width: 124px !important;
  height: 124px !important;
}

.onb-screen[data-screen="login"] .onb-visual .guayaia-emblem-core {
  width: 116px !important;
  height: 116px !important;
}

.onb-screen[data-screen="login"] .onb-panel .mini-logo {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 0 auto 14px;
  width: 100%;
}

.onb-screen[data-screen="login"] .onb-panel .mini-logo > img {
  display: none !important;
}

.onb-screen[data-screen="login"] .onb-panel .mini-logo .guayaia-emblem-wrap {
  width: 78px !important;
  height: 78px !important;
  margin: 0 auto !important;
}

.onb-screen[data-screen="login"] .onb-panel .mini-logo .guayaia-emblem-core {
  width: 72px !important;
  height: 72px !important;
}

.onb-screen[data-screen="login"] .onb-panel .mini-logo .guayaia-emblem-glow {
  inset: -8px !important;
  filter: blur(8px) !important;
}

.onb-screen[data-screen="login"] .onb-panel .mini-logo .guayaia-star-sparkle {
  top: 8px !important;
  right: 18px !important;
  font-size: 15px !important;
}

/* Ocultar badge de BLOCKED sobre el emblema en login */
.onb-screen[data-screen="login"] .guayaia-emblem-badge {
  display: none !important;
}

/* Switcher / Alternador Iniciar sesión <-> Crear cuenta en el panel de login */
.onb-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 6px;
  font-size: 13px;
  color: #56727f;
}

.onb-auth-switch button {
  background: none;
  border: none;
  padding: 0;
  color: #087fa7;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.onb-auth-switch button:hover {
  color: #20bfe4;
}

/* =========================================================================
   ALTERNADOR: MIS SOLICITUDES / SOLICITUDES DE USUARIOS (COMUNIDAD)
   ========================================================================= */
.requests-scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf6f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #dce8ec;
  margin-top: 12px;
}

.requests-scope-toggle .scope-btn {
  border: none;
  background: transparent;
  color: #55707d;
  font-weight: 750;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.requests-scope-toggle .scope-btn:hover {
  color: #087fa7;
}

.requests-scope-toggle .scope-btn.active {
  background: #ffffff;
  color: #087fa7;
  font-weight: 850;
  box-shadow: 0 2px 8px rgba(8, 127, 167, 0.12);
}

@media (max-width: 600px) {
  .requests-scope-toggle {
    width: 100%;
    display: flex;
  }
  .requests-scope-toggle .scope-btn {
    flex: 1;
    text-align: center;
    padding: 7px 10px;
    font-size: 11.5px;
  }
}

/* =========================================================================
   MI LOCAL - ESTILOS VISUALES PARA INVENTARIO Y CATÁLOGO DE PRODUCTOS
   ========================================================================= */
.mlo-empty {
  background: #ffffff !important;
  border: 1.5px dashed rgba(8, 127, 167, 0.22) !important;
  border-radius: 18px !important;
  padding: 48px 24px !important;
  box-shadow: 0 4px 16px rgba(6, 63, 89, 0.04) !important;
  margin: 20px 0 !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
}

.mlo-empty b {
  font-size: 17px !important;
  color: var(--g-deep, #063f59) !important;
  font-family: var(--g-font-display) !important;
  font-weight: 800 !important;
}

.mlo-empty p {
  color: var(--g-muted, #5c7a88) !important;
  max-width: 440px !important;
  line-height: 1.5 !important;
  margin: 0 auto !important;
  font-size: 13.5px !important;
}

.mlo-empty-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 14px !important;
  flex-wrap: wrap !important;
}

.mlo-empty-actions .mlo-btn {
  padding: 10px 22px !important;
  border-radius: 12px !important;
  font-weight: 750 !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mlo-empty-actions .mlo-btn-primary {
  background: linear-gradient(135deg, #087fa7 0%, #063f59 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(8, 127, 167, 0.28) !important;
}

.mlo-empty-actions .mlo-btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(8, 127, 167, 0.38) !important;
}

.mlo-empty-actions .mlo-btn-secondary {
  background: #f4f8fa !important;
  color: #063f59 !important;
  border: 1px solid #dce7eb !important;
}

.mlo-empty-actions .mlo-btn-secondary:hover {
  background: #eaf1f4 !important;
}

/* Mejora visual de la tabla de inventario */
.mlo-table-wrap {
  border-radius: 16px !important;
  border: 1px solid #dce7eb !important;
  box-shadow: 0 4px 16px rgba(6, 63, 89, 0.04) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.mlo-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.mlo-table th {
  background: #f4f8fa !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #063f59 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 13px 16px !important;
  border-bottom: 1.5px solid #dce7eb !important;
}

.mlo-table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #edf2f5 !important;
  font-size: 13px !important;
}

.mlo-table tr:last-child td {
  border-bottom: none !important;
}

.mlo-table tr:hover td {
  background: #f8fcfe !important;
}

/* =========================================================================
   MARKET STORE: BARRA DE CATEGORÍAS Y TREE DE PRODUCTOS DEL LOCAL
   ========================================================================= */
.mstore-categories-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 0 16px !important;
  overflow-x: auto !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
}

.mstore-categories-bar::-webkit-scrollbar {
  height: 4px;
}

.mstore-categories-bar::-webkit-scrollbar-thumb {
  background: #dce7eb;
  border-radius: 4px;
}

.mstore-cat-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 16px !important;
  background: #f4f8fa !important;
  border: 1.5px solid #dce7eb !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #37525d !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mstore-cat-chip:hover {
  background: #eaf3f7 !important;
  border-color: #bcd4de !important;
  color: #087fa7 !important;
  transform: translateY(-1px) !important;
}

.mstore-cat-chip.active {
  background: linear-gradient(135deg, #087fa7 0%, #063f59 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(8, 127, 167, 0.28) !important;
}

.mstore-cat-chip .chip-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 7px !important;
  background: rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: inherit !important;
}

.mstore-cat-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
}

/* =========================================================================
   MI LOCAL: ZONA DE PROMOCIONES (PROMO CIRCLE & MODAL)
   ========================================================================= */
.mlo-zone-row {
  display: flex !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin: 12px 0 16px !important;
}

.mlo-zone-row > div {
  flex: 1 1 120px !important;
  min-width: 100px !important;
}

.mlo-promo-zone {
  display: grid !important;
  justify-items: center !important;
  gap: 6px !important;
  padding: 14px 10px 10px !important;
  border: 2px dashed #f5c4b8 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff8f6 0%, #fdedea 100%) !important;
  transition: border-color 0.18s, background 0.18s !important;
}

.mlo-promo-btn {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  gap: 2px !important;
  width: 96px !important;
  height: 96px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 30% 25%, #ff7e40 0%, #d9381e 100%) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(217, 56, 30, 0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  align-content: center !important;
}

.mlo-promo-btn span {
  font-size: 28px !important;
  line-height: 1 !important;
}

.mlo-promo-btn b {
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  font-weight: 900 !important;
}

.mlo-promo-btn::after {
  content: "" !important;
  position: absolute !important;
  inset: -6px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(217, 56, 30, 0.35) !important;
  opacity: 0 !important;
}

body.mlo-dragging .mlo-promo-zone {
  border-color: #d9381e !important;
  background: linear-gradient(180deg, #fef2ee 0%, #fce4dc 100%) !important;
}

body.mlo-dragging .mlo-promo-btn::after {
  animation: mloRing 1.1s ease-out infinite !important;
}

.mlo-promo-zone.mlo-drop-hover {
  border-style: solid !important;
  border-color: #d9381e !important;
  background: #fce4dc !important;
}

.mlo-promo-zone.mlo-drop-hover .mlo-promo-btn {
  transform: scale(1.18) !important;
  box-shadow: 0 12px 30px rgba(217, 56, 30, 0.55) !important;
}

/* Modal de creación de promoción */
.mlo-promo-panel {
  max-width: 480px !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(4, 32, 45, 0.35) !important;
}

.mlo-promo-form {
  display: grid !important;
  gap: 16px !important;
  padding: 18px 20px 24px !important;
}

.mlo-promo-price-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.mlo-promo-field {
  display: grid !important;
  gap: 6px !important;
}

.mlo-promo-field label {
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #31515f !important;
}

/* =========================================================================
   MI LOCAL: BARRA DE FAMILIAS Y CATEGORÍAS TREE EN PRODUCTOS
   ========================================================================= */
.mlo-tree-categories-bar {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 10px 0 14px !important;
  padding: 12px 14px !important;
  background: linear-gradient(135deg, #f3faf7 0%, #e6f5ef 100%) !important;
  border: 1.5px solid #c2e6d8 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 10px rgba(15, 138, 90, 0.06) !important;
}

.mlo-tree-bar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.mlo-tree-bar-title {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  color: #0f6e49 !important;
  letter-spacing: 0.02em !important;
}

.mlo-tree-add-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 12px !important;
  background: #0f8a5a !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(15, 138, 90, 0.28) !important;
}

.mlo-tree-add-btn:hover {
  background: #0b6f48 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 138, 90, 0.35) !important;
}

.mlo-tree-chips-scroll {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 2px !important;
}

.mlo-tree-chips-scroll::-webkit-scrollbar {
  height: 4px;
}

.mlo-tree-chips-scroll::-webkit-scrollbar-thumb {
  background: #c2e6d8;
  border-radius: 4px;
}

.mlo-tree-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  background: #ffffff !important;
  border: 1.5px solid #cce8de !important;
  border-radius: 18px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #175e43 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mlo-tree-chip:hover {
  background: #ecf8f3 !important;
  border-color: #8ed2b8 !important;
  color: #0b6f48 !important;
  transform: translateY(-1px) !important;
}

.mlo-tree-chip.active {
  background: linear-gradient(135deg, #0f8a5a 0%, #085536 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 138, 90, 0.3) !important;
}

.mlo-tree-chip .chip-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1px 6px !important;
  background: rgba(15, 138, 90, 0.12) !important;
  border-radius: 10px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: inherit !important;
}

.mlo-tree-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Modal de creación de Familia TREE */
.mlo-tree-panel {
  max-width: 480px !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(4, 32, 45, 0.35) !important;
}

.mlo-tree-quick-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 4px !important;
}

.mlo-tree-quick-tag {
  display: inline-block !important;
  padding: 4px 10px !important;
  background: #f0f8f5 !important;
  border: 1px solid #cce8de !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0f8a5a !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.mlo-tree-quick-tag:hover {
  background: #0f8a5a !important;
  color: #ffffff !important;
}

