/* =====================================================
   EL MERCADO PY — Rediseño estilo OLX Brasil
   Colores Albirroja: rojo #C8102E · azul #003087
   Fondo blanco puro, cards limpias, tipografía clara
   ===================================================== */

/* ===== VARIABLES ===== */
:root {
  --red: #C8102E;
  --blue: #003087;
  --white: #fff;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6e6e6e;
  --border: #e8e8e8;
  --green: #009944;
  --accent: #C8102E;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --input-bg: #ffffff;
  --header-bg: #ffffff;
  --overlay: rgba(0,0,0,0.5);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #111111;
  --card: #1e1e1e;
  --text: #f0f0f0;
  --muted: #999999;
  --border: #2e2e2e;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.5);
  --input-bg: #1e1e1e;
  --header-bg: #1e1e1e;
  --white: #1e1e1e;
  --overlay: rgba(0,0,0,0.7);
}
[data-theme="dark"] .logo { color: var(--red); }
[data-theme="dark"] .hero-strip { background: #001a4d; }
[data-theme="dark"] .ad-leaderboard { background: #001a4d; }
[data-theme="dark"] .ad-square { background: #001a4d; }
[data-theme="dark"] .trust-bar { background: var(--card); }
[data-theme="dark"] .featured-card:nth-child(1) { background: #002060; }
[data-theme="dark"] .featured-card:nth-child(2) { background: #8b0a1e; }
[data-theme="dark"] .auth-card { background: #1e1e1e; }
[data-theme="dark"] .product-img { background: #2a2a2a; }
[data-theme="dark"] .ad-incontent { background: #1e1e1e; }
[data-theme="dark"] .ad-banner { background: #1e1e1e; }

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: 'Nunito', sans-serif; }
input, select, textarea { font-family: 'Nunito', sans-serif; }
.view { display: none; }
.view.active { display: block; }

/* ===== LOADING ===== */
#pageLoader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  transition: opacity .4s;
}
#pageLoader.hide { opacity: 0; pointer-events: none; }
.loader-logo { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--red); }
.loader-bar { width: 180px; height: 3px; background: #e8e8e8; border-radius: 50px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--red); border-radius: 50px; animation: loadBar 1.5s ease infinite; }
@keyframes loadBar { 0%{width:0;margin-left:0} 50%{width:60%;margin-left:20%} 100%{width:0;margin-left:100%} }
.loader-tagline { font-size: .8rem; color: var(--muted); }

/* ===== TRANSITION LOADER ===== */
#transLoader {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); z-index: 9998;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
#transLoader.loading { transform: scaleX(1); }

/* ===== HEADER — Estilo OLX: blanco, limpio, barra de búsqueda central ===== */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem; width: 100%;
}

/* Logo — sobreescrito al final por El Mercado PY override */
.logo { cursor: pointer; flex-shrink: 0; }
.logo span { /* sobreescrito por .logo .logo-py al final */ }

/* Barra de búsqueda — ocupa todo el espacio, estilo OLX */
.search-bar {
  flex: 1; min-width: 0;
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--input-bg);
  transition: border-color .2s, box-shadow .2s;
  height: 44px;
}
.search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,48,135,0.08);
}
.search-bar input {
  flex: 1; border: none; background: transparent;
  padding: .6rem 1rem; font-size: .9rem;
  outline: none; color: var(--text);
}
.search-bar input::placeholder { color: #aaa; }
.search-bar button {
  background: var(--red); color: white; border: none;
  padding: .6rem 1.2rem; font-weight: 700; font-size: .85rem;
  transition: background .2s; white-space: nowrap;
}
.search-bar button:hover { background: #a50f25; }

/* Acciones del header */
.header-actions { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; }

/* Botones */
.btn {
  padding: .5rem 1.1rem; border-radius: 6px; border: none;
  font-weight: 700; font-size: .82rem;
  transition: all .18s; display: inline-flex; align-items: center; gap: .35rem;
  white-space: nowrap;
}
.btn-outline {
  background: transparent; border: 1.5px solid var(--blue); color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; }
.btn-primary {
  background: var(--red); color: white; border: none;
}
.btn-primary:hover { background: #a50f25; }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: #001f6b; }
.btn-white { background: white; color: var(--blue); font-weight: 700; border: none; }
.btn-white:hover { background: #f0f4ff; }
.btn-ghost {
  background: rgba(255,255,255,.15); color: white;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.28); }

/* Íconos nav */
.nav-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: background .2s; position: relative; color: var(--text);
}
.nav-icon:hover { background: var(--bg); }
.badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--red); color: white;
  font-size: .55rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.msgbadge {
  display: none; position: absolute; top: -2px; right: -2px;
  background: var(--red); color: white;
  font-size: .55rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 50px;
  padding: 0 .3rem; align-items: center; justify-content: center;
}

/* Dark toggle */
.dark-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; transition: background .2s; color: var(--text);
}
.dark-toggle:hover { background: var(--bg); }

/* Avatar */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .82rem;
  cursor: pointer; overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== CATEGORÍAS — Estilo OLX: chips horizontales con ícono + texto ===== */
.cats-bar {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.cats-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; overflow-x: auto; padding: 0 1.25rem;
  scrollbar-width: none;
}
.cats-inner::-webkit-scrollbar { display: none; }

/* Categoría estilo OLX — ícono arriba, texto abajo */
.cat-btn {
  flex-direction: column !important;
  align-items: center !important;
  gap: .25rem !important;
  padding: .7rem .9rem !important;
  min-width: 64px;
  border: none;
  background: transparent;
  font-size: .72rem !important;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .18s;
  display: flex;
}
.cat-icon {
  font-size: 1.3rem;
  line-height: 1;
  display: block;
  transition: transform .15s;
}
.cat-btn:hover .cat-icon,
.cat-btn.active .cat-icon { transform: scale(1.1); }
.cat-btn:hover,
.cat-btn.active {
  color: var(--red) !important;
  border-bottom-color: var(--red) !important;
}

/* Categoría Servicios — resaltada en verde */
.cat-btn--highlight {
  background: rgba(0,153,68,0.08) !important;
  color: #009944 !important;
  border-bottom: 3px solid #009944 !important;
  font-weight: 700 !important;
}
[data-theme="dark"] .cat-btn--highlight {
  background: rgba(0,220,100,0.10) !important;
  color: #00cc5a !important;
  border-bottom-color: #00cc5a !important;
}
.cat-btn--highlight:hover,
.cat-btn--highlight.active {
  background: #009944 !important;
  color: #fff !important;
  border-bottom-color: #009944 !important;
}

/* ===== FILTER BAR ===== */
.filter-bar-wrap { background: var(--card); border-bottom: 1px solid var(--border); }
.filter-bar { background: var(--card); }
.filter-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1.25rem; overflow-x: auto; scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-label { font-size: .75rem; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.filter-chip {
  padding: .3rem .75rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--card);
  font-size: .75rem; font-weight: 600; color: var(--text);
  transition: all .18s; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }
.filter-new-active { border-color: var(--blue); color: var(--blue); }
.filter-clear-btn { display: none; color: var(--red); border-color: var(--red); }
.filter-panel {
  display: none; border-top: 1px solid var(--border);
  background: var(--card); padding: .75rem 1.25rem;
}
.filter-panel.open { display: block; }
.filter-panel-inner { max-width: 1280px; margin: 0 auto; }
.filter-price-label { font-size: .82rem; font-weight: 700; margin-bottom: .5rem; }
.price-range { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.price-range input {
  padding: .4rem .75rem; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: .82rem; width: 130px;
  background: var(--input-bg); color: var(--text); outline: none;
}
.price-range input:focus { border-color: var(--blue); }
.filter-close-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: .9rem; }

/* ===== HERO — Estilo OLX: franja de color con búsqueda integrada ===== */
.hero-strip {
  background: var(--blue);
  color: white;
  padding: 2.5rem 1.25rem;
  position: relative; overflow: hidden;
}
.hero-strip::before { display: none !important; }
.hero-strip-inner { max-width: 1280px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28);
  border-radius: 50px; padding: .3rem .85rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  margin-bottom: .85rem; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; line-height: 1.15; margin-bottom: .6rem;
}
.hero-p {
  opacity: .88; font-size: clamp(.85rem,2vw,.95rem);
  margin-bottom: 1.25rem; max-width: 520px; line-height: 1.6;
}

/* Búsqueda integrada en el hero */
.hero-search-wrap { margin: 1rem 0 1rem; max-width: 580px; }
.hero-search-bar {
  height: 50px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.25) !important;
  border-radius: 6px !important;
}
.hero-search-bar input {
  font-size: .95rem !important; padding: .7rem 1.2rem !important;
  color: #1a1a1a !important; background: white !important;
}
.hero-search-bar button {
  padding: .7rem 1.4rem !important; font-size: .88rem !important;
  border-radius: 0 6px 6px 0 !important; white-space: nowrap;
}

/* Stats inline en hero */
.hero-stats-inline {
  font-size: .78rem; color: rgba(255,255,255,.75);
  margin-bottom: .85rem;
  display: flex; align-items: center; gap: .25rem; flex-wrap: wrap;
}
.hero-stats-inline span {
  font-family: 'Syne', sans-serif;
  font-weight: 800; color: white; font-size: .9rem;
}

.hero-strip-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-btn { padding: .6rem 1.4rem; font-size: .88rem; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: .6rem 1.25rem;
}
.trust-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.trust-item svg { flex-shrink: 0; }
.trust-item--highlight { font-weight: 700; color: #009944; }
[data-theme="dark"] .trust-item--highlight { color: #00cc5a; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.trust-dot--green { background: #009944; }
.trust-dot--blue { background: var(--blue); }
.trust-dot--accent { background: var(--accent); }
.trust-dot--red { background: var(--red); }

/* ===== CONTENIDO PRINCIPAL ===== */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 1.25rem; }
.two-col { display: grid; grid-template-columns: 1fr 220px; gap: 1.5rem; }
.section-title {
  font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700;
  margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; color: var(--text);
}
.see-all { font-size: .78rem; font-weight: 700; color: var(--blue); margin-left: auto; }

/* ===== PRODUCT GRID — Estilo OLX: 2→4→5 cols, cards blancas ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem; margin-bottom: 1.5rem;
}
@media(min-width:600px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:900px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media(min-width:1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

/* Card OLX: blanca, borde sutil, sin sombra dramática */
.product-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Imagen cuadrada — estilo OLX */
.product-img {
  width: 100%; aspect-ratio: 1/1;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform .3s;
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-img .emoji-fallback { position: relative; z-index: 1; }

/* Badge — estilo OLX: cuadrado pequeño, azul */
.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--blue); color: white;
  font-size: .6rem; font-weight: 700;
  padding: .2rem .5rem; border-radius: 4px;
  letter-spacing: .04em; z-index: 2;
}
.product-badge.new { background: #009944; }
.product-badge.featured { background: var(--red); }
.product-badge.sold { background: #555; }
.sold-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.42); z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.sold-overlay span {
  background: #1a1a1a; color: white; font-weight: 800; font-size: .82rem;
  padding: .35rem .9rem; border-radius: 4px; letter-spacing: .06em;
}

/* Corazón favorito — estilo OLX: círculo blanco */
.product-fav {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s, background .18s;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.product-fav:hover { transform: scale(1.15); background: white; }

/* Contador de imágenes */
.img-count-badge {
  position: absolute; bottom: 5px; right: 6px;
  background: rgba(0,0,0,.55); color: white;
  font-size: .6rem; padding: .15rem .4rem; border-radius: 4px; z-index: 2;
}

/* Info de la card */
.product-info { padding: .6rem .7rem .7rem; }

/* Precio en negro bold — igual que OLX */
.product-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800; color: var(--text) !important;
  font-size: 1rem; margin-bottom: .15rem;
  letter-spacing: -.01em;
}
.product-title {
  font-weight: 600; font-size: .8rem; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .25rem;
}
.product-location {
  font-size: .68rem; color: var(--muted);
  display: flex; align-items: center; gap: .2rem;
}
.product-time { font-size: .65rem; color: var(--muted); }
.product-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .15rem;
}

/* Card vendida */
.product-card--featured { border-color: var(--red); box-shadow: 0 2px 10px rgba(200,16,46,.15); }
.product-card--sold { opacity: .72; }
.product-price--sold { text-decoration: line-through; color: var(--muted) !important; }

/* Botones del dueño */
.owner-actions { display: flex; gap: .35rem; margin-top: .45rem; }
.owner-btn {
  flex: 1; padding: .3rem; border-radius: 6px; border: none;
  font-size: .68rem; font-weight: 700; cursor: pointer; transition: all .18s;
}
.owner-btn.sold-btn { background: #e8f5e9; color: #009944; border: 1.5px solid #009944; }
.owner-btn.sold-btn:hover { background: #009944; color: white; }
.owner-btn.delete-btn { background: #fff0f0; color: var(--red); border: 1.5px solid var(--red); }
.owner-btn.delete-btn:hover { background: var(--red); color: white; }
.owner-btn.unsold-btn { background: #fff8e0; color: #b45309; border: 1.5px solid #f59e0b; }
.owner-btn.unsold-btn:hover { background: #f59e0b; color: white; }
.owner-btn--star { background: #fff5f5; color: #92400e; border: 1.5px solid #f59e0b; }
.owner-btn--star:hover { background: var(--red); color: white; }
.owner-btn--lg { flex: 1; padding: .6rem; }

/* ===== STATS ===== */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--card); border-radius: 8px; padding: 1rem;
  box-shadow: var(--shadow); border: 1px solid var(--border); text-align: center;
}
.stat-n { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.stat-n--green { color: #009944; }
.stat-l { font-size: .72rem; color: var(--muted); margin-top: .15rem; }
.stat-card--blue { border-top: 3px solid var(--blue); }
.stat-card--red { border-top: 3px solid var(--red); }
.stat-card--green { border-top: 3px solid #009944; }

/* ===== FEATURED CARDS ===== */
.featured-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.featured-row--mb { margin-bottom: 1rem; }
.featured-card {
  border-radius: 8px; padding: 1.25rem; color: white;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 140px; position: relative; overflow: hidden;
  cursor: pointer; transition: transform .18s;
}
.featured-card:hover { transform: translateY(-2px); }
.featured-card:nth-child(1) { background: var(--blue); }
.featured-card:nth-child(2) { background: var(--red); }
.fc-blue { background: var(--blue) !important; }
.fc-red { background: var(--red) !important; }
.featured-card .fc-emoji {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 3.5rem; opacity: .2;
}
.fc-emoji--lg { font-size: 4.5rem !important; opacity: .2 !important; }
.featured-card h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; }
.featured-card p { font-size: .78rem; opacity: .85; margin-top: .2rem; }
.fc-label { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72; margin-bottom: .25rem; }
.fc-content { position: relative; z-index: 1; }
.fc-cta-white {
  margin-top: .5rem; display: inline-block;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 50px; padding: .28rem .85rem;
  font-size: .72rem; font-weight: 700; transition: background .18s;
}
.featured-card:hover .fc-cta-white { background: rgba(255,255,255,.32); }
.fc-cta-ghost {
  margin-top: .5rem; display: inline-block;
  background: transparent; border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 50px; padding: .28rem .85rem;
  font-size: .72rem; font-weight: 700; transition: background .18s;
}
.featured-card:hover .fc-cta-ghost { background: rgba(255,255,255,.15); }

/* ===== CARRUSEL — Estilo OLX: tarjetas horizontales con flechas ===== */
.carousel-section { margin-bottom: 2rem; }
.carousel-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem;
}
.carousel-header .section-title { margin: 0; }
.see-more-btn {
  font-size: .78rem; font-weight: 700; color: var(--blue);
  background: none; border: 1.5px solid var(--blue);
  cursor: pointer; display: flex; align-items: center; gap: .25rem;
  padding: .3rem .7rem; border-radius: 50px; transition: all .18s;
}
.see-more-btn:hover { background: var(--blue); color: white; }
.carousel-track-wrap { position: relative; }
.carousel-track {
  display: flex; gap: .7rem; overflow-x: auto;
  scroll-behavior: smooth; scrollbar-width: none; padding-bottom: .25rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .product-card { flex: 0 0 calc(50% - .4rem); min-width: 0; }
@media(min-width:600px) { .carousel-track .product-card { flex: 0 0 calc(33.33% - .5rem); } }
@media(min-width:900px) { .carousel-track .product-card { flex: 0 0 calc(20% - .55rem); } }

/* Flechas del carrusel — estilo OLX: circulares, fondo blanco */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  font-size: 1rem; cursor: pointer; z-index: 2;
  display: none; align-items: center; justify-content: center;
  transition: all .18s; color: var(--text);
}
.carousel-arrow:hover { background: var(--red); color: white; border-color: var(--red); }
.carousel-arrow.left { left: -14px; }
.carousel-arrow.right { right: -14px; }
@media(min-width:700px) { .carousel-arrow { display: flex; } }
.carousel-empty { font-size: .82rem; color: var(--muted); padding: .5rem 0; }
.carousel-cat-header { display: flex; flex-direction: column; gap: .05rem; }
.carousel-cat-title { margin: 0; }
.carousel-cat-sub { font-size: .73rem; color: var(--muted); }

/* ===== HOW IT WORKS ===== */
.how-card {
  background: var(--card); border-radius: 8px;
  padding: 1.2rem; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.how-title { font-size: .9rem; margin-bottom: .85rem; }
.how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.how-step { text-align: center; padding: .75rem .5rem; }
.how-step--bordered { text-align: center; padding: .75rem .5rem; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.how-step-num {
  width: 32px; height: 32px; border-radius: 50%; color: white;
  font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem;
}
.how-step-num--blue { background: var(--blue); }
.how-step-num--red { background: var(--red); }
.how-step-emoji { font-size: 1.35rem; margin-bottom: .3rem; }
.how-step-title { font-weight: 700; font-size: .76rem; color: var(--text); line-height: 1.3; }
.how-step-sub { font-size: .67rem; color: var(--muted); margin-top: .18rem; }
.how-footer {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.how-footer-text { font-size: .76rem; color: var(--muted); }
.how-footer-btn { font-size: .76rem; padding: .38rem 1rem; }

/* ===== DETAIL VIEW ===== */
.detail-wrap { max-width: 1280px; margin: 0 auto; padding: 1.25rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; }
.detail-gallery {
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border); background: var(--card);
  aspect-ratio: 4/3; position: relative;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .emoji-big {
  display: flex; align-items: center; justify-content: center; height: 100%; font-size: 8rem;
}
.gallery-dots {
  position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .3rem;
}
.gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer; border: none; transition: all .18s;
}
.gallery-dot.active { background: white; transform: scale(1.25); }
.gallery-count {
  position: absolute; bottom: .75rem; right: .75rem;
  background: rgba(0,0,0,.55); color: white; font-size: .7rem;
  padding: .18rem .55rem; border-radius: 4px;
}
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: all .18s;
}
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.gallery-prev:hover, .gallery-next:hover { background: white; transform: translateY(-50%) scale(1.06); }
.gallery-zoom-hint {
  position: absolute; bottom: .6rem; right: .75rem;
  background: rgba(0,0,0,.45); color: white; font-size: .67rem;
  padding: .18rem .5rem; border-radius: 4px;
}
.detail-back { margin-bottom: 1rem; }
.detail-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem; font-weight: 800; color: var(--text);
}
.detail-title {
  font-family: 'Syne', sans-serif; font-size: 1.35rem; font-weight: 700; line-height: 1.3;
}
.detail-meta-row { display: flex; gap: .85rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.detail-price-mt { margin: .5rem 0; }
.detail-meta-mt { margin-top: .7rem; }
.detail-info-card {
  background: var(--card); border-radius: 8px;
  padding: 1.2rem; box-shadow: var(--shadow);
  border: 1px solid var(--border); margin-bottom: 1rem;
}
.detail-desc-card {
  background: var(--card); border-radius: 8px;
  padding: 1.2rem; box-shadow: var(--shadow);
  border: 1px solid var(--border); margin-top: 1rem;
}
.detail-desc-title { font-weight: 700; font-size: .88rem; margin-bottom: .6rem; }
.detail-desc-text { font-size: .86rem; line-height: 1.75; color: var(--text); white-space: pre-wrap; }
.detail-side-col { display: flex; flex-direction: column; gap: 1rem; }
.detail-owner-actions { display: none; margin-bottom: .75rem; }

/* Seller card */
.seller-card {
  background: var(--card); border-radius: 8px; padding: 1.2rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.seller-card h4 { font-weight: 700; margin-bottom: .75rem; font-size: .88rem; }
.seller-row-clickable {
  cursor: pointer; transition: background .15s;
  border-radius: 8px; padding: .25rem; margin: -.25rem;
}
.seller-row-clickable:hover { background: var(--bg); }
.seller-row-info { flex: 1; }
.seller-actions-col { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.seller-review-btn {
  background: none; border: none; cursor: pointer;
  font-size: .7rem; color: var(--blue); font-weight: 600; white-space: nowrap;
}
.seller-profile-link { font-size: .67rem; color: var(--muted); white-space: nowrap; }

/* WhatsApp */
.whatsapp-wrap { display: flex; }
.whatsapp-link {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: #25d366; color: white; border-radius: 8px;
  padding: .8rem 1.5rem; font-weight: 700; font-size: .92rem; transition: background .18s;
}
.whatsapp-link:hover { background: #1da851; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--card); border-radius: 8px; padding: 1.1rem;
  box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 1rem;
}
.sidebar-widget-title { font-size: .9rem; }
.city-list { display: flex; flex-direction: column; gap: .35rem; }
.city-btn {
  text-align: left; background: none; border: none;
  padding: .45rem 0; border-bottom: 1px solid var(--border);
  font-size: .82rem; cursor: pointer; color: var(--text);
}
.city-btn:last-child { border-bottom: none; padding-bottom: 0; }

/* ===== ADS ===== */
.ad-zone { border-radius: 8px; overflow: hidden; position: relative; }
.ad-label-tag {
  position: absolute; top: 6px; right: 8px;
  font-size: .52rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.18); color: rgba(255,255,255,.85);
  padding: .12rem .4rem; border-radius: 4px; pointer-events: none;
}
.ad-label-tag--light { background: rgba(0,0,0,.08); color: rgba(0,0,0,.5); }
[data-theme="dark"] .ad-label-tag--light { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.ad-zone--mb { margin-bottom: 1.5rem; }
.ad-zone--mt { margin-top: 1rem; }

/* Leaderboard */
.ad-leaderboard {
  width: 100%; min-height: 88px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.4rem; gap: 1rem;
  box-shadow: 0 2px 10px rgba(0,48,135,.15);
  cursor: pointer; transition: filter .2s;
}
.ad-leaderboard:hover { filter: brightness(1.07); }
.ad-leaderboard .ad-content { display: flex; align-items: center; gap: 1.1rem; flex: 1; min-width: 0; }
.ad-leaderboard .ad-icon { font-size: 2rem; flex-shrink: 0; }
.ad-leaderboard .ad-text { flex: 1; min-width: 0; }
.ad-leaderboard .ad-headline { font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 800; color: #fff; line-height: 1.2; }
.ad-leaderboard .ad-subline { font-size: .72rem; color: rgba(255,255,255,.72); margin-top: .12rem; }
.ad-leaderboard .ad-cta {
  background: var(--red); color: white;
  font-weight: 700; font-size: .78rem; padding: .45rem 1rem;
  border-radius: 6px; border: none; flex-shrink: 0; cursor: pointer; transition: transform .15s;
}
.ad-leaderboard .ad-cta:hover { transform: scale(1.05); }

/* In-content */
.ad-incontent {
  width: 100%; background: #fafafa; border: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 1.1rem;
  padding: .9rem 1.25rem; cursor: pointer; transition: border-color .18s; border-radius: 8px;
}
[data-theme="dark"] .ad-incontent { background: #1e1e1e; }
.ad-incontent:hover { border-color: var(--blue); }
.ad-incontent .ad-icon { font-size: 1.8rem; flex-shrink: 0; }
.ad-incontent .ad-text { flex: 1; }
.ad-incontent .ad-headline { font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 800; color: var(--text); }
.ad-incontent .ad-subline { font-size: .75rem; color: var(--muted); margin-top: .08rem; }
.ad-incontent .ad-cta {
  background: var(--blue); color: white; font-weight: 700; font-size: .76rem;
  padding: .42rem .95rem; border-radius: 6px; border: none; white-space: nowrap; flex-shrink: 0; cursor: pointer;
}
.ad-incontent .ad-cta:hover { background: #001f6b; }

/* Sidebar Square */
.ad-square {
  width: 100%; min-height: 240px; background: var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.4rem; gap: .65rem;
  cursor: pointer; transition: filter .2s;
}
.ad-square:hover { filter: brightness(1.08); }
.ad-square .ad-icon { font-size: 2.8rem; }
.ad-square .ad-headline { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.3; }
.ad-square .ad-subline { font-size: .75rem; color: rgba(255,255,255,.75); }
.ad-square .ad-cta {
  background: white; color: var(--blue); font-weight: 700; font-size: .8rem;
  padding: .45rem 1.2rem; border-radius: 6px; border: none; cursor: pointer; margin-top: .2rem;
}

/* Sidebar Tall */
.ad-tall {
  width: 100%; min-height: 280px; background: #001a4d;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.4rem 1rem; gap: .75rem;
  cursor: pointer; transition: filter .2s;
}
.ad-tall:hover { filter: brightness(1.08); }
.ad-tall .ad-icon { font-size: 3.2rem; }
.ad-tall .ad-headline { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1.3; }
.ad-tall .ad-subline { font-size: .78rem; color: rgba(255,255,255,.72); line-height: 1.5; }
.ad-tall .ad-cta {
  background: var(--red); color: white; font-weight: 700; font-size: .82rem;
  padding: .55rem 1.4rem; border-radius: 6px; border: none; cursor: pointer; margin-top: .2rem;
}

/* Native Ad */
.ad-native {
  background: var(--card); border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow);
  border: 1.5px solid #f59e0b55; cursor: pointer; transition: transform .18s, box-shadow .18s;
  position: relative;
}
.ad-native:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,.18); }
.ad-native .native-tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #f59e0b; color: #1a1a1a;
  font-size: .57rem; font-weight: 800; padding: .17rem .48rem; border-radius: 4px; letter-spacing: .05em;
}
.ad-native .native-img {
  width: 100%; aspect-ratio: 1/1; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.ad-native .native-info { padding: .6rem .7rem .7rem; }
.ad-native .native-price { font-family: 'Syne', sans-serif; font-weight: 800; color: #f59e0b; font-size: .95rem; margin-bottom: .18rem; }
.ad-native .native-title { font-weight: 700; font-size: .8rem; line-height: 1.3; color: var(--text); margin-bottom: .25rem; }
.ad-native .native-sub { font-size: .68rem; color: var(--muted); }
.ad-banner {
  background: var(--bg); border: 1.5px dashed var(--border);
  border-radius: 8px; padding: 1rem; text-align: center; color: var(--muted); font-size: .78rem; font-weight: 600;
}
.ad-banner-lg { height: 88px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .2rem; }
.ad-banner-sq { height: 240px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .2rem; }
.ad-label { font-size: .62rem; opacity: .6; }
.ad-cta--amber { background: #f59e0b; color: #1a1a1a; font-weight: 700; font-size: .76rem; padding: .42rem .95rem; border-radius: 6px; border: none; white-space: nowrap; flex-shrink: 0; cursor: pointer; }
.ad-cta--amber:hover { background: #d97706; }
.carousel-native-ad { margin-bottom: 1.5rem; }

/* ===== FEATURED PRODUCTS SECTION ===== */
.featured-section { margin-bottom: 1.5rem; }
.featured-see-all { font-size: .73rem; }
.featured-product-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--red); color: white; font-size: .6rem; font-weight: 800;
  padding: .18rem .52rem; border-radius: 4px; letter-spacing: .04em; z-index: 2;
}
#featuredProductsSection .section-title {
  background: rgba(200,16,46,0.05);
  border-left: 3px solid var(--red);
  padding: .4rem .72rem; border-radius: 0 6px 6px 0; margin-left: -.72rem;
}
[data-theme="dark"] #featuredProductsSection .section-title { background: rgba(200,16,46,0.08); }
.featured-promo {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #f59e0b44; border-radius: 8px;
  padding: .9rem 1.2rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
[data-theme="dark"] .featured-promo { background: linear-gradient(135deg, #1a1200, #1a1500); border-color: #f59e0b33; }
.featured-promo-icon { font-size: 1.7rem; flex-shrink: 0; }
.featured-promo-body { flex: 1; min-width: 0; }
.featured-promo-title { font-weight: 700; font-size: .88rem; margin-bottom: .08rem; }
.featured-promo-sub { font-size: .76rem; color: var(--muted); }
.featured-promo-btn {
  background: #f59e0b; color: #1a1a1a; border: none; border-radius: 6px;
  padding: .45rem 1rem; font-size: .78rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; transition: background .18s;
}
.featured-promo-btn:hover { background: #d97706; }
.loading-fullspan { grid-column: 1/-1; }

/* ===== FEATURED MODAL ===== */
.featured-modal-inner { max-width: 480px; width: 100%; padding: 0; overflow: hidden; }
.featured-modal-header {
  background: linear-gradient(135deg, var(--blue), #001f6b);
  color: white; padding: 1.75rem 1.5rem 1.4rem; text-align: center; position: relative;
}
.featured-modal-close {
  position: absolute; top: .7rem; right: .7rem;
  background: rgba(255,255,255,.15); border: none; color: white;
  width: 28px; height: 28px; border-radius: 50%; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.featured-modal-emoji { font-size: 2.3rem; margin-bottom: .4rem; }
.featured-modal-title { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; margin-bottom: .2rem; }
.featured-modal-sub { font-size: .78rem; opacity: .8; }
.featured-modal-benefits {
  display: flex; gap: .5rem; padding: .9rem 1.4rem;
  background: var(--bg); border-bottom: 1px solid var(--border);
  flex-wrap: wrap; justify-content: center;
}
.benefit-item { display: flex; align-items: center; gap: .38rem; font-size: .76rem; font-weight: 600; color: var(--text); }
.benefit-icon { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .82rem; }
.benefit-icon--gold { background: #fef3c7; }
.benefit-icon--blue { background: #dbeafe; }
.benefit-icon--green { background: #dcfce7; }
.featured-modal-plans { padding: 1.2rem 1.4rem 1.4rem; }
.featured-modal-plans-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .72rem; }
.featured-option--styled { background: var(--bg); transition: all .18s; }
.featured-option--styled:hover, .featured-option--styled.selected { border-color: var(--blue); background: var(--card); box-shadow: 0 3px 10px rgba(0,48,135,.1); }
.featured-option--popular { border-color: var(--red); background: #fff5f5; position: relative; padding-top: 1.5rem !important; }
[data-theme="dark"] .featured-option--popular { background: #1a0f0f; }
.featured-option--popular.selected { border-color: var(--red); box-shadow: 0 3px 10px rgba(200,16,46,.18); }
.popular-badge {
  position: absolute; top: -.65rem; left: 50%; transform: translateX(-50%);
  background: var(--red); color: white; font-size: .57rem; font-weight: 800;
  letter-spacing: .07em; padding: .18rem .58rem; border-radius: 50px; white-space: nowrap;
}
.plan-emoji { font-size: 1.4rem; margin-bottom: .22rem; }
.plan-price { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; color: var(--blue); }
.plan-price--warm { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; color: var(--red); }
.plan-days { font-size: .7rem; color: var(--muted); margin: .12rem 0; }
.plan-perks { font-size: .67rem; color: #009944; line-height: 1.5; }
.featured-plan-selected {
  display: none; align-items: center; gap: .5rem;
  background: #f0fdf4; border: 1.5px solid #86efac;
  border-radius: 8px; padding: .6rem .9rem; margin-top: .9rem;
  font-size: .82rem; font-weight: 600;
}
[data-theme="dark"] .featured-plan-selected { background: #052e16; border-color: #166534; }
.featured-plan-selected-icon { font-size: .95rem; }
.featured-cta-btn {
  width: 100%; margin-top: .9rem; background: #25d366; color: white;
  border: none; border-radius: 8px; padding: .85rem;
  font-size: .92rem; font-weight: 700; transition: background .18s, transform .15s;
  opacity: .5; pointer-events: none;
}
.featured-cta-btn:hover { background: #1da851; transform: translateY(-1px); }
.featured-footer-note { text-align: center; font-size: .7rem; color: var(--muted); margin-top: .72rem; }

/* ===== RATING / REVIEWS ===== */
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; margin-bottom: .72rem; }
.stars-input input { display: none; }
.stars-input label { font-size: 1.75rem; color: #d1d5db; cursor: pointer; transition: color .15s; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #f59e0b; }
.star-gold { color: #f59e0b; }
.star-gray { color: #d1d5db; }
.rating-stars-sm { font-size: .72rem; color: var(--muted); }
.rating-label-sm { font-size: .7rem; color: var(--muted); }
.rating-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.rating-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 50px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f59e0b; border-radius: 50px; }
.rating-summary {
  display: flex; align-items: center; gap: 1.4rem;
  background: var(--bg); border-radius: 8px; padding: .9rem; margin-bottom: 1.2rem;
}
.rating-big { font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.rating-stars-row { color: #f59e0b; font-size: 1.1rem; letter-spacing: .08em; margin: .18rem 0; }
.review-card { background: var(--bg); border-radius: 8px; padding: .9rem; margin-bottom: .7rem; }
.review-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.review-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: .82rem; }
.review-stars { font-size: .78rem; color: #f59e0b; }
.review-date { margin-left: auto; font-size: .68rem; color: var(--muted); }
.review-text { font-size: .8rem; color: var(--text); font-style: italic; line-height: 1.6; }
.review-textarea { min-height: 78px; margin-bottom: .7rem; }
.review-submit-btn { width: 100%; }
.write-review-section { border-top: 1px solid var(--border); padding-top: 1.2rem; margin-top: 1.2rem; }
.write-review-title { font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 700; margin-bottom: .7rem; }
.reviews-modal-inner { max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; }

/* ===== LOADING / EMPTY ===== */
.loading { text-align: center; padding: 3rem; color: var(--muted); }
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--border);
  border-top-color: var(--blue); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--muted); }
.empty-state .e-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state p { font-size: .88rem; }
.empty-state--chat { padding: 2rem; }
.empty-state--chat .e-icon { font-size: 2.5rem; }
.empty-state--sm .e-icon { font-size: 2rem; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 8px; object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15); color: white; border: none;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); color: white; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.28); }
.lightbox-counter {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: white; font-size: .8rem; background: rgba(0,0,0,.45); padding: .28rem .88rem; border-radius: 50px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 5rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a1a; color: white; padding: .7rem 1.3rem;
  border-radius: 6px; font-size: .82rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); opacity: 0;
  transition: all .3s; z-index: 999; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: #009944; }
.toast.error { background: var(--red); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: var(--overlay);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border-radius: 8px; padding: 1.75rem;
  max-width: 460px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: modalIn .22s ease;
}
@keyframes modalIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: .9rem; }
.modal-close { float: right; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.legal-modal { max-width: 660px; max-height: 85vh; overflow-y: auto; }

/* ===== FORMS (auth, publicar) ===== */
.auth-card {
  background: var(--card); border-radius: 8px; padding: 2rem;
  max-width: 420px; margin: 2rem auto; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.auth-card h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 1.25rem; }
.publish-wrap { max-width: 680px; margin: 0 auto; padding: 1.25rem; }
.form-card { background: var(--card); border-radius: 8px; padding: 1.4rem; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 1rem; }
.form-card h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group--no-margin { margin: 0; }
.form-group--mt { margin-top: 1rem; }
.form-label { font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; display: block; }
.form-input {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .88rem; background: var(--input-bg); color: var(--text);
  outline: none; transition: border-color .18s;
}
.form-input:focus { border-color: var(--blue); }
.form-textarea { resize: vertical; min-height: 95px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-hint { font-size: .72rem; color: var(--muted); margin-top: .3rem; }
.form-error { font-size: .72rem; color: var(--red); margin-top: .3rem; }

/* ===== CHAT ===== */
.chat-layout {
  display: grid; grid-template-columns: 280px 1fr;
  height: 75vh; max-width: 1100px; margin: 0 auto;
  background: var(--card); border-radius: 8px;
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
}
.chat-list {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-list-header { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-weight: 700; font-size: .9rem; }
.chat-list-items { flex: 1; overflow-y: auto; }
.chat-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .9rem; cursor: pointer; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.chat-item:hover, .chat-item.active { background: var(--bg); }
.chat-item-av {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .85rem; flex-shrink: 0; overflow: hidden;
}
.chat-item-av img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name { font-weight: 700; font-size: .82rem; }
.chat-item-msg { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .05rem; }
.chat-item-product { font-size: .67rem; color: var(--blue); margin-top: .08rem; }
.chat-item-time { font-size: .65rem; color: var(--muted); flex-shrink: 0; }
.chat-count-badge {
  background: var(--red); color: white; font-size: .62rem; font-weight: 700;
  padding: .1rem .42rem; border-radius: 50px; min-width: 17px; text-align: center;
}
.chat-window { display: flex; flex-direction: column; overflow: hidden; }
.chat-header {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
}
.chat-back-btn { background: none; border: none; font-size: 1.1rem; color: var(--text); padding: .28rem; margin-right: .2rem; }
.chat-name-block {}
.chat-user-name { font-weight: 700; font-size: .88rem; }
.chat-user-status { font-size: .7rem; color: #009944; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.msg { max-width: 75%; padding: .6rem .9rem; border-radius: 16px; font-size: .84rem; line-height: 1.5; position: relative; }
.msg-out { background: var(--blue); color: white; align-self: flex-end; border-radius: 16px 16px 4px 16px; }
.msg-in { background: var(--bg); color: var(--text); align-self: flex-start; border-radius: 16px 16px 16px 4px; }
.msg-time { font-size: .62rem; opacity: .65; margin-top: .18rem; }
.chat-input-row {
  display: flex; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; padding: .6rem .9rem; border: 1.5px solid var(--border);
  border-radius: 50px; font-size: .86rem; outline: none; background: var(--input-bg); color: var(--text);
}
.chat-input:focus { border-color: var(--blue); }
.chat-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: white; border: none;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.chat-send:hover { background: #001f6b; }
.cq-btn {
  padding: .3rem .7rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--card);
  font-size: .72rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.cq-btn:hover { border-color: var(--blue); color: var(--blue); }
.chat-quick-bar--hidden { display: none; }

/* ===== PROFILE ===== */
.profile-banner {
  background: var(--blue); border-radius: 8px; padding: 1.4rem;
  color: white; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.profile-av {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800; overflow: hidden; flex-shrink: 0; position: relative;
}
.profile-av img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; }
.profile-city { opacity: .85; font-size: .82rem; margin: .2rem 0; }
.profile-stats { display: flex; gap: 1.5rem; margin-top: .5rem; }
.profile-stat { text-align: center; }
.profile-stat-n { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; }
.profile-stat-l { font-size: .68rem; opacity: .8; }
.profile-tabs { display: flex; gap: .35rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.profile-tab {
  padding: .6rem 1rem; border: none; background: transparent; cursor: pointer;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; transition: all .18s; margin-bottom: -1px;
}
.profile-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.profile-logout-btn { margin-left: auto; align-self: flex-start; }
.delete-photo-btn {
  position: absolute; bottom: 0; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); color: white; border: none;
  font-size: .58rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.profile-reviews-wrap { display: none; max-width: 680px; }
.profile-favs-grid { display: none; }
.profile-stats-wrap { display: none; max-width: 680px; }
.profile-pub-header { grid-column: 1/-1; font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }

/* ===== SELLER PROFILE ===== */
.seller-profile-page { max-width: 1280px; margin: 0 auto; padding: 1.25rem; }
.seller-profile-page .section-title { margin-bottom: .5rem; }
.seller-profile-back { margin-bottom: 1rem; }
.seller-header {
  background: var(--blue); border-radius: 8px; padding: 1.4rem;
  color: white; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.seller-av-lg {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800; overflow: hidden; flex-shrink: 0;
}
.seller-av-lg img { width: 100%; height: 100%; object-fit: cover; }
.seller-header-info { flex: 1; min-width: 0; }
.seller-header-name { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; }
.seller-header-city { opacity: .85; font-size: .82rem; margin: .18rem 0; }
.seller-header-rating { margin-top: .38rem; }
.seller-header-stat {
  text-align: center; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: .8rem 1.2rem;
}
.seller-header-stat-n { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; }
.seller-header-stat-l { font-size: .68rem; opacity: .8; }
.seller-grid-title { font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
#sellerProfileWrap .product-grid { margin-top: .5rem; }

/* ===== SEARCH RESULT ===== */
.search-result-header { grid-column: 1/-1; font-size: .82rem; color: var(--muted); margin-bottom: .45rem; }
.search-clear-btn { margin-left: .45rem; color: var(--blue); background: none; border: none; cursor: pointer; font-size: .82rem; font-weight: 600; }

/* ===== SUPPORT FAB ===== */
.support-fab {
  position: fixed; bottom: 5rem; right: 1.5rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: white; border: none;
  font-size: 1.4rem; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .18s; z-index: 90;
}
.support-fab:hover { transform: scale(1.08); background: #1da851; }
.support-window {
  position: fixed; bottom: 9rem; right: 1.5rem;
  width: 310px; background: var(--card);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18);
  border: 1px solid var(--border); z-index: 91; display: none; overflow: hidden;
}
.support-window.open { display: block; }
.support-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: .9rem 1rem; background: var(--blue); color: white;
}
.support-header h4 { font-weight: 700; font-size: .88rem; margin-bottom: .12rem; }
.support-header p { font-size: .7rem; opacity: .8; }
.support-close { background: none; border: none; color: white; font-size: .9rem; cursor: pointer; }
.support-msgs { padding: .85rem; display: flex; flex-direction: column; gap: .45rem; max-height: 220px; overflow-y: auto; }
.support-msg-initial { font-size: .82rem; }
.support-quick-row { display: flex; gap: .35rem; flex-wrap: wrap; }
.support-quick-btn {
  padding: .28rem .65rem; border-radius: 50px;
  border: 1px solid var(--border); background: var(--card);
  font-size: .7rem; cursor: pointer; transition: all .15s;
}
.support-quick-btn:hover { border-color: var(--blue); color: var(--blue); }
.support-input-row { display: flex; gap: .45rem; padding: .65rem .85rem; border-top: 1px solid var(--border); }
.support-input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 50px;
  padding: .42rem .8rem; font-size: .8rem; outline: none; background: var(--input-bg); color: var(--text);
}
.support-input:focus { border-color: var(--blue); }
.support-send {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: white; border: none;
  display: flex; align-items: center; justify-content: center; font-size: .82rem;
}
.support-send:hover { background: #001f6b; }

/* ===== PRE-FOOTER STRIP ===== */
.pre-footer-strip { background: var(--card); border-top: 1px solid var(--border); padding: 1.2rem 1.25rem; }

/* ===== FOOTER — Estilo OLX ===== */
.site-footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 2.25rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.two-col-footer { grid-template-columns: 1fr 1fr 1fr 1fr !important; }
.footer-logo { font-size: 1.5rem; display: inline-block; margin-bottom: .7rem; }
.footer-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; max-width: 270px; }
.footer-social { margin-top: .9rem; display: flex; gap: .65rem; }
.social-link {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: background .18s;
}
.social-link:hover { background: var(--border); }
.footer-col-title { font-family: 'Syne', sans-serif; font-size: .85rem; font-weight: 700; margin-bottom: .9rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-link { font-size: .8rem; color: var(--muted); transition: color .18s; }
.footer-link:hover { color: var(--blue); }
.footer-link--cta { color: var(--blue); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem;
}
.footer-copy { font-size: .73rem; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 1.4rem; }
.footer-bottom-link { font-size: .7rem; color: var(--muted); transition: color .18s; }
.footer-bottom-link:hover { color: var(--blue); }

/* ===== LEGAL ===== */
.legal-date { color: var(--muted); font-size: .78rem; margin-bottom: 1.4rem; }
.legal-p { font-size: .86rem; line-height: 1.8; color: var(--text); margin-bottom: .9rem; }
.legal-p--sm { font-size: .83rem; line-height: 1.8; color: var(--text); }
.legal-h4 { margin: 1.2rem 0 .45rem; font-size: .92rem; }
.legal-link { color: var(--blue); }
.legal-about-header { text-align: center; margin-bottom: 1.75rem; }
.legal-about-logo { font-size: 2.3rem; display: inline-block; margin-bottom: .45rem; }
.legal-about-sub { color: var(--muted); font-size: .88rem; }
.legal-about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .9rem; margin: 1.4rem 0; text-align: center; }
.legal-about-card { background: var(--bg); border-radius: 8px; padding: 1.1rem; }
.legal-about-card-emoji { font-size: 1.9rem; margin-bottom: .28rem; }
.legal-about-card-title { font-weight: 700; font-size: .83rem; }
.legal-about-card-sub { font-size: .73rem; color: var(--muted); }
.legal-contact-list { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.4rem; }
.legal-contact-item { background: var(--bg); border-radius: 8px; padding: 1.1rem; display: flex; align-items: center; gap: .9rem; }
.legal-contact-icon { font-size: 1.7rem; }
.legal-contact-title { font-weight: 700; font-size: .86rem; }
.legal-contact-value { color: var(--blue); font-size: .83rem; }
.legal-contact-sub { font-size: .72rem; color: var(--muted); }
.legal-report-box { background: var(--blue); border-radius: 8px; padding: 1.1rem; color: white; text-align: center; }
.legal-report-p { font-size: .83rem; margin-bottom: .7rem; }
.legal-report-btn { background: white; color: var(--blue); border: none; padding: .5rem 1.1rem; border-radius: 6px; font-weight: 700; font-size: .8rem; cursor: pointer; }
.legal-howto-steps { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.4rem; }
.legal-step { display: flex; align-items: center; gap: .9rem; background: var(--bg); border-radius: 8px; padding: .85rem .95rem; }
.legal-step-num { width: 26px; height: 26px; border-radius: 50%; color: white; font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legal-step-num--blue { background: var(--blue); }
.legal-step-num--red { background: var(--red); }
.legal-step-text { font-size: .83rem; }
.legal-safety-item { display: flex; gap: .9rem; margin-bottom: .9rem; background: var(--bg); border-radius: 8px; padding: .95rem; }
.legal-safety-icon { font-size: 1.7rem; flex-shrink: 0; }
.legal-safety-title { font-weight: 700; font-size: .86rem; margin-bottom: .22rem; }
.legal-safety-desc { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); border-top: 2px solid var(--border);
  padding: .9rem 1.5rem; display: none;
  align-items: center; justify-content: space-between; gap: .9rem;
  z-index: 800; box-shadow: 0 -4px 20px rgba(0,0,0,.08); flex-wrap: wrap;
}
.cookie-text { font-size: .8rem; color: var(--text); max-width: 660px; }
.cookie-link { color: var(--blue); font-weight: 600; }
.cookie-actions { display: flex; gap: .65rem; flex-shrink: 0; }
.cookie-btn { padding: .5rem 1.1rem; border-radius: 6px; font-weight: 600; font-size: .8rem; cursor: pointer; border: none; }
.cookie-btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); padding: .5rem 1.1rem; border-radius: 6px; font-weight: 600; font-size: .8rem; cursor: pointer; }

/* ===== MISC ===== */
.product-grid--hidden { display: none; }
.register-form--hidden { display: none; }
.profile-pub-header { grid-column: 1/-1; font-size: .8rem; color: var(--muted); margin-bottom: .45rem; }
.form-group--no-margin { margin: 0; }
.form-group--mt { margin-top: .9rem; }
.chat-item-info { flex: 1; min-width: 0; }

/* ===== RESPONSIVE ===== */
@media(max-width: 900px) {
  .two-col, .detail-grid { grid-template-columns: 1fr; }
  .side-col { display: none; }
  .featured-row { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list { display: none; }
  .support-window { width: calc(100vw - 3rem); }
}
@media(max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .two-col-footer { grid-template-columns: 1fr 1fr !important; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side-col { order: -1; }
  .featured-options { grid-template-columns: 1fr; }
  .featured-modal-inner { max-width: 100%; border-radius: 8px 8px 0 0; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list { display: none; }
  .chat-list.visible { display: flex; }
  .trust-bar-inner { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .trust-bar-inner::-webkit-scrollbar { display: none; }
  .hero-strip { padding: 1.5rem 1rem; }
  .hero-h1 { font-size: 1.55rem; }
}
@media(max-width: 600px) {
  .header-inner { padding: .55rem .75rem; gap: .35rem; }
  .logo { font-size: 1.15rem; flex-shrink: 0; }
  .btn-outline { display: none; }
  .btn { padding: .42rem .85rem; font-size: .78rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .featured-row { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-price { font-size: 1.5rem; }
  .detail-title { font-size: 1.1rem; }
  .profile-banner { flex-wrap: wrap; padding: 1.1rem; }
  .profile-stats { gap: 1rem; }
  .page-wrap { padding: .75rem; }
  .publish-wrap { padding: .75rem; }
  .detail-wrap { padding: .75rem; }
  .form-card { padding: .95rem; }
  .hero-strip { padding: 1.2rem .75rem; }
  .hero-h1 { font-size: 1.3rem; }
  .hero-p { font-size: .82rem; }
  .support-window { width: calc(100vw - 1.5rem); right: .75rem; }
  .support-fab { bottom: 1rem; right: 1rem; }
}
@media(max-width: 400px) {
  .logo { font-size: .95rem; }
  .dark-toggle { width: 30px; height: 30px; font-size: .88rem; }
  .nav-icon { width: 30px; height: 30px; font-size: .9rem; }
  .product-grid { gap: .38rem; }
  .featured-row { grid-template-columns: 1fr; }
}
@media(max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .how-steps { grid-template-columns: 1fr; }
  .profile-banner { flex-direction: column; text-align: center; }
  .profile-stats { justify-content: center; }
}




/* =====================================================
   EL MERCADO PY — OVERRIDE QUIRÚRGICO
   Colores Albirroja: rojo #d52b1e · azul #0038a8 · dorado #f5a623
   Fuente display: Barlow Condensed 900 italic
   Fuente cuerpo:  Barlow 400/500/600
   ===================================================== */

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

:root {
  --red:    #d52b1e;
  --blue:   #0038a8;
  --accent: #d52b1e;
  --green:  #009944;
  --bg:     #f5f5f5;
  --card:   #ffffff;
  --border: #e0e0e0;
  --text:   #1a1a1a;
  --muted:  #6e6e6e;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  background: #f2f4f5;
  color: #002f34;
  font-size: 14px;
}

/* ── Tipografía global ── */
body {
  font-family: 'Barlow', sans-serif !important;
}

button { font-family: 'Barlow', sans-serif !important; }
input, select, textarea { font-family: 'Barlow', sans-serif !important; }

/* Títulos y precios en Barlow Condensed italic */
.hero-h1,
.section-title,
.product-price,
.detail-price,
.detail-title,
.stat-n,
.loader-logo {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important;
}

/* ── LOADER ── */
.loader-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: .5px;
}
.loader-bar-fill { background: var(--red); }

/* ── HEADER ── */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── LOGO — tricolor EL MERCADO PY ── */
.logo {
  display: flex !important;
  align-items: stretch !important;
  border-radius: 7px;
  overflow: hidden;
  gap: 0 !important;
  background: none !important;
  color: transparent !important;
  font-size: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
}
.logo .logo-el,
.logo .logo-mercado,
.logo .logo-py {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-size: 22px !important;
  color: #fff !important;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  line-height: 1;
  letter-spacing: .4px;
  white-space: nowrap;
}
.logo .logo-el      { background: #0038a8; border-radius: 7px 0 0 7px; }
.logo .logo-mercado { background: #d52b1e; }
.logo .logo-py      { background: #f5a623; border-radius: 0 7px 7px 0; }

/* ── BARRA DE BÚSQUEDA ── */
.search-bar {
  height: 42px;
  border-radius: 8px;
  border: 2px solid var(--red);
  box-shadow: none;
  transition: border-color .2s;
}
.search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,56,168,0.1);
}
.search-bar input {
  font-family: 'Barlow', sans-serif;
  font-size: .88rem;
  padding: .5rem .9rem;
}
.search-bar button {
  background: var(--red);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 0 6px 6px 0;
  padding: .5rem 1.1rem;
}
.search-bar button:hover { background: #b82115; }

/* ── BOTONES ── */
.btn {
  font-family: 'Barlow', sans-serif !important;
  font-weight: 700;
  font-size: .82rem;
  border-radius: var(--radius);
  transition: all .18s;
}
.btn-primary { background: var(--red); color: #fff; border: none; }
.btn-primary:hover { background: #b82115; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #002d8a; }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); font-weight: 700; }
.btn-white:hover { background: #e8f0ff; }
.btn-ghost {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.28); }

/* ── BARRA DE CATEGORÍAS ── */
.cats-bar { background: #fff; border-bottom: 2px solid var(--border); }
.cat-btn {
  font-family: 'Barlow', sans-serif !important;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.cat-btn.active,
.cat-btn:hover {
  color: var(--red) !important;
  border-bottom-color: var(--red) !important;
}

/* ── HERO STRIP ── */
.hero-strip {
  background: linear-gradient(120deg, #0038a8 0%, #1a52cc 55%, #d52b1e 100%);
  color: #fff;
  padding: 2.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.hero-strip::after {
  content: '🇵🇾';
  font-size: 160px;
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  opacity: .1;
  line-height: 1;
  pointer-events: none;
}
.hero-badge {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  display: inline-flex;
}
.hero-h1 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  color: #fff;
  letter-spacing: .3px;
}
.hero-p {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
}
.hero-stats-inline { color: rgba(255,255,255,.75); }
.hero-stats-inline span { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-style: italic; }
.search-bar.hero-search-bar {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.25) !important;
}
.search-bar.hero-search-bar button {
  border-radius: 0 6px 6px 0;
}

/* ── TRUST BAR ── */
.trust-bar { background: #fff; border-bottom: 1px solid var(--border); }
.trust-item { font-family: 'Barlow', sans-serif; font-weight: 600; }

/* ── FEATURED CARDS ── */
.featured-card:nth-child(1),
.fc-blue { background: var(--blue) !important; }
.featured-card:nth-child(2),
.fc-red  { background: var(--red) !important; }
.featured-card h3 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important;
  font-weight: 900 !important;
  font-size: 1.2rem !important;
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  letter-spacing: .3px;
  color: var(--text);
}
.see-all { color: var(--red); font-family: 'Barlow', sans-serif; }

/* ── PRODUCT CARDS ── */
.product-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #f5a8a5;
}
.product-price {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: var(--text) !important;
  letter-spacing: .2px;
}
.product-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: .8rem;
}
.product-badge         { background: var(--blue); }
.product-badge.new     { background: var(--green); }
.product-badge.featured{ background: var(--red); }
.carousel-arrow:hover  { background: var(--red); border-color: var(--red); color: #fff; }

/* ── STAT CARDS ── */
.stat-n {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important;
  font-weight: 900 !important;
  font-size: 1.8rem !important;
  color: var(--blue);
  letter-spacing: .3px;
}
.stat-n--green { color: var(--green); }
.stat-card--blue { border-top-color: var(--blue); }
.stat-card--red  { border-top-color: var(--red); }
.stat-card--green{ border-top-color: var(--green); }

/* ── HOW-STEPS ── */
.how-step-num--blue { background: var(--blue); }
.how-step-num--red  { background: var(--red); }

/* ── AD ZONES ── */
.ad-leaderboard { background: var(--blue); box-shadow: 0 2px 10px rgba(0,56,168,.15); }
.ad-leaderboard .ad-headline { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 800; }
.ad-leaderboard .ad-cta { background: var(--red); border-radius: 6px; }
.ad-leaderboard .ad-cta:hover { background: #b82115; }
.ad-square { background: var(--blue); }
.ad-square .ad-headline { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 800; }
.ad-square .ad-cta { background: #fff; color: var(--blue); font-weight: 700; }
.ad-tall { background: #001a4d; }
.ad-tall .ad-headline { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 800; }
.ad-tall .ad-cta { background: var(--red); }
.ad-incontent .ad-headline { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 800; }
.ad-incontent .ad-cta { background: var(--blue); }
.ad-incontent .ad-cta:hover { background: #002d8a; }
.ad-incontent:hover { border-color: var(--blue); }

/* ── DETAIL VIEW ── */
.detail-price {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important;
  font-weight: 900 !important;
  color: var(--text);
  font-size: 2rem !important;
  letter-spacing: .3px;
}
.detail-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
}

/* ── CARDS Y WIDGETS ── */
.sidebar-widget,
.stat-card,
.how-card,
.detail-info-card,
.detail-desc-card,
.seller-card,
.form-card,
.auth-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── FOOTER ── */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important;
  font-weight: 900 !important;
  color: var(--red) !important;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .3px;
  color: var(--text);
}
.footer-col a { font-family: 'Barlow', sans-serif; }
.footer-col a:hover { color: var(--red); }

/* ── DARK MODE overrides ── */
[data-theme="dark"] .hero-strip {
  background: linear-gradient(120deg, #001a4d 0%, #001660 55%, #6b1210 100%);
}
[data-theme="dark"] .featured-card:nth-child(1),
[data-theme="dark"] .fc-blue { background: #002060 !important; }
[data-theme="dark"] .featured-card:nth-child(2),
[data-theme="dark"] .fc-red  { background: #6b1210 !important; }
[data-theme="dark"] .ad-leaderboard { background: #001a4d; }
[data-theme="dark"] .ad-square { background: #001a4d; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d52b1e55; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #d52b1e99; }
::-webkit-scrollbar-track { background: var(--bg); }



/* =====================================================
   EL MERCADO PY — SECCIONES ESTILO OLX BRASIL
   Hero banner con slider · Account promo · Category grid
   Price-drop carousels · Discover grid · Footer OLX-style
   ===================================================== */

/* ── HERO BANNER SLIDER (imagen grande, como OLX "Festival de Carros") ── */
.hero-banner {
  width: 100%;
  background: #f2f4f5;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-banner-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hero-banner-slide {
  flex: 0 0 100%;
  min-height: 220px;
  max-height: 320px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0038a8 0%, #1a52cc 55%, #d52b1e 100%);
  display: flex; align-items: center; justify-content: flex-end;
}
.hero-banner-slide img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero-banner-slide .slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,56,168,0.75) 0%, rgba(0,56,168,0.2) 60%, transparent 100%);
  z-index: 1;
}
.hero-banner-slide .slide-content {
  position: relative; z-index: 2;
  padding: 2rem 1.5rem;
  color: #fff;
  max-width: 480px;
}
.slide-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .85;
  margin-bottom: .4rem;
}
.slide-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important; font-weight: 900 !important;
  font-size: clamp(1.6rem, 4vw, 2.6rem) !important;
  line-height: 1.05; margin-bottom: .5rem;
  color: #fff;
}
.slide-highlight {
  color: #f5a623;
}
.slide-sub {
  font-size: .88rem; opacity: .9;
  margin-bottom: 1rem;
}
.slide-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #d52b1e; color: #fff;
  border: none; border-radius: 6px;
  padding: .55rem 1.3rem; font-family: 'Barlow', sans-serif;
  font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
}
.slide-cta:hover { background: #b82115; }
.slide-cta--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
}
.slide-cta--outline:hover { background: rgba(255,255,255,.15); }

/* Indicadores del slider */
.hero-banner-dots {
  position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .35rem; z-index: 10;
}
.hero-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; padding: 0;
  cursor: pointer; transition: all .2s;
}
.hero-banner-dot.active {
  background: #fff; width: 22px; border-radius: 4px;
}
.hero-banner-prev, .hero-banner-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none;
  font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.hero-banner-prev { left: .75rem; }
.hero-banner-next { right: .75rem; }
.hero-banner-prev:hover, .hero-banner-next:hover {
  background: #fff; transform: translateY(-50%) scale(1.06);
}

/* ── ACCOUNT PROMO BAR (= "Crie sua conta OLX e aproveite todas as vantagens") ── */
.account-promo {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
}
.account-promo-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.account-promo-perks {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.account-perk {
  display: flex; align-items: flex-start; gap: .6rem;
  max-width: 200px;
}
.account-perk-icon {
  font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem;
}
.account-perk-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: .82rem; color: var(--text);
  margin-bottom: .1rem;
}
.account-perk-sub {
  font-size: .72rem; color: var(--muted); line-height: 1.4;
}
.account-promo-cta {
  background: #0038a8; color: #fff;
  border: none; border-radius: 6px;
  padding: .7rem 1.6rem;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: .88rem;
  cursor: pointer; white-space: nowrap; transition: background .18s;
  flex-shrink: 0;
}
.account-promo-cta:hover { background: #002d8a; }

/* ── DISCOVER GRID (= "Na OLX, você encontra os melhores preços") ── */
.discover-section {
  padding: 1.5rem 0 .5rem;
  background: #f2f4f5;
}
.discover-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
}
.discover-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important; font-weight: 800 !important;
  font-size: 1.15rem !important;
  color: var(--text);
  margin-bottom: 1rem;
}
.discover-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
  margin-bottom: 1rem;
}
@media(max-width: 900px) { .discover-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 500px) { .discover-grid { grid-template-columns: repeat(2, 1fr); } }

.discover-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  position: relative;
  aspect-ratio: 1 / .75;
  display: flex; align-items: flex-end;
  background: #e0e0e0;
}
.discover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.discover-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.discover-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.discover-card-label {
  position: relative; z-index: 1;
  padding: .6rem .75rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: .8rem;
  color: #fff; line-height: 1.2;
}
.discover-card-count {
  font-size: .65rem; font-weight: 400; opacity: .8;
  display: block; margin-top: .08rem;
}

/* Colores pasteles de fondo cuando no hay imagen (estilo OLX) */
.discover-card--color-1 { background: #d0e8f0; }
.discover-card--color-2 { background: #f0ddd0; }
.discover-card--color-3 { background: #d8f0d8; }
.discover-card--color-4 { background: #e8d8f0; }
.discover-card--color-5 { background: #f0eed8; }
.discover-card--color-6 { background: #d8e8f8; }
.discover-card--color-7 { background: #f0d8e8; }
.discover-card--color-8 { background: #d8f0ec; }
.discover-card--color-9 { background: #f8e8d0; }
.discover-card--color-10 { background: #e8f0d0; }

/* Emoji grande centrado como placeholder */
.discover-card-emoji {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: .55;
}

/* ── PRICE-DROP BANNER (= "Eletrônicos que baixaram de preço em até 10x") ── */
.price-drop-header {
  display: flex; align-items: baseline; gap: .6rem;
  margin-bottom: .25rem;
}
.price-drop-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important; font-weight: 800 !important;
  font-size: 1.1rem !important;
  color: var(--text);
  margin: 0;
}
.price-drop-sub {
  font-size: .75rem; color: var(--muted);
}
.price-drop-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #e8f5e9; color: #009944;
  border-radius: 50px; padding: .15rem .55rem;
  font-size: .68rem; font-weight: 700;
}

/* ── CATEGORY CAROUSEL SECTION WRAPPER ── */
.cat-carousel-section {
  padding: 1.25rem 0 0;
  background: #f2f4f5;
}
.cat-carousel-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.25rem;
}
.cat-carousel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .8rem;
}
.cat-carousel-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important; font-weight: 800 !important;
  font-size: 1.1rem !important;
  color: var(--text); margin: 0;
}
.cat-carousel-sub {
  font-size: .73rem; color: var(--muted);
  margin-top: .05rem;
}
.cat-carousel-see-all {
  font-size: .78rem; font-weight: 700; color: #0038a8;
  background: none; border: 1.5px solid #0038a8;
  border-radius: 50px; padding: .28rem .75rem;
  cursor: pointer; white-space: nowrap; transition: all .18s;
  display: flex; align-items: center; gap: .25rem;
}
.cat-carousel-see-all:hover { background: #0038a8; color: #fff; }

/* ── CATEGORY TABS STRIP (Celulares / Mesas / etc.) ── */
.subcat-tabs {
  display: flex; gap: .4rem; overflow-x: auto;
  scrollbar-width: none; padding-bottom: .5rem;
  margin-bottom: .75rem;
}
.subcat-tabs::-webkit-scrollbar { display: none; }
.subcat-tab {
  padding: .3rem .85rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .75rem; font-weight: 600; color: var(--text);
  white-space: nowrap; cursor: pointer; transition: all .18s;
}
.subcat-tab:hover { border-color: #d52b1e; color: #d52b1e; }
.subcat-tab.active {
  background: #d52b1e; color: #fff; border-color: #d52b1e;
}

/* ── OLX PRODUCT CARD — imagem maior, preço compacto ── */
.olx-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s;
  cursor: pointer;
  flex: 0 0 auto;
  width: 180px;
}
@media(max-width: 600px) { .olx-card { width: 150px; } }
.olx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.olx-card-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; overflow: hidden; position: relative;
}
.olx-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.olx-card-fav {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none;
  font-size: .8rem; display: flex; align-items: center;
  justify-content: center; cursor: pointer; z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: transform .15s;
}
.olx-card-fav:hover { transform: scale(1.15); }
.olx-card-badge {
  position: absolute; top: 6px; left: 6px;
  background: #0038a8; color: #fff;
  font-size: .58rem; font-weight: 700;
  padding: .18rem .48rem; border-radius: 4px; z-index: 2;
}
.olx-card-badge--new { background: #009944; }
.olx-card-badge--hot { background: #d52b1e; }
.olx-card-info { padding: .55rem .65rem .65rem; }
.olx-card-price {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important; font-weight: 800 !important;
  font-size: 1rem !important;
  color: var(--text); margin-bottom: .12rem;
}
.olx-card-price--drop {
  color: #009944;
}
.olx-card-oldprice {
  font-size: .68rem; color: var(--muted);
  text-decoration: line-through; margin-right: .3rem;
}
.olx-card-title {
  font-size: .75rem; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .2rem;
}
.olx-card-location {
  font-size: .64rem; color: var(--muted);
  display: flex; align-items: center; gap: .18rem;
}

/* ── HORIZONTAL SCROLL TRACK ── */
.hscroll-wrap { position: relative; }
.hscroll-track {
  display: flex; gap: .65rem;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: .5rem;
}
.hscroll-track::-webkit-scrollbar { display: none; }

/* ── FOOTER LINKS (estilo OLX Brasil: columnas de links grises) ── */
.footer-links-section {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 1.5rem;
}
.footer-links-inner {
  max-width: 1280px; margin: 0 auto;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
@media(max-width: 1100px) { .footer-links-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width: 768px) { .footer-links-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 480px) { .footer-links-grid { grid-template-columns: repeat(2, 1fr); } }

.footer-links-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic; font-weight: 800;
  font-size: .88rem; color: var(--text);
  margin-bottom: .6rem; letter-spacing: .2px;
}
.footer-links-col a {
  display: block; font-size: .75rem; color: var(--muted);
  margin-bottom: .32rem; transition: color .15s;
}
.footer-links-col a:hover { color: #d52b1e; }

.footer-tips-section {
  background: #f8f8f8;
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
}
.footer-tips-inner {
  max-width: 1280px; margin: 0 auto;
}
.footer-tips-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic; font-weight: 800;
  font-size: 1rem; color: var(--text); margin-bottom: 1rem;
}
.footer-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media(max-width: 768px) { .footer-tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 480px) { .footer-tips-grid { grid-template-columns: 1fr; } }

.footer-tip-card {
  background: #fff; border-radius: 8px;
  padding: 1rem; border: 1px solid var(--border);
  cursor: pointer; transition: box-shadow .18s;
}
.footer-tip-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.09); }
.footer-tip-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.footer-tip-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: .82rem; color: var(--text); margin-bottom: .3rem;
}
.footer-tip-sub { font-size: .72rem; color: var(--muted); line-height: 1.45; }

/* ── FOOTER BOTTOM BAR ── */
.footer-bottom {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.footer-bottom-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.footer-logo-mark {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic; font-weight: 900;
  font-size: 1.1rem; color: #d52b1e;
}
.footer-bottom-links {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: .72rem; color: var(--muted); transition: color .15s;
}
.footer-bottom-links a:hover { color: #d52b1e; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .18s;
}
.footer-social a:hover { background: #d52b1e20; }
.footer-copyright {
  font-size: .7rem; color: var(--muted); width: 100%; text-align: center;
  margin-top: .5rem;
}

/* ── CATEGORY MAIN TABS (Celulares e Smartphones / Motos / etc.) ── */
.main-cats-strip {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky; top: 57px; z-index: 90;
}
.main-cats-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; overflow-x: auto; padding: 0 1.25rem;
  scrollbar-width: none;
}
.main-cats-inner::-webkit-scrollbar { display: none; }
.main-cat-btn {
  display: flex; flex-direction: column; align-items: center; gap: .28rem;
  padding: .65rem .8rem;
  border: none; background: transparent;
  font-size: .68rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; min-width: 58px;
  border-bottom: 3px solid transparent;
  transition: all .15s; cursor: pointer;
  flex-shrink: 0;
}
.main-cat-btn:hover, .main-cat-btn.active {
  color: #d52b1e; border-bottom-color: #d52b1e;
}
.main-cat-icon { font-size: 1.25rem; line-height: 1; }

/* ── MAIN PAGE SECTION SEPARATOR ── */
.section-sep {
  height: .5rem; background: #f2f4f5;
}

/* ── SECTION WRAP ── */
.section-wrap {
  background: #fff;
  padding: 1.5rem 0 1rem;
  margin-bottom: .5rem;
}
.section-wrap-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.25rem;
}

/* Ajuste a sección carrusel para fondo blanco como OLX */
.section-wrap .carousel-section { margin-bottom: 0; }
.section-wrap .carousel-header { margin-bottom: .65rem; }

/* ── OLX SECTION HEADER (título + ver más) ── */
.olx-section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: .85rem; flex-wrap: wrap; gap: .4rem;
}
.olx-section-head-left {}
.olx-section-head-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-style: italic !important; font-weight: 800 !important;
  font-size: 1.15rem !important;
  color: var(--text); margin: 0 0 .1rem;
}
.olx-section-head-sub {
  font-size: .73rem; color: var(--muted);
}
.olx-see-all {
  font-size: .78rem; font-weight: 700; color: #0038a8;
  background: none; border: 1.5px solid #0038a8;
  border-radius: 50px; padding: .3rem .85rem;
  cursor: pointer; white-space: nowrap; transition: all .18s;
  display: flex; align-items: center; gap: .3rem; flex-shrink: 0;
}
.olx-see-all:hover { background: #0038a8; color: #fff; }
.olx-see-all--icon { font-size: .75rem; }

/* ── SCROLL ARROW BUTTONS ── */
.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  font-size: 1rem; cursor: pointer; z-index: 5;
  display: none; align-items: center; justify-content: center;
  transition: all .18s; color: var(--text);
}
.scroll-btn:hover { background: #d52b1e; color: #fff; border-color: #d52b1e; }
.scroll-btn.left { left: -14px; }
.scroll-btn.right { right: -14px; }
@media(min-width: 700px) { .scroll-btn { display: flex; } }

/* ── STATS STRIP (inline, como OLX trust bar) ── */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .55rem 1.25rem;
}
.stats-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
}
.stats-strip-inner::-webkit-scrollbar { display: none; }
.stat-strip-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}
.stat-strip-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.stat-strip-dot--green { background: #009944; }
.stat-strip-dot--blue { background: #0038a8; }
.stat-strip-dot--red { background: #d52b1e; }
.stat-strip-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic; font-weight: 800;
  font-size: .88rem; color: var(--text);
}

/* ── RESPONSIVE: mobile banner height ── */
@media(max-width: 600px) {
  .hero-banner-slide { min-height: 160px; max-height: 220px; }
  .slide-title { font-size: 1.5rem !important; }
  .account-promo-inner { grid-template-columns: 1fr; }
  .account-promo-perks { gap: 1rem; }
  .footer-links-section { padding: 1.25rem .75rem 1rem; }
  .olx-card { width: 145px; }
  .discover-card { aspect-ratio: 1 / .85; }
}
@media(max-width: 400px) {
  .hero-banner-slide { min-height: 130px; }
  .slide-content { padding: 1.2rem 1rem; }
}



/* =====================================================
   EL MERCADO PY — MEJORAS DARK MODE + RESPONSIVE MÓVIL
   ===================================================== */

/* ===== DARK MODE: variables adicionales ===== */
[data-theme="dark"] {
  --input-bg: #252525;
  --header-bg: #1a1a1a;
}

/* Header y barras con fondo correcto en dark */
[data-theme="dark"] header,
[data-theme="dark"] .cats-bar,
[data-theme="dark"] .main-cats-strip {
  background: var(--header-bg) !important;
}

/* Elementos con #fff / #ffffff hardcodeados */
[data-theme="dark"] .trust-bar { background: var(--card) !important; }
[data-theme="dark"] .account-promo { background: var(--card) !important; }
[data-theme="dark"] footer,
[data-theme="dark"] .site-footer { background: var(--card) !important; }
[data-theme="dark"] .footer-links-section { background: var(--card) !important; }
[data-theme="dark"] .footer-tips-section { background: var(--bg) !important; }
[data-theme="dark"] .footer-tip-card { background: var(--card) !important; }
[data-theme="dark"] .footer-bottom { background: var(--card) !important; }
[data-theme="dark"] .section-wrap { background: var(--card) !important; }
[data-theme="dark"] .discover-section { background: var(--bg) !important; }
[data-theme="dark"] .cat-carousel-section { background: var(--bg) !important; }
[data-theme="dark"] .section-sep { background: var(--bg) !important; }
[data-theme="dark"] .stats-strip { background: var(--card) !important; }
[data-theme="dark"] .subcat-tab { background: var(--card) !important; }
[data-theme="dark"] #pageLoader { background: #111 !important; }
[data-theme="dark"] .scroll-btn { background: var(--card) !important; }

/* owner-btn variantes en dark */
[data-theme="dark"] .owner-btn.sold-btn { background: #0a2e12; color: #4ade80; border-color: #4ade80; }
[data-theme="dark"] .owner-btn.delete-btn { background: #2e0a0a; color: #f87171; border-color: #f87171; }
[data-theme="dark"] .owner-btn.unsold-btn { background: #2e1e0a; color: #fbbf24; border-color: #fbbf24; }
[data-theme="dark"] .owner-btn--star { background: #2e1a0a; color: #fbbf24; border-color: #fbbf24; }

/* product-img placeholder en dark */
[data-theme="dark"] .product-img { background: #2a2a2a !important; }
[data-theme="dark"] .olx-card-img { background: #2a2a2a !important; }

/* price-drop badge en dark */
[data-theme="dark"] .price-drop-badge { background: #0a2e12; color: #4ade80; }

/* discover cards (pasteles) en dark */
[data-theme="dark"] .discover-card--color-1 { background: #1a2e38; }
[data-theme="dark"] .discover-card--color-2 { background: #2e1a0a; }
[data-theme="dark"] .discover-card--color-3 { background: #0a2e0a; }
[data-theme="dark"] .discover-card--color-4 { background: #1a0a2e; }
[data-theme="dark"] .discover-card--color-5 { background: #2e2a0a; }
[data-theme="dark"] .discover-card--color-6 { background: #0a1a2e; }
[data-theme="dark"] .discover-card--color-7 { background: #2e0a1a; }
[data-theme="dark"] .discover-card--color-8 { background: #0a2e2a; }
[data-theme="dark"] .discover-card--color-9 { background: #2e200a; }
[data-theme="dark"] .discover-card--color-10 { background: #1a2e0a; }

/* Botón de dark toggle con ícono visible */
[data-theme="dark"] .dark-toggle { color: #f5a623; }

/* Separador visible en dark */
[data-theme="dark"] .filter-sep { background: var(--border); }

/* native ad img en dark */
[data-theme="dark"] .ad-native .native-img { background: #2a2a2a; }

/* ===== RESPONSIVE MÓVIL — Header ===== */
/*
   En pantallas pequeñas el header tiene:
   logo + searchbar + [dark-toggle + msgIcon + btn-publicar + avatar]
   Todo en una sola fila → muy apretado.
   Solución: dos filas en móvil.
*/
@media(max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
    padding: .5rem .75rem .4rem;
    gap: .4rem;
  }

  /* Fila 1: logo a la izquierda, acciones a la derecha */
  .logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; gap: .25rem; }

  /* Fila 2: buscador ocupa todo el ancho */
  .search-bar { order: 3; width: 100%; flex: 0 0 100%; }

  /* Ocultar texto del botón publicar, mostrar solo + */
  .btn-primary::before { content: '+'; }
  .btn-primary { padding: .42rem .7rem; font-size: 0; }
  .btn-primary::before { font-size: .9rem; font-weight: 800; }

  /* Logo más compacto */
  .logo .logo-el,
  .logo .logo-mercado,
  .logo .logo-py {
    font-size: 17px !important;
    padding: 4px 7px;
  }
}

@media(max-width: 400px) {
  /* Íconos más pequeños */
  .dark-toggle,
  .nav-icon { width: 32px; height: 32px; font-size: .9rem; }

  .logo .logo-el,
  .logo .logo-mercado,
  .logo .logo-py {
    font-size: 15px !important;
    padding: 3px 6px;
  }
}

/* ===== RESPONSIVE — Cats bar en móvil ===== */
@media(max-width: 600px) {
  .cats-inner { padding: 0 .5rem; }
  .cat-btn { min-width: 56px; padding: .55rem .6rem !important; }
  .cat-icon { font-size: 1.15rem; }
}

/* ===== RESPONSIVE — Filter bar en móvil ===== */
@media(max-width: 600px) {
  .filter-inner { padding: .45rem .75rem; gap: .35rem; }
  .filter-label { display: none; } /* libera espacio */
}

/* ===== RESPONSIVE — Cookie banner en móvil ===== */
@media(max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: .75rem 1rem;
    gap: .6rem;
  }
  .cookie-actions { width: 100%; }
  .cookie-btn, .cookie-btn-secondary { flex: 1; text-align: center; }
}

/* ===== RESPONSIVE — Support window en móvil ===== */
@media(max-width: 600px) {
  .support-window {
    width: calc(100vw - 1.5rem);
    right: .75rem;
    bottom: 5rem;
    max-height: 70vh;
  }
}

/* ===== RESPONSIVE — Hero strip en móvil ===== */
@media(max-width: 600px) {
  .hero-strip { padding: 1.25rem .75rem 1.5rem; }
  .hero-strip::after { font-size: 100px; right: -15px; }
  .hero-search-wrap { max-width: 100%; }
  .hero-strip-actions { gap: .5rem; }
  .hero-btn { padding: .5rem 1rem; font-size: .82rem; }
  .hero-banner-prev, .hero-banner-next { width: 30px; height: 30px; font-size: .8rem; }
}

/* ===== RESPONSIVE — Detail view en móvil ===== */
@media(max-width: 600px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side-col { order: -1; }
}

/* ===== RESPONSIVE — Perfil en móvil ===== */
@media(max-width: 480px) {
  .profile-banner { flex-direction: column; align-items: center; text-align: center; padding: 1rem; }
  .profile-stats { justify-content: center; flex-wrap: wrap; }
}

/* ===== RESPONSIVE — Preloader en dark ===== */
[data-theme="dark"] .loader-bar { background: #333; }

/* ===== DARK MODE: transición suave al cambiar tema ===== */
body,
header,
.cats-bar,
.filter-bar-wrap,
.hero-strip,
.trust-bar,
.product-card,
.sidebar-widget,
.stat-card,
.form-card,
.auth-card,
.modal,
.chat-layout,
footer,
.site-footer,
.section-wrap,
.discover-section,
.account-promo,
.cookie-banner {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}


/* =====================================================
   DARK MODE — CORRECCIÓN COMPLETA (sobrescribe todo)
   Cubre TODOS los colores hardcodeados del archivo
   ===================================================== */

/* ── Fondo del body y loader ── */
[data-theme="dark"] body { background: #111 !important; color: var(--text) !important; }
[data-theme="dark"] #pageLoader { background: #111 !important; }
[data-theme="dark"] .loader-bar { background: #2e2e2e !important; }

/* ── Header, cats, trust, stats, filter ── */
[data-theme="dark"] header { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .cats-bar { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .main-cats-strip { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .trust-bar { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .stats-strip { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .filter-bar-wrap { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .filter-bar { background: #1a1a1a !important; }
[data-theme="dark"] .filter-panel { background: #1a1a1a !important; border-color: #2e2e2e !important; }

/* ── Secciones de página ── */
[data-theme="dark"] .section-wrap { background: #1e1e1e !important; }
[data-theme="dark"] .section-sep { background: #111 !important; }
[data-theme="dark"] .discover-section { background: #161616 !important; }
[data-theme="dark"] .cat-carousel-section { background: #161616 !important; }
[data-theme="dark"] .account-promo { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .hero-banner { background: #111 !important; }

/* ── Cards de producto / carrusel ── */
[data-theme="dark"] .product-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .product-img { background: #2a2a2a !important; }
[data-theme="dark"] .olx-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .olx-card-img { background: #2a2a2a !important; }
[data-theme="dark"] .ad-native .native-img { background: #2a2a2a !important; }

/* ── Botones de propietario (colores pastel → versión dark) ── */
[data-theme="dark"] .owner-btn.sold-btn { background: #0a2e12 !important; color: #4ade80 !important; border-color: #4ade80 !important; }
[data-theme="dark"] .owner-btn.delete-btn { background: #2e0a0a !important; color: #f87171 !important; border-color: #f87171 !important; }
[data-theme="dark"] .owner-btn.unsold-btn { background: #2e1e0a !important; color: #fbbf24 !important; border-color: #fbbf24 !important; }
[data-theme="dark"] .owner-btn--star { background: #2e1a0a !important; color: #fbbf24 !important; border-color: #fbbf24 !important; }

/* ── subcat-tab, scroll-btn, scroll-btn ── */
[data-theme="dark"] .subcat-tab { background: #1e1e1e !important; border-color: #2e2e2e !important; color: var(--text) !important; }
[data-theme="dark"] .subcat-tab.active { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
[data-theme="dark"] .scroll-btn { background: #1e1e1e !important; border-color: #2e2e2e !important; color: var(--text) !important; }
[data-theme="dark"] .carousel-arrow { background: #1e1e1e !important; border-color: #2e2e2e !important; color: var(--text) !important; }
[data-theme="dark"] .hero-banner-prev,
[data-theme="dark"] .hero-banner-next { background: rgba(30,30,30,.92) !important; color: #fff !important; }

/* ── Ads ── */
[data-theme="dark"] .ad-incontent { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .ad-banner { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .ad-leaderboard { background: #001a4d !important; }
[data-theme="dark"] .ad-square { background: #001a4d !important; }

/* ── Footer ── */
[data-theme="dark"] footer,
[data-theme="dark"] .site-footer { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .footer-links-section { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .footer-tips-section { background: #161616 !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .footer-tip-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .footer-bottom { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .footer-col h4 { color: var(--text) !important; }

/* ── Modals y formularios ── */
[data-theme="dark"] .modal { background: #1e1e1e !important; }
[data-theme="dark"] .auth-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .form-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .how-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .detail-info-card,
[data-theme="dark"] .detail-desc-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .seller-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .sidebar-widget { background: #1e1e1e !important; border-color: #2e2e2e !important; }

/* ── Featured modal ── */
[data-theme="dark"] .featured-modal-benefits { background: #161616 !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .benefit-icon--gold { background: #2e200a !important; }
[data-theme="dark"] .benefit-icon--blue { background: #0a1a2e !important; }
[data-theme="dark"] .benefit-icon--green { background: #0a2e12 !important; }
[data-theme="dark"] .featured-option--popular { background: #1a0f0f !important; }
[data-theme="dark"] .featured-plan-selected { background: #052e16 !important; border-color: #166534 !important; }

/* ── Rating / reviews ── */
[data-theme="dark"] .rating-summary { background: #161616 !important; }
[data-theme="dark"] .review-card { background: #161616 !important; }
[data-theme="dark"] .rating-bar-track { background: #2e2e2e !important; }

/* ── Chat ── */
[data-theme="dark"] .chat-layout { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .chat-list { border-color: #2e2e2e !important; }
[data-theme="dark"] .chat-list-header { border-color: #2e2e2e !important; }
[data-theme="dark"] .chat-item:hover,
[data-theme="dark"] .chat-item.active { background: #252525 !important; }
[data-theme="dark"] .msg-out { background: #1a3a6e !important; }

/* ── Support window ── */
[data-theme="dark"] .support-window { background: #1e1e1e !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .support-msgs { background: #161616 !important; }
[data-theme="dark"] .msg-in { background: #252525 !important; color: var(--text) !important; }

/* ── Cookie banner ── */
[data-theme="dark"] .cookie-banner { background: #1a1a1a !important; border-color: #2e2e2e !important; }
[data-theme="dark"] .cookie-btn-secondary { background: #2a2a2a !important; color: var(--text) !important; border-color: #3e3e3e !important; }

/* ── Legales ── */
[data-theme="dark"] .legal-about-card { background: #161616 !important; }
[data-theme="dark"] .legal-contact-item { background: #161616 !important; }
[data-theme="dark"] .legal-step { background: #161616 !important; }
[data-theme="dark"] .legal-safety-item { background: #161616 !important; }
[data-theme="dark"] .legal-report-btn { background: #1e1e1e !important; color: var(--text) !important; border: 1px solid #3e3e3e !important; }

/* ── Price-drop badge ── */
[data-theme="dark"] .price-drop-badge { background: #0a2e12 !important; color: #4ade80 !important; }

/* ── Discover cards (pasteles → dark) ── */
[data-theme="dark"] .discover-card--color-1 { background: #1a2e38 !important; }
[data-theme="dark"] .discover-card--color-2 { background: #2e1a0a !important; }
[data-theme="dark"] .discover-card--color-3 { background: #0a2e0a !important; }
[data-theme="dark"] .discover-card--color-4 { background: #1a0a2e !important; }
[data-theme="dark"] .discover-card--color-5 { background: #2e2a0a !important; }
[data-theme="dark"] .discover-card--color-6 { background: #0a1a2e !important; }
[data-theme="dark"] .discover-card--color-7 { background: #2e0a1a !important; }
[data-theme="dark"] .discover-card--color-8 { background: #0a2e2a !important; }
[data-theme="dark"] .discover-card--color-9 { background: #2e200a !important; }
[data-theme="dark"] .discover-card--color-10 { background: #1a2e0a !important; }

/* ── Profile banner ── */
[data-theme="dark"] .profile-banner { background: #1e1e1e !important; }

/* ── Stat cards ── */
[data-theme="dark"] .stat-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }

/* ── Hero banner dots/arrows en dark ── */
[data-theme="dark"] .hero-banner-dot.active { background: rgba(255,255,255,.9) !important; }

/* ── Featured cards en dark ── */
[data-theme="dark"] .featured-card:nth-child(1),
[data-theme="dark"] .fc-blue { background: #002060 !important; }
[data-theme="dark"] .featured-card:nth-child(2),
[data-theme="dark"] .fc-red { background: #6b1210 !important; }

/* ── Featured promo en dark ── */
[data-theme="dark"] .featured-promo { background: linear-gradient(135deg,#1a1200,#1a1500) !important; border-color: #f59e0b33 !important; }

/* ── Inputs y selects en dark ── */
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #252525 !important;
  color: var(--text) !important;
  border-color: #3e3e3e !important;
}
[data-theme="dark"] .form-input { background: #252525 !important; color: var(--text) !important; border-color: #3e3e3e !important; }

/* ── Hero search bar (input en dark) ── */
[data-theme="dark"] .hero-search-bar input { background: #252525 !important; color: var(--text) !important; }
[data-theme="dark"] .search-bar { background: #252525 !important; border-color: #3e3e3e !important; }
[data-theme="dark"] .search-bar input { background: #252525 !important; color: var(--text) !important; }

/* ── Pre-footer ad strip ── */
[data-theme="dark"] .pre-footer-strip { background: #161616 !important; }

/* ── How-steps separadores ── */
[data-theme="dark"] .how-step--bordered { border-color: #2e2e2e !important; }

/* ── Profile page ── */
[data-theme="dark"] .profile-stats-card { background: #1e1e1e !important; border-color: #2e2e2e !important; }

/* ── Toast ── */
[data-theme="dark"] .toast { background: #2a2a2a !important; }
[data-theme="dark"] .toast.success { background: #009944 !important; }
[data-theme="dark"] .toast.error { background: var(--red) !important; }

/* ── Transición global suave ── */
*,
*::before,
*::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: .2s;
  transition-timing-function: ease;
}
/* No animar transforms ni otros (evita bugs de hover/animación) */
.product-card,
.olx-card,
.discover-card,
.featured-card,
.carousel-arrow,
.scroll-btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .18s ease, box-shadow .18s ease !important; }

