/* =========================================================
   Distribuidora Direkto · Catálogo mayorista
   ========================================================= */
:root {
  --azul: #1452c4;
  --azul-2: #0f43a8;
  --azul-osc: #0b2a6b;
  --noche: #071a45;
  --rojo: #ee3a3c;
  --rojo-osc: #c9262a;
  --bodega: #eef2f8;
  --tinta: #142033;
  --gris: #556176;
  --linea: #d9e1ed;
  --blanco: #ffffff;
  --wa: #1da851;
  --wa-osc: #168a42;
  --verde: #1a9a4b;
  --verde-osc: #11733a;
  --verde-bg: #e6f6ec;

  --f-display: "Ubuntu", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-label: "Ubuntu Condensed", "Arial Narrow", sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --sombra: 0 1px 2px rgba(11, 42, 107, .06), 0 6px 20px rgba(11, 42, 107, .08);
  --sombra-alta: 0 18px 50px rgba(7, 26, 69, .28);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--blanco);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blanco); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ico-wa, .wa-float svg { fill: currentColor; stroke: none; }

.eyebrow {
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .92rem;
  color: var(--rojo);
  margin-bottom: 10px;
}
.eyebrow--light { color: #ffd1d1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--rojo); color: var(--blanco); box-shadow: 0 6px 18px rgba(238, 58, 60, .35); }
.btn--red:hover { background: var(--rojo-osc); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--blanco); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--blanco); }
.btn--line { border-color: var(--azul); color: var(--azul); background: var(--blanco); }
.btn--line:hover { background: var(--bodega); }
.btn--wa { background: var(--wa); color: var(--blanco); }
.btn--wa:hover { background: var(--wa-osc); }

/* ---------- Topbar + header ---------- */
.topbar { background: var(--noche); color: #dbe5ff; font-size: .88rem; }
.topbar__in { display: flex; justify-content: center; gap: 28px; padding: 7px 0; }
.topbar__in span { display: inline-flex; align-items: center; gap: 8px; }
.topbar b { color: var(--blanco); }

.header { position: sticky; top: 0; z-index: 40; background: var(--azul); box-shadow: 0 2px 14px rgba(7, 26, 69, .25); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.header__logo img { height: 40px; width: auto; }
.header__nav { display: flex; gap: 4px; margin-left: auto; }
.header__nav a { color: var(--blanco); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.header__nav a:hover { background: rgba(255, 255, 255, .14); }
.btn-pedido {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blanco); color: var(--azul-osc);
  border: 0; border-radius: 999px; padding: 9px 10px 9px 16px; font-weight: 700;
}
.btn-pedido svg { width: 20px; height: 20px; }
.btn-pedido__n {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--rojo); color: var(--blanco);
  display: inline-grid; place-items: center; font-size: .85rem;
}
.btn-pedido.is-bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--blanco);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(80, 150, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--azul) 0%, var(--azul-osc) 70%, var(--noche) 100%);
}
.hero::after { /* trama de estanterías */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 96px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 64px);
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem); font-weight: 700; letter-spacing: -.02em; }
.hero h1 span {
  display: inline;
  background: linear-gradient(transparent 62%, var(--rojo) 62%, var(--rojo) 90%, transparent 90%);
  padding: 0 .06em;
}
.hero__lead { margin-top: 22px; font-size: 1.15rem; max-width: 34em; color: #e3ebff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #c9d7fb; font-size: .95rem; }
.hero__facts li { display: flex; gap: 6px; align-items: baseline; }
.hero__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--rojo); transform: translateY(-1px); }
.hero__facts b { color: var(--blanco); }

.hero__media { position: relative; justify-self: center; width: min(100%, 400px); }
.hero__photo { width: 100%; aspect-ratio: 412 / 488; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sombra-alta); border: 4px solid rgba(255, 255, 255, .9); }

