/*
  ECPC Tienda
  ------------------------------------------------------------------
  Misma línea visual que ecpc.com.mx: blanco persistente, tinta marino,
  un solo acento azul del logo, profundidad suave teñida de azul en lugar
  de bordes duros, radios grandes, botones píldora que se levantan y
  cambian de tono. Sora (títulos) + Manrope (texto).
  Estructura de tienda de cómputo: buscador protagonista, categorías,
  rejilla de productos y ficha con compra a la derecha.
*/

:root {
  --white: #ffffff;
  --soft: #f4f7fc;
  --soft-2: #e9eff9;
  --ink: #08132a;
  --navy: #0b1a35;
  --navy-2: #142a52;
  --blue: #427cc6;
  --blue-2: #2f68b3;
  --blue-soft: #e4eefb;
  --muted: #5a6a82;
  --muted-2: #8894a9;
  --line: #e2e9f3;
  --line-2: #cfdaea;
  --ok: #138a4b;
  --ok-soft: #e3f6ec;
  --warn: #9a6200;
  --warn-soft: #fff4dc;
  --danger: #c0392b;
  --danger-soft: #fdeceb;
  --sale: #e4572e;
  --wa: #128c7e;

  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 6px 18px rgba(12, 28, 52, 0.05);
  --shadow: 0 2px 6px rgba(11, 18, 32, 0.05), 0 18px 44px rgba(12, 28, 52, 0.09);
  --shadow-lg: 0 6px 14px rgba(11, 18, 32, 0.06), 0 34px 80px rgba(12, 28, 52, 0.14);
  --shadow-blue: 0 14px 34px rgba(66, 124, 198, 0.32);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.22s;
  --t-med: 0.42s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15.5px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }

.wrap { width: min(1280px, calc(100% - 2.5rem)); margin-inline: auto; }
.main { width: min(1280px, calc(100% - 2.5rem)); margin: 1.6rem auto 3.5rem; min-height: 50vh; }
.main.wide { width: 100%; margin-top: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: 0.5rem 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.danger { color: var(--danger); }
.grow { flex: 1; }
.stack { display: grid; gap: 1rem; }
.inline { display: inline; }
.flip { transform: rotate(180deg); }
.only-mobile { display: none !important; }
[hidden] { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 0.8rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft); animation: pulse 2.6s var(--ease-io) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(66, 124, 198, 0.08); } }

/* Botones (idénticos al sitio principal) ------------------------------ */
.btn {
  --bg: var(--navy); --fg: var(--white); --bg-h: var(--blue);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.35rem; border: 1.5px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease,
    transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--bg-h); color: var(--fg); transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-blue); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn-primary { --bg: var(--blue); --bg-h: var(--navy); }
