/* =====================================================================
   Importadora Fracaran — Estilos del sitio público
   Identidad: docs/04-identidad-visual.md
   ===================================================================== */

/* ---------- Variables de diseño ---------- */
:root {
  --blanco: #FFFFFF;
  --azul: #1B3E8F;
  --noche: #0E1E3D;
  --tinta: #26344F;
  --acero: #56627A;
  --zinc: #DCE2EA;
  --zinc-claro: #F3F5F8;
  --niebla: #E9EEF7;
  --amarillo: #F2B233;
  --amarillo-hover: #E2A21F;
  --ok: #1F7A45;
  --agotado: #B42318;
  --wsp: #157A43;
  --wsp-hover: #0F6536;
  --wsp-real: #25D366;
  --wsp-real-hover: #1EBE5A;

  --f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-semi: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --r: 4px;
  --r-sm: 2px;
  --header-h: 76px;
  --sombra-flota: 0 8px 22px rgba(14, 30, 61, .2);
  --ruta: repeating-linear-gradient(90deg, var(--amarillo) 0 28px, transparent 28px 46px);
  --ruta-zinc: repeating-linear-gradient(90deg, var(--zinc) 0 18px, transparent 18px 30px);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--blanco); color: var(--noche); font: 400 17px/1.55 var(--f-body); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5 { margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--azul); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Tipografía ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 13px/1.3 var(--f-semi); letter-spacing: .14em; text-transform: uppercase; color: var(--acero); }
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--amarillo); transform: rotate(45deg); }
.title-xl { font: 800 clamp(40px, 5.6vw, 68px)/.98 var(--f-display); letter-spacing: -.005em; }
.title-lg { font: 700 clamp(30px, 4vw, 44px)/1.04 var(--f-display); }
.title-md { font: 700 clamp(24px, 2.6vw, 30px)/1.1 var(--f-display); }
.lede { font-size: 19px; line-height: 1.55; color: var(--tinta); max-width: 60ch; }
.muted { color: var(--acero); }
.code { font: 500 .8em var(--f-mono); letter-spacing: .01em; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 2px solid transparent; font: 600 16px/1 var(--f-semi); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn .ico { width: 20px; height: 20px; }
.btn--primary { background: var(--azul); color: #fff; }
.btn--primary:hover { background: var(--noche); }
.btn--outline { background: #fff; color: var(--azul); border-color: var(--azul); }
.btn--outline:hover { background: var(--niebla); }
.btn--ghost { background: transparent; color: var(--noche); border-color: var(--zinc); }
.btn--ghost:hover { border-color: var(--noche); }
.btn--wsp { background: var(--wsp); color: #fff; }
.btn--wsp:hover { background: var(--wsp-hover); }
.btn--add { background: var(--amarillo); color: var(--noche); }
.btn--add:hover { background: var(--amarillo-hover); }
.btn--lg { min-height: 58px; font-size: 17px; padding: 0 28px; }
.btn--block { width: 100%; }
.btn:disabled { background: var(--zinc); color: var(--acero); border-color: transparent; cursor: not-allowed; }

/* ---------- Selector de cantidad ---------- */
.stepper { display: inline-grid; grid-template-columns: 48px minmax(52px, 1fr) 48px; align-items: stretch; height: 48px; border: 2px solid var(--noche); border-radius: var(--r); overflow: hidden; background: #fff; }
.stepper button { border: 0; background: #fff; font: 600 24px/1 var(--f-body); color: var(--noche); cursor: pointer; }
.stepper button:hover { background: var(--niebla); }
.stepper input { width: 100%; min-width: 0; border: 0; border-inline: 1px solid var(--zinc); text-align: center; font: 700 18px var(--f-body); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--niebla); }

/* ---------- Etiquetas ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--f-semi); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.badge--new { background: var(--azul); color: #fff; }
.badge--out { background: #fff; color: var(--agotado); box-shadow: inset 0 0 0 1.5px var(--agotado); }
.badge--ok { color: var(--ok); padding-inline: 0; }
.badge--ok::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.badge--ask { background: var(--niebla); color: var(--azul); }
.badge--oferta { background: var(--agotado); color: #fff; }
.code-label { display: inline-flex; align-items: stretch; font: 500 14px/1 var(--f-mono); border: 1.5px solid var(--noche); border-radius: var(--r-sm); letter-spacing: .02em; }
.code-label span { padding: 8px 10px; }
.code-label span + span { border-left: 1.5px solid var(--noche); color: var(--acero); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field label { font: 600 15px var(--f-semi); letter-spacing: .02em; }
.field label small { font-weight: 500; color: var(--acero); letter-spacing: 0; }
.input, .select, .textarea { width: 100%; min-height: 52px; border: 1.5px solid var(--noche); border-radius: var(--r); background: #fff; padding: 0 14px; font: 400 17px var(--f-body); color: var(--noche); }
.textarea { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; min-height: 46px; font-size: 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1E3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center/18px no-repeat; cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: var(--acero); }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--azul); outline-offset: 1px; }
.hint { font-size: 14px; color: var(--acero); }
.check { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--f-semi); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--azul); margin: 0; }

.search { display: flex; align-items: center; gap: 10px; height: 52px; border: 2px solid var(--noche); border-radius: var(--r); padding: 0 6px 0 14px; background: #fff; }
.search:focus-within { outline: 3px solid var(--azul); outline-offset: 2px; }
.search input { border: 0; font: 400 17px var(--f-body); flex: 1; min-width: 0; outline: none; background: transparent; }
.search input::placeholder { color: var(--acero); }
.search .ico { color: var(--acero); }
.search--lg { height: 62px; }
.search--lg .btn { min-height: 48px; }

/* ---------- Franja superior ---------- */
.infobar { background: var(--noche); color: #fff; font: 500 14px/1.3 var(--f-semi); letter-spacing: .02em; }
.infobar .container { display: flex; align-items: center; gap: 8px 28px; min-height: 38px; flex-wrap: wrap; }
.infobar span { display: inline-flex; align-items: center; gap: 8px; }
.infobar .ico { width: 16px; height: 16px; color: var(--amarillo); }
.infobar a { color: #fff; text-decoration: none; font-weight: 600; }
.infobar a:hover { text-decoration: underline; }
.infobar .push { margin-left: auto; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--zinc); }
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: block; flex: none; color: var(--azul); --mk-knock: #fff; --mk-sub: var(--acero); }
.logo svg { height: 46px; width: auto; }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; gap: 4px; font: 600 16px var(--f-semi); letter-spacing: .03em; padding: 10px 12px; color: var(--noche); text-decoration: none; border-radius: var(--r); }
.nav a:hover { background: var(--niebla); }
.nav a[aria-current="page"] { color: var(--azul); box-shadow: inset 0 -3px 0 var(--azul); border-radius: 0; }
.nav .ico { width: 16px; height: 16px; }
.header__search { flex: 1; max-width: 380px; margin-left: auto; }
.header__search .search { height: 46px; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.order-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 2px solid var(--noche); border-radius: var(--r); background: #fff; color: var(--noche); font: 600 16px var(--f-semi); letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.order-btn:hover { background: var(--niebla); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--amarillo); color: var(--noche); font: 700 14px/1 var(--f-semi); font-variant-numeric: tabular-nums; }
.icon-btn { display: none; place-items: center; width: 46px; height: 46px; border: 0; border-radius: var(--r); background: transparent; color: var(--noche); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--niebla); }
.icon-btn .ico { width: 26px; height: 26px; }
.icon-btn .count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; font-size: 12px; padding: 0 5px; }

/* Menú móvil */
.mobile-menu { position: fixed; inset: 0; z-index: 80; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 16px; border-bottom: 1px solid var(--zinc); }
.mobile-menu__top .logo svg { height: 38px; }
.mobile-menu nav { display: grid; padding: 12px 16px; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; border-bottom: 1px solid var(--zinc); font: 700 24px/1.1 var(--f-display); color: var(--noche); text-decoration: none; }
.mobile-menu nav a .ico { color: var(--azul); }
.mobile-menu__foot { margin-top: auto; padding: 20px 16px 28px; display: grid; gap: 12px; }

/* ---------- Secciones ---------- */
.section { padding-block: 80px; }
.section--tint { background: var(--zinc-claro); }
.section--ruled { background: var(--ruta-zinc) top / 100% 2px no-repeat; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.section__head > div { display: grid; gap: 12px; }

/* ---------- Portada (hero) ---------- */
.hero { padding-block: 56px 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero__copy { display: grid; gap: 20px; }
.hero__search { max-width: 560px; margin-top: 8px; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--acero); }
.hero__quick a { font-weight: 600; text-decoration: none; }
.hero__quick a:hover { text-decoration: underline; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { border-radius: var(--r); overflow: hidden; background: var(--niebla); }
.hero__art img { display: block; width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--noche); }
.fact { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.35; }
.fact .ico { color: var(--azul); width: 26px; height: 26px; }
.fact b { display: block; font: 700 17px/1.2 var(--f-semi); }

/* ---------- Índice de categorías ---------- */
.cat-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--noche); border-left: 1px solid var(--zinc); }
.cat-tile { display: flex; flex-direction: column; gap: 8px; min-height: 164px; padding: 22px 20px 20px; border-right: 1px solid var(--zinc); border-bottom: 1px solid var(--zinc); color: var(--noche); text-decoration: none; transition: background .15s; }
.cat-tile:hover { background: var(--niebla); }
.cat-tile h3 { font: 700 26px/1.05 var(--f-display); }
.cat-tile .count-txt { font: 600 13px var(--f-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--acero); }
.cat-tile p { font-size: 14.5px; color: var(--tinta); }
.cat-tile .ico { margin-top: auto; align-self: flex-end; color: var(--azul); }

/* ---------- Tarjeta de producto ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { position: relative; border: 1px solid var(--zinc); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.pcard__img { aspect-ratio: 1 / 1; background: #fff; position: relative; border-bottom: 1px solid var(--zinc); display: grid; place-items: center; }
.pcard__img svg, .pcard__img img { width: 80%; height: 80%; object-fit: contain; }
.pcard__img .badge { position: absolute; top: 10px; left: 10px; }
.pcard__img .pcard__badge-oferta { left: auto; right: 10px; }
.pcard__img--pending { background: var(--zinc-claro); color: var(--zinc); --mk-knock: var(--zinc-claro); }
.pcard__img--pending svg { width: 32%; height: 32%; }
.pcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard__brand { font: 600 11.5px var(--f-semi); letter-spacing: .12em; text-transform: uppercase; color: var(--acero); }
.pcard__name { font: 600 17px/1.25 var(--f-body); }
.pcard__name a { color: inherit; text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0 0 64px 0; }
.pcard__name a:hover { text-decoration: underline; }
.pcard__meta { font: 500 12.5px var(--f-mono); color: var(--acero); }
.pcard__despacho { display: inline-flex; align-items: center; gap: 5px; font: 700 11.5px/1.2 var(--f-semi); letter-spacing: .02em; }
.pcard__despacho--ok { color: var(--ok); }
.pcard__despacho--ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.pcard__despacho--consulta { color: #9A6A00; }
.pcard__price { font: 700 22px/1.1 var(--f-body); font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 8px; }
.pcard__price small { font: 500 12px var(--f-semi); color: var(--acero); letter-spacing: .04em; margin-left: 4px; }
.pcard__price--ask { font: 700 15px/1.3 var(--f-semi); color: var(--azul); letter-spacing: .06em; text-transform: uppercase; }
.pcard__price--out { color: var(--acero); }
.pcard__action { position: relative; z-index: 1; margin-top: 10px; display: grid; }
.pcard__action .btn { width: 100%; padding: 0 10px; }
.pcard__action .stepper { width: 100%; }

/* ---------- Beneficios y público ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.benefit { display: grid; gap: 10px; align-content: start; }
.benefit .ico { width: 32px; height: 32px; color: var(--azul); }
.benefit h3 { font: 700 22px/1.1 var(--f-display); }
.benefit p { font-size: 15.5px; color: var(--tinta); }
.audience { margin-top: 56px; padding: 26px 28px; border: 2px solid var(--noche); border-radius: var(--r); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.audience p { font: 600 13px var(--f-semi); letter-spacing: .12em; text-transform: uppercase; color: var(--acero); }
.audience ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--f-display); }
.audience li { display: flex; align-items: center; gap: 22px; }
.audience li + li::before { content: ""; width: 7px; height: 7px; background: var(--amarillo); transform: rotate(45deg); }
.audience li.soft { color: var(--acero); }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about__text { display: grid; gap: 18px; }
.about__text p { max-width: 58ch; color: var(--tinta); }
.about__years { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--zinc); }
.about__years b { font: 800 64px/1 var(--f-display); color: var(--azul); }
.about__years span { font: 600 16px/1.3 var(--f-semi); max-width: 22ch; }
.about__foto { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: var(--r); background: var(--zinc-claro); }
.photo-slot { aspect-ratio: 4 / 3; border: 1.5px dashed #AAB6C8; border-radius: var(--r); background: repeating-linear-gradient(135deg, var(--zinc-claro) 0 14px, #fff 14px 28px); display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 20px; color: var(--acero); font: 600 15px/1.35 var(--f-semi); }
.photo-slot .ico { width: 34px; height: 34px; }
.photo-slot small { font: 400 14px var(--f-body); }

/* ---------- Cómo trabajamos (ruta) ---------- */
.route { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 44px; }
.route::before { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 5px; background: var(--ruta); }
.route__step { position: relative; display: grid; gap: 10px; align-content: start; }
.route__step::before { content: ""; position: absolute; top: -40px; left: 0; width: 22px; height: 22px; background: var(--azul); border: 4px solid #fff; transform: rotate(45deg); box-shadow: 0 0 0 1px var(--azul); }
.route__step .ico { width: 30px; height: 30px; color: var(--azul); }
.route__step h3 { font: 700 23px/1.1 var(--f-display); }
.route__step p { font-size: 15.5px; color: var(--tinta); }

/* ---------- Cómo hacer tu pedido ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: paso; }
.steps li { position: relative; counter-increment: paso; background: #fff; border: 1px solid var(--zinc); border-radius: var(--r); padding: 22px 20px 24px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(paso); position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; color: var(--azul); font: 800 20px/1 var(--f-display); margin-bottom: 4px; }
.steps li::after { content: ""; position: absolute; top: 27px; left: 25px; width: 30px; height: 30px; border: 2px solid var(--azul); transform: rotate(45deg); }
.steps h3 { font: 700 21px/1.15 var(--f-display); }
.steps p { font-size: 15.5px; color: var(--tinta); }
.steps li.is-yellow::before { color: var(--noche); }
.steps li.is-yellow::after { background: var(--amarillo); border-color: var(--amarillo); }
.steps-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.contact-list { list-style: none; display: grid; border-top: 2px solid var(--noche); }
.contact-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--zinc); }
.contact-list .ico { width: 26px; height: 26px; color: var(--azul); grid-row: span 2; margin-top: 2px; }
.contact-list b { font: 600 13px var(--f-semi); letter-spacing: .12em; text-transform: uppercase; color: var(--acero); }
.contact-list span, .contact-list a { font: 600 19px/1.3 var(--f-body); color: var(--noche); text-decoration: none; }
.contact-list a:hover { color: var(--azul); text-decoration: underline; }
.contact-card { border: 2px solid var(--noche); border-radius: var(--r); padding: 28px; display: grid; gap: 16px; }
.contact-card h3 { font: 700 28px/1.05 var(--f-display); }
.contact-card p { color: var(--tinta); }

/* ---------- Pie de página ---------- */
.footer { background: var(--noche); color: #C8D1E0; padding-top: 64px; font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer .logo { color: #fff; --mk-knock: var(--noche); --mk-sub: #AEB9CC; }
.footer__about { display: grid; gap: 16px; align-content: start; }
.footer__about p { max-width: 38ch; }
.footer h4 { font: 600 13px var(--f-semi); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: #C8D1E0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .social { display: flex; gap: 10px; }
.footer .social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid #3A4A6B; border-radius: var(--r); }
.footer .social a:hover { border-color: #fff; }
.footer__bottom { border-top: 1px solid #25355A; padding-block: 18px 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #9AA7BD; }
.footer__ruta { height: 5px; background: var(--ruta); }

/* ---------- Botón flotante y barra de pedido ---------- */
.wsp-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--wsp-real); color: #fff; display: grid; place-items: center; box-shadow: var(--sombra-flota); transition: bottom .2s, background .15s, transform .15s; }
.wsp-float:hover { background: var(--wsp-real-hover); transform: scale(1.06); }
.wsp-float__ico { position: relative; width: 32px; height: 32px; z-index: 1; }

.wsp-float__anillo { position: absolute; inset: 0; border-radius: 50%; background: var(--wsp-real); opacity: .55; animation: wsp-pulso 2.6s ease-out infinite; }
.wsp-float:hover .wsp-float__anillo { animation-play-state: paused; opacity: 0; }
@keyframes wsp-pulso { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }

.wsp-float__globo { position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap; background: var(--noche); color: #fff; font: 600 14.5px/1.35 var(--f-semi); padding: 10px 14px; border-radius: 10px; box-shadow: var(--sombra-flota); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wsp-float__globo::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-left-color: var(--noche); }
.wsp-float:hover .wsp-float__globo, .wsp-float:focus-visible .wsp-float__globo { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 560px) { .wsp-float__globo { white-space: normal; max-width: 180px; font-size: 13.5px; } }
.orderbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--amarillo); color: var(--noche); border-radius: var(--r); padding: 14px 18px; font: 600 17px/1.2 var(--f-semi); text-decoration: none; box-shadow: var(--sombra-flota); }
.orderbar b { font-weight: 700; font-variant-numeric: tabular-nums; }
.orderbar small { display: block; font: 500 13px var(--f-semi); }

/* ---------- Migas de pan ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 500 14.5px var(--f-semi); color: var(--acero); padding-block: 20px; }
.crumbs a { color: var(--acero); text-decoration: none; }
.crumbs a:hover { color: var(--azul); text-decoration: underline; }
.crumbs .ico { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--noche); font-weight: 600; }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 80px; }
.cat-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.cat-nav h2 { font: 600 13px var(--f-semi); letter-spacing: .14em; text-transform: uppercase; color: var(--acero); padding-bottom: 10px; border-bottom: 2px solid var(--noche); }
.cat-nav ul { list-style: none; }
.cat-nav > ul > li { border-bottom: 1px solid var(--zinc); }
.cat-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 11px 4px; color: var(--noche); text-decoration: none; font: 600 16px/1.25 var(--f-semi); }
.cat-nav a span { font: 500 13px var(--f-mono); color: var(--acero); }
.cat-nav a:hover { color: var(--azul); }
.cat-nav a[aria-current="page"] { color: var(--azul); }
.cat-nav ul ul { padding: 0 0 8px 14px; }
.cat-nav ul ul a { font-weight: 500; font-size: 15px; padding: 7px 4px; }
.cat-nav ul ul a[aria-current="page"] { font-weight: 700; }
.cat-nav ul ul a[aria-current="page"]::before { content: ""; width: 7px; height: 7px; background: var(--amarillo); transform: rotate(45deg); margin: 6px 8px 0 -14px; flex: none; }
.catalog__head { display: grid; gap: 10px; padding-bottom: 20px; }
.catalog__head p { color: var(--tinta); max-width: 64ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 0; border-block: 1px solid var(--zinc); margin-bottom: 24px; }
.toolbar__count { font: 600 15px var(--f-semi); color: var(--acero); margin-right: auto; }
.toolbar__count b { color: var(--noche); }
.toolbar .select { width: auto; min-width: 170px; }
.toolbar .filter-btn { display: none; }
.chips { display: none; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--zinc); border-radius: var(--r); font: 600 15px var(--f-semi); color: var(--noche); text-decoration: none; background: #fff; }
.chip[aria-current="page"] { background: var(--noche); border-color: var(--noche); color: #fff; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border: 1.5px solid var(--zinc); border-radius: var(--r); font: 600 16px var(--f-semi); color: var(--noche); text-decoration: none; }
.pagination a:hover { border-color: var(--noche); }
.pagination [aria-current="page"] { background: var(--noche); border-color: var(--noche); color: #fff; }

/* Panel de filtros (celular) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(14, 30, 61, .45); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; background: #fff; border-radius: 12px 12px 0 0; padding: 20px 16px 24px; display: grid; gap: 18px; max-height: 85vh; overflow-y: auto; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet__head h2 { font: 700 26px var(--f-display); }

/* ---------- Ficha de producto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 64px; }
.gallery { display: grid; gap: 12px; }
.gallery__main { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--zinc); border-radius: var(--r); display: grid; place-items: center; background: #fff; }
.gallery__main .badge--oferta { position: absolute; top: 14px; left: 14px; font-size: 13px; padding: 8px 12px; }
.gallery__main svg, .gallery__main img { width: 82%; height: 82%; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery__thumbs button { aspect-ratio: 1 / 1; border: 1.5px solid var(--zinc); border-radius: var(--r); background: #fff; display: grid; place-items: center; padding: 6px; cursor: pointer; }
.gallery__thumbs button[aria-pressed="true"] { border: 2px solid var(--noche); }
.gallery__thumbs svg, .gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo { display: grid; gap: 18px; }
.pinfo__brand { font: 600 13px var(--f-semi); letter-spacing: .14em; text-transform: uppercase; color: var(--acero); }
.pinfo h1 { font: 700 clamp(32px, 3.6vw, 44px)/1.04 var(--f-display); }
.pinfo__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding-block: 18px; border-block: 1px solid var(--zinc); }
.pinfo__price .price { font-size: 38px; line-height: 1; }
.pinfo__price small { font: 600 14px var(--f-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--acero); }
.pinfo__price .badge { margin-left: auto; }
.pinfo__buy { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
.pinfo__buy .stepper { width: 100%; height: 58px; }
.pinfo__buy .btn { min-height: 58px; }
.pinfo__unit { font-size: 15px; color: var(--tinta); }
.pinfo__unit b { color: var(--noche); }
.spec-list { display: grid; border-top: 2px solid var(--noche); }
.spec-list div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--zinc); font-size: 16px; }
.spec-list dt { font: 600 13px/1.6 var(--f-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--acero); }
.product-desc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 56px; }
.product-desc h2 { font: 700 26px/1.1 var(--f-display); margin-bottom: 14px; }
.product-desc p { color: var(--tinta); max-width: 62ch; }
.buybar { display: none; }

/* ---------- Mi pedido ---------- */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; padding-bottom: 80px; }
.order__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px solid var(--noche); }
.order-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) 170px 120px 44px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--zinc); }
.order-line__img { aspect-ratio: 1 / 1; border: 1px solid var(--zinc); border-radius: var(--r); display: grid; place-items: center; }
.order-line__img svg, .order-line__img img { width: 84%; height: 84%; object-fit: contain; }
.order-line__name { font: 600 17px/1.25 var(--f-body); }
.order-line__name a { color: inherit; text-decoration: none; }
.order-line__name a:hover { text-decoration: underline; }
.order-line__meta { font: 500 13px var(--f-mono); color: var(--acero); margin-top: 3px; }
.order-line__unit { font-size: 14.5px; color: var(--tinta); margin-top: 2px; }
.order-line__sub { text-align: right; font: 700 19px var(--f-body); font-variant-numeric: tabular-nums; }
.order-line__sub small { display: block; font: 500 12px var(--f-semi); color: var(--acero); letter-spacing: .04em; }
.order-line__sub--ask { font: 700 13.5px var(--f-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--azul); }
.remove-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; color: var(--acero); cursor: pointer; }
.remove-btn:hover { background: #FBEAE8; color: var(--agotado); }
.order__more { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; }
.link-btn { border: 0; background: none; padding: 8px 0; font: 600 15px var(--f-semi); color: var(--acero); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--agotado); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); border: 2px solid var(--noche); border-radius: var(--r); padding: 24px; display: grid; gap: 18px; background: #fff; }
.summary h2 { font: 700 26px/1 var(--f-display); }
.summary__rows { display: grid; gap: 8px; font-size: 16px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary__rows dd { font-variant-numeric: tabular-nums; font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--zinc); }
.summary__total span { font: 700 15px var(--f-semi); letter-spacing: .08em; text-transform: uppercase; }
.summary__total b { font: 700 32px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.summary__note { font-size: 14px; color: var(--acero); }
.summary__form { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--zinc); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--niebla); font-size: 15px; color: var(--tinta); }
.notice .ico { color: var(--azul); margin-top: 1px; }
.notice--warn { background: #FFF6E0; }
.notice--warn .ico { color: #9A6A00; }
.notice--ok { background: #E3F3E9; }
.notice--ok .ico { color: var(--ok); }

.wa-preview { border-top: 1px solid var(--zinc); padding-top: 14px; }
.wa-preview summary { font: 600 15px var(--f-semi); color: var(--azul); cursor: pointer; }
.wa-preview pre { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #DCF3E4; color: var(--noche); font: 400 14.5px/1.5 var(--f-body); white-space: pre-wrap; word-break: break-word; }
.empty { padding: 48px 0; display: grid; gap: 16px; justify-items: start; }
.empty p { color: var(--tinta); max-width: 52ch; }

/* ---------- Aviso breve ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r); background: var(--noche); color: #fff; font: 600 16px/1.2 var(--f-semi); box-shadow: var(--sombra-flota); }
.toast .ico { color: var(--amarillo); }

/* ---------- Confirmación ---------- */
.done { max-width: 720px; margin-inline: auto; padding-block: 64px 96px; display: grid; gap: 24px; justify-items: start; }
.done__mark { width: 64px; height: 64px; background: var(--ok); transform: rotate(45deg); display: grid; place-items: center; border-radius: 4px; margin: 10px 0 8px 10px; }
.done__mark .ico { transform: rotate(-45deg); color: #fff; width: 34px; height: 34px; }
.done h1 { font: 800 clamp(36px, 5vw, 56px)/1 var(--f-display); }
.done .code-label { font-size: 18px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.next { list-style: none; display: grid; gap: 0; width: 100%; border-top: 2px solid var(--noche); counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--zinc); }
.next li::before { content: counter(n); grid-row: span 2; font: 800 28px/1 var(--f-display); color: var(--azul); }
.next b { font: 700 18px var(--f-semi); }
.next span { color: var(--tinta); font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 8px; font-size: 15.5px; }
  .header__search { max-width: 260px; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .order-line { grid-template-columns: 72px minmax(0, 1fr) 150px 104px 44px; gap: 12px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 16px; }
  .infobar .hide-sm { display: none; }
  .nav, .header__search, .order-btn { display: none; }
  .icon-btn { display: grid; }
  .header__actions { margin-left: auto; }
  .logo svg { height: 38px; }

  .section { padding-block: 56px; }
  .hero { padding-block: 32px 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__art { order: 2; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
  .cat-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tile { min-height: 132px; padding: 18px 16px; }
  .cat-tile h3 { font-size: 23px; }
  .grid-products, .grid-products--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0; padding-left: 44px; }
  .route::before { top: 0; bottom: 0; left: 12px; right: auto; width: 5px; height: auto; background: repeating-linear-gradient(180deg, var(--amarillo) 0 28px, transparent 28px 46px); }
  .route__step::before { top: 2px; left: -43px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }

  .catalog { grid-template-columns: minmax(0, 1fr); }
  .cat-nav { display: none; }
  .chips { display: flex; }
  .toolbar .select, .toolbar .check { display: none; }
  .toolbar .filter-btn { display: inline-flex; }

  .product { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 32px; }
  .product-desc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px; }
  .pinfo__buy { display: none; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--zinc); box-shadow: 0 -6px 18px rgba(14, 30, 61, .1); }
  .buybar .stepper { width: 100%; height: 54px; }
  .buybar .btn { min-height: 54px; }

  .order { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .order-line { grid-template-columns: 64px minmax(0, 1fr) 44px; grid-template-areas: "img info del" "img qty sub"; gap: 10px 12px; }
  .order-line__img { grid-area: img; align-self: start; }
  .order-line__info { grid-area: info; }
  .order-line .stepper { grid-area: qty; width: 150px; }
  .order-line__sub { grid-area: sub; grid-column: 2 / -1; justify-self: end; }
  .order-line .remove-btn { grid-area: del; align-self: start; }
  .summary { position: static; }

  .toast { left: 12px; right: 12px; bottom: 96px; transform: none; }
  .has-orderbar .orderbar { display: flex; }
  .has-orderbar .wsp-float { bottom: 90px; }
  .has-buybar .wsp-float { bottom: 90px; }
  .has-buybar .orderbar { display: none; }
  body.has-orderbar, body.has-buybar { padding-bottom: 84px; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .lede { font-size: 17.5px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .benefits, .steps { grid-template-columns: minmax(0, 1fr); }
  .search--lg { height: 56px; }
  .search--lg .btn { padding: 0 14px; }
  .hero__ctas .btn { flex: 1; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .pcard__body { padding: 10px 10px 12px; }
  .pcard__name { font-size: 15.5px; }
  .pcard__price { font-size: 19px; }
  .pcard__action .btn { font-size: 15px; }
  .pcard__action .stepper { grid-template-columns: 40px minmax(36px, 1fr) 40px; }
  .spec-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .audience { padding: 20px; }
}

/* ---------- Sugerencias de la búsqueda instantánea ---------- */
.search--sug { position: relative; }
.sug { position: absolute; top: calc(100% + 6px); left: -2px; right: -2px; z-index: 70; background: #fff; border: 2px solid var(--noche); border-radius: var(--r); box-shadow: var(--sombra-flota); max-height: min(60vh, 420px); overflow-y: auto; }
.sug__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--zinc); text-decoration: none; color: var(--noche); }
.sug__item:last-of-type { border-bottom: 0; }
.sug__item:hover, .sug__item:focus-visible { background: var(--niebla); }
.sug__texto { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sug__texto b { font: 600 16px/1.25 var(--f-body); }
.sug__texto small { font: 500 12.5px var(--f-mono); color: var(--acero); }
.sug__price { font: 700 17px var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sug__ask { font: 700 12px var(--f-semi); letter-spacing: .06em; text-transform: uppercase; color: var(--azul); white-space: nowrap; }
.sug__todos { display: block; width: 100%; padding: 13px 14px; border: 0; border-top: 1px solid var(--zinc); background: var(--zinc-claro); color: var(--azul); font: 600 15px var(--f-semi); text-align: left; cursor: pointer; }
.sug__todos:hover { background: var(--niebla); }
.sug__vacio { padding: 16px 14px; font-size: 15px; color: var(--acero); }

/* ---------- Política de privacidad ---------- */
.legal { display: grid; gap: 14px; padding-block: 48px 80px; }
.legal__meta { font: 600 15px var(--f-semi); color: var(--acero); }
.legal h2 { margin-top: 26px; font: 700 clamp(22px, 2.3vw, 27px)/1.15 var(--f-display); color: var(--noche); }
.legal p, .legal li { max-width: 66ch; font-size: 17.5px; line-height: 1.6; color: var(--tinta); }
.legal ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.legal a { color: var(--azul); }
.legal strong { color: var(--noche); }
.legal code { font: 500 15px var(--f-mono); background: var(--zinc-claro); padding: 1px 6px; border-radius: var(--r-sm); }
.legal dl, .legal dd { margin: 0; }
.legal-id { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; font-size: 17.5px; line-height: 1.5; }
.legal-id dt { font-weight: 700; color: var(--noche); }
.legal-cards { display: grid; gap: 14px; }
.legal-card { padding: 16px 18px 18px; border: 1px solid var(--zinc); border-radius: var(--r); background: var(--zinc-claro); }
.legal-card h3 { font: 700 21px/1.2 var(--f-display); color: var(--noche); }
.legal-card dl { display: grid; gap: 12px; margin-top: 12px; }
.legal-card dt { font: 700 13px var(--f-semi); letter-spacing: .1em; text-transform: uppercase; color: var(--acero); }
.legal-card dd { margin-top: 2px; font-size: 17px; line-height: 1.5; color: var(--tinta); }
.legal-plazos { display: grid; border-top: 1px solid var(--zinc); }
.legal-plazos > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 22px; padding: 14px 0; border-bottom: 1px solid var(--zinc); font-size: 17.5px; line-height: 1.55; }
.legal-plazos dt { font-weight: 700; color: var(--noche); }
@media (max-width: 560px) {
  .legal { padding-block: 32px 56px; }
  .legal-id, .legal-plazos > div { grid-template-columns: minmax(0, 1fr); }
  .legal-id dd { margin-bottom: 8px; }
}
