/* ==========================================================================
   LOOKY - HOJA DE ESTILOS PRINCIPAL UNIFICADA (looky-styles.css)
   ========================================================================== */
    /* === RESET TOTAL === */
    *, *::before, *::after { box-sizing: border-box; }
    html, body {
      margin: 0;
      padding: 0;
      overflow: hidden;
      width: 100%;
      height: 100%;
      font-family: 'Outfit', sans-serif;
    }

    /* === SCROLLBARS === */
    ::-webkit-scrollbar { width: 4px; height: 4px; }
    ::-webkit-scrollbar-track { background: rgba(15,23,42,0.05); }
    ::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.25); border-radius: 4px; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
    .no-scrollbar::-webkit-scrollbar { display: none; }

    /* === SWITCHER DE ROLES (OFICIOS / LOCALES) === */
    .role-switcher-icon {
      width: 23px;
      height: 23px;
      object-fit: contain;
      pointer-events: none;
      user-select: none;
      transition: transform 0.18s ease;
    }

    /* === VARIABLES === */
    :root {
      --keilu-blue: #1A3D63;
      --keilu-green: #059669;
      --looky-verde: #059669;
      --looky-verde-vivo: #10B981;
      --looky-verde-oscuro: #047857;
      --looky-verde-suave: #ECFDF5;
      --looky-verde-borde: #A7F3D0;
      --looky-verde-grad: linear-gradient(135deg, #059669 0%, #10B981 100%);
      --looky-promo-grad: linear-gradient(135deg, #FF4D4F 0%, #F97316 100%);
      --keilu-dark-text: #1E293B;

      /* ── MODO DÍA (por defecto) ── */
      --bg-search:   rgba(255, 255, 255, 0.82);
      --bg-nav:      rgba(255, 255, 255, 0.88);
      --bg-panel:    #F8FAFC;
      --text-main:   #0f172a;
      --text-sub:    #64748b;
      --border-ui:   rgba(210, 210, 210, 0.5);
      --shadow-ui:   0 10px 30px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
    }

    /* ── MODO NOCHE ── */
    body.dark-mode {
      --bg-search:   rgba(15, 23, 42, 0.92);
      --bg-nav:      rgba(15, 23, 42, 0.95);
      --bg-panel:    #0b1120;
      --text-main:   #f1f5f9;
      --text-sub:    #94a3b8;
      --border-ui:   rgba(51, 65, 85, 0.8);
      --shadow-ui:   0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
    }

    /* ── Transición suave día/noche en TODO el UI ── */
    .top-search-dock,
    .map-control-deck,
    #explorar-feed-container,
    #descubrir-feed-container,
    #settings-sidebar {
      transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
    }
    /* === MAPA FULL SCREEN === */
    #map {
      position: absolute;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: 0;
    }
    /* Neutralizar filtros CSS (brillo/saturación) para limpiar el color base del mapa */
    #map, .maplibregl-map, .maplibregl-canvas, .maplibregl-canvas-container, .leaflet-tile-pane {
      filter: none !important;
    }
    .maplibregl-ctrl-bottom-right,
    .maplibregl-ctrl-bottom-left { display: none !important; }
    .maplibregl-marker { 
      overflow: visible !important; 
      transform-origin: bottom center !important;
      will-change: transform;
    }
    /* === TRANSICIÓN OLA FLUIDA (GPU ACCELERATED) === */
    @keyframes pinFadeInColor {
      0% {
        opacity: 0;
        transform: translateY(12px) scale(calc(var(--pin-live-scale, 1) * 0.76));
      }
      62% {
        opacity: 1;
        transform: translateY(-2px) scale(calc(var(--pin-live-scale, 1) * 1.04));
      }
      100% {
        opacity: 1;
        transform: translateY(0px) scale(var(--pin-live-scale, 1));
      }
    }
    @keyframes pinFadeOutWhite {
      0% {
        opacity: 1;
        transform: translateY(0px) scale(var(--pin-live-scale, 1));
      }
      100% {
        opacity: 0;
        transform: translateY(-6px) scale(calc(var(--pin-live-scale, 1) * 0.82));
      }
    }
    .pin-anim-enter {
      animation: pinFadeInColor 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
      animation-delay: var(--pin-stagger-delay, 0ms);
      transform-origin: bottom center !important;
      will-change: opacity, transform;
      transform: scale(var(--pin-live-scale, 1));
      transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s ease-out;
    }
    .pin-anim-exit {
      animation: pinFadeOutWhite 0.18s ease-out forwards !important;
      pointer-events: none !important;
    }
    .pin-texto-verde {
      color: #064e3b;
      text-shadow: none;
    }
    .pin-subtexto-verde {
      color: #047857;
      text-shadow: none;
    }
    .pin-texto-azul {
      color: #315B8C;
      text-shadow: none;
    }
    .pin-subtexto-azul {
      color: #315B8C;
      text-shadow: none;
    }
    .pin-texto-naranjo {
      color: #9a3412;
      text-shadow: none;
    }
    .pin-subtexto-naranjo {
      color: #ea580c;
      text-shadow: none;
    }
    body.dark-mode .pin-texto-verde {
      color: #6ee7b7 !important;
      text-shadow: -1px -1px 0 #0f172a, 1px -1px 0 #0f172a, -1px 1px 0 #0f172a, 1px 1px 0 #0f172a, 0 1px 4px rgba(0,0,0,0.85) !important;
    }
    body.dark-mode .pin-subtexto-verde {
      color: #a7f3d0 !important;
      text-shadow: -1px -1px 0 #0f172a, 1px -1px 0 #0f172a, -1px 1px 0 #0f172a, 1px 1px 0 #0f172a !important;
    }
    body.dark-mode .pin-texto-azul {
      color: #93c5fd !important;
      text-shadow: -1px -1px 0 #0f172a, 1px -1px 0 #0f172a, -1px 1px 0 #0f172a, 1px 1px 0 #0f172a, 0 1px 4px rgba(0,0,0,0.85) !important;
    }
    body.dark-mode .pin-subtexto-azul {
      color: #bfdbfe !important;
      text-shadow: -1px -1px 0 #0f172a, 1px -1px 0 #0f172a, -1px 1px 0 #0f172a, 1px 1px 0 #0f172a !important;
    }
    body.dark-mode .pin-texto-naranjo {
      color: #fdba74 !important;
      text-shadow: -1px -1px 0 #0f172a, 1px -1px 0 #0f172a, -1px 1px 0 #0f172a, 1px 1px 0 #0f172a, 0 1px 4px rgba(0,0,0,0.85) !important;
    }
    body.dark-mode .pin-subtexto-naranjo {
      color: #fed7aa !important;
      text-shadow: -1px -1px 0 #0f172a, 1px -1px 0 #0f172a, -1px 1px 0 #0f172a, 1px 1px 0 #0f172a !important;
    }
    /* Cabecera Mapa Rol Verde: sin cuadro, texto flotante legible sobre el mapa */
    .mapa-radar-verde-titulo {
      text-shadow: 0 0 2px #ffffff, 0 0 6px rgba(255,255,255,0.95), 0 1px 10px rgba(255,255,255,0.9);
      letter-spacing: -0.2px;
    }
    #btn-mapa-menu-hamburger.mapa-radar-verde-titulo svg {
      filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 1px 4px rgba(255,255,255,0.95));
    }
    body.dark-mode .mapa-radar-verde-titulo {
      color: #ffffff !important;
      text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    }
    body.dark-mode #btn-mapa-menu-hamburger.mapa-radar-verde-titulo svg {
      filter: drop-shadow(0 1px 3px rgba(0,0,0,0.85));
    }
    /* Pastilla de mensaje junto a emoji (Rol Verde personalizado) */
    .pin-emoji-msg-verde {
      background: #ffffff;
      color: #0f172a;
      font-size: 9px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 999px;
      border: 1px solid rgba(15,23,42,0.08);
      box-shadow: 0 3px 8px rgba(15,23,42,0.16);
      white-space: nowrap;
      max-width: 96px;
      overflow: hidden;
      text-overflow: clip;
      letter-spacing: -0.1px;
    }
    body.dark-mode .pin-card-verde-horizontal {
      background-color: #ffffff !important;
      border-color: rgba(15, 23, 42, 0.12) !important;
    }
    .maplibregl-canvas-container,
    .maplibregl-canvas { width: 100% !important; height: 100% !important; }

    /* === BARRA DE BÚSQUEDA — FIJA, CENTRADA (CON LENGUAJE DE BARRIO) === */
    .top-search-dock {
      position: fixed;
      top: 0.85rem;
      left: 50%;
      transform: translateX(-50%);
      width: 92%;
      max-width: 520px;
      background: var(--bg-search);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 22px;
      padding: 10px 14px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      box-shadow: 0 6px 28px rgba(0,0,0,0.09);
      border: 1px solid var(--border-ui);
      z-index: 50;
    }
    .search-bar-container {
      background: transparent;
      border: none;
      display: flex;
      align-items: center;
      width: 100%;
      gap: 10px;
    }
    /* Input cambia de color en modo noche */
    body.dark-mode #search-input {
      color: #f1f5f9;
    }
    body.dark-mode #search-input::placeholder {
      color: #64748b;
    }

    /* === BARRA DE NAVEGACIÓN INFERIOR (COMPACTA, FONDO BLANCO LIMPIO SIN BORDES) === */
    .map-control-deck {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      background: #ffffff !important;
      border: none !important;
      border-radius: 0;
      padding: 2px 2px calc(2px + env(safe-area-inset-bottom, 0px)) 2px;
      display: flex;
      justify-content: space-around;
      align-items: stretch;
      gap: 0;
      box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.05);
      z-index: 9999 !important;
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }
    body.dark-mode .map-control-deck {
      background: #0f172a !important;
      border: none !important;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    .btn-nav-item {
      position: relative;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 6px 2px 4px 2px;
      border: none !important;
      border-radius: 0;
      color: #94a3b8;
      background: transparent !important;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
      user-select: none;
    }
    .btn-nav-item svg {
      color: #94a3b8;
      transition: color 0.18s ease, transform 0.15s ease;
    }
    .btn-nav-item span {
      color: #94a3b8;
      transition: color 0.18s ease, font-weight 0.18s ease;
    }
    .btn-nav-item:active { transform: scale(0.95); }
    .btn-nav-item:hover:not(.active-nav-tab) {
      color: #64748b;
    }
    .btn-nav-item:hover:not(.active-nav-tab) svg,
    .btn-nav-item:hover:not(.active-nav-tab) span {
      color: #64748b;
    }

    /* === TEMA AZUL (OFICIOS) === */
    .deck-theme-blue .btn-nav-item.active-nav-tab {
      border: none !important;
      background: transparent !important;
    }
    .deck-theme-blue .btn-nav-item.active-nav-tab::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 24px;
      height: 3px;
      border-radius: 0 0 999px 999px;
      background: linear-gradient(135deg, #1E3A8A, #315B8C);
    }
    .deck-theme-blue .btn-nav-item.active-nav-tab svg {
      color: #315B8C !important;
      transform: translateY(-1px);
    }
    .deck-theme-blue .btn-nav-item.active-nav-tab span {
      color: #315B8C !important;
      font-weight: 900 !important;
    }

    /* === TEMA VERDE (LOCALES) === */
    .deck-theme-green .btn-nav-item.active-nav-tab {
      border: none !important;
      background: transparent !important;
    }
    .deck-theme-green .btn-nav-item.active-nav-tab::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 24px;
      height: 3px;
      border-radius: 0 0 999px 999px;
      background: var(--looky-verde-grad, linear-gradient(135deg, #059669, #10b981));
    }
    .deck-theme-green .btn-nav-item.active-nav-tab svg {
      color: var(--looky-verde, #059669) !important;
      transform: translateY(-1px);
    }
    .deck-theme-green .btn-nav-item.active-nav-tab span {
      color: var(--looky-verde, #059669) !important;
      font-weight: 900 !important;
    }

    /* MODO NOCHE */
    body.dark-mode .btn-nav-item svg,
    body.dark-mode .btn-nav-item span {
      color: #64748b;
    }
    body.dark-mode .deck-theme-blue .btn-nav-item.active-nav-tab {
      border: none !important;
    }
    body.dark-mode .deck-theme-blue .btn-nav-item.active-nav-tab::before {
      background: linear-gradient(135deg, #3b82f6, #60a5fa);
    }
    body.dark-mode .deck-theme-blue .btn-nav-item.active-nav-tab svg,
    body.dark-mode .deck-theme-blue .btn-nav-item.active-nav-tab span {
      color: #60a5fa !important;
    }
    body.dark-mode .deck-theme-green .btn-nav-item.active-nav-tab {
      border: none !important;
    }
    body.dark-mode .deck-theme-green .btn-nav-item.active-nav-tab svg,
    body.dark-mode .deck-theme-green .btn-nav-item.active-nav-tab span {
      color: #34d399 !important;
    }

    /* === CATEGORÍAS — Columna en PC, scroll horizontal en móvil === */
    .categories-panel {
      position: fixed;
      z-index: 40;
      /* PC: columna vertical a la derecha */
      top: 4.5rem;
      right: 1rem;
      display: flex;
      flex-direction: column;
      gap: 6px;
      background: rgba(2, 6, 23, 0.45);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.08);
      padding: 8px;
      max-width: 170px;
    }
    /* Móvil: fila horizontal debajo, encima del nav */
    @media (max-width: 640px) {
      .categories-panel {
        top: auto;
        bottom: 6rem;
        right: auto;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        padding: 0 8px;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        scrollbar-width: none;
      }
      .categories-panel::-webkit-scrollbar { display: none; }
      .cat-label { display: none; }
    }



    /* === ANIMACIONES DE PINES === */
    @keyframes radarPulse {
      0% { transform: scale(0.6); opacity: 0.9; }
      100% { transform: scale(2.4); opacity: 0; }
    }
    .pulse-ring-blue {
      position: absolute; width: 32px; height: 32px;
      border: 2px solid rgba(26, 61, 99, 0.6);
      border-radius: 50%; top: -4px; left: -4px;
      animation: radarPulse 2s infinite ease-out;
      pointer-events: none;
    }
    .pulse-ring-green {
      position: absolute; width: 32px; height: 32px;
      border: 2px solid rgba(51, 117, 83, 0.6);
      border-radius: 50%; top: -4px; left: -4px;
      animation: radarPulse 2s infinite ease-out;
      pointer-events: none;
    }
    .custom-pin-v37 { overflow: visible !important; white-space: nowrap !important; }

    /* === EMOJI ANIMATIONS === */
    @keyframes wrenchTurn { 0%,100%{transform:rotate(0deg)} 50%{transform:rotate(45deg)} }
    .anim-wrench { animation: wrenchTurn 1.6s infinite ease-in-out; }
    @keyframes lightningFlicker { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.9)} }
    .anim-lightning { animation: lightningFlicker 0.6s infinite alternate; }
    @keyframes truckDrive { 0%,100%{transform:translateX(0)} 50%{transform:translateX(2px)} }
    .anim-truck { animation: truckDrive 0.8s infinite linear; }
    @keyframes eatingTilt { 0%,100%{transform:rotate(-5deg)} 50%{transform:rotate(5deg)} }
    .anim-eat { animation: eatingTilt 2s infinite ease-in-out; }
    @keyframes pizzaFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
    .anim-pizza { animation: pizzaFloat 2s infinite ease-in-out; }
    @keyframes breadRise { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(1.1)} }
    .anim-bread { animation: breadRise 1.8s infinite ease-in-out; }
    @keyframes scissorSnip { 0%,100%{transform:rotate(0)} 50%{transform:rotate(-15deg)} }
    .anim-scissors { animation: scissorSnip 1s infinite ease-in-out; }
    @keyframes nailsPolish { 0%,100%{transform:rotate(-8deg)} 50%{transform:rotate(8deg)} }
    .anim-nails { animation: nailsPolish 2s infinite ease-in-out; }

    /* === NUEVAS ANIMACIONES WAZE-STYLE STICKERS === */
    @keyframes floatLevitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
    .anim-float { animation: floatLevitate 3s ease-in-out infinite; }
    @keyframes nailPaint { 0%, 100% { transform: rotate(0deg) translateX(0); } 50% { transform: rotate(-8deg) translateX(-1px); } }
    .anim-paint { transform-origin: top right; animation: nailPaint 2s ease-in-out infinite; }
    @keyframes sparkFlicker { 0%, 100% { opacity: 0.2; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }
    .anim-spark { animation: sparkFlicker 0.4s ease-in-out infinite; }
    @keyframes hammerStrike { 0%, 100% { transform: rotate(0deg) translate(0, 0); } 30% { transform: rotate(-15deg) translate(-2px, -3px); } 50% { transform: rotate(5deg) translate(1px, 2px); } }
    .anim-strike { transform-origin: bottom right; animation: hammerStrike 1.5s ease-in-out infinite; }
    @keyframes smokeRise { 0% { opacity: 0; transform: translateY(2px) scale(0.8); } 50% { opacity: 0.6; } 100% { opacity: 0; transform: translateY(-6px) scale(1.2); } }
    .anim-smoke-1 { animation: smokeRise 2.5s ease-in-out infinite; }
    .anim-smoke-2 { animation: smokeRise 2.5s ease-in-out infinite; animation-delay: 1.25s; }

    /* === ANIMACIONES SISTEMA DE RUTA EN VIVO === */
    @keyframes ping {
      75%, 100% { transform: scale(2.2); opacity: 0; }
    }
    @keyframes gpsPulseRing {
      0% { transform: scale(0.8); opacity: 0.6; }
      100% { transform: scale(2.5); opacity: 0; }
    }
    @keyframes destBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }
    @keyframes hudSlideIn {
      from { transform: translate(-50%, -20px); opacity: 0; }
      to { transform: translate(-50%, 0); opacity: 1; }
    }
    @keyframes arrivedPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
      50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    }

    /* === BURBUJA AD === */
    .ad-note-bubble {
      opacity: 0;
      transform: translate(-50%, 8px);
      pointer-events: none;
      transition: all 0.25s ease;
    }
    .ad-note-revealed .ad-note-bubble {
      opacity: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .pantalla-view.hidden,
    #vista-mapa.hidden {
      display: none !important;
    }

    #vista-mapa {
      position: absolute;
      inset: 0;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
      z-index: 10;
    }

    /* === PANEL DE EXPLORAR 1 (DIRECTORIO RÁPIDO DE DATOS) === */
    #explorar-feed-container {
      background-color: var(--bg-panel, #F8FAFC);
    }
    /* Tarjetas del Explorar en modo noche */
    body.dark-mode #explorar-feed-container .bg-white {
      background: #1e293b !important;
      border-color: #334155 !important;
      color: #f1f5f9 !important;
    }
    body.dark-mode #explorar-feed-container h4,
    body.dark-mode #explorar-feed-container h2 {
      color: #f1f5f9 !important;
    }
    body.dark-mode #explorar-feed-container p,
    body.dark-mode #explorar-feed-container .text-slate-500,
    body.dark-mode #explorar-feed-container .text-slate-600 {
      color: #94a3b8 !important;
    }
    body.dark-mode #explorar-feed-container .text-slate-400 {
      color: #64748b !important;
    }
    body.dark-mode #explorar-feed-container .text-slate-900 {
      color: #f1f5f9 !important;
    }
    body.dark-mode #explorar-feed-container .bg-blue-50 { background: #1e3a5f !important; }
    body.dark-mode #explorar-feed-container .bg-slate-50,
    body.dark-mode #explorar-feed-container .bg-slate-100 { background: #0f172a !important; }
    body.dark-mode #explorar-feed-container .border-slate-200,
    body.dark-mode #explorar-feed-container .border-slate-200\/90 { border-color: #334155 !important; }
    body.dark-mode #explorar-feed-container .text-blue-700 { color: #93c5fd !important; }

    /* === PANEL DE EXPLORAR 2 (CARTELERA DE AFICHES Y AVISOS) === */
    #avisos-feed-container {
      background-color: #FFFFFF;
      color: #0F172A;
    }

    /* Estilos para Vitrina (Buscador y Tarjetas — Azul y Verde con el mismo estándar limpio) */
    .avisos-search-blue,
    .avisos-search-green {
      background: #ffffff !important;
      border: 1px solid #e2e8f0 !important;
      color: #0f172a !important;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }
    .avisos-search-blue::placeholder,
    .avisos-search-green::placeholder {
      color: #64748b !important;
      opacity: 0.85;
    }
    body.dark-mode .avisos-search-blue,
    body.dark-mode .avisos-search-green {
      background: rgba(15, 23, 42, 0.95) !important;
      border: 1px solid #334155 !important;
      color: #f8fafc !important;
    }
    body.dark-mode .avisos-search-blue::placeholder,
    body.dark-mode .avisos-search-green::placeholder {
      color: #94a3b8 !important;
    }

    /* === FORMATO DE BORDES EDITORIAL (IMAGEN 2) — UNIFICADO EN VITRINA (AZUL Y VERDE) === */
    #seccion-avisos-trabajadores [data-search-text],
    #seccion-avisos-locales [data-search-text] {
      background: #ffffff;
      border: 1px solid #e8ecf1 !important;
      border-radius: 16px !important;
      padding: 9px !important;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
      transition: border-color 0.2s ease, transform 0.2s ease;
    }
    #seccion-avisos-trabajadores [data-search-text]:hover,
    #seccion-avisos-locales [data-search-text]:hover {
      border-color: #cbd5e1 !important;
    }
    /* Fotos internas limpias, sin líneas ni bordes de color a los costados */
    #seccion-avisos-trabajadores [data-search-text] > div:first-child,
    #seccion-avisos-locales [data-search-text] > div:first-child {
      border: none !important;
      box-shadow: none !important;
      --tw-ring-shadow: 0 0 #0000 !important;
      --tw-ring-offset-shadow: 0 0 #0000 !important;
      border-radius: 12px !important;
    }
    /* Avatares circulares sin halo de color */
    #seccion-avisos-trabajadores [data-search-text] img.rounded-full,
    #seccion-avisos-locales [data-search-text] img.rounded-full {
      --tw-ring-shadow: 0 0 #0000 !important;
      border: 1px solid #e2e8f0 !important;
    }
    /* Líneas divisorias finas entre bloques en Azul y Verde como en Imagen 2 */
    #seccion-avisos-trabajadores > div,
    #seccion-avisos-trabajadores .bloque-horario-trab > div,
    #seccion-avisos-locales > div,
    #seccion-avisos-locales .bloque-horario-loc > div {
      border-bottom: 1px solid #eef0f3;
      padding-bottom: 12px;
    }
    body.dark-mode #seccion-avisos-trabajadores [data-search-text],
    body.dark-mode #seccion-avisos-locales [data-search-text] {
      background: #0f172a !important;
      border-color: #1e293b !important;
    }
    body.dark-mode #seccion-avisos-trabajadores > div,
    body.dark-mode #seccion-avisos-trabajadores .bloque-horario-trab > div,
    body.dark-mode #seccion-avisos-locales > div,
    body.dark-mode #seccion-avisos-locales .bloque-horario-loc > div {
      border-bottom-color: #1e293b;
    }

    /* === ESTILOS LIMPIOS DE VITRINA (BLANCO INSTITUCIONAL & MAQUETA HERO) === */
    /* Tarjetas Destacadas Panorámicas */
    .card-destacado-panoramico {
      width: 87vw !important;
      min-width: 87vw !important;
      max-width: 87vw !important;
      flex-shrink: 0 !important;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    @media (min-width: 640px) {
      .card-destacado-panoramico {
        width: 360px !important;
        min-width: 360px !important;
        max-width: 360px !important;
      }
    }
    @media (min-width: 768px) {
      .card-destacado-panoramico {
        width: 400px !important;
        min-width: 400px !important;
        max-width: 400px !important;
      }
    }
    .card-destacado-panoramico:hover {
      transform: translateY(-2px);
    }
    #feeds-feed-container .card-destacado-panoramico {
      width: 78vw !important;
      min-width: 78vw !important;
      max-width: 328px !important;
    }
    body.dark-mode .card-destacado-panoramico h4 {
      color: #f8fafc !important;
    }
    body.dark-mode .card-destacado-panoramico .text-slate-600 {
      color: #94a3b8 !important;
    }
    body.dark-mode .card-destacado-panoramico img.rounded-full {
      border-color: #1e293b !important;
    }

    /* Tarjetas estándar con fondo blanco limpio y bordes sutiles */
    .card-udla-blue,
    .card-udla-red,
    .card-udla-amber,
    .card-udla-orange,
    .card-udla-green {
      background: #FFFFFF !important;
      border: 1px solid rgba(226, 232, 240, 0.9) !important;
      box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(0, 0, 0, 0.04) !important;
      transition: all 0.25s ease !important;
    }
    .card-udla-blue:hover,
    .card-udla-red:hover,
    .card-udla-amber:hover,
    .card-udla-orange:hover,
    .card-udla-green:hover {
      border-color: rgba(148, 163, 184, 0.8) !important;
      box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.10) !important;
      transform: translateY(-2px);
    }
    .card-udla-blue > div:last-child,
    .card-udla-red > div:last-child,
    .card-udla-amber > div:last-child,
    .card-udla-orange > div:last-child,
    .card-udla-green > div:last-child {
      background: #FFFFFF !important;
    }

    /* ── MODO NOCHE: VITRINA CON CONTORNOS Y FONDOS NEÓN SUAVES ── */
    body.dark-mode #avisos-feed-container {
      background-color: #0b1120 !important;
      color: #f1f5f9 !important;
    }
    body.dark-mode #avisos-feed-container h2,
    body.dark-mode #avisos-feed-container h3,
    body.dark-mode #avisos-feed-container h4 {
      color: #f8fafc !important;
    }
    body.dark-mode #avisos-feed-container .text-slate-900 {
      color: #f8fafc !important;
    }
    body.dark-mode #avisos-feed-container .text-slate-600,
    body.dark-mode #avisos-feed-container .text-slate-500 {
      color: #94a3b8 !important;
    }
    body.dark-mode #avisos-feed-container .bg-white {
      background-color: #1e293b !important;
      border-color: #334155 !important;
    }
    body.dark-mode .card-destacado-panoramico,
    body.dark-mode .card-udla-blue,
    body.dark-mode .card-udla-red,
    body.dark-mode .card-udla-amber,
    body.dark-mode .card-udla-orange,
    body.dark-mode .card-udla-green {
      border-color: #334155 !important;
    }
    body.dark-mode .card-destacado-panoramico > div:last-child,
    body.dark-mode .card-udla-blue > div:last-child,
    body.dark-mode .card-udla-red > div:last-child,
    body.dark-mode .card-udla-amber > div:last-child,
    body.dark-mode .card-udla-orange > div:last-child,
    body.dark-mode .card-udla-green > div:last-child {
      background: transparent !important;
    }

    /* === PANEL DE EXPLORAR 2 (DIRECTORIO POR CERCANÍA + SWITCHER) === */
    #explorar2-feed-container {
      background-color: #FFFFFF;
      color: var(--text-main, #0F172A);
    }
    body.dark-mode #explorar2-feed-container .bg-white {
      background: #1e293b !important;
      border-color: #334155 !important;
    }
    body.dark-mode #explorar2-feed-container h2,
    body.dark-mode #explorar2-feed-container h4 {
      color: #f1f5f9 !important;
    }
    body.dark-mode #explorar2-feed-container .text-slate-900 { color: #f1f5f9 !important; }
    body.dark-mode #explorar2-feed-container .text-slate-600,
    body.dark-mode #explorar2-feed-container .text-slate-500 { color: #94a3b8 !important; }

    /* === PANEL DE DESCUBRIR (NUEVA VISTA DISCOVER ESTILO MAQUETA) === */
    .pantalla-view {
      width: 100%;
      height: 100%;
      min-height: 100vh;
      position: absolute;
      inset: 0;
      z-index: 10;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .pantalla-view::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }

    /* === PANEL DE AJUSTES (Settings Sidebar - Diseño Limpio Looky) === */
    #settings-sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 332px;
      max-width: 84vw;
      background: #ffffff;
      color: #0f172a;
      border-right: 1px solid rgba(15, 23, 42, 0.08);
      border-top-right-radius: 26px;
      border-bottom-right-radius: 26px;
      box-shadow: none;
      z-index: 10020;
      transform: translateX(-100%);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      padding: 0 !important;
      overflow: hidden;
    }
    @media (max-width: 640px) {
      #settings-sidebar {
        width: 82vw;
        max-width: 340px;
        border-right: none;
      }
    }
    #settings-sidebar.open {
      transform: translateX(0);
      box-shadow: 12px 0 36px rgba(15, 23, 42, 0.24);
    }
    /* Overlay oscuro al abrir el panel (cubre también la barra inferior para evitar cortes visuales) */
    #settings-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.42);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      z-index: 10010;
    }
    #settings-overlay.visible { display: block; }

    body.dark-mode #settings-sidebar {
      background: #0f172a;
      color: #f8fafc;
      border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* === OPTIMIZACIONES CELULAR & CONTROLES LOOKY MAPA === */
    #top-barrio-header {
      pointer-events: none !important;
      -webkit-user-select: none;
      user-select: none;
      background-color: transparent !important;
    }

    body.dark-mode #top-barrio-header {
      background-color: transparent !important;
    }

    /* Modal Tarjeta Proveedor Centrado en Pantalla (Móvil y Tablet) */
    #tarjeta-emergente {
      position: fixed !important;
      inset: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      z-index: 60 !important;
      padding: 12px !important;
      box-sizing: border-box !important;
    }

    #tarjeta-emergente > div {
      width: 100% !important;
      max-width: 420px !important;
      max-height: 80vh !important;
      overflow-y: auto !important;
      margin: auto !important;
      -webkit-overflow-scrolling: touch !important;
    }

    #top-barrio-header {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }

    body.dark-mode #top-barrio-header {
      background: transparent !important;
      box-shadow: none !important;
    }

    #top-barrio-brand-bar {
      background: #ffffff !important;
      border: none !important;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
    }

    body.dark-mode #top-barrio-brand-bar {
      background: #0f172a !important;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
    }

    #mapa-quick-chips-wrapper {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }

    body.dark-mode #mapa-quick-chips-wrapper {
      background: transparent !important;
    }

    #mapa-search-container {
      touch-action: manipulation;
    }

    #btn-floating-vitrina-morado {
      position: fixed !important;
      top: 114px !important;
      right: 14px !important;
      bottom: auto !important;
      width: 34px !important;
      height: 34px !important;
      z-index: 40 !important;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    #btn-floating-location {
      position: fixed !important;
      bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
      right: 16px !important;
      z-index: 35 !important;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    #btn-floating-negocio {
      position: fixed !important;
      bottom: calc(134px + env(safe-area-inset-bottom, 0px)) !important;
      right: 16px !important;
      z-index: 35 !important;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    #btn-floating-manual-location {
      position: fixed !important;
      bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
      left: 16px !important;
      z-index: 35 !important;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    /* === TARJETAS FLOTANTES V4 TRANSPARENTES + RECTÁNGULO DOBLE + MINILOGO === */
    #btn-floating-location,
    #btn-floating-negocio,
    #btn-floating-manual-location {
      transition: bottom 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s ease !important;
    }

    body.looky-sheet-open #btn-floating-location {
      bottom: calc(var(--looky-sheet-total-h, 216px) + 10px) !important;
    }
    body.looky-sheet-open #btn-floating-negocio {
      bottom: calc(var(--looky-sheet-total-h, 216px) + 68px) !important;
    }
    body.looky-sheet-open #btn-floating-manual-location {
      bottom: calc(var(--looky-sheet-total-h, 216px) + 10px) !important;
    }

    body.looky-sheet-collapsed #btn-floating-location {
      bottom: calc(var(--looky-sheet-total-h, 86px) + 10px) !important;
    }
    body.looky-sheet-collapsed #btn-floating-negocio {
      bottom: calc(var(--looky-sheet-total-h, 86px) + 68px) !important;
    }
    body.looky-sheet-collapsed #btn-floating-manual-location {
      bottom: calc(var(--looky-sheet-total-h, 86px) + 10px) !important;
    }

    .looky-destacados-sheet {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 52px;
      z-index: 34;
      background: transparent;
      box-shadow: none;
      border: none;
      padding-bottom: 8px;
      transition: transform 0.25s ease;
      pointer-events: none;
      user-select: none;
    }

    .looky-destacados-sheet.is-collapsed {
      padding-bottom: 6px;
    }
    .looky-destacados-sheet.is-collapsed .looky-sheet-track {
      display: none;
    }

    .looky-sheet-controls-row {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding: 0 14px 6px;
      pointer-events: none;
    }
    .looky-destacados-sheet.is-collapsed .looky-sheet-controls-row {
      padding-bottom: 2px;
    }

    .looky-sheet-toggle-btn {
      pointer-events: auto;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 11px;
      border-radius: 999px;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: rgba(255, 255, 255, 0.90);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      color: #0f172a;
      font-size: 11px;
      font-weight: 800;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.15s ease, transform 0.15s ease;
    }
    .looky-sheet-toggle-btn:active {
      transform: scale(0.95);
    }
    body.dark-mode .looky-sheet-toggle-btn {
      background: rgba(15, 23, 42, 0.88);
      border-color: rgba(148, 163, 184, 0.22);
      color: #f8fafc;
    }

    .looky-sheet-track {
      pointer-events: auto;
      display: flex;
      align-items: stretch;
      gap: 10px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding-left: 14px;
      padding: 2px 14px 4px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .looky-sheet-track::-webkit-scrollbar {
      display: none;
    }

    .looky-sheet-card {
      pointer-events: auto;
      width: 74vw;
      max-width: 284px;
      min-width: 238px;
      flex-shrink: 0;
      scroll-snap-align: start;
      background: #ffffff;
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 16px;
      padding: 5px;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
      cursor: pointer;
      transition: transform 0.16s ease, box-shadow 0.16s ease;
    }
    .looky-sheet-card:active {
      transform: scale(0.985);
    }
    body.dark-mode .looky-sheet-card {
      background: #1e293b;
      border-color: rgba(148, 163, 184, 0.16);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
    }

    .looky-sheet-photo-wrap {
      position: relative;
      width: 100%;
      height: 88px;
      overflow: visible;
    }
    .looky-sheet-photo-box {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 11px;
      overflow: hidden;
      background: #e2e8f0;
    }
    body.dark-mode .looky-sheet-photo-box {
      background: #334155;
    }

    .looky-sheet-minilogo {
      position: absolute;
      left: 8px;
      bottom: -12px;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      background: #ffffff;
      border: 2.5px solid #ffffff;
      box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
      overflow: hidden;
      z-index: 4;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    body.dark-mode .looky-sheet-minilogo {
      background: #1e293b;
      border-color: #1e293b;
    }
    .looky-sheet-minilogo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .looky-sheet-minilogo.is-sticker img {
      object-fit: contain;
      padding: 2px;
    }

    .looky-sheet-single-photo {
      width: 100%;
      height: 100%;
    }
    .looky-sheet-single-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .looky-sheet-dual-photos {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
      width: 100%;
      height: 100%;
      background: #ffffff;
    }
    body.dark-mode .looky-sheet-dual-photos {
      background: #0f172a;
    }
    .looky-sheet-photo-cell {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    .looky-sheet-photo-cell img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .looky-sheet-status-pill {
      position: absolute;
      top: 6px;
      left: 6px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2.5px 7px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.94);
      color: #0f172a;
      font-size: 9.5px;
      font-weight: 800;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
      line-height: 1.1;
    }
    .looky-sheet-status-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      flex-shrink: 0;
    }
    .looky-sheet-dist-pill {
      position: absolute;
      top: 6px;
      right: 6px;
      padding: 2.5px 7px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.72);
      color: #ffffff;
      font-size: 9.5px;
      font-weight: 800;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      line-height: 1.1;
    }

    .looky-sheet-body {
      padding: 14px 4px 2px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .looky-sheet-row-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }
    .looky-sheet-name {
      margin: 0;
      font-size: 13px;
      font-weight: 900;
      color: #0f172a;
      line-height: 1.15;
      letter-spacing: -0.015em;
      white-space: nowrap;
      overflow: hidden;
    }
    body.dark-mode .looky-sheet-name {
      color: #f8fafc;
    }
    .looky-sheet-rating {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 6px;
      border-radius: 6px;
      background: #fef3c7;
      color: #92400e;
      font-size: 10px;
      font-weight: 900;
      flex-shrink: 0;
      line-height: 1.1;
    }

    .looky-sheet-row-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-top: 1px;
    }
    .looky-sheet-sub {
      font-size: 10.5px;
      font-weight: 600;
      color: #475569;
      line-height: 1.15;
      white-space: nowrap;
      overflow: hidden;
      min-width: 0;
    }
    body.dark-mode .looky-sheet-sub {
      color: #cbd5e1;
    }

    .looky-sheet-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .looky-sheet-price {
      font-size: 13px;
      font-weight: 900;
      letter-spacing: -0.02em;
      white-space: nowrap;
    }
    .looky-sheet-btn-ver {
      border: none;
      border-radius: 999px;
      padding: 4px 11px;
      color: #ffffff;
      font-size: 10.5px;
      font-weight: 900;
      cursor: pointer;
      line-height: 1.1;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    }

    .looky-sheet-empty {
      pointer-events: auto;
      width: 100%;
      padding: 14px 16px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
      text-align: center;
      font-size: 12px;
      font-weight: 700;
      color: #475569;
    }


