/* Tipografías institucionales */
@font-face { font-family: "Amate Sans"; src: url("fonts/amate-sans-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Quetzalli Sans"; src: url("fonts/quetzalli-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Quetzalli Sans"; src: url("fonts/quetzalli-sans-black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Quetzalli Sans"; src: url("fonts/quetzalli-sans-light-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

/* ==========================================================
   Directorio de negocios · Morelos
   Sistema visual: tipografía del sistema (SF Pro en Apple, Inter en lo demás),
   superficies blancas sobre gris claro, un solo azul de acción, vidrio esmerilado.
   HTML + CSS + JS puro.
   ========================================================== */

:root { color-scheme: light;
  /* Paleta institucional: olivo #71785b, dorado #bc9b73, verde oscuro #2e3b2b,
     piedra #cbcabe, vino #773357, terracota #7c4a36 */
  --olive: #71785b;
  --gold: #bc9b73;
  --forest: #2e3b2b;
  --stone: #cbcabe;
  --wine: #773357;
  --rust: #7c4a36;
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-2: #f0f0eb;
  --fill: rgba(118, 118, 128, .12);      /* rellenos de controles (iOS) */
  --fill-2: rgba(118, 118, 128, .08);
  --ink: #1f231c;
  --ink-2: #6b6e63;
  --ink-3: #8a8c82;
  --hair: rgba(46, 59, 43, .09);
  --hair-2: rgba(46, 59, 43, .16);
  --accent: #5f6649;          /* olivo apenas más profundo para texto pequeño legible */
  --accent-hover: #4e5539;
  --accent-soft: rgba(113, 120, 91, .14);
  --primary: #2e3b2b;         /* botones principales */
  --primary-hover: #3b4b37;
  --on-primary: #ffffff;
  --brand: #bc9b73;
  --green: #71785b;           /* interruptores encendidos */
  --glass: rgba(250, 250, 247, .58);
  --mark: rgba(255, 204, 0, .38);
  --shadow-1: 0 1px 1px rgba(0, 0, 0, .03), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08);
  --shadow-3: 0 24px 80px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .06);
  --font: "Quetzalli Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Amate Sans", "Quetzalli Sans", system-ui, sans-serif;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --side: 300px;
  --nav: 52px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
  /* compatibilidad con app.js */
  --card: var(--surface);
  --paper: var(--bg);
  --line-2: var(--hair-2);
  --ink-3c: var(--ink-3);
  color-scheme: light;
}



/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
body {
  margin: 0;
  font: 400 17px/1.47 var(--font);
  letter-spacing: -.022em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg:not(.leaflet-pane svg) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
mark { background: none; color: var(--ink); font-weight: 600; padding: 0; }
.card h3 mark { font-weight: 700; }

/* ---------- Carga ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg); transition: opacity .5s var(--ease), visibility .5s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-card { width: min(260px, 70vw); display: grid; justify-items: center; gap: 18px; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid var(--fill); border-top-color: var(--ink-2);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-bar { width: 100%; height: 3px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 6%; background: var(--ink); border-radius: inherit; transition: width .25s var(--ease); }
.loader-bar.indet i { width: 30%; animation: slide 1.2s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.loader-note { margin: 0; font-size: 13px; color: var(--ink-3); letter-spacing: -.01em; }

/* ---------- Barra superior (vidrio) ---------- */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--nav);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.top-inner { max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 20px !important; height: 20px !important; color: var(--brand); stroke-width: 2 !important; }
.brand-text { font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.brand-text span { font-weight: 400; color: var(--ink-2); }
.top-meta { font-size: 12px; color: var(--ink-3); letter-spacing: -.01em; }

/* ---------- Portada ---------- */
.hero { padding: 72px 28px 40px; text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 {
  margin: 0 auto 14px; max-width: 16ch;
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em;
}
.hero h1 span { color: inherit; }
.hero-sub { margin: 0 auto 36px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; color: var(--ink-2); letter-spacing: -.02em; }
.hero-sub span { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.search { position: relative; max-width: 680px; margin: 0 auto; }
.search input {
  width: 100%; height: 60px; padding: 0 60px 0 58px;
  border: 0; border-radius: 999px; background: var(--surface);
  font-size: 19px; letter-spacing: -.02em;
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair);
  transition: box-shadow .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair), 0 0 0 4px var(--accent-soft), inset 0 0 0 1.5px var(--accent); }
.search input::-webkit-search-cancel-button { display: none; }
.search-ico { position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 22px !important; height: 22px !important; color: var(--ink-3); pointer-events: none; stroke-width: 2 !important; }
.search-kbd, .search-clear { position: absolute; right: 16px; top: 50%; translate: 0 -50%; }
.search-kbd {
  font: 500 12px var(--font); color: var(--ink-3); min-width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 7px; background: var(--fill-2);
}
.search input:focus ~ .search-kbd { display: none; }
.search-clear {
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink-3); color: var(--surface);
  font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px;
}
.search-clear:hover { background: var(--ink-2); }

.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 720px; }
.quick button {
  border: 0; background: var(--fill-2); color: var(--ink); border-radius: 999px;
  padding: 7px 15px; font-size: 14px; letter-spacing: -.01em;
  transition: background .2s var(--ease);
}
.quick button:hover { background: var(--fill); }

/* ---------- Distribución ---------- */
.layout {
  max-width: 1440px; margin: 0 auto; padding: 8px 28px 48px;
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 40px; align-items: start;
}
.main { min-width: 0; }

/* ---------- Filtros (grupos tipo Ajustes de iOS) ---------- */
.filters {
  position: sticky; top: calc(var(--nav) + 20px);
  max-height: calc(100vh - var(--nav) - 40px); overflow: auto; overscroll-behavior: contain;
  padding: 2px 4px 12px; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.sheet-grabber { display: none; }
.filters-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 14px; }
.filters-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.filters .filters-close, .filters .filters-apply { display: none; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-size: 15px; }
.link:hover { text-decoration: underline; }

.field { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.field > label:not(.toggle), .field > legend {
  display: block; padding: 0 4px; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: -.005em;
}

.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px;
  border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select select {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; padding: 0 38px 0 14px;
  border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair);
  font-size: 15px; text-overflow: ellipsis; cursor: pointer;
}
.select select:disabled { color: var(--ink-3); cursor: default; }
.select select:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft), inset 0 0 0 1.5px var(--accent); outline: none; }
.select-sm select { height: 36px; border-radius: 999px; padding: 0 34px 0 16px; font-size: 14px; }
.select-sm::after { right: 14px; }

/* Tipo de negocio (autocompletar) */
.combo { position: relative; }
.combo input {
  width: 100%; height: 44px; padding: 0 38px 0 14px; border: 0; border-radius: var(--r-sm);
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair); font-size: 15px;
}
.combo input::placeholder { color: var(--ink-3); }
.combo input:focus { box-shadow: 0 0 0 4px var(--accent-soft), inset 0 0 0 1.5px var(--accent); }
.combo.has-value input { color: var(--accent); font-weight: 500; }
.combo-clear {
  position: absolute; right: 9px; top: 11px; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: var(--ink-3); color: var(--surface); font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0 0 1px;
}
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow: auto;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-radius: var(--r-md); box-shadow: var(--shadow-3);
}
.combo-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 9px 11px; border-radius: 9px; cursor: pointer; font-size: 15px; line-height: 1.25;
}
.combo-list li small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.combo-list li b { font-weight: 400; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--primary); color: var(--on-primary); }
.combo-list li[aria-selected="true"] small, .combo-list li:hover small,
.combo-list li[aria-selected="true"] b, .combo-list li:hover b { color: inherit; opacity: .75; }
.combo-list li.none { color: var(--ink-3); cursor: default; background: none; }
.combo-list mark { background: none; color: inherit; font-weight: 600; padding: 0; }

/* Tamaño */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip {
  position: relative; display: block;
  border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair);
  padding: 9px 12px; text-align: left; font-size: 15px; transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.chip span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 500; }