/* Etiquetas de precio colgantes */
.tag {
  position: absolute; display: grid; gap: 0;
  background: var(--blanco); color: var(--tinta);
  padding: 12px 16px 10px 26px; border-radius: 6px 12px 12px 6px;
  box-shadow: 0 10px 26px rgba(7, 26, 69, .35);
  min-width: 150px;
  animation: swing 5s ease-in-out infinite;
  transform-origin: 12px 50%;
}
.tag::before { /* ojal */
  content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--azul-osc); box-shadow: inset 0 0 0 2px #ccd6ea;
}
.tag__brand { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--gris); }
.tag__price { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; line-height: 1.05; color: var(--rojo); }
.tag__meta { font-size: .78rem; color: var(--gris); }
.tag--a { left: -46px; top: 12%; --rot: -6deg; }
.tag--b { right: -40px; top: 44%; --rot: 5deg; animation-delay: -1.6s; }
.tag--c { left: -20px; bottom: -22px; --rot: -3deg; animation-delay: -3.2s; }
@keyframes swing { 0%, 100% { transform: rotate(var(--rot)); } 50% { transform: rotate(calc(var(--rot) * -.4)); } }

/* ---------- Marcas ---------- */
.brands { padding: 34px 0 30px; border-bottom: 1px solid var(--linea); }
.brands__title { font-family: var(--f-label); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--gris); text-align: center; margin-bottom: 18px; }
.brands__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.brands__list li { height: 56px; padding: 6px 12px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-sm); display: grid; place-items: center; }
.brands__list img { max-height: 40px; max-width: 112px; width: auto; }
.brands__list button { border: 0; background: none; padding: 0; display: grid; place-items: center; }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--bodega); }
.section--blue { background: linear-gradient(170deg, var(--azul) 0%, var(--azul-osc) 100%); color: var(--blanco); }
.section__head { margin-bottom: 34px; max-width: 720px; }
.section__sub { margin-top: 12px; color: var(--gris); font-size: 1.05rem; }

/* ---------- Categorías ---------- */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.cat {
  width: 100%; height: 100%; text-align: left;
  display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--r); border: 1px solid var(--linea); background: var(--blanco);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat:hover { border-color: var(--azul); box-shadow: var(--sombra); transform: translateY(-2px); }
.cat__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bodega); color: var(--azul); display: grid; place-items: center; }
.cat__ico svg { width: 24px; height: 24px; stroke-width: 1.8; }
.cat__name { font-weight: 700; line-height: 1.2; display: block; }
.cat__n { font-size: .85rem; color: var(--gris); }

