/* ==========================================================================
   CASASILVIAWEB — Mayorista de fijaciones y aceros
   Hoja de estilos principal · estética industrial (rojo / negro / blanco)
   ========================================================================== */

:root {
  /* Marca */
  --red: #d21e28;
  --red-600: #b5161f;
  --red-700: #8e101a;
  --red-tint: #fbeaeb;

  /* Neutros */
  --black: #0e0e10;
  --ink-900: #141417;
  --ink-800: #1d1d21;
  --ink-700: #2a2a2e;
  --muted: #6b6b72;
  --muted-2: #9a9aa1;
  --line: #e6e6e9;
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --bg-dark: #101013;

  /* WhatsApp */
  --wa: #25d366;
  --wa-dark: #1ebe5d;
  --wa-ink: #075e54;

  /* Tipografía */
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Medidas */
  --container: 1320px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 14, 16, .06), 0 2px 8px rgba(14, 14, 16, .06);
  --shadow-md: 0 10px 30px rgba(14, 14, 16, .12);
  --shadow-lg: 0 24px 60px rgba(14, 14, 16, .22);
  --header-h: 76px;
}

/* ----------------------------------------------------------------- Iconos */
svg.line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------- Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p { color: var(--ink-800); }

/* --------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(28px, 8.5vw, 40px); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }
.section--dark p { color: #c9c9cf; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .92rem; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); display: inline-block; }
.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { text-wrap: balance; }
.section-head p { margin-top: 14px; font-size: 1.08rem; color: var(--muted); text-wrap: balance; }

/* --------------------------------------------------------------- Botones */
.btn {
  --btn-bg: var(--ink-900); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.02rem; line-height: 1; padding: 15px 26px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  will-change: transform;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--red { --btn-bg: var(--red); }
.btn--red:hover { background: var(--red-600); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #06351f; }
.btn--wa:hover { background: var(--wa-dark); }
.link-wa { color: var(--wa-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.link-wa:hover { color: var(--wa-dark); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 18px 34px; font-size: 1.12rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h); display: flex; align-items: center; gap: 18px; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 42px; height: 42px; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; }
.brand__name span { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .34em; color: var(--red); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: 1rem; color: var(--ink-800); transition: color .15s ease; }
.nav a:hover { color: var(--red); }
.header__cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--black); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(210,30,40,.42), transparent 60%),
    linear-gradient(180deg, rgba(10,10,12,.72) 0%, rgba(10,10,12,.86) 100%);
}
.hero__inner { padding-block: clamp(70px, 12vw, 138px) clamp(60px, 9vw, 110px); max-width: 820px; }
.hero .eyebrow { color: #ff7b82; }
.hero .eyebrow::before { background: var(--red); }
.hero h1 { margin: 16px 0 18px; color: #fff; }
.hero h1 .accent { color: var(--red); -webkit-text-stroke: 0; }
.hero__lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: #e7e7ea; max-width: 640px; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero__stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; color: #fff; line-height: 1; }
.hero__stat span { font-size: .92rem; color: #b8b8c0; letter-spacing: .02em; }

/* ----------------------------------------------------------- Cómo comprar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 26px 28px; box-shadow: var(--shadow-sm); }
.step__num { position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.step__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step__ic svg { width: 28px; height: 28px; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ----------------------------------------------------------- Trust strip */
.trust { background: var(--ink-900); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); }
.trust__item { background: var(--ink-900); display: flex; align-items: center; gap: 14px; padding: 22px 20px; }
.trust__icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: rgba(210,30,40,.16); color: #ff5560; display: flex; align-items: center; justify-content: center; }
.trust__icon svg { width: 24px; height: 24px; }
.trust__item b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; display: block; }
.trust__item span { font-size: .86rem; color: #a9a9b2; }

/* ------------------------------------------------------------ Categorías */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-900); color: #fff; min-height: 320px; display: flex;
  box-shadow: var(--shadow-sm); isolation: isolate;
}
.cat__img { position: absolute; inset: 0; z-index: -2; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,14,16,.25) 0%, rgba(14,14,16,.55) 45%, rgba(14,14,16,.92) 100%); }
.cat:hover .cat__img img { transform: scale(1.06); }
.cat__body { margin-top: auto; padding: 26px; width: 100%; }
.cat__kicker { font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; font-size: .8rem; color: #ff7b82; text-transform: uppercase; }
.cat h3 { margin: 6px 0 12px; color: #fff; font-size: 1.7rem; }
.cat__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat__tags li { font-size: .82rem; font-weight: 600; color: #eaeaee; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(2px); }
.cat__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: #fff; }
.cat__link svg { width: 18px; height: 18px; color: var(--wa); transition: transform .15s ease; }
.cat:hover .cat__link svg { transform: translateX(4px); }
/* Toda la tarjeta es clickeable: el link se estira sobre toda la .cat */
.cat { cursor: pointer; }
.cat__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cat__corner { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 64px 64px 0; border-color: transparent var(--red) transparent transparent; z-index: 1; }

/* --------------------------------------------------------------- Calidad */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > *, .loc > *, .price-cta__inner > * { min-width: 0; }
.feature > div { min-width: 0; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media .badge {
  position: absolute; left: 18px; bottom: 18px; background: #fff; color: var(--ink-900);
  border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.split__media .badge div b { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; color: var(--red); }
.split__media .badge div span { display: block; margin-top: 3px; font-size: .82rem; color: var(--muted); }
.feature-list { display: grid; gap: 18px; margin-top: 26px; }
.feature { display: flex; gap: 16px; }
.feature__ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; }
.feature__ic svg { width: 24px; height: 24px; }
.feature b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; font-size: 1.15rem; }
.feature p { font-size: .98rem; color: var(--muted); margin-top: 2px; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cert { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: .82rem; color: var(--ink-800); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------- CTA Precios */
.price-cta { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.price-cta__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, var(--red-700), var(--red)); }
.price-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 16px); }
.price-cta__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.price-cta h2 { color: #fff; }
.price-cta p { color: #ffe3e4; margin-top: 12px; font-size: 1.1rem; max-width: 560px; }
.price-cta__actions { display: flex; flex-direction: column; gap: 12px; }
.price-cta .btn--wa { box-shadow: var(--shadow-md); }
.price-cta__note { font-size: .9rem; color: #ffd2d4; text-align: center; }

/* -------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 22px; box-shadow: var(--shadow-sm); transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--red); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .01em; font-size: 1.18rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq summary .chev svg { width: 16px; height: 16px; }
.faq__a { padding: 0 0 22px; color: var(--muted); }

/* -------------------------------------------------------------- Ubicación */
.loc { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.loc__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.loc__list { display: grid; gap: 20px; margin: 24px 0 28px; }
.loc__row { display: flex; gap: 14px; }
.loc__row .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ink-900); color: #fff; display: flex; align-items: center; justify-content: center; }
.loc__row .ic svg { width: 22px; height: 22px; }
.loc__row b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.02rem; display: block; }
.loc__row span, .loc__row a { color: var(--muted); }
.loc__row a:hover { color: var(--red); }
.loc__map { border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: #e9edf0; }
.loc__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.15); }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--black); color: #c9c9cf; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand__name b, .site-footer .brand__name { color: #fff; }
.site-footer p { color: #b4b4bd; margin-top: 16px; max-width: 340px; font-size: .98rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .08em; margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: #b9b9c0; font-size: .98rem; }
.footer__links a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: background-color .15s ease, transform .15s ease; }
.socials a:hover { background: var(--red); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: #9a9aa1; }

/* ---------------------------------------------- WhatsApp flotante + popup */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

.wa-pop {
  width: min(330px, calc(100vw - 44px));
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform-origin: bottom right;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-pop[hidden] { display: none; }
.wa-pop.is-hidden { opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none; }
.wa-pop__head { background: var(--wa-ink); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; position: relative; }
.wa-pop__avatar { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.wa-pop__avatar img { width: 30px; height: 30px; object-fit: contain; }
.wa-pop__head b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; font-size: 1.12rem; line-height: 1.1; }
.wa-pop__head div span { font-size: .8rem; color: #cdeede; display: flex; align-items: center; gap: 6px; }
.wa-pop__head div span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #54f08a; box-shadow: 0 0 0 3px rgba(84,240,138,.25); }
.wa-pop__close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; color: #cdeede; display: flex; align-items: center; justify-content: center; }
.wa-pop__close:hover { background: rgba(255,255,255,.15); color: #fff; }
.wa-pop__close svg { width: 16px; height: 16px; }
.wa-pop__body { padding: 18px; background:
    linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
    repeating-linear-gradient(135deg, #e9e9ec 0 1px, transparent 1px 22px) var(--bg-soft); }
.wa-pop__msg { background: #fff; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: .95rem; color: var(--ink-800); box-shadow: var(--shadow-sm); }
.wa-pop__msg b { color: var(--ink-900); }
.wa-pop__time { display: block; text-align: right; font-size: .68rem; color: var(--muted-2); margin-top: 4px; }
.wa-pop .btn { margin-top: 14px; }

.wa-btn {
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(37,211,102,.45);
  transition: transform .18s ease, box-shadow .18s ease; position: relative;
}
.wa-btn:hover { transform: scale(1.06); }
.wa-btn svg { width: 34px; height: 34px; }
.wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.4s infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-btn::after { animation: none; } }
.wa-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ------------------------------------------------------------ Animaciones */
/* Solo se ocultan si hay JS (sin JS, el contenido se ve igual) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* =============================================== Páginas internas / nav++ */
/* Menú desplegable de Productos */
.nav__dd { position: relative; }
.nav__dd-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav__dd-toggle svg { width: 15px; height: 15px; transition: transform .2s ease; }
.nav__dd:hover .nav__dd-toggle svg, .nav__dd:focus-within .nav__dd-toggle svg { transform: rotate(180deg); }
.nav__dd::before { content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 16px; }
.nav__dd-menu { position: absolute; top: calc(100% + 12px); left: 0; min-width: 264px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 8px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; z-index: 120; }
.nav__dd:hover .nav__dd-menu, .nav__dd:focus-within .nav__dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dd-menu a { padding: 11px 14px; border-radius: 9px; font-size: .98rem; white-space: nowrap; color: var(--ink-800); }
.nav__dd-menu a:hover { background: var(--bg-soft); color: var(--red); }

/* Breadcrumb */
.crumb { margin-bottom: 22px; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }
.crumb li { display: flex; align-items: center; gap: 8px; }
.crumb li:not(:last-child)::after { content: "›"; color: var(--muted-2); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--red); }
.crumb li[aria-current] { color: var(--ink-900); font-weight: 600; }

/* Botón ghost sobre fondo claro */
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--ink-900); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 2px var(--ink-900); background: transparent; }

/* Intro de categoría */
.cat-intro { align-items: center; }
.cat-intro h1, .section-head h1 { font-size: clamp(2rem, 3.7vw, 3.2rem); }
.cat-intro h1 { margin-top: 8px; }
.lead-big { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--muted); margin-top: 14px; }
.cat-intro__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Grilla de subproductos */
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sub-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm); }
.sub-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.sub-card p { color: var(--muted); font-size: .95rem; }

/* Caja de medidas */
.measures-box { background: var(--ink-900); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 34px); height: 100%; }
.measures-box__label { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: #ff7b82; font-size: .95rem; margin-bottom: 12px; }
.measures-box__label svg { width: 20px; height: 20px; }
.measures-box p { color: #d4d4d8; margin-bottom: 20px; }

/* Otras líneas / relacionadas */
.feature-list--2col { grid-template-columns: repeat(2, 1fr); display: grid; gap: 18px; }
.more-lines { margin-top: 24px; color: var(--muted); }
.more-lines a, .related a { color: var(--ink-800); font-weight: 600; }
.more-lines a:hover, .related a:hover { color: var(--red); }
.related { text-align: center; font-size: 1.05rem; line-height: 2; }
.center-cta { text-align: center; margin-top: 32px; }

/* Galería "Nuestro depósito" */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.05); }
/* Galería por categoría: se adapta a 2, 3 o 4 fotos sin huecos */
.gallery.gallery--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ----------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .price-cta__inner { grid-template-columns: 1fr; }
  .loc { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .sub-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list--2col { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
/* Header: menú a hamburguesa en tablets/celulares */
@media (max-width: 960px) {
  .nav, .header__cta .btn span.cta-text { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 8px 0;
  }
  .nav.is-open a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__dd { width: 100%; }
  .nav.is-open .nav__dd-toggle { justify-content: space-between; }
  .nav.is-open .nav__dd::before { display: none; }
  .nav.is-open .nav__dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 0; background: var(--bg-soft); }
  .nav.is-open .nav__dd-menu a { padding-left: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__inner { padding-block: clamp(82px, 14vw, 120px) clamp(74px, 11vw, 96px); }
  .hero h1 { font-size: clamp(2rem, 7.5vw, 2.6rem); line-height: 1.12; margin: 18px 0 22px; }
  .hero .eyebrow { font-size: .82rem; letter-spacing: .12em; }
  .hero__lead { font-size: 1.06rem; }
  .hero__actions { margin-top: 32px; gap: 12px; }
  .hero__stats { margin-top: 42px; gap: 24px 34px; }
  .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 6.4vw, 1.85rem); }
  /* nombres de categoría largos (p. ej. AUTOPERFORANTES) no deben cortarse */
  .cat-intro h1, .section-head h1 { font-size: clamp(1.4rem, 5.5vw, 1.7rem); }
  .trust__grid { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr; }
  .site-header__inner { gap: 12px; }
  .section-head p { font-size: 1rem; }
}
@media (max-width: 420px) {
  .site-header__inner { gap: 8px; }
  .header__cta { gap: 8px; }
  .header__cta .btn { padding: 11px 13px; }
  .nav-toggle { width: 42px; height: 42px; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__name b { font-size: 1.12rem; }
  .brand__name span { letter-spacing: .22em; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-btn { width: 56px; height: 56px; }
}

/* ==========================================================================
   Carrito de pedidos (header, drawer y catálogo con precios)
   ========================================================================== */

/* Header: link destacado + botón del carrito */
.nav__pedido { color: var(--red) !important; }
.nav__pedido:hover { color: var(--red-700) !important; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-900);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.cart-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.cart-btn svg { width: 23px; height: 23px; }
.cart-btn__badge {
  position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; line-height: 21px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* Drawer lateral */
.cart-lock { overflow: hidden; }
.cart-layer { position: fixed; inset: 0; z-index: 300; }
.cart-layer__backdrop {
  position: absolute; inset: 0; background: rgba(14,14,16,.5);
  opacity: 0; transition: opacity .25s ease;
}
.cart-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.22,.8,.3,1);
  box-shadow: -18px 0 50px rgba(0,0,0,.18);
}
.cart-layer.is-open .cart-layer__backdrop { opacity: 1; }
.cart-layer.is-open .cart-drawer { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.cart-drawer__ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--red-tint); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.cart-drawer__ic svg { width: 22px; height: 22px; }
.cart-drawer__head b { display: block; font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.cart-drawer__head span { color: var(--muted); font-size: .92rem; }
.cart-drawer__close { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: #fff; }
.cart-drawer__close:hover { border-color: var(--red); color: var(--red); }
.cart-drawer__close svg { width: 20px; height: 20px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { text-align: center; padding: 48px 10px; color: var(--muted); }
.cart-empty[hidden] { display: none; }
.cart-empty svg { width: 54px; height: 54px; color: var(--muted-2); margin-bottom: 14px; }
.cart-empty p { margin-bottom: 10px; }
.cart-empty p b { color: var(--ink-900); font-size: 1.05rem; }
.cart-empty .btn { margin-top: 14px; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item__info b { display: block; font-size: .98rem; line-height: 1.3; }
.cart-item__meta { display: block; color: var(--muted); font-size: .85rem; margin-top: 3px; }
.cart-item__price { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.cart-item__side { display: flex; align-items: center; gap: 12px; }
.cart-item__sub { margin-left: auto; font-family: var(--font-head); font-size: 1.12rem; white-space: nowrap; }
.cart-item__del { width: 36px; height: 36px; border-radius: 9px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cart-item__del:hover { color: var(--red); background: var(--red-tint); }
.cart-item__del svg { width: 18px; height: 18px; }
.cart-drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: #fff; }
.cart-minimo {
  background: var(--red-tint); color: var(--red-700); border-radius: 10px;
  padding: 10px 14px; font-size: .9rem; margin-bottom: 12px;
}
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cart-total span { color: var(--muted); font-weight: 600; }
.cart-total b { font-family: var(--font-head); font-size: 1.75rem; letter-spacing: .01em; }
.cart-disclaimer { color: var(--muted); font-size: .82rem; margin-bottom: 14px; line-height: 1.45; }
.cart-disclaimer.center { text-align: center; margin-top: 26px; }
.cart-drawer__more { display: block; text-align: center; margin-top: 14px; font-weight: 700; color: var(--ink-800); text-decoration: underline; text-underline-offset: 3px; }
.cart-drawer__more:hover { color: var(--red); }

/* Stepper de cantidad */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty__btn { width: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-800); }
.qty__btn:hover { background: var(--bg-soft); color: var(--red); }
.qty__btn svg { width: 15px; height: 15px; }
.qty__num {
  width: 52px; text-align: center; border: 0; outline: 0; font: inherit; font-weight: 700;
  -moz-appearance: textfield; appearance: textfield; background: transparent; padding: 8px 0;
}
.qty__num::-webkit-outer-spin-button, .qty__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Página pedido.html: hero y toolbar */
.pedido-hero .section-head { max-width: 860px; }
.pedido-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; padding: 0; }
.pedido-meta li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.pedido-meta svg { width: 18px; height: 18px; color: var(--red); }
.pedido-catalogo { padding-top: clamp(26px, 4vw, 40px); }
.pedido-toolbar {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 90;
  display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow-md);
}
.pedido-search { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border-radius: 999px; padding: 0 18px; border: 1px solid transparent; }
.pedido-search:focus-within { border-color: var(--red); background: #fff; }
.pedido-search svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.pedido-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; padding: 13px 0; min-width: 0; }
.pedido-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: .9rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-800); background: #fff; transition: all .15s ease; white-space: nowrap;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
#pedido-grupo {
  font: inherit; font-weight: 600; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 14px; background: #fff; color: var(--ink-800); max-width: 260px; outline-color: var(--red);
}
.pedido-result { color: var(--muted); font-weight: 600; margin: 16px 4px 0; min-height: 1.2em; }

/* Página pedido.html: catálogo en tarjetas */
.prod-list { margin-top: 18px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.prod {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.prod:hover { border-color: var(--muted-2); box-shadow: var(--shadow-md); }
.prod--sinstock { opacity: .62; }
.prod__main { flex: 1; }
.prod__nombre { font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.32; margin: 0; }
.prod__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: .85rem; }
.prod__cod { font-variant-numeric: tabular-nums; }
.prod__stock { color: var(--red-700); font-weight: 700; }
.prod__encart { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--wa-ink); font-weight: 700; font-size: .88rem; }
.prod__encart svg { width: 16px; height: 16px; }
.prod__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 14px; }
.prod__precio { font-family: var(--font-head); font-size: 1.42rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prod__consultar { font-weight: 700; color: var(--wa-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.prod__acciones { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn--add { --btn-bg: var(--red); padding: 12px 18px; font-size: .92rem; }
.btn--add:hover { background: var(--red-600); }
.btn--add.is-added { --btn-bg: var(--wa); color: #06351f; }
.prod-vacio { text-align: center; color: var(--muted); padding: 54px 16px; border: 1px dashed var(--line); border-radius: 16px; }
.prod-vacio b { color: var(--ink-900); }
.prod-vacio a { color: var(--wa-ink); font-weight: 700; text-decoration: underline; }
.pedido-mas-wrap { text-align: center; margin-top: 26px; }

/* Pills de presentación (1 L / 4 L / 10 L / 20 L) */
.prod__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill {
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; letter-spacing: .02em;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-800); white-space: nowrap; transition: all .12s ease;
}
.pill:hover { border-color: var(--red); color: var(--red); }
.pill.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* Separadores por categoría y secciones por línea */
.cat-divider { display: flex; align-items: center; gap: 18px; margin: clamp(34px, 5vw, 52px) 0 6px; }
.cat-divider:first-child { margin-top: 10px; }
.cat-divider h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); white-space: nowrap; }
.cat-divider span { flex: 1; height: 3px; background: linear-gradient(90deg, var(--red), transparent); border-radius: 3px; }
.grupo { margin-top: 26px; }
.grupo__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.grupo__ic {
  width: 56px; height: 56px; border-radius: 14px; background: var(--red-tint); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.grupo__ic svg { width: 30px; height: 30px; }
.grupo__head h3 { font-size: 1.28rem; line-height: 1.1; }
.grupo__head span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.grupo__mas {
  display: block; width: 100%; margin-top: 12px; padding: 13px;
  border: 1px dashed var(--muted-2); border-radius: 12px; background: transparent;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  font-size: .95rem; color: var(--ink-800); transition: all .15s ease;
}
.grupo__mas:hover { border-color: var(--red); color: var(--red); background: var(--red-tint); }

/* Los más pedidos */
.destacados { margin: 26px 0 8px; }
.destacados__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.destacados__star {
  width: 50px; height: 50px; border-radius: 14px; background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-shadow: var(--shadow-md);
}
.destacados__star svg { width: 26px; height: 26px; }
.destacados__head h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.1; }
.destacados__head p { color: var(--muted); font-size: .95rem; }
.destacados__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.prod--star { border-color: #f3d9db; box-shadow: 0 6px 24px rgba(210,30,40,.07); padding: 0 0 18px; overflow: hidden; }
.prod--star .prod__main, .prod--star .prod__buy { padding-inline: 18px; }
.prod__hero {
  position: relative; height: 118px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(320px 150px at 85% -20%, rgba(210,30,40,.35), transparent 70%),
    linear-gradient(135deg, var(--ink-900), var(--ink-700));
}
.prod__hero > svg { width: 56px; height: 56px; color: #ff8a90; stroke-width: 1.6; }
.prod__badge {
  position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; border-radius: 999px; padding: 6px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
}
.prod__badge svg { width: 13px; height: 13px; }

/* Barra inferior con total en tiempo real (pedido.html) */
.pedido-sticky {
  position: fixed; left: 16px; right: 92px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink-900); color: #fff; border-radius: 16px; padding: 10px 10px 10px 20px;
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.pedido-sticky__info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pedido-sticky__info span { color: rgba(255,255,255,.65); font-size: .82rem; font-weight: 600; }
.pedido-sticky__info b { font-family: var(--font-head); font-size: 1.3rem; white-space: nowrap; }
.pedido-sticky .btn { padding: 13px 22px; font-size: .98rem; flex: none; }
@media (min-width: 761px) {
  .pedido-sticky { left: auto; right: 104px; max-width: 420px; min-width: 360px; bottom: 22px; }
}

/* Responsive */
@media (max-width: 980px) {
  .pedido-toolbar { grid-template-columns: 1fr; }
  #pedido-grupo { max-width: none; }
}
@media (max-width: 760px) {
  .prod-grid { grid-template-columns: 1fr; }
  .destacados__row { grid-template-columns: 1fr; }
  .btn--add span { display: none; }
  .btn--add { padding: 12px 16px; }
  .cart-item__side { flex-wrap: wrap; }
  .pedido-sticky { right: 88px; }
}
@media (max-width: 420px) {
  .cart-btn { width: 42px; height: 42px; }
  .cart-btn svg { width: 20px; height: 20px; }
  .cart-drawer { width: 100vw; }
  .pedido-sticky { left: 10px; right: 82px; bottom: 12px; padding-left: 14px; }
  .pedido-sticky .btn svg { display: none; }
}

/* Fixes: [hidden] debe ganarle al display de estas clases */
.pedido-sticky[hidden], .prod__encart[hidden], #pedido-mas[hidden],
.cart-btn__badge[hidden], .cart-minimo[hidden], .cart-drawer__foot[hidden] { display: none !important; }

/* Header: que los links del nav no se corten en dos líneas */
.nav a { white-space: nowrap; }
@media (max-width: 1200px) { .nav { gap: 18px; } .header__cta { gap: 10px; } }

/* Marca completa en pantallas chicas (ahora conviven WA + carrito + menú) */
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand__name b { font-size: .98rem; }
  .brand__name span { letter-spacing: .16em; font-size: .62rem; }
}

/* Toolbar del pedido: evitar desborde de chips en el grid */
.pedido-toolbar > * { min-width: 0; }

/* Header compacto en pantallas chicas: marca completa + WA + carrito + menú */
@media (max-width: 420px) {
  .header__cta { gap: 6px; }
  .header__cta .btn { padding: 11px 11px; }
  .cart-btn, .nav-toggle { width: 40px; height: 40px; }
  .brand { gap: 6px; }
  .brand__logo { width: 34px; height: 34px; }
  .brand__name b { font-size: .9rem; letter-spacing: 0; }
  .brand__name span { letter-spacing: .14em; font-size: .58rem; }
}

/* Páginas de gracias (conversiones) */
.gracias__inner { max-width: 760px; text-align: center; }
.gracias { padding-top: clamp(56px, 8vw, 90px); }
.gracias__ic {
  width: 84px; height: 84px; border-radius: 50%; background: var(--wa); color: #06351f;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px;
  box-shadow: 0 14px 40px rgba(37,211,102,.35);
}
.gracias__ic svg { width: 44px; height: 44px; }
.gracias .eyebrow::before { display: none; }
.gracias h1 { margin: 10px 0 16px; }
.gracias .lead-big { color: var(--muted); }
.gracias__acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.gracias-resumen {
  margin: 36px auto 0; text-align: left; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.gracias-resumen h2 { font-size: 1.25rem; margin-bottom: 12px; }
.gracias-resumen table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.gracias-resumen td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.gracias-resumen td:last-child { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.gracias-resumen small { color: var(--muted); }
.gracias-resumen tfoot td { border-bottom: 0; font-family: var(--font-head); font-size: 1.25rem; padding-top: 14px; }
.gracias-resumen .cart-disclaimer { margin: 12px 0 0; }
.gracias__vaciar {
  margin-top: 14px; font-weight: 700; color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px; background: none; border: 0; cursor: pointer;
}
.gracias__vaciar:hover { color: var(--red); }
.gracias__vaciar:disabled { cursor: default; color: var(--wa-ink); text-decoration: none; }
.gracias__pasos { margin-top: clamp(44px, 6vw, 64px); text-align: left; }
.gracias-resumen[hidden] { display: none !important; }

/* Gracias: título más contenido */
.gracias h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }

/* Toolbar en mobile: chips en una fila deslizable y sin sticky (tapaba la vista) */
@media (max-width: 980px) {
  .pedido-toolbar { position: static; }
  .pedido-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .pedido-chips::-webkit-scrollbar { display: none; }
}

/* Chips de marca / bulto / presentación en las tarjetas del catálogo */
.prod__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tagchip {
  display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  padding: 5px 10px; border-radius: 7px; white-space: nowrap;
}
.tagchip--pack { background: var(--ink-900); color: #fff; }
.tagchip--pres { background: #fff7e6; color: #8a5a00; border: 1px solid #f0dcae; }
.tagchip--brand { background: #fff; border: 1.5px solid var(--red); color: var(--red); }
.tagchip[hidden] { display: none !important; }
.tagchip--pack { text-transform: none; letter-spacing: .03em; }

/* Catálogo estático (SEO / sin JS) dentro de pedido.html */
.catalogo-estatico section { margin-bottom: 26px; }
.catalogo-estatico h2 { font-size: 1.4rem; margin-bottom: 10px; }
.catalogo-estatico h2 a:hover { color: var(--red); }
.catalogo-estatico ul { columns: 2; gap: 28px; }
.catalogo-estatico li { margin-bottom: 8px; break-inside: avoid; color: var(--muted); }
.catalogo-estatico li a { font-weight: 700; color: var(--ink-800); text-decoration: underline; text-underline-offset: 3px; }
.catalogo-estatico li a:hover { color: var(--red); }
@media (max-width: 700px) { .catalogo-estatico ul { columns: 1; } }

/* Tablas de precios por línea */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ptable { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
.ptable th {
  text-align: left; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  font-size: .88rem; background: var(--ink-900); color: #fff; padding: 12px 16px; white-space: nowrap;
}
.ptable td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.ptable tbody tr:nth-child(even) { background: var(--bg-soft); }
.ptable tbody tr:hover { background: var(--red-tint); }
.ptable .cod { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.ptable .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable .sinstock { color: var(--red-700); font-style: normal; font-size: .85em; }

/* Grid de links a listas de precios por línea */
.lineas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.linea-link {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.linea-link:hover { border-color: var(--red); box-shadow: var(--shadow-md); }
.linea-link b { font-size: .98rem; }
.linea-link span { color: var(--muted); font-size: .85rem; }