.chip small { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.chip b { position: absolute; right: 11px; top: 10px; font-weight: 400; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.chip[aria-pressed="true"] span { color: var(--accent); }
.chip.zero { opacity: .4; }

/* Interruptores (iOS) agrupados */
.group { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair); padding-left: 14px; }
.toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding-right: 12px; font-size: 15px; cursor: pointer;
  flex-direction: row-reverse;
}
.toggle + .toggle { border-top: 1px solid var(--hair); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 51px; height: 31px; border-radius: 31px; background: var(--fill); position: relative; transition: background .25s var(--ease); flex: none; }
.sw::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .3s var(--spring);
}
.toggle input:checked + .sw { background: var(--green); }
.toggle input:checked + .sw::after { transform: translateX(20px); }
.toggle input:focus-visible + .sw { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* Control segmentado (iOS) */
.seg, .views {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  padding: 2px; border-radius: 9px; background: var(--fill);
}
.seg button, .views button {
  border: 0; background: none; border-radius: 7px; padding: 6px 10px; font-size: 13px; font-weight: 500;
  color: var(--ink); white-space: nowrap; transition: background .2s var(--ease), box-shadow .2s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button[aria-pressed="true"], .views button.on {
  background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
}

.views button svg { width: 15px !important; height: 15px !important; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none !important;
  transition: background .2s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px !important; height: 16px !important; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--fill-2); color: var(--ink); }
.btn-ghost:hover { background: var(--fill); }
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink-2);
  display: grid; place-items: center; padding: 0;
}
.icon-btn svg { width: 14px !important; height: 14px !important; stroke-width: 2.4 !important; }
.icon-btn:hover { background: var(--hair-2); }
.badge { background: var(--primary); color: var(--on-primary); border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; font-weight: 600; }

/* ---------- Barra de resultados ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; min-height: 40px; }
.count { display: flex; align-items: baseline; gap: 8px; }
.count strong { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.count span { font-size: 17px; color: var(--ink-2); }
.toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.show-filters { display: none; }
.views { width: 180px; }
.views button { padding: 6px 12px; }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; padding: 6px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border-radius: var(--r-md); box-shadow: var(--shadow-3);
}
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; font-size: 15px; }
.menu button:hover { background: var(--primary); color: var(--on-primary); }

/* Filtros activos */
.active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active:empty { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  padding: 6px 8px 6px 14px; font-size: 14px; font-weight: 500;
}
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill i { font-style: normal; font-weight: 400; opacity: .75; }
.pill i::after { content: ":"; }
.pill em { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--surface); font-size: 13px; line-height: 1; padding-bottom: 1px; }

/* Sugerencias */
.suggest { margin: 0 0 22px; display: grid; gap: 10px; }
.fix { margin: 0; font-size: 15px; color: var(--ink-2); }
.fix b { color: var(--ink); font-weight: 600; }
.sug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sug > span { font-size: 15px; color: var(--ink-2); margin-right: 4px; }
.sug button {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  border: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair);
  padding: 7px 8px 7px 12px; font-size: 15px; font-weight: 500; text-align: left; line-height: 1.25;
  transition: box-shadow .2s var(--ease);
}
.sug button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.sug button b { font-weight: 400; font-size: 13px; color: var(--ink-2); background: var(--fill-2); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.sug button:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--accent); }
.sug button.sug-mun::before { display: none; }
.sug button.sug-mun svg { width: 15px !important; height: 15px !important; color: var(--accent); }

/* ---------- Explora por categoría ---------- */
.explore h2 { margin: 6px 0 18px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile {
  width: 100%; height: 100%; text-align: left; border: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-content: start;
  padding: 20px 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tile-name { font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.022em; display: flex; flex-direction: column; gap: 12px; }
.tile-name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tile-n { grid-row: 1; grid-column: 2; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tile-ex { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Tarjetas ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card {
  width: 100%; height: 100%; text-align: left; border: 0; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card:active { transform: scale(.99); }
.card-kind { display: flex; align-items: baseline; gap: 7px; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.card-kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-1px); }
.card-kind > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h3 { margin: 2px 0 0; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.022em; }
.card-addr { margin: 0; font-size: 14px; line-height: 1.43; color: var(--ink-2); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.card-place { color: var(--ink); font-weight: 500; }
.card-icons { display: flex; gap: 6px; color: var(--ink-3); }
.card-icons i { display: grid; place-items: center; }
.card-icons svg { width: 15px !important; height: 15px !important; }

.cards .sep { grid-column: 1 / -1; padding: 26px 4px 4px; display: grid; gap: 2px; }
.cards .sep:first-child { padding-top: 0; }
.cards .sep span { font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.cards .sep small { font-size: 15px; color: var(--ink-2); }

.more { display: flex; justify-content: center; padding: 28px 0 4px; }
.empty { text-align: center; padding: 72px 20px; }
.empty-ico { width: 44px !important; height: 44px !important; color: var(--ink-3); stroke-width: 1.5 !important; margin-bottom: 12px; }
.empty h3 { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.empty p { margin: 0 auto 22px; max-width: 38ch; color: var(--ink-2); }

/* ---------- Mapa ---------- */
.map-wrap { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); isolation: isolate; }
#map { height: min(74vh, 780px); min-height: 440px; background: var(--surface-2); }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }
.leaflet-control-zoom { border: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow-2) !important; }
.leaflet-control-zoom a {
  width: 36px !important; height: 36px !important; line-height: 36px !important; font-size: 20px !important; font-weight: 400 !important;
  background: var(--glass) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--ink) !important; border-color: var(--hair) !important;
}
.leaflet-touch .leaflet-bar { border: 0; }
.leaflet-left .leaflet-control { margin-left: 14px; }
.leaflet-top .leaflet-control { margin-top: 14px; }
.leaflet-control-attribution { background: var(--glass) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 8px 0 0 0; font-size: 10px; color: var(--ink-3); }
.leaflet-control-attribution a { color: var(--ink-2); }

.map-styles {
  display: grid; grid-auto-flow: column; gap: 2px; padding: 2px; border-radius: 10px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-2);
}
.map-styles button { border: 0; background: none; border-radius: 8px; padding: 6px 12px; font: 500 13px var(--font); color: var(--ink); cursor: pointer; }
.map-styles button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }

.map-legend, .map-note {
  position: absolute; z-index: 500;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--r-md); box-shadow: var(--shadow-2);
}
.map-legend { left: 14px; bottom: 14px; padding: 12px 14px; display: grid; gap: 5px; font-size: 13px; max-width: 280px; }
.map-legend span { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.map-note { right: 14px; top: 14px; padding: 8px 14px; font-size: 13px; color: var(--ink-2); max-width: 300px; }
.map-note:empty { display: none; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); box-shadow: var(--shadow-3); background: var(--surface); color: var(--ink); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 14px 16px; }
.map-pop { font: 14px/1.4 var(--font); color: var(--ink-2); letter-spacing: -.01em; }
.map-pop b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 2px; letter-spacing: -.02em; }
.map-pop button { margin-top: 10px; border: 0; background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 6px 14px; font: 500 13px var(--font); }

/* ---------- Ficha (hoja) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .28); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: 61; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px));
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--r-xl); box-shadow: var(--shadow-3); overflow: hidden;
  transform: translateX(calc(100% + 24px)); transition: transform .5s var(--spring);
}
.drawer.open { transform: none; }
.drawer-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px 14px 24px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.drawer-sector { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.drawer-sector::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.drawer-body { overflow: auto; padding: 68px 20px 28px; overscroll-behavior: contain; }
.d-name { margin: 0 4px 4px; font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
.d-kind { margin: 0 4px 20px; font-size: 17px; color: var(--ink-2); }
.d-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-bottom: 18px; }
.d-act {
  display: grid; justify-items: center; gap: 4px; padding: 11px 6px 9px; border: 0; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-1); color: var(--accent); font-size: 12px; font-weight: 500; text-decoration: none !important;
  transition: background .2s var(--ease);
}
.d-act svg { width: 22px !important; height: 22px !important; }
.d-act span { color: var(--accent); }
.d-act:hover { background: var(--accent-soft); }
.d-act-primary { background: var(--primary); color: var(--on-primary); }
.d-act-primary span { color: var(--on-primary); }
.d-act-primary:hover { background: var(--primary-hover); }
.d-map { height: 190px; border-radius: var(--r-md); overflow: hidden; margin-bottom: 26px; background: var(--surface-2); box-shadow: var(--shadow-1); position: relative; }
.d-h { margin: 0 16px 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: -.005em; }
.d-group { margin: 0 0 24px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 0 16px; }
.d-addr { margin: 0; padding: 13px 0; font-size: 16px; line-height: 1.45; }
.d-list { display: grid; grid-template-columns: auto 1fr; column-gap: 0; }
.d-list dd { padding-left: 16px !important; }
.d-list dt, .d-list dd { margin: 0; padding: 12px 0; font-size: 16px; line-height: 1.35; }
.d-list dt { color: var(--ink); white-space: nowrap; }
.d-list dd { color: var(--ink-2); text-align: right; word-break: break-word; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.d-list dt:not(:first-of-type), .d-list dd:not(:first-of-type) { border-top: 1px solid var(--hair); }
.d-copy { border: 0; background: none; padding: 0; color: var(--accent); font-size: 15px; }
.d-official { margin: 0 16px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* ---------- Avisos ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; translate: -50% 16px; opacity: 0; pointer-events: none;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink); border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-3);
  transition: opacity .3s var(--ease), translate .4s var(--spring);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Pie ---------- */