.btn-dark { --bg: var(--navy); --bg-h: var(--blue); }
.btn-ghost { --bg: var(--white); --fg: var(--ink); --bg-h: var(--white); border-color: var(--line-2); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--blue); color: var(--blue); box-shadow: 0 12px 30px rgba(66, 124, 198, 0.16); }
.btn-light { --bg: var(--white); --fg: var(--navy); --bg-h: var(--white); }
.btn-light:hover { color: var(--blue); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }
.btn-danger { --bg: var(--danger); --bg-h: #a02f23; }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 0.88rem; }
.btn-lg { min-height: 54px; padding: 0 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.link {
  background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.link:hover { color: var(--navy); }
.link.danger { color: var(--danger); }
.icon-btn { background: none; border: 0; padding: 0.45rem; color: inherit; cursor: pointer; display: inline-flex; border-radius: 999px; }
.icon-btn.round { border: 1px solid var(--line); background: var(--white); width: 44px; height: 44px; place-items: center; justify-content: center; align-items: center; }

/* Encabezado -------------------------------------------------------------- */
.topbar { background: var(--soft); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.4rem 0; }
.topbar-inner span, .topbar-inner a { display: inline-flex; align-items: center; gap: 0.35rem; }
.topbar a { color: var(--muted); font-weight: 600; }
.topbar a:hover { color: var(--blue); }
.topbar-back { color: var(--ink) !important; }
.topbar-links { gap: 1.1rem !important; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) ease, box-shadow var(--t-med) ease, background var(--t-med) ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.94); border-color: var(--line); box-shadow: 0 10px 30px rgba(12, 28, 52, 0.06); }
.header-row { display: flex; align-items: center; gap: 1.2rem; padding: 0.75rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 50px; height: 50px; object-fit: contain; transition: transform 0.7s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }

.search {
  flex: 1; position: relative; display: flex; align-items: center; gap: 0.4rem; min-width: 0;
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.3rem 0.3rem 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.search:focus-within { background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.search-ico { color: var(--muted-2); flex: none; }
.search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0.45rem 0.2rem !important; box-shadow: none !important; }
.search input:focus { outline: none; }
.search .btn:hover { transform: none; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; padding: 0.35rem;
}
.suggest-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 0.75rem; align-items: center; padding: 0.45rem 0.6rem; border-radius: var(--r-sm); color: var(--ink); font-size: 0.9rem; }
.suggest-item:hover { background: var(--soft); color: var(--ink); }
.suggest-item img { width: 44px; height: 44px; object-fit: contain; }
.suggest-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-all { display: block; padding: 0.6rem; font-weight: 700; text-align: center; border-top: 1px solid var(--line); margin-top: 0.3rem; }

.header-actions { display: flex; align-items: center; gap: 0.35rem; flex: none; }
.header-chip {
  display: flex; align-items: center; gap: 0.45rem; background: none; border: 1px solid transparent; cursor: pointer;
  color: var(--ink); text-align: left; padding: 0.35rem 0.75rem; border-radius: 999px; transition: background var(--t-fast), border-color var(--t-fast);
}
.header-chip:hover { background: var(--soft); border-color: var(--line); color: var(--ink); }
.header-chip .ico { color: var(--blue); }
.header-chip span { display: grid; line-height: 1.15; }
.header-chip small { color: var(--muted); font-size: 0.72rem; }
.header-chip strong { font-size: 0.86rem; white-space: nowrap; }
.header-cart {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  background: var(--navy); color: #fff; transition: background var(--t-fast), transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.header-cart:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}

.catbar { border-top: 1px solid var(--line); }
.catbar-inner { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; }
.catbar-links { display: flex; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; }
.catbar-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 600; padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.catbar-links a:hover { color: var(--ink); background: var(--soft); }
.catbar-hot { color: var(--blue) !important; background: var(--blue-soft); }

.catmenu { position: relative; }
.catmenu-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem; background: var(--navy); color: #fff; border: 0;
  padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background var(--t-fast);
}
.catmenu-toggle:hover, .catmenu-toggle[aria-expanded="true"] { background: var(--blue); }
.catmenu-panel {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; width: 290px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: var(--r); z-index: 45; padding: 0.4rem;
}
.catmenu-panel.show { display: block; }
.catmenu-item { position: relative; }
.catmenu-root { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.6rem; color: var(--ink); font-weight: 600; border-radius: var(--r-sm); }
.catmenu-root:hover { background: var(--soft); color: var(--blue); }
.catmenu-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); flex: none; }
.catmenu-chev { margin-left: auto; color: var(--muted-2); }
.catmenu-sub {
  display: none; position: absolute; left: calc(100% + 6px); top: -0.4rem; min-width: 260px; background: #fff; padding: 0.9rem 1rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: var(--r);
}
.catmenu-item:hover > .catmenu-sub, .catmenu-item:focus-within > .catmenu-sub { display: block; }
.catmenu-sub-title { font-weight: 800; display: block; margin-bottom: 0.4rem; color: var(--ink); }
.catmenu-sub li a { display: block; padding: 0.3rem 0; color: var(--muted); font-weight: 600; }
.catmenu-sub li a:hover { color: var(--blue); }

