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

/* ========================================
   HOMEPAGE BUSCADOR BETA - OPCIÓN 3: ESTILO GOOGLE
   Archivo: homepage.css
   ======================================== */

:root {
  --amarillo: #ffe600;
  --amarillo-hover: #ffd000;
  --negro: #141414;
  --negro-claro: #1a1a1a;
  --gris-oscuro: #222;
  --gris-medio: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── COMPORTAMIENTO NATIVO ── */
html {
  overscroll-behavior-y: contain;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--negro);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevenir seleccion en elementos interactivos */
button, .categoria-card, .oferta-card, .top10-card,
.nav-item, .cta-sticky, .zona-trigger, .zona-sheet-item,
.mock-oferta, .mock-top-item, .negocio-card {
  -webkit-user-select: none;
  user-select: none;
}

/* Animacion de entrada de pagina */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shake para búsqueda vacía */
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

body {
  animation: pageEnter 0.3s ease-out;
}

body.page-exit {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  padding: 1rem 3rem;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  padding-left: calc(3rem + env(safe-area-inset-left, 0px));
  padding-right: calc(3rem + env(safe-area-inset-right, 0px));
  background: rgba(0, 0, 0, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.header.header-hidden {
  transform: translateY(-100%);
}

/* ========================================
   LOGO (header inline)
   ======================================== */
.logo { display:flex; align-items:center; font-size:1.6rem; font-weight:800; letter-spacing:-0.5px; font-family: inherit; }
.logo-text { color:#ffffff; }
.logo-accent { color:#ffe600; }

/* ========================================
   MENÚ DRAWER
   ======================================== */
.btn-menu {
  background: none; border: none; color: #fff;
  cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  transition: background 0.15s;
}
.btn-menu:hover { background: #1a1a1a; }
.btn-menu i { font-size: 1.3rem; }

.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200; opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 78%; max-width: 300px;
  background: #0e0e0e;
  border-left: 1px solid #1e1e1e;
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.menu-drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 1.2rem 1.2rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #1a1a1a;
}
.drawer-logo { font-size: 1.3rem; font-weight: 800; }
.btn-close {
  background: #1a1a1a; border: none; color: #888;
  width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: color 0.15s;
}
.btn-close:hover { color: #fff; }

.drawer-nav { flex: 1; padding: 0.75rem 0; overflow-y: auto; }

.nav-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  color: #ccc; text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: background 0.15s, color 0.15s; cursor: pointer;
}
.nav-item:hover { background: #141414; color: #fff; }

.nav-icon {
  width: 32px; height: 32px; background: #1a1a1a;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #888; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover .nav-icon { background: #222; color: #fff; }
.nav-divider { height: 1px; background: #1a1a1a; margin: 0.5rem 1.2rem; }

.drawer-footer { padding: 1rem 1.2rem; border-top: 1px solid #1a1a1a; }
.btn-registro-menu {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.75rem;
  background: #ffe600; color: #000; border: none;
  border-radius: 10px; font-size: 0.88rem; font-weight: 800;
  cursor: pointer; text-decoration: none; transition: background 0.15s;
}
.btn-registro-menu:hover { background: #f5dc00; }
.drawer-tagline { text-align: center; font-size: 0.68rem; color: #444; margin-top: 0.75rem; }

/* Botón "Cerrar sesión" del drawer lateral — con feedback táctil */
.btn-logout-drawer {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #888;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}
.btn-logout-drawer:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ccc;
}
.btn-logout-drawer:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.06);
}
.btn-logout-drawer:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.btn-logout-drawer .fa-spinner {
  animation: nowdii-logout-spin 0.7s linear infinite;
}
@keyframes nowdii-logout-spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   HERO BUSCADOR - ESTILO GOOGLE
   ======================================== */
.buscador-compacto {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 4rem 3rem;
  position: relative;
}

/* Hero Content */
.hero-content {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.hero-title span {
  color: var(--amarillo);
  display: inline-block;
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--amarillo);
  opacity: 0.5;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #999;
  font-weight: 400;
}

/* Input Flotante - Estilo Google */
.search-floating {
  background: rgba(34, 34, 34, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 230, 0, 0.2);
  border-radius: 50px;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3);
}

.search-floating:hover,
.search-floating:focus-within {
  border-color: var(--amarillo);
  box-shadow: 
    0 20px 70px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(255, 230, 0, 0.3);
  transform: translateY(-3px);
}

.search-floating i {
  color: var(--amarillo);
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.search-floating:focus-within i {
  transform: scale(1.1);
}

.search-floating input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  outline: none;
}

.search-floating input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* Controles Minimalistas */
.search-controls-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
  width: 100%;
}

/* ========================================
   OFERTAS
   ======================================== */
.ofertas-hero {
  padding: 1.5rem 1rem;
  background: linear-gradient(to bottom, var(--negro-claro), var(--negro));
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Section header con ícono + línea — igual que galería */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.section-header i { color: #aaa; font-size: 0.9rem; }
.section-header span { font-size: 0.95rem; font-weight: 700; color: white; }
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #242424;
}

/* Card Próximamente — dark consistente */
.prox-card {
  background: #1a1a1a;
  border: 1px solid #242424;
  border-left: 3px solid rgba(255, 230, 0, 0.4);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
/* Ícono gigante de fondo decorativo */
.prox-card::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: 0.04;
}

.prox-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 230, 0, 0.08);
  border: 1px solid rgba(255, 230, 0, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffe600;
  flex-shrink: 0;
}

.prox-card h3 {
   font-size: 0.92rem;
  font-weight: 700;
  color: #888;
  margin-bottom: 3px;
}

.prox-card p {
    font-size: 0.76rem;
  color: #3a3a3a;
  line-height: 1.5;
}

.ofertas-carrusel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

.ofertas-carrusel .prox-card {
  grid-column: 1 / -1;
}

.oferta-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.oferta-card.principal {
  grid-row: span 2;
}

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

.oferta-card.principal .oferta-img {
  height: 500px;
}

.oferta-card:not(.principal) .oferta-img {
  height: 240px;
}

.oferta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.oferta-badge {
  background: var(--amarillo);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.oferta-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.oferta-card.principal .oferta-title {
  font-size: 2.5rem;
}

/* ========================================
   TOP 10
   ======================================== */
.top10-section {
  padding: 3rem;
}

.top10-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.top10-grid .prox-card {
  grid-column: 1 / -1;
}

.top10-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  background: var(--negro-claro);
}

.top10-card:hover {
  transform: translateY(-10px);
}

.top10-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.top10-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--amarillo);
  color: #000;
  font-weight: 900;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.top10-info {
  padding: 1rem;
}

.top10-name {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.top10-rating {
  color: var(--amarillo);
  font-size: 0.9rem;
}

/* ========================================
   CATEGORÍAS
   ======================================== */
.categorias-section {
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to bottom, var(--negro), var(--negro-claro));
}

.categorias-header {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title-main {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #999;
  font-weight: 400;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.categoria-card {
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.categoria-card:hover {
  background: #222;
  border-color: #333;
}

/* Colores por categoría */
.categoria-card[data-categoria="alimentos"]  .categoria-icon {
  background: linear-gradient(135deg, #ff9a3c 0%, #ff4d2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.categoria-card[data-categoria="salud"]       .categoria-icon { color: #2196F3; }
.categoria-card[data-categoria="servicios"]   .categoria-icon { color: #90A4AE; }
.categoria-card[data-categoria="compras"]     .categoria-icon { color: #4CAF50; }
.categoria-card[data-categoria="hogar"]       .categoria-icon { color: #BCAAA4; }
.categoria-card[data-categoria="urgencias"]   .categoria-icon { color: #F44336; }
.categoria-card[data-categoria="belleza"]     .categoria-icon { color: #f472b6; }
.categoria-card[data-categoria="aprende"]     .categoria-icon { color: #a78bfa; }
.categoria-card[data-categoria="eventos"]     .categoria-icon { color: #22d3ee; }
.categoria-card[data-categoria="activate"]    .categoria-icon { color: #34d399; }

.categoria-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: block;
  transition: transform 0.2s ease;
  color: #888; /* color base por si no hay regla específica */
}

.categoria-card:hover .categoria-icon {
  transform: scale(1.15);
}

.categoria-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: #aaa;
}

/* ========================================
   STICKY BAR CTA
   ======================================== */
/* Espacio para que la barra no tape contenido */
body { padding-bottom: 90px; }

.cta-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to top, #0a0a0a 70%, transparent);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: slideUpCta 0.8s ease-out 0.5s both;
  /* No bloquear touches en la zona transparente del gradiente;
     solo los elementos interactivos internos capturan el click. */
  pointer-events: none;
}
.cta-sticky-toggle,
.cta-sticky-inner { pointer-events: auto; }

.cta-sticky-toggle {
  display: block;
  margin: 0 auto 8px;
  background: rgba(255,255,255,0.10);
  border: none;
  color: #777;
  font-size: 0.55rem;
  padding: 3px 18px;
  border-radius: 0 0 10px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
  backdrop-filter: blur(4px);
}
.cta-sticky-toggle:active {
  background: rgba(255,255,255,0.18);
  color: #aaa;
}

/* ── STICKY BAR COMPRIMIDA ── */
.cta-mini {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.cta-mini-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffe600, #ffd000);
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,230,0,0.25);
  -webkit-tap-highlight-color: transparent;
}
.cta-mini-btn:active { transform: scale(0.95); }
.cta-mini-arrow { font-size: 0.6rem; color: #5a5a00; }

@keyframes slideUpCta {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-sticky-inner {
  background: linear-gradient(135deg, #ffe600, #ffd000);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 30px rgba(255,230,0,0.25);
}
.cta-sticky-inner:active { transform: scale(0.97); }

.cta-sticky-text h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
}
.cta-sticky-text p {
  font-size: 0.65rem;
  color: #4a4a00;
  margin-top: 1px;
  font-weight: 500;
}

.cta-sticky-arrow {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 0.85rem;
}

/* ========================================
   DRAWER TIPO DE REGISTRO
   ======================================== */
.registro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.registro-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.registro-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #141414;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 0 20px 28px;
  max-width: 500px;
  margin: 0 auto;
}
.registro-drawer.open { transform: translateY(0); }

.registro-drawer-handle {
  width: 36px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin: 12px auto 20px;
}

.registro-drawer-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.registro-drawer-sub {
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 20px;
}

.registro-opciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.registro-opcion {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.registro-opcion:active {
  background: #252525;
  border-color: rgba(255,230,0,0.3);
}

.registro-opcion-icono {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.registro-opcion-icono.negocio {
  background: rgba(255,230,0,0.1);
  border: 1px solid rgba(255,230,0,0.2);
  color: #ffe600;
}
.registro-opcion-icono.servicio {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: #3b82f6;
}

.registro-opcion-info { flex: 1; min-width: 0; }
.registro-opcion-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}
.registro-opcion-info p {
  font-size: 0.7rem;
  color: #666;
  margin-top: 2px;
  line-height: 1.4;
}

.registro-opcion-arrow {
  font-size: 0.65rem;
  color: #444;
  flex-shrink: 0;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

/* ========================================
   RESPONSIVE - TABLET / DESKTOP
   ======================================== */
@media (min-width: 1024px) {

  /* Hero más espacioso */
  .buscador-compacto {
    padding: 6rem 3rem 4rem;
    max-width: 860px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  /* Contenedor máximo para secciones */
  .ofertas-hero,
  .top10-section,
  .categorias-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  /* Categorías en 6 columnas */
  .categorias-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Top10 mock ocupa todo el ancho */
  .top10-mock {
    width: 100%;
  }

  /* Espacio extra abajo en categorías para que el botón flotante no tape */
  .categorias-section {
    padding-bottom: 1.5rem;
  }

  /* CTA sticky centrado y limitado en desktop */
  .cta-sticky {
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cta-sticky-inner {
    max-width: 400px;
    width: 100%;
  }
  .cta-mini {
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
  }

  /* Ofertas: 3 columnas, cards más altas que anchas */
  .ofertas-mock {
    grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
    justify-content: start;
  }

  .ofertas-mock > div {
    min-height: 260px !important;
  }

}

@media (min-width: 1400px) {
  .buscador-compacto {
    max-width: 960px;
    padding: 7rem 3rem 5rem;
  }

  .ofertas-hero,
  .top10-section,
  .categorias-section {
    max-width: 1400px;
  }
}

@media (max-width: 1024px) {
  .ofertas-carrusel {
    grid-template-columns: 1fr 1fr;
  }
  
  .oferta-card.principal {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .top10-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .categorias-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */
@media (max-width: 768px) {
  /* HEADER */
  .header {
    padding: 1rem 1.5rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .btn-agregar-negocio {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  /* BUSCADOR */
  .buscador-compacto {
    padding: 2.5rem 1rem 2rem;
    margin: 0 0 2rem;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .search-floating {
    padding: 1.2rem 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .search-floating i {
    font-size: 1.2rem;
  }
  
  .search-floating input {
    font-size: 1rem;
  }
  
  .search-controls-minimal {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }
  
  .location-minimal {
    width: 100%;
    justify-content: center;
  }
  
  .voice-btn-minimal {
    width: 45px;
    height: 45px;
  }
  
  /* OFERTAS */
  .ofertas-hero {
    padding: 1.5rem 0 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .ofertas-carrusel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Scroll horizontal con snap para ofertas mock */
  .ofertas-mock {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-right: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ofertas-mock::-webkit-scrollbar { display: none; }

  .ofertas-mock .mock-oferta {
    flex: 0 0 75%;
    scroll-snap-align: start;
    height: 140px;
  }

  .ofertas-mock .mock-overlay {
    border-radius: 14px;
  }
  
  .oferta-card.principal {
    grid-column: span 1;
  }
  
  .oferta-card.principal .oferta-img {
    height: 220px;
  }
  
  .oferta-card:not(.principal) .oferta-img {
    height: 180px;
  }
  
  .oferta-overlay {
    padding: 1rem;
  }
  
  .oferta-badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .oferta-title {
    font-size: 1rem;
  }
  
  .oferta-card.principal .oferta-title {
    font-size: 1.5rem;
  }
  
  /* TOP 10 */
  .top10-section {
    padding: 1.5rem 1rem;
  }
  
  .top10-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .top10-img {
    height: 180px;
  }
  
  .top10-number {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .top10-info {
    padding: 0.7rem;
  }
  
  .top10-name {
    font-size: 0.9rem;
  }
  
  .top10-rating {
    font-size: 0.8rem;
  }
  
  /* CATEGORÍAS */
  .categorias-section {
    padding: 1rem;
  }
  
  .categorias-header {
    margin-bottom: 0.75rem;
  }
  
  .section-title-main {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    color: #aaa;
  }
  
  .categorias-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  
  .categoria-card {
    padding: 0.9rem 0.4rem;
    border-radius: 12px;
  }
  
  .categoria-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }
  
  .categoria-name {
    font-size: 1rem;
  }
  
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO
   ======================================== */
@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }
  
  .btn-agregar-negocio {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .buscador-compacto {
    padding: 2rem 0.8rem 1.5rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
  }
  
  .search-floating {
    padding: 1rem 1.5rem;
  }
  
  .oferta-card.principal .oferta-img {
    height: 180px;
  }
  
  .oferta-card:not(.principal) .oferta-img {
    height: 150px;
  }
  
  .oferta-title {
    font-size: 0.9rem;
  }
  
  .oferta-card.principal .oferta-title {
    font-size: 1.2rem;
  }
  
  .categorias-section {
    padding: 0.8rem;
  }
  
  .section-title-main {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
  }
  
  .categorias-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .categoria-card {
    padding: 0.8rem 0.3rem;
  }
  
  .categoria-icon {
    font-size: 1.4rem;
  }
  
  .categoria-name {
    font-size: 0.9rem;
  }
  
}
/* ========================================
   MOCK CARDS - OPCIÓN A
   ======================================== */

/* OFERTAS — grid 2x2 con overlay */
.ofertas-mock {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-oferta {
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 14px;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.mock-oferta-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.06;
  color: white;
}

.mock-oferta-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.mock-tag {
  display: inline-block;
  background: rgba(255,211,0,0.12);
  border: 1px solid rgba(255,211,0,0.22);
  color: #ffe600;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.mock-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #444;
}

.mock-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(18,18,18,0.72);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  padding: 16px;
  text-align: center;
}

.mock-overlay-icon {
  width: 44px; height: 44px;
  background: rgba(255,211,0,0.1);
  border: 1px solid rgba(255,211,0,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffe600;
}

.mock-overlay h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.mock-overlay p {
  font-size: 0.72rem;
  color: #555;
  line-height: 1.4;
  max-width: 200px;
}

/* TOP 10 — lista con overlay */
.top10-mock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-top-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 10px 14px;
}

.mock-num {
  font-size: 1rem;
  font-weight: 900;
  color: #222;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.mock-num.gold { color: rgba(255,211,0,0.25); }

.mock-avatar {
  width: 36px; height: 36px;
  background: #222;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-info { flex: 1; }

.mock-bar-name {
  height: 8px;
  border-radius: 4px;
  background: #222;
  margin-bottom: 5px;
  width: 70%;
}

.mock-bar-sub {
  height: 6px;
  border-radius: 4px;
  background: #1e1e1e;
  width: 45%;
}

.mock-stars { display: flex; gap: 2px; }

.mock-star {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: #1e1e1e;
}

.mock-star.lit { background: rgba(255,211,0,0.2); }

.top10-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(18,18,18,0.72);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  text-align: center;
  padding: 16px;
}

.top10-overlay-icon {
  width: 44px; height: 44px;
  background: rgba(255,211,0,0.1);
  border: 1px solid rgba(255,211,0,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffe600;
}

.top10-overlay h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.top10-overlay p {
  font-size: 0.72rem;
  color: #555;
  line-height: 1.4;
  max-width: 200px;
}

/* TOP 10 — Podio + lista (Opción C) */
.topC-header { padding: 16px 16px 8px; }

.topC-titulo {
  font-size: 0.95rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.topC-titulo i { color: #ffe600; font-size: 0.85rem; }

.topC-podio {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 8px; padding: 20px 8px 16px; margin-bottom: 8px;
}

.topC-podio-slot {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex: 1; text-decoration: none;
}
.topC-podio-slot.first  { order: 2; }
.topC-podio-slot.second { order: 1; }
.topC-podio-slot.third  { order: 3; }

.topC-podio-avatar {
  border-radius: 50%; overflow: hidden; border: 2.5px solid #333;
  background: #2a2a2a; display: flex; align-items: center; justify-content: center;
}
.topC-podio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topC-podio-slot.first  .topC-podio-avatar { width: 64px; height: 64px; border-color: #ffd700; }
.topC-podio-slot.second .topC-podio-avatar { width: 52px; height: 52px; border-color: #c0c0c0; }
.topC-podio-slot.third  .topC-podio-avatar { width: 52px; height: 52px; border-color: #cd7f32; }

.topC-podio-badge {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900; margin-top: -8px;
  position: relative; z-index: 2;
}
.topC-podio-slot.first  .topC-podio-badge { background: #ffd700; color: #000; }
.topC-podio-slot.second .topC-podio-badge { background: #c0c0c0; color: #000; }
.topC-podio-slot.third  .topC-podio-badge { background: #cd7f32; color: #fff; }

.topC-podio-name {
  font-size: 0.7rem; font-weight: 700; color: #f0f0f0;
  text-align: center; max-width: 90px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topC-podio-count {
  font-size: 0.62rem; color: #666;
  display: flex; align-items: center; gap: 3px;
}

.topC-podio-bar {
  width: 100%; border-radius: 8px 8px 0 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 6px; margin-top: 4px;
}
.topC-podio-slot.first  .topC-podio-bar { height: 70px; background: linear-gradient(180deg, rgba(255,215,0,0.15), rgba(255,215,0,0.04)); }
.topC-podio-slot.second .topC-podio-bar { height: 50px; background: linear-gradient(180deg, rgba(192,192,192,0.12), rgba(192,192,192,0.03)); }
.topC-podio-slot.third  .topC-podio-bar { height: 40px; background: linear-gradient(180deg, rgba(205,127,50,0.12), rgba(205,127,50,0.03)); }

.topC-rest {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0 12px 12px;
}

.topC-rest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #141414; border-radius: 10px;
  text-decoration: none; transition: background 0.15s;
}
.topC-rest-item:hover { background: #1a1a1a; }

.topC-rest-pos {
  width: 18px; font-size: 0.8rem; font-weight: 800;
  color: #444; text-align: center;
}

.topC-rest-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #2a2a2a; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.topC-rest-avatar img { width: 100%; height: 100%; object-fit: cover; }

.topC-rest-name {
  flex: 1; font-size: 0.78rem; font-weight: 600; color: #ccc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topC-rest-visits {
  font-size: 0.68rem; color: #555;
  display: flex; align-items: center; gap: 3px;
}

/* ========================================
   ANUNCIOS CAROUSEL (zoom + barras stories)
   ======================================== */
.ad-carousel-section {
  padding: 0;
}

.ad-carousel {
  position: relative;
  padding: 10px 14px 0;
}

.ad-track {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  max-height: 160px;
}

.ad-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  cursor: pointer;
}

.ad-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.ad-slide img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ad-slide-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.5);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.ad-bars {
  display: flex;
  gap: 4px;
  padding: 8px 0 4px;
}

.ad-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #222;
  overflow: hidden;
  position: relative;
}

.ad-bar-fill {
  position: absolute;
  inset: 0;
  background: #ffe600;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.ad-bar.done .ad-bar-fill {
  transform: scaleX(1);
  transition: none;
}

.ad-bar.active .ad-bar-fill {
  transform: scaleX(1);
}

/* ========================================
   SELECTOR DE ZONA — OPCION C
   ======================================== */

.zona-selector {
  position: relative;
  flex: 1;
  width: 100%;
}

.zona-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a1a;
  border: 1.5px solid rgba(255, 230, 0, 0.25);
  border-radius: 50px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.zona-trigger:hover {
  background: rgba(255, 230, 0, 0.06);
  border-color: rgba(255, 230, 0, 0.45);
}

.zona-trigger > i:first-child {
  color: #ffe600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.zona-trigger-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.zona-trigger-label {
  font-size: 0.65rem;
  color: #666;
  line-height: 1;
}

.zona-trigger-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zona-cambiar {
  font-size: 0.72rem;
  color: #ffe600;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.zona-trigger-arrow {
  color: #ffe600;
  font-size: 0.65rem;
  transition: transform 0.2s;
}

/* Sheet — oculto por defecto (desktop: dropdown, movil: bottom sheet) */
.zona-sheet {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 14px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.zona-sheet.open { display: block; }

/* Bottom sheet en movil */
@media (max-width: 768px) {
  .zona-sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 199;
    transition: background 0.3s ease;
  }
  .zona-sheet-backdrop.open {
    display: block;
    background: rgba(0,0,0,0.5);
  }

  .zona-sheet {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    border: none;
    border-top: 1px solid #242424;
    z-index: 201;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
  }

  .zona-sheet.open {
    display: block;
    transform: translateY(0);
  }

  .zona-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    z-index: 2;
  }

  .zona-sheet-handle::after {
    content: '';
    width: 36px;
    height: 4px;
    background: #333;
    border-radius: 2px;
  }

  .zona-sheet-title {
    display: block;
    padding: 0 14px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
  }

  .zona-sheet-item {
    padding: 14px 16px;
  }
}

.zona-sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #1f1f1f;
  transition: background 0.15s;
}

.zona-sheet-item:last-child { border-bottom: none; }
.zona-sheet-item:hover { background: #222; }
.zona-sheet-item.active { background: rgba(255,211,0,0.05); }

.zona-sheet-item i:first-child {
  color: #333;
  font-size: 0.75rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.zona-sheet-item.active i:first-child { color: #ffe600; }

.zona-sheet-nombre {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
}

.zona-sheet-item.active .zona-sheet-nombre { color: #fff; }

.zona-sheet-check {
  font-size: 0.6rem;
  color: #ffe600;
  opacity: 0;
}

.zona-sheet-item.active .zona-sheet-check { opacity: 1; }

/* Voz integrada en el buscador */
.voice-btn-inline {
  width: 32px;
  height: 32px;
  background: #242424;
  border: 1px solid #2e2e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.voice-btn-inline:hover { background: #2a2a2a; color: #aaa; }
.voice-btn-inline i { font-size: 0.75rem; }
.voice-btn-minimal { display: none; }

/* ========================================
   FEEDBACK TÁCTIL NATIVO
   ======================================== */

/* Active states — simula el tap feedback de iOS/Android */
.categoria-card:active {
  transform: scale(0.95) !important;
  transition: transform 0.08s ease !important;
}

.oferta-card:active,
.mock-oferta:active {
  transform: scale(0.97) !important;
  transition: transform 0.08s ease !important;
}

.top10-card:active,
.mock-top-item:active {
  transform: scale(0.97) !important;
  transition: transform 0.08s ease !important;
}

.cta-sticky-inner:active {
  transform: scale(0.97) !important;
  transition: transform 0.08s ease !important;
}

.btn-menu:active,
.btn-close:active {
  transform: scale(0.88);
  transition: transform 0.08s ease;
}

.nav-item:active {
  background: #1a1a1a !important;
  transition: background 0.05s ease !important;
}

.zona-trigger:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}

.zona-sheet-item:active {
  background: #2a2a2a !important;
  transition: background 0.05s ease !important;
}

.btn-agregar-negocio:active,
.btn-registro-menu:active {
  transform: scale(0.94) !important;
  transition: transform 0.08s ease !important;
}

.voice-btn-inline:active {
  transform: scale(0.88);
  transition: transform 0.08s ease;
}

.search-floating:active {
  transform: scale(0.99);
}

/* Hover solo en dispositivos con puntero (desktop) */
@media (hover: hover) and (pointer: fine) {
  .categoria-card:hover {
    background: #222;
    border-color: #333;
  }
  .categoria-card:hover .categoria-icon {
    transform: scale(1.15);
  }
  .oferta-card:hover {
    transform: scale(1.05);
  }
  .top10-card:hover {
    transform: translateY(-10px);
  }
  .search-floating:hover,
  .search-floating:focus-within {
    border-color: var(--amarillo);
    box-shadow:
      0 20px 70px rgba(0, 0, 0, 0.6),
      0 10px 30px rgba(255, 230, 0, 0.3);
    transform: translateY(-3px);
  }
  .btn-agregar-negocio:hover {
    background: var(--amarillo-hover);
    transform: translateY(-2px);
  }
  .location-minimal:hover {
    background: rgba(255, 230, 0, 0.15);
    border-color: rgba(255, 230, 0, 0.4);
    transform: scale(1.02);
  }
  .voice-btn-minimal:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(255, 230, 0, 0.5);
  }
  .zona-trigger:hover {
    background: rgba(255, 230, 0, 0.06);
    border-color: rgba(255, 230, 0, 0.45);
  }
}

/* Quitar hovers en touch devices */
@media (hover: none) {
  .categoria-card:hover {
    background: #1a1a1a;
    border-color: #242424;
  }
  .categoria-card:hover .categoria-icon {
    transform: none;
  }
  .oferta-card:hover {
    transform: none;
  }
  .top10-card:hover {
    transform: none;
  }
  .search-floating:hover {
    border-color: rgba(255, 230, 0, 0.2);
    box-shadow:
      0 15px 50px rgba(0, 0, 0, 0.5),
      0 5px 15px rgba(0, 0, 0, 0.3);
    transform: none;
  }
  .search-floating:focus-within {
    border-color: var(--amarillo);
    box-shadow:
      0 15px 50px rgba(0, 0, 0, 0.5),
      0 5px 20px rgba(255, 230, 0, 0.2);
    transform: none;
  }
  .btn-agregar-negocio:hover {
    transform: none;
  }
  .location-minimal:hover {
    transform: none;
  }
  .zona-trigger:hover {
    background: #1a1a1a;
    border-color: rgba(255, 230, 0, 0.25);
  }
}
/* ── MODAL URGENCIAS ── */
.urg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid #242424;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.urg-item:hover, .urg-item:active {
  background: #222;
  border-color: #F4433644;
  color: #F44336;
}
.urg-item i { color: #555; font-size: 0.75rem; }
/* ═══════════════════════════════
   TABS DE NAVEGACIÓN — INDEX
═══════════════════════════════ */
.index-tabs-wrap {
  display: flex;
  padding: 0 16px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.index-tabs-wrap::-webkit-scrollbar { display: none; }

.index-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px 12px;
  font-size: 13px; font-weight: 400;
  color: #555; cursor: pointer; white-space: nowrap;
  position: relative; flex-shrink: 0;
  background: transparent; border: none;
  font-family: inherit;
  transition: color .15s;
}
.index-tab i { font-size: 11px; opacity: .45; transition: opacity .15s; }

.index-tab::after {
  content: '';
  position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; border-radius: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform .2s ease;
}

.index-tab.activo {
  color: #fff; font-weight: 700;
}
.index-tab.activo i { opacity: 1; }
.index-tab.activo::after { transform: scaleX(1); }

.index-tabs-border {
  height: 1px;
  background: #1e1e1e;
  margin: 0 0 4px;
}

/* Panels */
.index-tab-panel { display: block; }
.index-tab-hidden { display: none; }
/* ═══════════════════════════════
   OFERTAS — NUEVO DISEÑO
═══════════════════════════════ */
.oferta-precio-ahora {
  font-size: 15px; font-weight: 900; color: #ffe600;
  line-height: 1; margin-bottom: 3px;
}
.oferta-precio-ahora.sm { font-size: 13px; }

.oferta-vigencia {
  font-size: 10px; font-weight: 700; color: #f87171;
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 8px;
}
.oferta-vigencia i { font-size: 9px; }

/* ========================
   HISTORIAS / ESTADOS
======================== */
.historias-section {
  padding: 12px 0 4px;
}
.historias-header {
  padding: 0 16px 8px;
}
.historias-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.historias-title i {
  color: #FFE600;
  margin-right: 4px;
}
.historias-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.historias-carousel::-webkit-scrollbar { display: none; }

.historia-bubble {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  scroll-snap-align: start;
  width: 72px;
}
.historia-bubble-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #FFE600, #ff9500, #ff4d00);
  flex-shrink: 0;
}
.historia-bubble-ring.visto {
  background: #333;
}
.historia-bubble-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #0a0a0a;
}
.historia-bubble-name {
  font-size: 0.68rem;
  font-weight: 500;
  color: #ccc;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.historia-bubble.negocio .historia-bubble-ring {
  background: linear-gradient(135deg, #FFE600, #ffe866);
}
.historia-bubble.negocio .historia-bubble-name {
  color: #FFE600;
}

/* ========================
   STORY VIEWER (fullscreen)
======================== */
.story-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.story-viewer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.3);
  transform: scale(1.2);
}
.story-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}
.story-viewer-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-viewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}
.story-viewer-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
}
.story-viewer-time {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}
.story-viewer-negocio-tag {
  font-size: 0.68rem;
  color: var(--amarillo);
  font-weight: 600;
  margin-top: 1px;
}
.story-viewer-negocio-tag i {
  font-size: 0.6rem;
  margin-right: 3px;
}
.story-viewer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.story-menu-wrap {
  position: relative;
}
.story-menu-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-menu-dropdown {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 10;
  overflow: hidden;
}
.story-menu-dropdown.active {
  display: block;
}
.story-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.story-menu-item:hover {
  background: #222;
}
.story-menu-item.danger {
  color: #ff4444;
}
.story-menu-item.danger:hover {
  background: rgba(255,60,60,0.1);
}
.story-viewer-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-viewer-progress {
  position: absolute;
  top: 4px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  gap: 4px;
}
.story-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
.story-progress-bar .fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}
.story-progress-bar.done .fill { width: 100%; }
.story-progress-bar.active .fill { width: 0%; }
.story-viewer-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
}
.story-viewer-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 40px 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  font-size: 0.9rem;
  color: white;
  text-align: center;
  line-height: 1.5;
}
.story-viewer-caption:empty { display: none; }
.story-viewer-nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
}
.story-nav-left,
.story-nav-right {
  flex: 1;
  cursor: pointer;
}

/* ========================================
   SEARCH SUGGESTIONS DROPDOWN
   ======================================== */
.search-suggestions {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid #2a2a2a;
  border-top: none;
  border-radius: 0 0 20px 20px;
  margin-top: -8px;
  padding: 0;
}
.search-suggestions.show {
  max-height: 320px;
  opacity: 1;
  padding: 6px 0;
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-suggestion-item:hover,
.search-suggestion-item:active {
  background: rgba(255, 230, 0, 0.04);
}
.search-suggestion-item i {
  color: #444;
  font-size: 13px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.search-suggestion-item .sug-text {
  font-size: 14px;
  color: #999;
  flex: 1;
}
.search-suggestion-item .sug-text b {
  color: #fff;
  font-weight: 600;
}
.search-suggestion-item .sug-cat {
  font-size: 11px;
  color: var(--amarillo);
  font-weight: 500;
  flex-shrink: 0;
}

/* ========================================
   LOADING OVERLAY — BÚSQUEDA
   ======================================== */
.nowdii-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nowdii-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.nowdii-loading-logo {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.nowdii-loading-logo span {
  color: var(--amarillo);
}
.nowdii-loading-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.nowdii-loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amarillo);
  animation: nwdDotBounce 1.4s ease-in-out infinite;
}
.nowdii-loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.nowdii-loading-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes nwdDotBounce {
  0%,80%,100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}
.nowdii-loading-bar {
  width: 200px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.nowdii-loading-bar .bar {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--amarillo), transparent);
  animation: nwdScanMove 1.5s ease-in-out infinite;
}
@keyframes nwdScanMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.nowdii-loading-query {
  font-size: 15px;
  color: #aaa;
  font-weight: 600;
  margin-bottom: 6px;
}
.nowdii-loading-text {
  font-size: 13px;
  color: #555;
  animation: nwdLoadPulse 2s ease-in-out infinite;
}
@keyframes nwdLoadPulse {
  0%,100% { opacity: 0.5; }
  50% { opacity: 1; }
}