.foot { max-width: 1440px; margin: 0 auto; padding: 20px 28px 48px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--ink-3); }
.foot p { margin: 0; }
.foot a { color: var(--ink-2); }
.foot .ver { margin-left: 6px; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  :root { --nav: 48px; }
  body { font-size: 16px; }
  .top-inner { padding: 0 18px; }
  .top-meta { display: none; }
  .hero { padding: 40px 18px 24px; }
  .hero-sub { margin-bottom: 26px; }
  .search input { height: 54px; font-size: 17px; padding-left: 50px; }
  .search-ico { left: 18px; }
  .search-kbd { display: none; }
  .quick { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 18px -18px 0; padding: 0 18px; scrollbar-width: none; }
  .quick::-webkit-scrollbar { display: none; }
  .quick button { flex: none; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 4px 18px 40px; gap: 0; }

  /* filtros como hoja inferior */
  .filters {
    position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; top: auto; max-height: 90vh;
    padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
    background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-3);
    transform: translateY(105%); transition: transform .5s var(--spring);
  }
  .filters.open { transform: none; }
  .sheet-grabber { display: block; width: 36px; height: 5px; border-radius: 5px; background: var(--hair-2); margin: 0 auto 12px; }
  .filters-head { align-items: center; }
  .filters-head .link { margin-left: auto; margin-right: 14px; }
  .filters .filters-close { display: grid; }
  .filters .filters-apply { display: flex; width: 100%; height: 50px; font-size: 17px; border-radius: var(--r-md); position: sticky; bottom: 0; margin-top: 4px; }
  .show-filters { display: inline-flex; }

  .toolbar { gap: 12px; }
  .count strong { font-size: 24px; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .select-sm { flex: 1 1 140px; min-width: 0; }
  .views { width: 150px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 16px; }
  .tile-name { font-size: 17px; }
  .explore h2 { font-size: 24px; }
  #map { height: 68vh; min-height: 380px; }
  .map-legend { display: none; }

  /* ficha como hoja inferior */
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%);
  }
  .drawer .sheet-grabber { display: block; position: absolute; z-index: 3; left: 50%; translate: -50% 0; top: 6px; margin: 0; }
  .drawer-body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .menu-wrap .btn { padding: 0 12px; }
  .d-name { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Toques de paleta */
.hero h1 { color: var(--forest); }

.hero-sub span { color: var(--olive); }

.count strong { color: var(--forest); }

.search input:focus { box-shadow: var(--shadow-2), 0 0 0 4px var(--accent-soft), inset 0 0 0 1.5px var(--olive); }


/* ==========================================================
   Tipografía: Amate Sans en títulos principales, Quetzalli Sans en el cuerpo.
   Quetzalli trae Regular (400), Black (900) y Light Italic (300):
   los pesos intermedios se ajustan a esos tres para no deformarla.
   ========================================================== */
body { letter-spacing: 0; }
button, input, select { letter-spacing: 0; }
.hero h1, .filters-head h2, .explore h2, .count strong, .d-name, .empty h3, .cards .sep span, .tile-name {
  font-family: var(--display); font-weight: 700; letter-spacing: -.005em;
}
.hero h1 { letter-spacing: -.01em; line-height: 1.02; }
.tile-name { font-size: 20px; }
.card h3 { font-weight: 900; letter-spacing: 0; font-size: 18px; }
.card h3 mark, mark { font-weight: 900; }
.hero-sub span, .sug button, .pill, .chip span, .card-place, .d-act, .btn, .seg button, .views button,
.map-styles button, .toast, .link, .brand-text, .field > label:not(.toggle), .field > legend, .d-h, .combo.has-value input,
.select select, .combo-list mark, .fix b, .menu button, .combo-list li { font-weight: 400; }
.field > label:not(.toggle), .field > legend, .d-h { font-size: 14px; }
.hero-sub { font-style: italic; font-weight: 300; }
.hero-sub span { font-style: normal; font-weight: 900; }
.d-kind, .cards .sep small, .loader-note { font-style: italic; font-weight: 300; }

/* Logo Econonet (archivo original, sin modificar) */
:root { --nav: 84px; }
.top { height: var(--nav); }
.brand { gap: 16px; }
.brand-logo { height: 58px; width: auto; display: block; }
.brand-sep { width: 1px; height: 28px; background: var(--hair-2); }
.brand-text { font-size: 16px; color: var(--ink); }
.brand-text span { color: var(--ink-2); }
/* El logo tiene letras verde oscuro: la barra superior se queda clara también en modo oscuro */

.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-logo { height: 64px; width: auto; display: block; }
.foot p { flex: 1 1 320px; }
@media (max-width: 900px) {
  :root { --nav: 70px; }
  .brand-logo { height: 48px; }
  .brand-text { font-size: 14px; }
}
@media (max-width: 520px) {
  .brand-sep, .brand-text { display: none; }
}

/* Portada un 20 % más grande */
.hero { padding: 84px 28px 48px; }
.hero-inner { max-width: 984px; }
.hero h1 { font-size: clamp(42px, 6.7vw, 77px); max-width: 16ch; margin-bottom: 18px; }
.hero-sub { font-size: clamp(19px, 1.9vw, 25px); margin-bottom: 42px; }
.search { max-width: 816px; }
.search input { height: 72px; font-size: 23px; padding: 0 70px 0 70px; }
.search-ico { left: 26px; width: 26px !important; height: 26px !important; }
.search-kbd { right: 22px; min-width: 28px; height: 28px; font-size: 14px; }
.search-clear { right: 20px; width: 32px; height: 32px; font-size: 21px; }
.quick { max-width: 864px; gap: 10px; margin-top: 26px; }
.quick button { font-size: 17px; padding: 9px 18px; }
@media (max-width: 900px) {
  .hero { padding: 44px 18px 28px; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .hero-sub { font-size: 18px; margin-bottom: 28px; }
  .search input { height: 60px; font-size: 18px; padding-left: 54px; padding-right: 54px; }
  .search-ico { left: 20px; width: 22px !important; height: 22px !important; }
  .quick button { font-size: 15px; padding: 8px 15px; }
}

/* Industrias con foto */
.tiles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.tile-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-body { display: grid; gap: 4px; padding: 16px 18px 20px; }
.tile-name { font-size: 21px; line-height: 1.15; display: block; }
.tile-name::before { display: none; }
.tile-n { grid-row: auto; grid-column: auto; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.tile-ex { font-size: 14px; margin-top: 4px; -webkit-line-clamp: 2; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; gap: 12px; } .tile-name { font-size: 18px; } .tile-body { padding: 12px 14px 16px; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* 11 industrias simétricas: la primera ocupa dos columnas → 12 espacios = 4 filas de 3 (o 6 de 2) */
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles > li:first-child { grid-column: span 2; }
.tile-img { aspect-ratio: auto; height: 190px; }
.tiles > li:first-child .tile-name { font-size: 26px; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-img { height: 140px; }
  .tiles > li:first-child .tile-name { font-size: 22px; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles > li:first-child { grid-column: auto; }
  .tile-img { height: 170px; }
}
.tiles > li:first-child .tile-img img { object-position: center 22%; }
/* Portada con el mismo aire arriba y abajo */
.hero { padding: 76px 28px 62px; }
@media (max-width: 900px) { .hero { padding: 40px 18px 31px; } }

/* ==========================================================
   Toques de verde olivo (#71785b) en acciones y selecciones
   ========================================================== */
:root { --primary: #71785b; --primary-hover: #646b4f; --on-primary: #ffffff; }


/* filtros activos y contador de filtros */
.pill { background: var(--primary); color: var(--on-primary); }
.pill i { opacity: .8; }
.pill em { background: rgba(255, 255, 255, .25); color: var(--on-primary); }
.badge { background: var(--primary); color: var(--on-primary); }

/* selecciones */
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--olive); background: var(--accent-soft); }
.chip[aria-pressed="true"] span { color: var(--ink); }
.seg button[aria-pressed="true"], .views button.on, .map-styles button[aria-pressed="true"] { color: var(--olive); }

.combo.has-value input { color: var(--ink); box-shadow: inset 0 0 0 2px var(--olive); background: var(--accent-soft); }

/* sugerencias y enlaces */
.sug > span { color: var(--olive); font-weight: 900; }
.sug button:hover { box-shadow: var(--shadow-2), inset 0 0 0 1.5px var(--olive); }
.link { color: var(--olive); }
.d-act { color: var(--olive); }
.d-act span { color: var(--olive); }
.d-copy { color: var(--olive); }

/* números de las industrias y búsqueda rápida al pasar */
.tile-n { color: var(--olive); }
.quick button:hover { background: var(--accent-soft); color: var(--olive); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--olive); }
.d-act-primary, .d-act-primary span, .d-act-primary svg { color: var(--on-primary) !important; }

/* Un poco más de olivo en la pantalla principal (solo color) */
.quick button { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.quick button:hover { background: rgba(113, 120, 91, .24); color: var(--accent-hover); }
.search-ico { color: var(--olive); }
.brand-text span { color: var(--olive); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: rgba(113, 120, 91, .24); color: var(--accent-hover); }
.views { background: var(--accent-soft); }
.tile-n { font-weight: 900; }


/* ---------- Perfiles verificados ---------- */
.badge-ok { display: inline-flex; vertical-align: -3px; margin-left: 6px; color: var(--olive); }
.badge-ok svg { width: 19px !important; height: 19px !important; fill: var(--olive); stroke: #fff; stroke-width: 1.6; }
.d-brand { display: flex; align-items: center; gap: 14px; margin: 0 4px 14px; }
.d-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); padding: 6px; }
.d-verified { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--olive); font-size: 14px; font-weight: 900; }
.d-verified svg { width: 18px !important; height: 18px !important; fill: var(--olive); stroke: #fff; stroke-width: 1.6; }
.d-bio { margin: 0 4px 20px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.d-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 10px; overflow-x: auto; margin: 0 0 18px;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-md); }
.d-gallery::-webkit-scrollbar { display: none; }
.d-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); scroll-snap-align: start; background: var(--surface-2); }
.d-claim { margin: 4px 0 22px; padding: 18px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); }
.d-claim.is-strong { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px rgba(113, 120, 91, .45); }
.d-claim-title { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: var(--ink); }
.d-claim-text { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.d-claim-text b { color: var(--ink); font-weight: 900; }
.d-claim .btn { width: 100%; height: 44px; font-size: 15px; }
.d-gallery { grid-auto-columns: 58%; }
.d-gallery img { aspect-ratio: 4 / 5; }
.d-logo { object-fit: cover; padding: 0; }

/* ---------- Sello verificado clásico ---------- */
.ico-verified { fill: #2f8ef0 !important; stroke: none !important; }
.badge-ok svg.ico-verified, .badge-ok svg { width: 18px !important; height: 18px !important; fill: #2f8ef0 !important; stroke: none !important; }
.badge-ok { vertical-align: -2px; margin-left: 5px; }

/* ---------- Ficha estilo Instagram (negocios verificados) ---------- */
.ig-head { display: flex; align-items: center; gap: 18px; margin: 0 4px 14px; }
.ig-avatar { flex: none; width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--gold), var(--olive), var(--gold)); }
.ig-avatar img, .ig-avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  border: 3px solid var(--bg); background: var(--surface); font: 700 34px var(--display); color: var(--olive); }
.ig-id { min-width: 0; }
.ig-name { display: flex; align-items: center; gap: 6px; margin: 0 0 2px !important; font-size: 26px !important; }
.ig-name svg { width: 22px !important; height: 22px !important; flex: none; }
.ig-kind { margin: 0; font-size: 15px; color: var(--ink-2); }
.ig-place { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.ig-place svg { width: 14px !important; height: 14px !important; }
.ig-bio { margin: 0 4px 6px; font-size: 16px; line-height: 1.45; color: var(--ink); white-space: pre-line; }
.ig-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 6px; font-size: 15px; font-weight: 900; color: var(--olive); }
.ig-link svg { width: 15px !important; height: 15px !important; }
.ig-verified { display: flex; align-items: center; gap: 6px; margin: 0 4px 16px; font-size: 13px; color: var(--ink-2); }
.ig-verified svg { width: 15px !important; height: 15px !important; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -20px 22px; }
.ig-cell { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s var(--ease); }
.ig-cell:hover img { opacity: .85; }