/* Pie (como el sitio principal) ------------------------------------------- */
.trust-strip { border-top: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; }
.trust { display: flex; gap: 0.8rem; align-items: center; }
.trust-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); flex: none; }
.trust > span:last-child { display: grid; line-height: 1.35; }
.trust small { color: var(--muted); }
.site-footer { padding: 3.2rem 0 0; background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.9fr 1fr 1.1fr; gap: 2.4rem; padding-bottom: 2.4rem; }
.footer-lockup { width: min(320px, 100%); height: auto; }
.footer-note { margin: 1rem 0 0; font-size: 0.94rem; max-width: 40ch; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.social {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); color: var(--navy); transition: background var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease);
}
.social:hover { background: var(--navy); color: var(--white); transform: translateY(-3px); }
.footer-col h4 { margin-bottom: 0.9rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-family: var(--font-body); }
.footer-col ul { display: grid; gap: 0.55rem; font-size: 0.94rem; }
.footer-col li strong { display: block; color: var(--ink); font-weight: 600; }
.footer-col li span { font-size: 0.88rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 1.4rem; border-top: 1px solid var(--line); font-size: 0.84rem; }
.footer-bottom a { color: var(--muted); }

/* Inicio ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--soft) 0%, var(--white) 100%); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 124, 198, 0.16) 0%, transparent 65%); pointer-events: none;
}
.hero-mark { position: absolute; right: 4%; bottom: -60px; width: 300px; opacity: 0.07; pointer-events: none; transform: rotate(-10deg); }
.hero-inner { position: relative; display: grid; gap: 3rem; padding: 3.6rem 0 3.4rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; margin-bottom: 1rem; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p { color: var(--muted); max-width: 56ch; font-size: 1.05rem; margin: 0; }
.hero-search {
  display: flex; gap: 0.4rem; margin-top: 1.6rem; max-width: 580px; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.35rem 0.35rem 0.35rem 1.2rem; box-shadow: var(--shadow);
}
.hero-search input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; padding: 0.5rem 0 !important; background: transparent !important; }
.hero-search input:focus { outline: none; }
.hero-points { display: grid; gap: 0.75rem; }
.hero-points li {
  display: flex; gap: 0.9rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.hero-points li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hero-points .pt-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); flex: none; }
.hero-points span { display: grid; color: var(--muted); font-size: 0.92rem; }
.hero-points strong { color: var(--ink); font-size: 0.98rem; }

.section { margin-top: 3rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.3rem; }
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.section-head .eyebrow { margin-bottom: 0.4rem; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
.catcard {
  display: grid; justify-items: center; gap: 0.5rem; text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.4rem 0.8rem 1.2rem; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med), border-radius var(--t-med) var(--ease);
}
.catcard .cat-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); transition: background var(--t-med), color var(--t-med); }
.catcard small { color: var(--muted); }
.catcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-soft); border-radius: var(--r-xl); color: var(--ink); }
.catcard:hover .cat-ico { background: var(--blue); color: #fff; }
.info-band {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: 2.2rem 2.4rem;
}
.info-band::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 124, 198, 0.45) 0%, transparent 65%);
}
.info-band > * { position: relative; z-index: 1; }
.info-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.info-band p { margin: 0.4rem 0 0; color: #c9d6ea; }

/* Tarjeta de producto ----------------------------------------------------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med);
}
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--blue-soft); }
.pcard-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 1.1rem; background: #fff; color: var(--line-2); }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-med) var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.badge { position: absolute; top: 0.8rem; left: 0.8rem; font-size: 0.74rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 999px; }
.badge-sale { background: var(--sale); color: #fff; }
.pcard-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; border-top: 1px solid var(--line); }
.pcard-brand { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); }
.pcard-name { font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; line-height: 1.38; letter-spacing: 0; }
.pcard-name a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a:hover { color: var(--blue); }
.pcard-sku { font-size: 0.76rem; color: var(--muted); }
.pcard-price { margin-top: auto; padding-top: 0.45rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.pcard-price strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.pcard-price s { color: var(--muted); font-size: 0.85rem; }
.pcard-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: 0.78rem; }
.stock { display: inline-flex; align-items: center; gap: 0.2rem; font-weight: 700; }
.stock.ok { color: var(--ok); }
.stock.out { color: var(--danger); }
.free { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 0.2rem; }

/* Listado ------------------------------------------------------------------ */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.83rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; align-items: start; }
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; position: sticky; top: 150px;
  max-height: calc(100vh - 170px); overflow: auto; box-shadow: var(--shadow-sm);
}
.filter-block { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filter-block h3 { font-size: 0.76rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.7rem; }
.filter-links li { margin: 0.3rem 0; font-size: 0.92rem; }
.filter-links a { color: var(--ink); font-weight: 600; }
.filter-links a:hover { color: var(--blue); }
.filter-scroll { max-height: 260px; overflow: auto; display: grid; gap: 0.35rem; }
.filter-form { display: grid; gap: 0.5rem; }
.check { display: flex; gap: 0.55rem; align-items: center; font-size: 0.91rem; cursor: pointer; }
.check input { accent-color: var(--blue); width: 17px; height: 17px; }
.price-range { display: flex; gap: 0.4rem; align-items: center; }
.price-range input { width: 100%; min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.results-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.results-head p { margin: 0.25rem 0 0; }
.results-tools { display: flex; gap: 0.6rem; align-items: center; }
.sort { display: flex; gap: 0.4rem; align-items: center; font-size: 0.9rem; }
select, input:not([type=checkbox]):not([type=radio]), textarea {
  padding: 0.62rem 0.85rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; max-width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea { width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--blue-soft); }
.empty {
  text-align: center; background: linear-gradient(180deg, var(--soft), var(--white)); border: 1px dashed var(--line-2);
  border-radius: var(--r-lg); padding: 3rem 1rem; display: grid; justify-items: center; gap: 0.6rem; color: var(--muted);
}
.empty .ico { color: var(--blue); }
.empty h2, .empty h1 { color: var(--ink); }
.page-empty { margin-top: 2rem; }
.pager { display: flex; gap: 0.35rem; justify-content: center; margin: 2rem 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; text-align: center; padding: 0.5rem 0.9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .pager-cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .pager-gap { border: 0; background: none; }

/* Ficha de producto ----------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.8rem; align-items: start; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.3rem; position: sticky; top: 150px; box-shadow: var(--shadow-sm); }
.gallery-main { aspect-ratio: 1; display: grid; place-items: center; color: var(--line-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 0.55rem; margin-top: 0.9rem; overflow-x: auto; }
.thumb { flex: none; width: 68px; height: 68px; border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 5px; cursor: pointer; transition: border-color var(--t-fast); }
.thumb.active, .thumb:hover { border-color: var(--blue); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.6rem; display: grid; gap: 1.05rem; box-shadow: var(--shadow-sm); }
.pdp-brand { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.pdp-title { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.25; }
.pdp-codes { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin: 0; }
.buy { display: grid; gap: 1rem; }
.price-block { background: linear-gradient(135deg, var(--soft), var(--blue-soft)); border-radius: var(--r); padding: 1rem 1.15rem; }
.price-row { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; }
.list-price { color: var(--muted); }
.price-block p { margin: 0.2rem 0 0; }
.warehouses { border: 0; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.warehouses legend { display: flex; justify-content: space-between; align-items: center; width: 100%; font-weight: 700; margin-bottom: 0.55rem; }
.wh {
  display: flex; gap: 0.75rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r); padding: 0.8rem 0.95rem;
  cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.wh:hover { border-color: var(--line-2); }
.wh:has(input:checked) { border-color: var(--blue); background: #f7faff; box-shadow: 0 8px 22px rgba(66, 124, 198, 0.12); }
.wh input { accent-color: var(--blue); margin-top: 4px; }
.wh-body { flex: 1; display: grid; gap: 0.2rem; }
.wh-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.wh-price { font-weight: 800; font-family: var(--font-display); }
.wh-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--soft); color: var(--navy-2); }
.chip-blue { background: var(--blue-soft); color: var(--blue-2); }
.buy-row { display: flex; gap: 0.6rem; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: #fff; padding: 0 0.85rem; height: 100%; min-height: 48px; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--blue); }
.qty input { width: 3rem; text-align: center; border: 0 !important; padding: 0.5rem 0 !important; -moz-appearance: textfield; box-shadow: none !important; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fresh { margin: 0; display: flex; align-items: center; gap: 0.3rem; }
.soldout { display: grid; gap: 0.7rem; }
.ship-est { border-top: 1px solid var(--line); padding-top: 1.05rem; }
.ship-est h3 { font-size: 1rem; display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.7rem; }
.ship-est h3 .ico { color: var(--blue); }
.inline-form { display: flex; gap: 0.5rem; }
.inline-form input { flex: 1; min-width: 0; }
.ship-list { display: grid; gap: 0.45rem; margin-top: 0.75rem; }
.ship-list li { display: grid; gap: 0.1rem; padding: 0.65rem 0.85rem; border-radius: var(--r-sm); background: var(--soft); }
.ship-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.9rem; }
.assurances { display: grid; gap: 0.7rem; border-top: 1px solid var(--line); padding-top: 1.05rem; font-size: 0.88rem; }
.assurances li { display: flex; gap: 0.65rem; }
.assurances .ico { color: var(--blue); flex: none; margin-top: 2px; }
.pdp-tabs { margin-top: 2rem; }
.tabs {
  display: flex; gap: 0.3rem; overflow-x: auto; padding: 0.35rem; background: var(--soft); border: 1px solid var(--line);
  border-radius: 999px; position: sticky; top: 140px; z-index: 5; width: max-content; max-width: 100%;
}
.tab { padding: 0.5rem 1.05rem; font-weight: 700; color: var(--muted); white-space: nowrap; border-radius: 999px; font-size: 0.9rem; }
.tab:hover { color: var(--ink); background: var(--white); }
.pdp-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.6rem; margin-top: 1rem; scroll-margin-top: 200px; }
.pdp-section h2 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.specs { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.specs tr:nth-child(odd) { background: var(--soft); }
.specs th { text-align: left; width: 34%; padding: 0.6rem 0.9rem; font-weight: 700; vertical-align: top; }
.specs td { padding: 0.6rem 0.9rem; }
.bullets { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.4rem; margin-bottom: 0.8rem; }
.prose { white-space: pre-line; }
.prose h1 { font-size: 1.7rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.15rem; margin: 1.4rem 0 0.5rem; }
.prose ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.help .prose { white-space: normal; }

/* Carrito y checkout ----------------------------------------------------- */
.page-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 1.3rem; }
.cart-layout, .checkout { display: grid; grid-template-columns: 1fr 370px; gap: 1.6rem; align-items: start; }
.cart-lines { display: grid; gap: 0.9rem; }
.cart-line {
  display: grid; grid-template-columns: 100px 1fr auto auto; gap: 1.1rem; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1rem; box-shadow: var(--shadow-sm);
}
.cart-line.has-problem { border-color: #f1c878; }
.cart-img { width: 100px; height: 100px; display: grid; place-items: center; color: var(--line-2); background: var(--soft); border-radius: var(--r); padding: 6px; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-info { display: grid; gap: 0.2rem; }
.cart-name { color: var(--ink); font-weight: 700; }
.cart-name:hover { color: var(--blue); }
.cart-price { display: grid; justify-items: end; gap: 0.2rem; }
.summary {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.4rem; position: sticky; top: 150px;
  display: grid; gap: 0.85rem; box-shadow: var(--shadow);
}
.summary h2 { font-size: 1.15rem; }
.summary dl { margin: 0; display: grid; gap: 0.45rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; }
.summary dd { margin: 0; font-weight: 700; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.summary-total strong { font-family: var(--font-display); font-size: 1.6rem; }
.summary-pay { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.summary-pay li { display: flex; gap: 0.45rem; align-items: center; }
.summary-pay .ico { color: var(--blue); }
.summary-items { display: grid; gap: 0.65rem; font-size: 0.88rem; }
.summary-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem; }
.summary-name { display: grid; }
.summary-qty { color: var(--muted); font-weight: 700; }
.free-hint { background: var(--blue-soft); color: var(--blue-2); border-radius: var(--r-sm); padding: 0.6rem 0.8rem; font-size: 0.85rem; font-weight: 700; display: flex; gap: 0.45rem; align-items: center; margin: 0; }
.checkout-steps { display: grid; gap: 1rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.45rem; display: grid; gap: 0.95rem; box-shadow: var(--shadow-sm); }
.step h2 { font-size: 1.12rem; display: flex; gap: 0.65rem; align-items: center; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 0.85rem; box-shadow: 0 0 0 4px var(--blue-soft); }
.choice-list { display: grid; gap: 0.6rem; }
.choice {
  display: flex; gap: 0.75rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r); padding: 0.9rem 1rem;
  cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.choice:hover { border-color: var(--line-2); }
.choice:has(input:checked) { border-color: var(--blue); background: #f7faff; box-shadow: 0 8px 22px rgba(66, 124, 198, 0.12); }
.choice.disabled { opacity: 0.55; }
.choice > input { accent-color: var(--blue); margin-top: 4px; }
.choice-body { flex: 1; display: grid; gap: 0.2rem; }
.choice-top { display: flex; justify-content: space-between; gap: 1rem; }
.cod-methods { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.35rem; }
.pill { display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.25rem 0.8rem; font-size: 0.85rem; cursor: pointer; background: #fff; }
.pill:has(input:checked) { border-color: var(--blue); color: var(--blue); font-weight: 700; background: var(--blue-soft); }
.add-address summary { cursor: pointer; list-style: none; }
.add-address[open] summary { margin-bottom: 0.9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.span-2 { grid-column: span 2; }
.field { display: grid; gap: 0.35rem; font-size: 0.87rem; font-weight: 600; }
.field input, .field select { width: 100%; font-weight: 400; }

/* Alertas, estados --------------------------------------------------------- */
.alert { padding: 0.75rem 1rem; border-radius: var(--r-sm); margin: 0 0 1rem; font-weight: 600; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); margin: 0.4rem 0 0; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--blue-soft); color: var(--blue-2); }
.status { display: inline-block; font-size: 0.78rem; font-weight: 800; padding: 0.18rem 0.65rem; border-radius: 999px; background: var(--soft); color: var(--navy-2); white-space: nowrap; font-family: var(--font-body); letter-spacing: 0; }
.status-pagado, .status-entregado { background: var(--ok-soft); color: var(--ok); }
.status-pendiente_pago, .status-esperando_pago, .status-por_confirmar { background: var(--warn-soft); color: var(--warn); }
.status-cancelado, .status-reembolsado { background: var(--danger-soft); color: var(--danger); }
.status-en_proceso, .status-enviado, .status-listo_recoger { background: var(--blue-soft); color: var(--blue-2); }
.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translate(-50%, 160%); background: var(--navy); color: #fff; padding: 0.8rem 1.3rem;
  border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); transition: transform var(--t-med) var(--ease); z-index: 100;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* Pedido y cuenta --------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.35rem 1.45rem; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 1.12rem; margin-bottom: 0.85rem; }
.order-page { display: grid; gap: 1.3rem; }
.order-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.order-head h1 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.order-head p { margin: 0.3rem 0 0; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.progress li { display: grid; justify-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); position: relative; text-align: center; }
.progress li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line); position: relative; z-index: 1; }
.progress li.done { color: var(--ink); font-weight: 700; }
.progress li.done .dot, .progress li.done::before { background: var(--blue); }
.progress li.now .dot { box-shadow: 0 0 0 5px var(--blue-soft); }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.3rem; align-items: start; }
.order-items { display: grid; gap: 0.85rem; }
.order-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.85rem; align-items: center; }
.order-items img { width: 56px; height: 56px; object-fit: contain; }
.order-items span { display: grid; }
.totals { margin: 1rem 0 0; display: grid; gap: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; }
.totals .grand { font-weight: 800; font-size: 1.1rem; }
.timeline { display: grid; gap: 0.55rem; margin-bottom: 1rem; font-size: 0.9rem; }
.account { display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem; align-items: start; }
.account-nav, .help-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.55rem; display: grid; gap: 0.15rem; box-shadow: var(--shadow-sm); }
.account-nav a, .account-nav .link, .help-nav a { display: flex; gap: 0.6rem; align-items: center; padding: 0.6rem 0.85rem; border-radius: 999px; color: var(--muted); font-weight: 600; }
.account-nav a.active, .account-nav a:hover, .help-nav a.active, .help-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.account-nav .link { width: 100%; }
.account-body { display: grid; gap: 1rem; }
.addr-list { display: grid; gap: 0.8rem; }
.addr-list li { display: flex; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem 1.1rem; }
.addr-list p { margin: 0; }
.row-actions { display: flex; gap: 0.8rem; align-items: start; }
.auth-card { max-width: 450px; margin: 1.5rem auto; display: grid; gap: 1rem; padding: 2rem; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card p { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.55rem; border-bottom: 1px solid var(--line-2); }
.table td { padding: 0.65rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.help { display: grid; grid-template-columns: 250px 1fr; gap: 1.6rem; align-items: start; }

.dialog { border: 0; border-radius: var(--r-xl); padding: 0; width: min(440px, calc(100% - 2rem)); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(8, 19, 42, 0.45); backdrop-filter: blur(4px); }
.dialog-body { padding: 1.8rem; display: grid; gap: 0.9rem; }
.dialog-body .eyebrow { margin: 0; }
.dialog-body h2 { font-size: 1.35rem; }
.dialog-body p { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hide-mobile { display: none !important; }
  .brand-text { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .topbar-msg { display: none !important; }
}
@media (max-width: 900px) {
  .only-mobile { display: inline-flex !important; }
  .topbar-links { display: none !important; }
  .header-row { flex-wrap: wrap; gap: 0.6rem; }
  .search { order: 5; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .header-chip { padding: 0.3rem 0.5rem; }
  .header-chip small { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .catbar { display: none; }
  .catmenu-toggle { display: none; }
  .catbar:has(.catmenu.open) { display: block; }
  .catmenu-panel {
    display: block; position: fixed; inset: 0 18% 0 0; border-radius: 0 var(--r-lg) var(--r-lg) 0; transform: translateX(-105%);
    transition: transform var(--t-med) var(--ease); width: auto; overflow: auto; z-index: 60; top: 0;
  }
  .catmenu.open .catmenu-panel { transform: none; }
  /* backdrop-filter crea un contenedor para los elementos fijos: se quita con el menú abierto. */
  .site-header:has(.catmenu.open) { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .catmenu.open::before { content: ""; position: fixed; inset: 0; background: rgba(8, 19, 42, 0.45); z-index: 59; }
  .catmenu-head { display: flex !important; gap: 0.6rem; align-items: center; padding: 0.8rem 0.6rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: 0.4rem; }
  .catmenu-head strong { flex: 1; font-family: var(--font-display); font-size: 1.1rem; }
  .catmenu-sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0.6rem 0.6rem 3.3rem; min-height: 0; }
  .catmenu-sub-title { display: none; }
  .catmenu-chev { display: none; }
  .hero-inner, .pdp, .listing, .cart-layout, .checkout, .order-grid, .account, .help { grid-template-columns: 1fr; }
  .hero-inner { padding: 2.2rem 0; gap: 1.8rem; }
  .hero-mark { display: none; }
  .gallery, .summary, .filters { position: static; }
  .filters {
    position: fixed; inset: 0 0 0 12%; z-index: 60; border-radius: var(--r-lg) 0 0 var(--r-lg); max-height: none;
    transform: translateX(105%); transition: transform var(--t-med) var(--ease);
  }
  .filters.open { transform: none; }
  .filters-head { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-img { width: 76px; height: 76px; }
  .cart-qty, .cart-price { grid-column: 2; justify-items: start; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .pcard { border-radius: var(--r); }
  .pcard-body { padding: 0.75rem 0.8rem 0.9rem; }
  .pcard-price strong { font-size: 1.1rem; }
  .tabs { top: 118px; }
  .info-band { padding: 1.6rem; border-radius: var(--r-lg); }
}
@media (max-width: 560px) {
  .wrap, .main { width: calc(100% - 2rem); }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-grid, .trust-grid { grid-template-columns: 1fr; }
  .progress { font-size: 0.7rem; padding: 0.8rem 0.4rem; }
  .price { font-size: 1.75rem; }
  .buy-row { flex-direction: column; }
  .qty { align-self: start; }
  .search .btn { display: none; }
  .header-row { gap: 0.4rem; }
  .brand-mark { width: 38px; height: 38px; }
  .header-actions { gap: 0.1rem; }
  .header-chip { padding: 0.25rem 0.4rem; gap: 0.3rem; }
  .header-chip strong { max-width: 96px; overflow: hidden; text-overflow: ellipsis; font-size: 0.8rem; }
  .header-cart { width: 42px; height: 42px; }
  .icon-btn.round { width: 40px; height: 40px; }
  .hero-search .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Admin --------------------------------------------------------------------- */
.admin-body { background: var(--soft); }
.admin-top { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(12, 28, 52, 0.05); }
.admin-top .wrap { display: flex; align-items: center; gap: 1.2rem; padding: 0.6rem 0; flex-wrap: wrap; }
.admin-top img { height: 40px; width: auto; }
.admin-nav { display: flex; gap: 0.2rem; flex-wrap: wrap; flex: 1; }
.admin-nav a { color: var(--muted); padding: 0.45rem 0.85rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.admin-nav a:hover { background: var(--soft); color: var(--ink); }
.admin-nav a.active { background: var(--blue-soft); color: var(--blue); }
.admin-user { font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.9rem; align-items: center; font-weight: 700; }
.admin-subnav {
  display: flex; gap: 0.2rem; width: min(1400px, calc(100% - 2rem)); margin: 1rem auto 0; padding: 0.3rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  overflow-x: auto; scrollbar-width: none; max-width: max-content;
}
.admin-subnav a { padding: 0.45rem 1rem; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.admin-subnav a:hover { color: var(--ink); background: var(--soft); }
.admin-subnav a.active { color: var(--blue); background: var(--blue-soft); }
.admin-main { width: min(1400px, calc(100% - 2rem)); margin: 1.4rem auto 3rem; display: grid; gap: 1.2rem; }
/* Las tablas anchas se desplazan dentro de su tarjeta en vez de ensanchar la página. */
.admin-main > * { min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.5rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.85rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; display: grid; gap: 0.2rem; box-shadow: var(--shadow-sm); }
.kpi strong { font-family: var(--font-display); font-size: 1.5rem; }
.kpi span { color: var(--muted); font-size: 0.85rem; }
.toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.admin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; align-items: start; }
.table-wrap { overflow-x: auto; }
.table input:not([type=checkbox]), .table select { padding: 0.35rem 0.5rem; font-size: 0.85rem; border-radius: 8px; }
.table tr.muted-row td { color: var(--muted); }
.ok-dot, .bad-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.35rem; }
.ok-dot { background: var(--ok); }
.bad-dot { background: var(--danger); }
.so-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: 0.6rem; }
.so-card pre { background: var(--soft); padding: 0.7rem; border-radius: var(--r-sm); font-size: 0.75rem; max-height: 220px; overflow: auto; margin: 0; white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; font-size: 0.9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
/* Celular: logo y salida en una línea, secciones en una fila deslizable, cifras de dos en dos. */
@media (max-width: 700px) {
  .admin-top .wrap { gap: 0.4rem 0.8rem; padding: 0.5rem 0; }
  .admin-top img { height: 32px; }
  .admin-brand { order: 1; }
  .admin-user { order: 2; margin-left: auto; gap: 0.7rem; }
  .admin-nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .admin-subnav { width: calc(100% - 2rem); margin-top: 0.8rem; }
  .admin-main { width: calc(100% - 1.5rem); margin-top: 1rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .kpi { padding: 0.8rem 0.9rem; }
  .kpi strong { font-size: 1.25rem; }
  .card { padding: 1.1rem 1rem; }
}