/* ---------- Filtros ---------- */
.filters {
  position: sticky; top: 68px; z-index: 20;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  margin: 0 -16px; padding: 14px 16px 10px;
  border-bottom: 1px solid var(--linea);
  display: grid; grid-template-columns: 1fr auto; gap: 10px 12px;
}
.section--tint .filters { background: rgba(238, 242, 248, .96); }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gris); width: 20px; height: 20px; }
.search input, .select select {
  width: 100%; height: 48px; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--blanco);
  font: inherit; color: var(--tinta);
}
.search input { padding: 0 16px 0 44px; }
.search input:focus, .select select:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(20, 82, 196, .18); }
.filters__row { display: flex; gap: 10px; }
.select select { padding: 0 38px 0 16px; appearance: none; cursor: pointer;
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23556176' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }
.chips { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  flex: none; border: 1.5px solid var(--linea); background: var(--blanco); color: var(--tinta);
  border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.chip span { color: var(--gris); font-weight: 500; margin-left: 4px; }
.chip:hover { border-color: var(--azul); }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.chip[aria-pressed="true"] span { color: #cfdcff; }
.results { margin: 18px 0 14px; color: var(--gris); font-size: .95rem; }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.grid--top { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r);
  overflow: hidden; transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.card__img { position: relative; display: block; width: 100%; border: 0; padding: 0; background: var(--bodega); aspect-ratio: 1390 / 868; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__badge {
  position: absolute; left: 10px; top: 10px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem;
  background: var(--rojo); color: var(--blanco); padding: 3px 9px; border-radius: 999px;
}
.grid--top .card__badge { display: none; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__brand { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--azul); }
.card__name { font-family: var(--f-body); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.card__name button { all: unset; cursor: pointer; }
.card__name button:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__name button:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
.card__meta { font-size: .88rem; color: var(--gris); }

/* Selector de tamaño / tipo */
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.opt {
  position: relative; min-height: 34px; padding: 5px 11px; border-radius: 999px;
  border: 1.5px solid var(--linea); background: var(--blanco); color: var(--tinta);
  font-size: .84rem; font-weight: 600; line-height: 1.2; text-align: left;
  transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: var(--azul); }
.opt[aria-checked="true"] { background: var(--azul-osc); border-color: var(--azul-osc); color: var(--blanco); }
.opt__n {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px;
  border-radius: 999px; background: var(--rojo); color: var(--blanco); font-size: .7rem; font-weight: 700; vertical-align: 1px;
}
.modal__label { margin-top: 8px; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--gris); }
.modal__body .opts { margin-top: 0; }
.modal__body .opt { min-height: 40px; font-size: .92rem; padding: 7px 14px; }
.price { display: flex; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 10px; }
.ptag { flex: 1 1 0; min-width: 0; border-radius: var(--r-sm); padding: 7px 11px 8px; line-height: 1; display: grid; gap: 4px; color: var(--blanco); }
.ptag--u { background: var(--rojo); box-shadow: 0 4px 12px rgba(238, 58, 60, .25); }
.ptag--c { background: var(--azul); box-shadow: 0 4px 12px rgba(20, 82, 196, .25); }
.ptag__label { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptag__num { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; white-space: nowrap; }
.ptag__num--sm { font-size: 1.05rem; padding-top: 4px; }
.hl-u { color: var(--rojo-osc); }
.hl-c { color: var(--azul); }

.add { margin-top: 12px; }
.add__btn {
  width: 100%; min-height: 44px; border: 0; border-radius: 999px;
  background: var(--azul); color: var(--blanco); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.add__btn:hover { background: var(--azul-2); }
.add__btn svg { width: 18px; height: 18px; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 44px; border-radius: 999px; background: var(--bodega); border: 1.5px solid var(--azul); }
.stepper button { height: 100%; border: 0; background: none; font-size: 1.3rem; font-weight: 700; color: var(--azul); border-radius: 999px; }
.stepper button:hover { background: rgba(20, 82, 196, .1); }
.stepper output { text-align: center; font-weight: 700; color: var(--azul-osc); font-size: .95rem; }

.more { text-align: center; margin-top: 28px; }
.empty { text-align: center; padding: 44px 16px; border: 2px dashed var(--linea); border-radius: var(--r); }
.empty p + p { color: var(--gris); margin-top: 6px; }
.empty__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.fine { margin-top: 26px; font-size: .85rem; color: var(--gris); text-align: center; }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r); padding: 22px 20px 24px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 40px; width: 12px; height: 12px; z-index: 1;
  border-top: 2px solid rgba(255, 255, 255, .5); border-right: 2px solid rgba(255, 255, 255, .5); transform: rotate(45deg);
}
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--rojo); font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.steps p { color: #dbe5ff; margin-top: 8px; font-size: .97rem; }

/* ---------- Condiciones ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.conds { margin: 26px 0 0; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.conds div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.conds dt { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; color: var(--azul); padding-top: 2px; }
.conds dd { margin: 0; }
.who { background: var(--bodega); border-radius: var(--r-lg); padding: 32px; }
.who__list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who__list li { background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.who__note { margin-top: 20px; color: var(--gris); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--azul); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--gris); }

/* ---------- CTA final + footer ---------- */
.final { background: var(--rojo); color: var(--blanco); padding: 64px 0; }
.final__in { text-align: center; }
.final h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.final p { margin-top: 10px; font-size: 1.1rem; }
.final .hero__cta { justify-content: center; }

.footer { background: var(--noche); color: #b8c6e6; padding: 44px 0 110px; }
.footer__in { display: grid; gap: 14px; justify-items: start; }
.footer__logo { height: 36px; width: auto; }
.footer p { max-width: 560px; }
.footer__small { font-size: .85rem; opacity: .8; }

/* ---------- WhatsApp flotante + barra móvil ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--blanco);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-osc); }
.cartbar { display: none; }

/* ---------- Ficha de producto ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(1000px, calc(100% - 24px)); width: 100%; max-height: calc(100% - 24px); }
.modal::backdrop { background: rgba(7, 26, 69, .72); backdrop-filter: blur(3px); }
.modal__box { position: relative; background: var(--blanco); border-radius: var(--r-lg); overflow: auto; max-height: calc(100vh - 24px); display: grid; grid-template-columns: 1.4fr 1fr; }
.modal__img { background: var(--bodega); display: grid; place-items: center; }
.modal__img img { width: 100%; height: auto; }
.modal__body { padding: 28px 26px; display: flex; flex-direction: column; gap: 8px; }
.modal__body h3 { font-size: 1.45rem; }
.modal__close {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blanco); box-shadow: var(--sombra);
  font-size: 1.6rem; line-height: 1; color: var(--tinta);
}
.facts { margin: 10px 0 4px; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linea); font-size: .95rem; }
.facts dt { color: var(--gris); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.variants { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.variants span { background: var(--bodega); border-radius: 999px; padding: 4px 10px; font-size: .85rem; }
.modal__body .price { margin-top: 10px; }
.modal__wa { margin-top: 10px; font-size: .92rem; color: var(--azul); font-weight: 600; }

/* ---------- Nota de pedido (drawer) ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(7, 26, 69, .6); animation: fade .2s ease; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%);
  background: var(--azul-osc); padding: 18px 16px 0;
  display: flex; animation: slide .25s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

.nota {
  position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0;
  background: #fffdf8; color: var(--tinta);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, .25);
}
.nota__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 22px 22px 16px; border-bottom: 2px dashed #cdd6e4;
}
.nota__kicker { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--rojo); }
.nota__head h2 { font-size: 1.7rem; }
.nota__close { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--blanco); font-size: 1.5rem; line-height: 1; }
.nota__scroll { overflow-y: auto; padding: 4px 22px 22px; flex: 1; }
.nota__empty { text-align: center; padding: 40px 6px; }
.nota__empty p + p { color: var(--gris); margin: 6px 0 18px; }
.nota__items { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px dashed #d8dfea; }
.line__name { font-weight: 700; line-height: 1.25; font-size: .95rem; }
.line__name small { display: block; font-weight: 500; color: var(--gris); font-size: .82rem; margin-top: 2px; }
.line__total { font-family: var(--f-display); font-weight: 700; text-align: right; white-space: nowrap; }
.line__ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line .stepper { width: 150px; height: 36px; grid-template-columns: 36px 1fr 36px; }
.line .stepper output { font-size: .85rem; }
.line__rm { border: 0; background: none; color: var(--gris); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.line__rm:hover { color: var(--rojo); }
.nota__sum { padding-top: 14px; }
.nota__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.nota__total b { font-family: var(--f-display); font-size: 1.8rem; color: var(--azul-osc); }
.meter { margin-top: 12px; background: var(--bodega); border-radius: var(--r); padding: 12px 14px; }
.meter__bar { height: 10px; border-radius: 999px; background: #d6deea; overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--rojo); transition: width .35s ease; }
.meter.is-ok .meter__bar span { background: var(--wa); }
.meter__txt { margin-top: 8px; font-size: .9rem; }
.meter__txt b { color: var(--rojo-osc); }
.meter.is-ok .meter__txt b { color: var(--wa-osc); }
.nota__form { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 2px dashed #cdd6e4; }
.nota__formtitle { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; color: var(--azul); }
.nota__form label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
.nota__form textarea { min-height: 64px; border-radius: var(--r-sm); border: 1.5px solid var(--linea); background: var(--blanco); padding: 10px 12px; font: inherit; font-weight: 400; color: var(--tinta); resize: vertical; }
.nota__form textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(20, 82, 196, .18); }
.nota__form .opt { font-weight: 400; color: var(--gris); }
.nota__form input, .nota__form select {
  height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--linea); background: var(--blanco);
  padding: 0 12px; font: inherit; font-weight: 400; color: var(--tinta);
}
.nota__form input:focus, .nota__form select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(20, 82, 196, .18); }
.nota__form [aria-invalid="true"] { border-color: var(--rojo); }
.nota__err { color: var(--rojo-osc); font-size: .9rem; font-weight: 600; }
.nota__fine { font-size: .82rem; color: var(--gris); text-align: center; }
.nota__clear { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--gris); text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 80; transform: translate(-50%, 20px);
  background: var(--tinta); color: var(--blanco); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Header: compra directa ---------- */
.header__wa {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--wa); color: var(--blanco); font-weight: 700; font-size: .95rem;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.header__wa:hover { background: var(--wa-osc); }
.header__wa svg { width: 20px; height: 20px; }
.btn--white { background: var(--blanco); color: var(--rojo-osc); }
.btn--white:hover { background: #ffe9e9; }
.hero__lead b { color: var(--blanco); }

/* ---------- Franja de oferta ---------- */
.offer { background: var(--blanco); border-bottom: 1px solid var(--linea); }
.offer__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.offer__item { display: flex; align-items: center; gap: 14px; padding: 20px 18px; }
.offer__item + .offer__item { border-left: 1px solid var(--linea); }
.offer__item svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #ffe8e8; color: var(--rojo); }
.offer__item p { display: grid; line-height: 1.25; }
.offer__item b { font-family: var(--f-display); font-size: 1.12rem; color: var(--azul-osc); }
.offer__item p > span { font-size: .9rem; color: var(--gris); }
.brands__sub { max-width: 640px; margin: -8px auto 20px; text-align: center; color: var(--gris); }

/* ---------- Barra de pedido: extras ---------- */
.steps__cta { margin-top: 30px; text-align: center; }
.cartbar__info small { display: block; font-size: .74rem; font-weight: 500; opacity: .9; }
.cartbar__info > span:last-child { display: grid; line-height: 1.15; text-align: left; }
.cartbar__meter { position: absolute; left: 22px; right: 22px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.cartbar__meter span { display: block; height: 100%; width: 0; background: #ffb4b4; transition: width .3s; }
.cartbar.is-ok .cartbar__meter span { background: #7ff0a8; }

/* ---------- Responsive ---------- */
@media (hover: none) {
  .card:hover, .cat:hover { transform: none; box-shadow: none; }
  .card:hover .card__img img { transform: none; }
}
@media (max-width: 1140px) {
  .header__wa span { display: none; }
  .header__wa { padding: 10px; }
}
@media (max-width: 1020px) {
  .grid--top { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 880px) {
  .header__nav { display: none; }
  .header__wa { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; padding: 40px 0 64px; gap: 40px; }
  .hero__media { width: min(100% - 70px, 340px); }
  .split { grid-template-columns: 1fr; }
  .modal__box { grid-template-columns: 1fr; }
  .offer__in { grid-template-columns: 1fr; }
  .offer__item { padding: 12px 4px; }
  .offer__item + .offer__item { border-left: 0; border-top: 1px solid var(--linea); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .topbar { font-size: .82rem; }
  .topbar__in span { white-space: nowrap; }
  .topbar__hide-sm { display: none !important; }
  body.has-cart .wa-float { display: none; }
  body.has-cart .cartbar { right: 12px; }
  .header__in { min-height: 60px; gap: 10px; }
  .header__logo img { height: 30px; }
  .header__wa { display: none; }
  .btn-pedido { margin-left: auto; padding: 8px 10px; }
  .btn-pedido__txt { display: none; }
  .section { padding: 52px 0; }
  .section__head { margin-bottom: 24px; }

  .hero__in { padding: 28px 0 56px; gap: 34px; }
  .hero h1 { font-size: clamp(2.2rem, 9.5vw, 2.8rem); }
  .hero__lead { font-size: 1.03rem; margin-top: 16px; }
  .hero__cta { margin-top: 22px; gap: 10px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { margin-top: 22px; font-size: .88rem; gap: 6px 18px; }
  .hero__media { width: min(100% - 64px, 290px); }
  .tag { min-width: 118px; padding: 8px 11px 7px 21px; }
  .tag__brand { font-size: .7rem; }
  .tag__price { font-size: 1.4rem; }
  .tag--a { left: -30px; }
  .tag--b { right: -30px; }
  .tag--c { left: -16px; }

  .offer__item b { font-size: 1.02rem; }
  .offer__item svg { width: 38px; height: 38px; padding: 8px; }
  .brands { padding: 26px 0 22px; }
  .brands__sub { font-size: .92rem; margin-bottom: 16px; }
  .brands__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .brands__list::-webkit-scrollbar { display: none; }
  .brands__list li { flex: none; height: 48px; }
  .brands__list img { max-height: 32px; max-width: 92px; }

  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { grid-template-columns: 1fr; padding: 12px; gap: 8px; }
  .cat__ico { width: 40px; height: 40px; }

  .filters { position: static; grid-template-columns: 1fr; backdrop-filter: none; background: transparent; border-bottom: 0; padding-top: 6px; }
  .filters__row .select { flex: 1; min-width: 0; }
  .search input, .select select { font-size: 16px; height: 46px; }
  .select select { padding: 0 32px 0 14px; }

  /* Tarjetas compactas en 2 columnas */
  .grid, .grid--top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px 10px 12px; gap: 3px; }
  .card__brand { font-size: .72rem; }
  .card__name { font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card__meta { font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card__badge { font-size: .64rem; left: 6px; top: 6px; padding: 2px 7px; }
  .opts { gap: 5px; margin-top: 4px; }
  .opt { min-height: 32px; padding: 4px 9px; font-size: .74rem; }
  .modal__body .opt { min-height: 40px; font-size: .9rem; }
  .price { flex-direction: column; gap: 6px; padding-top: 8px; }
  .ptag { padding: 6px 9px 7px; gap: 3px; }
  .ptag__label { font-size: .64rem; }
  .ptag__num { font-size: 1.22rem; }
  .add { margin-top: 8px; }
  .add__btn { min-height: 42px; font-size: .9rem; gap: 6px; }
  .add__long { display: none; }
  .stepper { height: 42px; grid-template-columns: 34px 1fr 34px; }
  .stepper output { font-size: .8rem; }
  .modal .price { flex-direction: row; }

  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { padding: 16px 16px 18px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
  .steps__n { margin: 0; grid-row: span 2; }
  .steps p { margin-top: 4px; }
  .steps__cta .btn { width: 100%; }
  .conds div { grid-template-columns: 1fr; gap: 4px; }
  .who { padding: 24px 20px; }
  .final { padding: 48px 0 56px; }
  .final .hero__cta .btn { flex: 1 1 100%; }

  .wa-float { width: 54px; height: 54px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 28px; height: 28px; }
  .cartbar {
    position: fixed; left: 12px; right: 80px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    min-height: 58px; padding: 0 16px 4px; border: 0; border-radius: 18px;
    background: var(--azul); color: var(--blanco); box-shadow: 0 8px 24px rgba(7, 26, 69, .35); font-size: .95rem;
  }
  .cartbar[hidden] { display: none; }
  .cartbar__info { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.05rem; min-width: 0; }
  .cartbar__n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--rojo); display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; }
  .cartbar__go { font-weight: 700; white-space: nowrap; font-size: .9rem; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); font-size: .88rem; }
  .footer { padding-bottom: 120px; }

  .drawer__panel { width: 100%; padding: 0; }
  .nota { border-radius: 0; }
  .nota__head { padding: 16px 16px 12px; }
  .nota__head h2 { font-size: 1.45rem; }
  .nota__scroll { padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); }
  .nota__form input, .nota__form select, .nota__form textarea { font-size: 16px; }

  .modal { max-width: 100%; width: 100%; max-height: 100%; height: 100%; margin: 0; }
  .modal__box { border-radius: 0; max-height: 100dvh; height: 100dvh; align-content: start; }
  .modal__img img { max-height: 42vh; object-fit: contain; }
  .modal__body { padding: 18px 16px 28px; }
}
@media (max-width: 359px) {
  .ptag__num { font-size: 1.08rem; }
  .cartbar__go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