/* ---------- Galería a pantalla completa ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
  background: rgba(10, 12, 9, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox.open { display: flex; animation: fade .2s var(--ease); }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lb-fig img { max-width: min(92vw, 1100px); max-height: 82vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-fig figcaption { color: rgba(255, 255, 255, .75); font-size: 14px; }
.lb-close, .lb-nav { position: absolute; border: 0; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-close svg, .lb-nav svg { width: 20px !important; height: 20px !important; stroke-width: 2.4 !important; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .lb-nav { display: none; } .ig-avatar { width: 80px; height: 80px; } .ig-name { font-size: 22px !important; } }
/* Mosaico alineado con el resto de la ficha: con margen, separación y esquinas redondeadas */
.ig-grid { margin: 0 0 22px; gap: 6px; border-radius: var(--r-md); overflow: hidden; }
.ig-cell { border-radius: 6px; }
.ig-grid .ig-cell:nth-child(1) { border-top-left-radius: var(--r-md); }
.ig-grid .ig-cell:nth-child(3) { border-top-right-radius: var(--r-md); }
.ig-grid .ig-cell:nth-child(7) { border-bottom-left-radius: var(--r-md); }
.ig-grid .ig-cell:nth-child(9), .ig-grid .ig-cell:last-child { border-bottom-right-radius: var(--r-md); }

/* ---------- Carga sin bloquear: aviso pequeño abajo en vez de pantalla completa ---------- */
.loader { inset: auto 0 24px 0; display: flex; justify-content: center; background: none; pointer-events: none; }
.loader-card { width: auto; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-3); pointer-events: auto; }
.loader .spinner { width: 18px; height: 18px; border-width: 2px; border-top-color: var(--olive); }
.loader .loader-bar { width: 90px; height: 3px; }
.loader .loader-bar i { background: var(--olive); }
.loader-note { font-size: 13px; color: var(--ink-2); }
.tile-skel .tile-n { color: var(--ink-3); }
.is-loading .filters { opacity: .5; pointer-events: none; }
.is-loading .toolbar-actions { opacity: .5; pointer-events: none; }

