/* ==========================================================================
   Catálogo — v2 (vanilla, sin build)
   Para clonar a otra marca: cambiar SOLO el bloque :root (colores, fuentes,
   radios) y los datos de config.js. Las fuentes se cargan acá abajo (@import).
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,800&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  /* --- MARCA --- */
  --navy: #0b2540;          /* fondo del encabezado y pie, títulos */
  --blue: #0a7fb5;          /* acción principal */
  --blue-2: #22b8e6;        /* acento / hover */
  --red: #e0362b;           /* precios y "Destacado" */
  --wa: #1fa855;            /* WhatsApp */

  /* --- TIPOGRAFÍA --- */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-style: italic;  /* "normal" si la marca no usa títulos en cursiva */

  /* --- NEUTROS Y FORMA --- */
  --ink: #0f172a;
  --muted: #5b6475;
  --line: #dde3ee;
  --bg: #f3f5f9;
  --card: #ffffff;
  --ok: #138a4a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(10, 29, 79, .06), 0 8px 24px rgba(10, 29, 79, .06);
  --shadow-lg: 0 2px 6px rgba(10, 29, 79, .08), 0 18px 40px rgba(10, 29, 79, .14);

  /* derivados (no hace falta tocarlos) */
  --tint: color-mix(in srgb, var(--blue) 8%, #fff);
  --tint-2: color-mix(in srgb, var(--blue) 16%, #fff);
  --navy-2: color-mix(in srgb, var(--navy) 82%, #000);
  --stripe: repeating-linear-gradient(-45deg, var(--blue-2) 0 10px, var(--navy) 10px 20px);
  --mnav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
svg.ico-fill { fill: currentColor; stroke: none; }

/* ========================= ENCABEZADO ========================= */
.top { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; }
.top-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.logo-mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; flex: 0 0 auto;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; font-style: var(--display-style); border: 3px solid var(--blue-2); overflow: hidden; }
.logo-mark.has-img { background: #fff; border-color: transparent; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-style: var(--display-style); font-size: 23px; letter-spacing: .4px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.logo-text small { display: block; font-family: var(--font-mono); font-size: 10px; font-style: normal; font-weight: 500; letter-spacing: 1.2px; opacity: .7; margin-top: 5px; }

.hsearch { position: relative; display: flex; align-items: center; max-width: 640px; width: 100%; justify-self: center; }
.hsearch svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.hsearch input { width: 100%; height: 46px; border: 2px solid transparent; border-radius: var(--radius-sm); background: #fff; color: var(--ink); padding: 0 44px 0 44px; font-size: 16px; }
.hsearch input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-2) 30%, transparent); }
.hsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hsearch kbd { position: absolute; right: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; background: #f8fafc; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: var(--radius-sm); position: relative; }
.cart-link { border: 1.5px solid color-mix(in srgb, #fff 28%, transparent); }
.cart-link:hover { background: color-mix(in srgb, #fff 10%, transparent); }
.top-wa { background: var(--wa); }
.top-wa:hover { filter: brightness(1.08); }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-family: var(--font-mono); font-weight: 700; display: inline-grid; place-items: center; }
.cart-count[hidden] { display: none; }

.catbar { background: var(--navy-2); border-bottom: 4px solid transparent; border-image: var(--stripe) 4; }
.catbar-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.catbar-row::-webkit-scrollbar { display: none; }
.catlink { flex: 0 0 auto; color: color-mix(in srgb, #fff 78%, transparent); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 7px; white-space: nowrap; }
.catlink:hover { color: #fff; background: color-mix(in srgb, #fff 8%, transparent); }
.catlink.is-on { color: var(--navy); background: #fff; }

@media (max-width: 959px) {
  .top-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo actions" "search search"; height: auto; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .logo { grid-area: logo; }
  .top-actions { grid-area: actions; }
  .hsearch { grid-area: search; max-width: none; }
  .hsearch input { height: 44px; }
  .hsearch kbd, .top-actions .top-wa, .cart-txt { display: none; }
  .cart-link { padding: 9px 11px; }
  .logo-mark { width: 38px; height: 38px; font-size: 15px; }
  .logo-text { font-size: 20px; }
  html { scroll-padding-top: 16px; }
  .top { position: relative; }
  .btn-toggle { scroll-margin-top: 16px; }
}
@media (max-width: 420px) { .logo-text small { display: none; } }

/* ========================= CATÁLOGO ========================= */
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 6px; letter-spacing: .2px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs span:last-child { color: var(--ink); }

.cat-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cat-title-row h1 { font-family: var(--font-display); font-style: var(--display-style); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 5vw, 52px); line-height: .95; margin: 0; color: var(--navy); }
.count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 0; }

.cat-layout { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 22px 0 48px; }
@media (min-width: 960px) { .cat-layout { grid-template-columns: 250px minmax(0, 1fr); } }

/* filtros */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.filters:focus { outline: none; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filters-head strong { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.filters-close { display: none; border: 0; background: none; font-size: 20px; line-height: 1; padding: 4px 8px; }
.filters-body { padding: 4px 16px 8px; }
.filters-foot { display: none; }
.fgroup { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup legend { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 2px; float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.fopt:hover { background: var(--tint); }
.fopt input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.fopt span { flex: 1; min-width: 0; }
.fopt em, .fswitch em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 5px; padding: 0 6px; }
.fopt.is-zero { opacity: .45; }
.fopt:has(input:checked) span { font-weight: 700; color: var(--navy); }
.frange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.frange label { display: block; font-size: 12px; color: var(--muted); }
.frange input { display: block; width: 100%; margin-top: 3px; border: 1px solid #cdd4e2; border-radius: 8px; padding: 9px 10px; font-family: var(--font-mono); font-size: 14px; background: #fff; }
.fhint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.fswitch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; padding: 4px; }
.fswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fswitch .track { width: 38px; height: 22px; border-radius: 999px; background: #cbd3e1; position: relative; transition: background .2s; flex: 0 0 auto; }
.fswitch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.fswitch input:checked + .track { background: var(--ok); }
.fswitch input:checked + .track::after { transform: translateX(16px); }
.fswitch input:focus-visible + .track { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.fswitch span:not(.track) { flex: 1; }

@media (min-width: 960px) { .filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; } }
@media (max-width: 959px) {
  .filters { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; border-radius: 18px 18px 0 0; border: 0;
    transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
  .filters.is-open { transform: none; }
  .filters-head { position: relative; }
  .filters-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
  .filters-close { display: block; }
  .filters-body { overflow: auto; flex: 1; }
  .filters-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(8, 15, 35, .5); }
}
.filters-backdrop[hidden] { display: none; }

/* barra de resultados */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-filters { display: none; align-items: center; gap: 8px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: var(--radius-sm); padding: 9px 14px; font-weight: 700; }
.btn-filters b { background: var(--blue); color: #fff; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; }
.btn-filters b[hidden] { display: none; }
@media (max-width: 959px) { .btn-filters { display: inline-flex; } }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.fchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--tint-2); background: var(--tint); color: var(--navy); border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 13px; font-weight: 600; }
.fchip span { font-size: 11px; opacity: .6; }
.fchip:hover { border-color: var(--blue); }
.fchip-clear { background: none; border-color: transparent; text-decoration: underline; color: var(--muted); padding-left: 6px; }
.sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.sort span { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.sort select { border: 1px solid #cdd4e2; border-radius: var(--radius-sm); background: #fff; padding: 9px 12px; font-weight: 600; color: var(--ink); font-size: 14px; }
@media (max-width: 559px) { .sort span { display: none; } .active-filters { order: 3; flex-basis: 100%; } }

/* ========================= TARJETAS ========================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s; animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--tint-2); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img img.is-placeholder, .gal-slide img.is-placeholder, .cot-img img.is-placeholder { object-fit: cover; padding: 0; background: #e8edf7; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 5px; text-transform: uppercase; letter-spacing: 1px; }
.card-body { border-top: 1px solid var(--line); padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.card-cat i { font-style: normal; color: var(--blue-2); }
.card-title { font-size: 16px; line-height: 1.25; margin: 0; font-weight: 700; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.sku-tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px dashed #c4ccdb; border-radius: 4px; padding: 1px 6px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-si { color: var(--ok); }
.stock-no { color: #8a93a6; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 14px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--red); line-height: 1; }
.price-ask { font-family: var(--font); color: var(--blue); font-size: 15px; font-weight: 700; }
.card-add { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: 8px; padding: 8px 11px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .15s, color .15s; }
.card-add:hover, .card-add.is-done { background: var(--blue); color: #fff; }

@media (max-width: 559px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 6px; }
  .card-title { font-size: 14px; }
  .card-img img { padding: 8px; }
  .sku-tag { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; padding: 8px 10px 12px; }
  .price { font-size: 20px; }
  .price-ask { font-size: 13px; }
  .card-add { width: 100%; padding: 9px; }
}

.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h1, .empty h2 { color: var(--ink); font-size: 22px; margin: 0 0 6px; }

/* paginación */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 28px 0 0; }
.pg { min-width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--ink); }
.pg:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pg.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg:disabled { opacity: .35; cursor: default; }
.pg-gap { font-family: var(--font-mono); color: var(--muted); padding: 0 4px; }
.pg-info { flex-basis: 100%; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ========================= FICHA DE PRODUCTO ========================= */
.ficha { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 8px 0 8px; }
@media (min-width: 960px) { .ficha { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 44px; } .galeria { position: sticky; top: 140px; align-self: start; } }
.gal-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline-offset: -3px; }
.gal-slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; }
.gal-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.gal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--navy); font-size: 26px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); }
.gal-nav:hover { background: var(--navy); color: #fff; }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 12px; background: var(--navy); color: #fff; padding: 3px 9px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumb { position: relative; flex: 0 0 auto; width: 74px; height: 74px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.thumb.is-on { border-color: var(--blue-2); box-shadow: 0 0 0 3px var(--tint-2); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
@media (max-width: 559px) { .gal-nav { display: none; } .thumb { width: 60px; height: 60px; } }

.info-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; background: var(--navy); color: #fff; padding: 4px 9px; border-radius: 5px; }
.tag-line { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.info-tags .sku-tag { margin-left: auto; }
.info h1 { font-family: var(--font-display); font-style: var(--display-style); font-size: clamp(30px, 4.2vw, 46px); line-height: .98; margin: 14px 0 16px; font-weight: 800; text-transform: uppercase; color: var(--navy); }
.price-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-sm); }
.price-box .price-note { flex-basis: 100%; order: 3; }
.price-lg { font-size: 40px; margin: 0; }
.price-lg.price-ask { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.price-note { font-size: 13px; color: var(--muted); margin: 0; }
.lead { color: #2b3242; font-size: 16.5px; margin: 16px 0 0; }

.add-box { margin: 18px 0 0; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-add { flex: 1 1 200px; }
.add-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #cdd4e2; border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 42px; border: 0; background: #f1f4fa; font-size: 20px; font-weight: 700; color: var(--navy); }
.qty button:hover { background: var(--tint-2); }
.qty input { width: 56px; border: 0; text-align: center; font-family: var(--font-mono); font-size: 16px; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 32px; font-size: 17px; }
.qty-sm input { width: 44px; font-size: 14px; padding: 6px 0; }

.perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.perks li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); position: relative; overflow: hidden; }
.perks li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue-2); }
.perks b { font-size: 14px; color: var(--navy); }
.perks span { font-size: 12.5px; color: var(--muted); }

/* pestañas + ficha técnica */
.tabs { margin: 36px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tab-list { display: flex; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
.tab-list [role="tab"] { border: 0; background: none; padding: 15px 20px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-list [role="tab"].is-on { color: var(--navy); border-bottom-color: var(--red); background: var(--card); }
.tab-panel { padding: 20px; }
.tab-panel p { margin: 0; max-width: 72ch; color: #2b3242; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs tr:nth-child(even) { background: color-mix(in srgb, var(--bg) 60%, #fff); }
.specs th { width: 38%; font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.specs td { font-weight: 600; }
@media (max-width: 559px) { .specs th { width: 44%; } .specs th, .specs td { padding: 10px; } }

.relacionados { padding: 40px 0 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2, .page-title { font-family: var(--font-display); font-style: var(--display-style); text-transform: uppercase; font-size: clamp(26px, 3.4vw, 34px); margin: 0; color: var(--navy); line-height: 1; }
.sec-head a { font-weight: 700; font-size: 14px; text-decoration: none; }

/* ========================= FORMULARIOS Y BOTONES ========================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 13px 20px; font-weight: 700; font-size: 16px; text-decoration: none; min-height: 50px; }
.btn:hover { background: var(--blue-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: color-mix(in srgb, var(--wa) 85%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--tint); }
.btn-toggle { margin-top: 12px; }
.btn-toggle .chev { display: inline-block; transition: transform .2s; }
.btn-toggle.is-open { background: var(--tint); }
.btn-toggle.is-open .chev { transform: rotate(180deg); }
.add-row .btn-add, .btn-toggle { min-height: 52px; font-size: 17px; }
.btn-toggle { scroll-margin-top: 150px; }
.consulta-wrap[hidden], .consulta[hidden], .ok[hidden] { display: none !important; }
.consulta-wrap .consulta { margin-top: 12px; }

.consulta, .ok { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 22px 0 0; border-top: 4px solid var(--blue-2); }
.consulta h2, .ok h2 { margin: 0; font-size: 20px; }
.consulta-sub { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.consulta label { display: block; font-size: 13px; font-weight: 600; color: #2b3242; margin-bottom: 12px; }
.consulta input, .consulta select, .consulta textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid #cdd4e2; border-radius: 9px; padding: 11px 12px; font-size: 16px; background: #fff; }
.consulta input:focus, .consulta select:focus, .consulta textarea:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); font-size: 14px; min-height: 1em; margin: 0 0 8px; }
.ok p { color: #2b3242; }

/* ========================= MI COTIZACIÓN ========================= */
#cotizacion .crumbs { padding-bottom: 12px; }
.page-title { margin: 0 0 18px; }
.cot { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; }
@media (min-width: 960px) { .cot { grid-template-columns: 1.3fr 1fr; align-items: start; } .cot-form { position: sticky; top: 140px; } }
.cot-form .consulta { margin-top: 0; }
.cot-lista { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; }
.cot-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cot-img { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cot-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cot-nombre { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.25; }
.cot-nombre:hover { color: var(--blue); }
.cot-sku { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.cot-acc { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cot-quitar { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.cot-quitar:hover { color: var(--red); }
.cot-sub { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--red); text-align: right; white-space: nowrap; }
.cot-sub .price-ask { font-size: 14px; }
.cot-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 0 8px; color: var(--muted); font-size: 14px; }
.cot-total strong { font-family: var(--font-display); font-size: 28px; color: var(--ink); margin-left: 6px; }
.cot-total small { display: block; text-align: right; }
.cot-seguir { display: inline-block; margin: 6px 0 12px; font-weight: 700; font-size: 14px; text-decoration: none; }
.cot-enviada { padding: 24px 0; font-weight: 700; }
@media (max-width: 559px) {
  .cot-item { grid-template-columns: 64px 1fr; }
  .cot-img { width: 64px; height: 64px; }
  .cot-sub { grid-column: 2; text-align: left; font-size: 18px; }
}

/* ========================= PIE ========================= */
.foot { background: var(--navy); color: color-mix(in srgb, #fff 78%, transparent); padding: 36px 0 28px; margin-top: 40px; font-size: 14px; border-top: 4px solid transparent; border-image: var(--stripe) 4; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 2fr; } }
.foot-brand strong { font-family: var(--font-display); font-style: var(--display-style); text-transform: uppercase; font-size: 24px; color: #fff; }
.foot-brand p { margin: 6px 0 0; max-width: 40ch; }
.foot-sucs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot strong { color: #fff; }
.suc { display: flex; flex-direction: column; gap: 3px; }
.foot a { color: #fff; }
.suc .suc-dir { color: inherit; text-decoration: none; }
.suc .suc-dir:hover { color: #fff; text-decoration: underline; }
.suc .suc-map { display: inline-flex; align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--blue-2); color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; }
.suc .suc-map:hover { background: var(--blue); }
.foot-links { display: flex; gap: 14px; margin-top: 10px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 14px; font-family: var(--font-mono); font-size: 11px; opacity: .7; }

/* ========================= WHATSAPP FLOTANTE (solo escritorio) ========================= */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 30; }
.wa-float svg { width: 30px; height: 30px; }

/* ========================= NAVEGACIÓN MÓVIL FIJA ========================= */
.mnav { display: none; }
@media (max-width: 959px) {
  .wa-float { display: none; }
  body { padding-bottom: calc(var(--mnav-h) + env(safe-area-inset-bottom)); }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--mnav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(10,29,79,.08); }
  .mnav > * { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; padding: 0; }
  .mnav svg { width: 22px; height: 22px; }
  .mnav .is-on { color: var(--blue); }
  .mnav .is-on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
  .mnav [data-mnav="wa"] { color: var(--wa); }
  .mnav .cart-count { position: absolute; top: 7px; left: calc(50% + 4px); min-width: 18px; height: 18px; font-size: 11px; }
  .toast { bottom: calc(var(--mnav-h) + 14px + env(safe-area-inset-bottom)); }
}

/* ========================= AVISO (toast) ========================= */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100% - 32px); transition: all .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #9cc1ff; font-weight: 700; margin-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 959px) { .toast { bottom: calc(var(--mnav-h) + 14px + env(safe-area-inset-bottom)); } }
.card-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