/* ---------- Ajustes ficha verificada ---------- */
.ico-verified, .badge-ok svg.ico-verified, .badge-ok svg { fill: var(--olive) !important; }
.ig-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; width: 100%; margin: 0 0 16px; }
.ig-avatar { width: 108px; height: 108px; }
.ig-id { min-width: 0; width: 100%; }
.ig-name { font-size: 30px !important; line-height: 1.05; flex-wrap: wrap; }
.ig-name svg { width: 24px !important; height: 24px !important; }
.ig-kind { font-size: 17px; margin-top: 4px; }
.ig-place { font-size: 15px; margin-top: 4px; }
.ig-bio { margin: 0 0 10px; }
.ig-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; }
.ig-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; color: var(--olive); }
.ig-links svg { width: 16px !important; height: 16px !important; }
.d-map { margin-bottom: 26px; }
.d-actions { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
@media (max-width: 600px) { .ig-avatar { width: 88px; height: 88px; } .ig-name { font-size: 25px !important; } .ig-head { gap: 16px; } }
.d-actions { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
@media (max-width: 600px) { .d-act { font-size: 11.5px; padding: 10px 2px 8px; } .d-act svg { width: 20px !important; height: 20px !important; } }
/* El mini mapa no se encima a la cabecera de la ficha al hacer scroll */
.d-map { isolation: isolate; z-index: 0; }
.drawer-head { z-index: 10; }
/* Vidrio esmerilado en la cabecera; solo se vuelve opaca mientras el mapa (WebGL, que no se desenfoca) pasa debajo */
.drawer-head { transition: background-color .2s var(--ease); }
.drawer-head.is-solid { background: rgba(245, 245, 242, .96); }


/* Mini mapa convertido en imagen */
.d-map-shot { position: absolute; inset: 0; display: block; }
.d-map-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-map-pin { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; translate: -50% -50%; border-radius: 50%;
  background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

/* Cerca de mí */
.near-btn.on { background: var(--olive); color: #fff; }
.near-btn.on:hover { background: var(--olive); color: #fff; filter: brightness(1.06); }
.near-btn.is-loading svg { animation: nearPulse 1s ease-in-out infinite; }
@keyframes nearPulse { 50% { opacity: .3; } }
.card-dist { color: var(--olive); font-weight: 900; }

/* Reportar */
.d-report { margin: 14px 16px 12px; }
.d-report-open { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; font: inherit;
  font-size: 14px; color: var(--ink-3); cursor: pointer; }
.d-report-open:hover { color: var(--olive); }
.d-report-open svg, .d-report-done svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-report-form { background: var(--fill-2); border-radius: 16px; padding: 16px; }
.d-report-title { margin: 0 0 10px; font-weight: 900; }
.d-report-opts { display: grid; gap: 6px; margin-bottom: 10px; }
.d-report-opts label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.d-report-opts input { accent-color: var(--olive); width: 18px; height: 18px; margin: 0; }
.d-report-form textarea { width: 100%; box-sizing: border-box; border: 0; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px;
  background: var(--bg, #fff); color: var(--ink); resize: vertical; box-shadow: inset 0 0 0 1px var(--fill); }
.d-report-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--olive); }
.d-report-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.d-report-done { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--olive); font-weight: 900; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Mi lista de proveedores ---------- */
.cards > li { position: relative; }
.card-save { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--spring); }
.card-save:hover { background: var(--accent-soft); color: var(--olive); }
.card-save:active { transform: scale(.88); }
.card-save svg, .d-save svg, .list-fab svg, .li-empty svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.card-save svg { width: 20px; height: 20px; }
.card-save.on, .d-save.on, .d-save.on span { color: var(--olive); }
.card-save.on svg, .d-save.on svg { fill: currentColor; }
.card .card-kind { padding-right: 34px; }

.list-fab { position: fixed; z-index: 55; left: 50%; bottom: 24px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 14px 12px 18px; border: 0; border-radius: 999px; background: var(--olive); color: #fff; font: inherit; font-size: 16px; font-weight: 900;
  box-shadow: 0 10px 30px rgba(46, 59, 43, .35); cursor: pointer; animation: fabIn .5s var(--spring); }
.list-fab svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.list-fab span { min-width: 26px; height: 26px; padding: 0 7px; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--olive); font-size: 14px; }
.list-fab:hover { filter: brightness(1.06); }
.list-fab[hidden] { display: none; }
@keyframes fabIn { from { translate: -50% 30px; opacity: 0; } }
body.has-list .toast { bottom: 90px; }

.list-panel { z-index: 62; }
.list-kicker { font-size: 13px; color: var(--ink-2); font-weight: 900; }
.list-body { flex: 1; padding-bottom: 20px; }
.list-title { width: 100%; box-sizing: border-box; border: 0; background: none; padding: 4px 4px 2px; margin: 0; color: var(--ink);
  font-family: "Amate Sans", var(--font); font-weight: 700; font-size: 30px; line-height: 1.1; border-radius: 10px; }
.list-title:focus { outline: none; background: var(--fill-2); }
.list-title::placeholder { color: var(--ink); opacity: 1; }
.list-title:read-only:focus { background: none; }
.list-sub { display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 16px; font-size: 15px; color: var(--ink-2); min-height: 22px; }
.list-clear { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-3); cursor: pointer; }
.list-clear:hover { color: #b3261e; }
.list-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-items > li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 8px 12px 14px;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.li-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: #fff; font-weight: 900; font-size: 14px; }
.li-main { min-width: 0; display: grid; gap: 2px; text-align: left; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.li-main b { font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 4px; }
.li-main b svg { width: 16px; height: 16px; flex: none; }
.li-main small { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-tel { display: inline-flex; align-items: center; gap: 5px; color: var(--olive) !important; font-weight: 900; }
.li-tel svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.li-tel.is-off { color: var(--ink-3) !important; font-weight: 400; }
.li-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.li-x:hover { background: var(--fill-2); color: var(--ink); }
.li-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.list-items > li.li-empty { display: block; text-align: center; padding: 34px 24px; color: var(--ink-2); box-shadow: none; background: var(--fill-2); }
.li-empty > svg { width: 34px; height: 34px; color: var(--olive); }
.li-empty p { margin: 10px 0 0; line-height: 1.5; }
.li-empty p svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--olive); fill: none; stroke: currentColor; stroke-width: 2; }
.list-actions { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); background: var(--bg); display: grid; gap: 10px; }
.list-pdf { width: 100%; justify-content: center; height: 50px; font-size: 17px; font-weight: 900; gap: 8px; }
.list-pdf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.list-more { display: flex; gap: 8px; }
.list-more .btn { flex: 1; justify-content: center; padding-left: 8px; padding-right: 8px; }
.list-more .btn[hidden] { display: none; }

/* ---------- PDF de la lista (solo al imprimir) ---------- */
#printDoc { display: none; }
@media print {
  @page { size: letter; margin: 14mm 14mm 16mm; }
  body.is-printing > *:not(#printDoc) { display: none !important; }
  body.is-printing { background: #fff !important; }
  body.is-printing #printDoc { display: block; }
}
#printDoc { color: #1f231c; font-family: "Quetzalli Sans", system-ui, sans-serif; font-size: 10.5pt; line-height: 1.4;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#printDoc svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pd-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 5mm; border-bottom: 1.2pt solid #bc9b73; }
.pd-brand { height: 13mm; width: auto; }
.pd-meta { text-align: right; display: grid; font-size: 9pt; color: #5b6153; }
.pd-meta b { color: #2e3b2b; font-weight: 900; font-size: 10pt; }
.pd-cover { padding: 9mm 0 4mm; }
.pd-eyebrow { margin: 0; font-weight: 900; font-size: 9.5pt; letter-spacing: .12em; text-transform: uppercase; color: #bc9b73; }
.pd-cover h1 { margin: 1.5mm 0 1.5mm; font-family: "Amate Sans", "Quetzalli Sans", sans-serif; font-weight: 700; font-size: 30pt; line-height: 1.05; color: #2e3b2b; }
.pd-sub { margin: 0 0 6mm; font-size: 12pt; color: #71785b; font-weight: 900; }
.pd-map { display: block; width: 100%; aspect-ratio: 1500 / 640; object-fit: cover; border-radius: 4mm; }
.pd-list { display: grid; gap: 4mm; padding-top: 4mm; }
.pd-item { display: grid; grid-template-columns: 9mm 1fr 27mm; gap: 5mm; align-items: start; padding: 5mm 5mm 5mm 4mm;
  border-radius: 4mm; background: #f5f5f0; break-inside: avoid; page-break-inside: avoid; }
.pd-num { width: 9mm; height: 9mm; border-radius: 50%; background: #71785b; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 11pt; }
.pd-body { min-width: 0; }
.pd-kind { margin: 0; display: flex; align-items: center; gap: 2mm; font-size: 9pt; color: #5b6153; }
.pd-kind i { width: 2.2mm; height: 2.2mm; border-radius: 50%; background: var(--c); flex: none; }
.pd-body h2 { margin: .8mm 0 2mm; display: flex; align-items: center; flex-wrap: wrap; gap: 2.5mm; font-weight: 900; font-size: 15pt; line-height: 1.15; color: #1f231c; }
.pd-logo { width: 9mm; height: 9mm; border-radius: 50%; object-fit: cover; }
.pd-ok { display: inline-flex; align-items: center; gap: 1mm; font-style: normal; font-size: 8.5pt; color: #71785b; font-weight: 900; }
#printDoc .pd-ok svg { width: 4.2mm; height: 4.2mm; fill: #71785b; stroke: none; }
.pd-addr { margin: 0 0 2.5mm; display: flex; gap: 2mm; color: #3c4237; font-size: 9.5pt; }
#printDoc .pd-addr svg { width: 4mm; height: 4mm; flex: none; margin-top: .5mm; color: #71785b; }
.pd-addr b { color: #1f231c; font-weight: 900; }
.pd-body dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5mm 6mm; }
.pd-body dl div { min-width: 0; }
.pd-body dt { display: flex; align-items: center; gap: 1.5mm; font-size: 8pt; color: #5b6153; }
#printDoc .pd-body dt svg { width: 3.4mm; height: 3.4mm; color: #71785b; }
.pd-body dd { margin: .3mm 0 0; font-weight: 900; font-size: 10.5pt; color: #2e3b2b; overflow-wrap: anywhere; }
.pd-none { margin: 0; font-size: 9pt; color: #5b6153; font-style: italic; }
.pd-qr { display: grid; justify-items: center; gap: 1.5mm; text-align: center; }
#printDoc .pd-qr svg { width: 25mm; height: 25mm; padding: 2mm; box-sizing: border-box; background: #fff; border-radius: 2.5mm; stroke: none; }
#printDoc .pd-qr svg rect, #printDoc .pd-qr svg path { stroke: none; }
.pd-qr small { font-size: 7.5pt; color: #5b6153; line-height: 1.2; }
.pd-foot { margin-top: 7mm; padding-top: 4mm; border-top: .8pt solid #d8d6cc; font-size: 8pt; color: #5b6153; break-inside: avoid; }
.pd-foot p { margin: 0 0 1.5mm; }
.pd-foot b { color: #2e3b2b; }
.list-title { resize: none; overflow: hidden; display: block; }
.list-title-wrap { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 4px; }
.list-edit { margin-top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--fill-2); color: var(--olive); display: grid; place-items: center; cursor: pointer; }
.list-edit:hover { background: var(--accent-soft); }
.list-edit[hidden] { display: none; }
.list-edit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.list-title:focus + .list-edit { opacity: 0; pointer-events: none; }
/* Guardar en la cabecera de la ficha, junto a cerrar */
.drawer-tools { display: flex; align-items: center; gap: 8px; }
.head-save svg { width: 17px !important; height: 17px !important; fill: none; stroke: currentColor; stroke-width: 2 !important; stroke-linejoin: round; }
.head-save.on { background: var(--olive); color: #fff; }
.head-save.on svg { fill: currentColor; }
.head-save:active { transform: scale(.88); }
/* Guardar en mi lista (ficha) */
.d-save-wide { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin: -6px 0 22px; padding: 13px 16px;
  border: 1.5px solid var(--olive); border-radius: var(--r-md); background: transparent; color: var(--olive); font: inherit; font-size: 16px; font-weight: 900;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--spring); }
.d-save-wide svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.d-save-wide:hover { background: var(--accent-soft); }
.d-save-wide:active { transform: scale(.98); }
.d-save-wide.on { background: var(--olive); color: #fff; }
.d-save-wide.on svg { fill: currentColor; }
.d-savebox { margin: 0 0 24px; padding: 16px; border-radius: var(--r-md); background: var(--accent-soft); }
.d-savebox p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.d-savebox p b { color: var(--ink); font-weight: 900; }
.d-savebox .d-save-wide { margin: 0; background: var(--surface); }
.d-savebox .d-save-wide.on { background: var(--olive); }

/* ---------- Menú del encabezado ---------- */
.top-inner { position: relative; gap: 16px; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-link { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 900; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .2s var(--ease), color .2s var(--ease); }
.top-link:hover { background: var(--accent-soft); color: var(--olive); }
.top-link span, .top-menu-n { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--olive); color: #fff; font-size: 12px; }
.top-link span[hidden], .top-menu-n[hidden] { display: none; }
.top-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fill-2); color: var(--ink); place-items: center; cursor: pointer; }
.top-menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.top-menu { position: absolute; top: calc(100% - 6px); right: 16px; z-index: 70; min-width: 240px; padding: 6px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-3); display: grid; animation: menuIn .25s var(--spring); }
.top-menu[hidden] { display: none; }
.top-menu button { border: 0; background: none; text-align: left; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 900;
  color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.top-menu button:hover { background: var(--accent-soft); color: var(--olive); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (max-width: 900px) {
  .top-nav { display: none; }
  .top-menu-btn { display: grid; }
}

/* ---------- Preguntas frecuentes / Verifica tu negocio ---------- */
.info-panel { z-index: 62; }
.info-panel .drawer-body { padding-bottom: 40px; }
.info-eyebrow { margin: 0 4px 4px; font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.info-title { margin: 0 4px 18px; font-family: "Amate Sans", var(--font); font-weight: 700; font-size: 32px; line-height: 1.08; color: var(--ink); }
.info-lead { margin: 0 4px 20px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.info-lead svg, .faq svg { width: 18px; height: 18px; vertical-align: -3px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; position: relative; font-weight: 900; font-size: 16px; line-height: 1.35; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2.2px solid var(--olive); border-bottom: 2.2px solid var(--olive); transform: rotate(45deg); transition: transform .25s var(--ease), margin .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 16px 16px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.faq details > div b { color: var(--ink); }
.info-switch { display: block; margin: 22px 4px 0; font-weight: 900; font-size: 16px; color: var(--olive); cursor: pointer; }
.info-steps { list-style: none; counter-reset: s; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.info-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.info-steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--olive); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.info-steps b { color: var(--ink); }
.info-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.info-actions .btn { flex: 1 1 160px; justify-content: center; height: 48px; font-weight: 900; font-size: 16px; }
.info-note { margin: 0 4px; font-size: 14px; color: var(--ink-3); }

/* ---------- Únete a Econonet ---------- */
.top-cta { margin-left: 6px; border: 0; padding: 10px 18px; border-radius: 999px; background: var(--olive); color: #fff; font: inherit; font-size: 15px; font-weight: 900;
  cursor: pointer; transition: filter .2s var(--ease), transform .2s var(--spring); }
.top-cta:hover { filter: brightness(1.08); }
.top-cta:active { transform: scale(.97); }
.top-menu .top-menu-cta { margin-top: 4px; justify-content: center; background: var(--olive); color: #fff; }
.top-menu .top-menu-cta:hover { background: var(--olive); color: #fff; filter: brightness(1.08); }

.join-banner { margin-top: 28px; display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; border-radius: var(--r-xl, 28px);
  background: #2e3b2b; color: #fff; box-shadow: var(--shadow-2); }
.join-text { padding: 40px 40px 42px; display: grid; align-content: center; gap: 12px; }
.join-eyebrow { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.join-banner h2 { margin: 0; font-family: "Amate Sans", var(--font); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; color: #fff; }
.join-text > p:not(.join-eyebrow) { margin: 0; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 44ch; }
.join-btn { justify-self: start; margin-top: 8px; height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--gold); color: #1f231c;
  font-size: 17px; font-weight: 900; cursor: pointer; }
.join-btn:hover { filter: brightness(1.06); }
.join-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .join-banner { grid-template-columns: 1fr; }
  .join-img { order: -1; min-height: 0; height: 180px; }
  .join-text { padding: 26px 24px 28px; }
  .join-btn { justify-self: stretch; }
}
.info-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.info-perks li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface);
  border-radius: var(--r-md); box-shadow: var(--shadow-1); font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.info-perks li > svg { width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 50%; background: var(--accent-soft); color: var(--olive);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-perks li > svg.ico-verified { fill: var(--olive); stroke: none; }
.info-perks b { color: var(--ink); }
@media (max-width: 1100px) and (min-width: 901px) { .top-link { padding: 8px 10px; font-size: 14px; } }

/* ---------- Logos de las instituciones ---------- */
.foot { display: grid; gap: 18px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.foot-allies { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.foot-allies[hidden] { display: none; }
.foot-allies-label { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.foot-logos { display: flex; align-items: center; gap: 18px 32px; flex-wrap: wrap; }
.foot-ally { display: block; }
.foot-ally img { display: block; height: 52px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 600px) {
  .foot-top { justify-content: center; text-align: center; }
  .foot-allies { justify-content: center; }
  .foot-logos { justify-content: center; }
  .foot-ally img { height: 42px; }
}
.pd-allies { display: flex; align-items: center; gap: 6mm; margin-bottom: 3mm; }
.pd-allies span { font-size: 7.5pt; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #5b6153; }
.pd-allies img { height: 9mm; width: auto; max-width: 45mm; object-fit: contain; }
@media (max-width: 600px) { .foot > p { text-align: center; } }
.foot-logos { gap: 20px 44px; align-items: center; }
.foot-group { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.foot-group-logos { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.foot-ally img { height: var(--h, 52px); max-width: min(440px, 86vw); }
.foot-ally img.is-jpg, .pd-allies img.is-jpg { mix-blend-mode: multiply; }  /* el fondo blanco del JPG se funde con el fondo de la página */
.foot-allies > .foot-allies-label { display: none; }
@media (max-width: 600px) {
  .foot-logos, .foot-group { justify-content: center; }
  .foot-group { flex-direction: column; gap: 10px; }
  .foot-ally img { height: calc(var(--h, 52px) * .8); }
}
.pd-allies { flex-wrap: wrap; gap: 3mm 10mm; }
.pd-group { display: flex; align-items: center; gap: 3mm; }
.pd-allies img { height: var(--h, 9mm); max-width: 90mm; }
/* logos en su propia fila, separados por una línea fina */
.foot-top { flex-direction: column; align-items: flex-start; gap: 22px; }
.foot-allies { width: 100%; padding-top: 22px; border-top: 1px solid var(--hair); }
.foot-logos { width: 100%; justify-content: space-between; }
@media (max-width: 600px) { .foot-top { align-items: center; } }
.foot-ally img { max-width: min(640px, 86vw); }
/* PDF: bloques normales para que el navegador aproveche el espacio de cada hoja */
.pd-list { display: block; }
.pd-item { margin-bottom: 4mm; }

/* ---------- Pie de página (rediseño) ---------- */
.site-foot { background: #fff; border-top: 1px solid var(--hair); margin-top: 24px; }
.sf-inner { max-width: 1440px; margin: 0 auto; padding: 56px 28px 28px; }
.sf-main { display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr; gap: 40px 64px; align-items: start; }
.sf-brand { display: grid; gap: 14px; justify-items: start; }
.sf-logo { height: 62px; width: auto; display: block; }
.sf-brand p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.sf-cta { margin-top: 4px; border: 0; padding: 12px 22px; border-radius: 999px; background: var(--olive); color: #fff; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }
.sf-cta:hover { filter: brightness(1.08); }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sf-cols > div { display: grid; gap: 4px; align-content: start; justify-items: start; }
.sf-cols h3 { margin: 0 0 8px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.sf-cols button, .sf-cols a { border: 0; background: none; padding: 5px 0; font: inherit; font-size: 16px; color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; }
.sf-cols button:hover, .sf-cols a:hover { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }

.sf-allies { margin-top: 48px; padding: 30px 36px; border-radius: 24px; background: var(--bg, #f5f5f2); }
.sf-allies[hidden] { display: none; }
.sf-allies .foot-logos { display: flex; align-items: center; justify-content: center; gap: 24px 48px; flex-wrap: wrap; width: 100%; }
.sf-allies .foot-group { display: grid; justify-items: center; gap: 12px; }
.sf-allies .foot-allies-label { display: block; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sf-allies .foot-group-logos { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; justify-content: center; }
.sf-allies .foot-ally img { display: block; height: var(--h, 52px); width: auto; max-width: min(640px, 80vw); object-fit: contain; }
.sf-div { width: 1px; align-self: stretch; background: var(--hair-2); }

.sf-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3); }
.sf-bottom p { margin: 0; }

@media (max-width: 900px) {
  .sf-main { grid-template-columns: 1fr; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .sf-inner { padding: 40px 20px 24px; }
  .sf-brand { justify-items: center; text-align: center; }
  .sf-brand p { max-width: none; }
  .sf-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .sf-allies { padding: 24px 18px; margin-top: 36px; }
  .sf-div { width: 60%; height: 1px; align-self: center; }
  .sf-allies .foot-logos { flex-direction: column; }
  .sf-allies .foot-ally img { height: calc(var(--h, 52px) * .72); }
  .sf-bottom { justify-content: center; text-align: center; }
}

/* Las hojas cerradas quedan fuera de pantalla; ocultarlas para que su sombra no se asome por la orilla */
.drawer { visibility: hidden; transition: transform .5s var(--spring), visibility 0s linear .5s; }
.drawer.open { visibility: visible; transition: transform .5s var(--spring), visibility 0s linear 0s; }
@media (max-width: 900px) {
  .filters { visibility: hidden; transition: transform .5s var(--spring), visibility 0s linear .5s; }
  .filters.open { visibility: visible; transition: transform .5s var(--spring), visibility 0s linear 0s; }
}

/* Logos institucionales: limpios, sin recuadro */
.sf-allies { margin-top: 52px; padding: 40px 0 36px; border-radius: 0; background: none; border-top: 1px solid var(--hair); }
.sf-allies .foot-group { gap: 18px; }
.sf-allies .foot-allies-label { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.sf-allies .foot-ally img { max-width: min(720px, 88vw); }
.sf-bottom { margin-top: 0; align-items: center; }
.sf-source { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-source-logo { display: block; }
.sf-source-logo img { display: block; height: 22px; width: auto; }
.sf-source-logo img.is-jpg { mix-blend-mode: multiply; }
@media (max-width: 600px) {
  .sf-allies { padding: 32px 0 28px; }
  .sf-allies .foot-ally img { height: auto; width: 100%; max-width: 100%; }
  .sf-allies .foot-ally { width: 100%; }
  .sf-source { justify-content: center; }
}

/* ---------- Pie de página v3: tarjeta redondeada ---------- */
.site-foot { background: none; border-top: 0; margin-top: 40px; padding: 0 16px; }
.sf-inner { background: #fff; border-radius: 36px 36px 0 0; padding: 64px 56px 26px; box-shadow: 0 -1px 0 var(--hair), 0 -20px 60px rgba(46, 59, 43, .05); max-width: 1520px; }
.sf-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px 80px; }
.sf-brand { gap: 0; }
.sf-eyebrow { margin: 0 0 14px !important; font-size: 13px !important; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--gold) !important; max-width: none !important; }
.sf-headline { margin: 0 0 26px; font-family: "Amate Sans", var(--font); font-weight: 700; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; color: var(--ink); max-width: 17ch; }
.sf-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-cta { margin: 0; padding: 14px 24px; font-size: 16px; }
.sf-cta-ghost { background: var(--accent-soft); color: var(--olive); }
.sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 6px; }
.sf-cols button, .sf-cols a { font-size: 17px; padding: 7px 0; }
.sf-allies { margin-top: 56px; padding: 32px 0; border-top: 1px solid var(--hair); }
.sf-allies .foot-logos { justify-content: flex-start; }
.sf-allies .foot-group { justify-items: start; gap: 14px; }
.sf-allies .foot-allies-label { font-size: 13px; color: var(--ink-3); }
.sf-bottom { padding-top: 20px; }
@media (max-width: 900px) {
  .site-foot { padding: 0 8px; }
  .sf-inner { padding: 48px 28px 24px; border-radius: 28px 28px 0 0; }
  .sf-main { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sf-inner { padding: 40px 22px 22px; }
  .sf-brand { justify-items: start; text-align: left; }
  .sf-headline { font-size: 32px; }
  .sf-ctas { width: 100%; }
  .sf-cta { flex: 1 1 100%; }
  .sf-cols { grid-template-columns: 1fr 1fr; }
  .sf-allies .foot-logos, .sf-allies .foot-group { justify-items: center; justify-content: center; }
}
.sf-allies { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.sf-allies[hidden] { display: none; }
.sf-allies .foot-logos { width: auto; }
.sf-data { display: grid; justify-items: end; gap: 14px; }
.sf-data .foot-allies-label { display: block; font-size: 13px; color: var(--ink-3); }
.sf-data .sf-source-logo img { height: 34px; }
.sf-data:has(#footSource:empty) { display: none; }
@media (max-width: 600px) {
  .sf-allies { flex-direction: column; align-items: center; }
  .sf-data { justify-items: center; }
}

/* Greca de Morelos como detalle fino en la orilla superior del pie */
.sf-inner { overflow: hidden; }
.sf-greca { height: 22px; margin: 0 -56px 52px; background: url("img/greca-morelos-modulo.webp") repeat-x center / auto 18px; }
@media (max-width: 900px) { .sf-greca { margin: 0 -28px 40px; } }
@media (max-width: 600px) { .sf-greca { margin: 0 -22px 34px; } }
.sf-inner { padding-top: 0; }
.sf-greca { margin-top: 0; height: 22px; }
.sf-greca { height: 34px; margin-bottom: 48px; background-size: auto 30px; }
/* sección superior del pie más compacta */
.sf-greca { margin-bottom: 40px; }
.sf-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px 64px; }
.sf-eyebrow { margin-bottom: 10px !important; }
.sf-headline { font-size: clamp(26px, 2.2vw, 32px); max-width: 26ch; margin-bottom: 20px; line-height: 1.12; }
.sf-cta { padding: 12px 20px; font-size: 15px; }
.sf-cols { padding-top: 2px; }
.sf-cols h3 { margin-bottom: 6px; }
.sf-cols button, .sf-cols a { padding: 5px 0; font-size: 16px; }
.sf-allies { margin-top: 40px; padding-top: 28px; padding-bottom: 28px; }
@media (max-width: 600px) { .sf-headline { font-size: 26px; } }

/* ---------- Listas de opciones propias ---------- */
.cs-pop { position: fixed; z-index: 95; display: flex; flex-direction: column; max-height: var(--mh, 380px); overflow: hidden;
  background: var(--surface, #fff); border-radius: 16px; box-shadow: 0 18px 50px rgba(31, 35, 28, .18), 0 0 0 1px rgba(31, 35, 28, .06);
  animation: csIn .18s var(--ease); }
@keyframes csIn { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
.cs-search { padding: 8px 8px 4px; }
.cs-search input { width: 100%; box-sizing: border-box; height: 38px; border: 0; border-radius: 10px; padding: 0 12px; background: var(--fill-2); font: inherit; font-size: 15px; color: var(--ink); }
.cs-search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--olive); }
.cs-list { overflow: auto; padding: 6px; overscroll-behavior: contain; }
.cs-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: none; text-align: left;
  padding: 9px 12px; border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.cs-opt:hover { background: var(--accent-soft); color: var(--olive); }
.cs-opt.on { font-weight: 900; color: var(--olive); }
.cs-opt svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cs-opt[disabled] { opacity: .4; cursor: default; }
.cs-group { padding: 10px 12px 4px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cs-empty { padding: 14px 12px; font-size: 14px; color: var(--ink-3); }
select.cs-open { box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1.5px var(--olive) !important; }
/* vidrio esmerilado un poco más transparente: más desenfoque para que el texto siga leyéndose */
.top, .drawer-head, .toast { -webkit-backdrop-filter: saturate(190%) blur(28px); backdrop-filter: saturate(190%) blur(28px); }
body.is-waiting, body.is-waiting * { cursor: progress !important; }

/* ---------- Busco proveedor de… ---------- */
.home-reqs { margin-top: 36px; }
.home-reqs[hidden] { display: none; }
.home-reqs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 18px; }
.home-reqs-head h2 { margin: 4px 0 6px; font-family: "Amate Sans", var(--font); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; color: var(--ink); }
.home-reqs-head p:not(.join-eyebrow) { margin: 0; font-size: 16px; color: var(--ink-2); }
.home-reqs-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.home-reqs-btns .btn { height: 44px; font-weight: 900; }
.home-reqs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .home-reqs-list { grid-template-columns: 1fr; } }

.req-card { display: grid; gap: 6px; align-content: start; text-align: left; border: 0; padding: 18px 18px 16px; border-radius: var(--r-lg, 22px);
  background: var(--surface); box-shadow: var(--shadow-1); font: inherit; color: var(--ink); cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease); }
.req-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold); }
.req-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 22px; }
.req-ej { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #f3ead9; color: #7c4a36; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.req-days { margin-left: auto; font-size: 13px; font-weight: 900; color: var(--olive); }
.req-kicker { font-size: 13px; color: var(--ink-3); }
.req-title { font-size: 20px; line-height: 1.2; font-weight: 900; color: var(--ink); }
.req-qty { font-size: 15px; font-weight: 900; color: var(--gold); }
.req-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.req-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.req-by { flex-basis: 100%; color: var(--ink-3); }

.req-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.req-actions .btn { flex: 1 1 170px; justify-content: center; height: 48px; font-size: 16px; font-weight: 900; }
.req-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.req-chip { border: 0; padding: 8px 14px; border-radius: 999px; background: var(--fill-2); font: inherit; font-size: 14px; font-weight: 900; color: var(--ink-2); cursor: pointer; }
.req-chip.on { background: var(--olive); color: #fff; }
.req-list { display: grid; gap: 12px; }
.req-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 900; color: var(--olive); cursor: pointer; }
.req-back svg, .d-reqbox svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.req-head .req-ej { margin: 0 4px 10px; }
.req-qty-big { margin: -8px 4px 18px; font-size: 19px; font-weight: 900; color: var(--gold); }
.req-facts { margin: 0 0 16px; display: grid; gap: 1px; border-radius: var(--r-md); overflow: hidden; background: var(--hair); box-shadow: var(--shadow-1); }
.req-facts div { background: var(--surface); padding: 12px 16px; }
.req-facts dt { font-size: 13px; color: var(--ink-3); }
.req-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.req-facts dd svg { width: 17px; height: 17px; }
.req-facts dd small { font-weight: 400; color: var(--olive); }
.req-detail { margin: 0 4px 18px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.req-sug-h { margin-top: 26px !important; }
.req-sug { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-sug button { width: 100%; text-align: left; border: 0; padding: 13px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); font: inherit; cursor: pointer; display: grid; gap: 2px; }
.req-sug button:hover { box-shadow: var(--shadow-2); }
.req-sug b { font-size: 16px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.req-sug b svg { width: 16px; height: 16px; }
.req-sug small { font-size: 13px; color: var(--ink-2); }
.req-more { display: block; margin: 14px 4px 0; font-weight: 900; color: var(--olive); cursor: pointer; }

.d-reqbox { width: 100%; margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; border: 0;
  padding: 14px 16px; border-radius: var(--r-md); background: #f6efe3; font: inherit; color: var(--ink); cursor: pointer; }
.d-reqbox:hover { background: #f1e6d3; }
.d-reqbox-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.d-reqbox-ico svg { width: 20px; height: 20px; }
.d-reqbox b { display: block; font-size: 15px; font-weight: 900; }
.d-reqbox small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.d-reqbox > svg { color: var(--ink-3); }
/* menú en una sola línea; en pantallas medianas pasa al botón de menú */
.top-link, .top-cta { white-space: nowrap; }
@media (max-width: 1380px) { .top-link { padding: 8px 10px; } .top-nav { gap: 0; } }
@media (max-width: 1240px) { .top-nav { display: none; } .top-menu-btn { display: grid; } }

/* Mi lista como ícono en el encabezado */
.top-list-ico { position: relative; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); margin-left: 4px; }
.top-list-ico:hover { background: var(--accent-soft); color: var(--olive); }
.top-list-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.top-list-ico span { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
  background: var(--olive); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg, #f5f5f2); }
.top-list-ico span[hidden] { display: none; }
.top-list-ico:has(span:not([hidden])) svg { fill: var(--olive); stroke: var(--olive); }
.top-cta { margin-left: 2px; }
@media (max-width: 1240px) { .top-list-ico { margin-left: auto; } }
.top-inner { justify-content: flex-start; }
.top-nav { margin-left: auto; }
.top-list-ico { margin-left: 6px; }
@media (max-width: 1240px) { .top-list-ico { margin-left: auto; } }
.top-list-ico { margin-left: 0; } .top-list-ico svg { width: 24px; height: 24px; }
/* con nombres cortos el menú cabe hasta tablets */
@media (max-width: 1240px) and (min-width: 901px) { .top-nav { display: flex; } .top-menu-btn { display: none; } .top-list-ico { margin-left: 0; } }
@media (max-width: 1380px) { .top-link { padding: 8px 12px; } }

/* ---------- Solicitar cotización ---------- */
.d-quote { margin: -6px 0 22px; }
.d-quote-open { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-md);
  background: var(--olive); color: #fff; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; transition: filter .2s var(--ease), transform .2s var(--spring); }
.d-quote-open:hover { filter: brightness(1.07); }
.d-quote-open:active { transform: scale(.98); }
.d-quote-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-quote-open[hidden] { display: none; }
.d-quote-form { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 18px; display: grid; gap: 12px; }
.d-quote-title { margin: 0; font-size: 18px; font-weight: 900; color: var(--ink); }
.d-quote-sub { margin: -8px 0 2px; font-size: 14px; color: var(--ink-2); }
.q-field { display: grid; gap: 5px; }
.q-field span { font-size: 13px; font-weight: 900; color: var(--ink-2); }
.q-field input, .q-field textarea { width: 100%; box-sizing: border-box; border: 0; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 15px;
  background: var(--fill-2); color: var(--ink); resize: vertical; }
.q-field input:focus, .q-field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--olive); background: var(--surface); }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .q-row { grid-template-columns: 1fr; } }
.d-quote .d-report-btns { margin-top: 2px; }
.q-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; line-height: 1.35; }
.q-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--olive); flex: none; }
.q-check small { display: block; color: var(--ink-3); font-size: 13px; }
.ig-cell { position: relative; }
.ig-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(31, 35, 28, .45); color: #fff; font-size: 26px; font-weight: 900; pointer-events: none; }
