/* ==========================================================================
   Papelería Davi — styles.css
   Concepto: hoja cuadriculada. Rejilla estricta, líneas visibles,
   tipografía grande, colores de marcatextos. Sin esquinas redondas.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper:   #f6f3ea;
  --paper-2: #ece7d8;
  --white:   #ffffff;
  --ink:     #121212;
  --ink-2:   #3a3a3a;
  --mute:    #6a6a66;
  --yellow:  #ffd60a;
  --blue:    #2445ff;
  --red:     #ff4b1f;
  --green:   #0f9d63;
  --wa:      #1fa855;
  --grid:    rgba(36, 69, 255, .075);

  --line: 2px solid var(--ink);
  --hair: 1px solid var(--ink);

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1320px;
  --pad: clamp(16px, 3vw, 32px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); line-height: .95; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- 3. Type helpers ---------- */
.kicker {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  gap: .6em;
  align-items: center;
  margin-bottom: 1.1rem;
}
.kicker b { background: var(--ink); color: var(--paper); padding: 2px 6px; font-weight: 400; }
.display {
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7.4vw, 7rem);
  line-height: .88;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2 {
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .9;
  text-wrap: balance;
}
.h3 { font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.05; letter-spacing: -.01em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 44ch; }
.mono { font-family: var(--f-mono); }
.price { font-family: var(--f-mono); font-weight: 700; }

/* Marcatextos: barra amarilla que se dibuja al entrar en pantalla */
.hl {
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 0% 42%;
  transition: background-size .9s var(--ease) .25s;
  padding-inline: .06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.is-ready .hl, .hl.is-on { background-size: 100% 42%; }
.hl--block { background-position: 0 50%; }
.is-ready .hl--block { background-size: 100% 100%; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px;
  padding: .8em 1.4em;
  border: var(--line);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background-color .15s, color .15s, transform .15s var(--ease);
}
.btn:hover { background: var(--yellow); color: var(--ink); }
.btn:active { transform: translateY(2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--wa { background: var(--wa); color: #fff; border-color: var(--ink); }
.btn--wa:hover { background: var(--ink); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--ink); color: var(--yellow); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  font-family: var(--f-mono); font-size: 14px; font-weight: 700; text-transform: uppercase;
  text-decoration: none; border-bottom: var(--line); padding-bottom: 2px;
}
.link-arrow:hover { background: var(--yellow); }

/* ---------- 5. Top strip + header ---------- */
.strip {
  background: var(--yellow);
  border-bottom: var(--line);
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-align: center;
  padding: 8px var(--pad);
}
.strip a { font-weight: 700; }

/* Barra superior de promoción */
.strip.strip--promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
  background: var(--red); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; text-decoration: none;
  padding: 12px var(--pad);
  border-bottom: var(--line);
  transition: background-color .15s;
}
.strip--promo:hover { background: #ff6a3d; }
.strip-tag {
  font-family: var(--f-display); font-weight: 900; font-stretch: 75%; text-transform: uppercase;
  font-size: 22px; line-height: 1;
  background: var(--ink); color: var(--yellow);
  padding: 6px 10px 4px;
  animation: stripPulse 1.6s steps(1) infinite;
}
@keyframes stripPulse {
  0%, 100% { background: var(--ink); color: var(--yellow); }
  50% { background: var(--yellow); color: var(--ink); }
}
.strip-deal b { font-weight: 900; font-size: 1.15em; }
.strip-timer { font-family: var(--f-mono); font-size: 14px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.strip-clock {
  font-family: var(--f-mono); font-weight: 700; font-size: 17px; letter-spacing: .02em;
  background: var(--ink); color: var(--paper); padding: 4px 9px;
  font-variant-numeric: tabular-nums;
}
.strip-cta {
  font-family: var(--f-mono); font-weight: 700; font-size: 14px; text-transform: uppercase;
  background: var(--yellow); border: var(--line); padding: 5px 10px;
}
@media (max-width: 640px) {
  .strip.strip--promo { font-size: 15px; gap: 8px 12px; padding: 10px 12px; }
  .strip-tag { font-size: 19px; }
  .strip-cta { display: none; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--line);
}
.nav {
  display: flex; align-items: stretch;
  height: var(--nav-h);
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--pad);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding-right: 20px;
  margin-right: auto;
}
.logo-mark {
  font-family: var(--f-display);
  font-weight: 900; font-stretch: 75%;
  font-size: 34px; line-height: 1;
  text-transform: uppercase;
  background: var(--yellow);
  border: var(--line);
  padding: 4px 8px 2px;
}
.logo-sub { font-family: var(--f-mono); font-size: 11px; line-height: 1.2; text-transform: uppercase; }
.nav-links { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav-links li { display: flex; }
.nav-links a {
  display: flex; align-items: center;
  padding-inline: 14px;
  font-family: var(--f-mono); font-size: 13px; text-transform: uppercase;
  text-decoration: none;
  border-left: var(--hair);
  transition: background-color .12s, color .12s;
}
.nav-links a:hover { background: var(--ink); color: var(--paper); }
.nav-links a[aria-current="page"] { background: var(--yellow); }
.nav-actions { display: flex; align-items: stretch; border-left: var(--hair); }
.cart-btn, .menu-btn {
  display: flex; align-items: center; gap: 8px;
  border: 0; border-left: var(--hair);
  background: transparent;
  padding-inline: 16px;
  font-family: var(--f-mono); font-size: 13px; text-transform: uppercase;
}
.nav-actions > :first-child { border-left: 0; }
.cart-btn:hover, .menu-btn:hover { background: var(--ink); color: var(--paper); }
.cart-btn svg, .menu-btn svg { width: 22px; height: 22px; }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 700; font-size: 12px;
}
.cart-count[data-n="0"] { background: var(--ink); }
.cart-btn.is-bump .cart-count { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-btn { display: none; }

/* Mobile nav */
.mobile-menu {
  position: fixed; inset: calc(var(--nav-h) + 2px) 0 0 0; z-index: 49;
  background: var(--paper);
  border-top: var(--line);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad);
  border-bottom: var(--hair);
  font-family: var(--f-display); font-weight: 900; font-stretch: 75%;
  font-size: 2rem; text-transform: uppercase; text-decoration: none;
}
.mobile-menu a[aria-current="page"] { background: var(--yellow); }
.mobile-menu .btn { margin: 20px var(--pad); width: calc(100% - 2 * var(--pad)); }

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 520px) {
  .logo-sub { display: none; }
  .cart-btn .cart-label { display: none; }
  .cart-btn, .menu-btn { padding-inline: 12px; }
}

/* ---------- 6. Grid system (líneas visibles) ---------- */
.board { border-bottom: var(--line); }
.cells {
  display: grid;
  gap: 2px;
  background: var(--ink);
  border: var(--line);
}
.cells > * { background: var(--paper); min-width: 0; }
.cell { padding: clamp(20px, 3vw, 36px); position: relative; }
.cell--white { background: var(--white) !important; }
.cell--yellow { background: var(--yellow) !important; }
.cell--blue { background: var(--blue) !important; color: #fff; }
.cell--red { background: var(--red) !important; color: var(--ink); }
.cell--ink { background: var(--ink) !important; color: var(--paper); }
.cell-num {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--f-mono); font-size: 12px;
}

.section { padding-block: clamp(56px, 8vw, 110px); }
.section-head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p { max-width: 46ch; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- 7. Hero (inicio) ---------- */
.hero { padding-block: clamp(24px, 4vw, 48px) 0; }
.hero-grid { grid-template-columns: 7fr 5fr; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.hero-copy .display { margin-bottom: 20px; }
.hero-figure { position: relative; padding: 0 !important; overflow: hidden; min-height: 420px; }
.hero-figure img {
  position: absolute; inset: -6% 0 0 0;
  width: 100%; height: 112%; object-fit: cover;
}
.sticker {
  position: absolute; z-index: 2;
  background: var(--yellow);
  border: var(--line);
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; text-transform: uppercase;
  padding: 10px 12px; line-height: 1.25;
}
.sticker strong { display: block; font-family: var(--f-display); font-size: 2.4rem; font-stretch: 75%; font-weight: 900; line-height: .9; }
.sticker--tl { top: 16px; left: 16px; }
.sticker--br { bottom: 16px; right: 16px; background: var(--white); }
.hero-stats { grid-template-columns: repeat(4, 1fr); border-top: 0; }
.stat { padding: 18px 20px; }
.stat-n {
  font-family: var(--f-display); font-weight: 900; font-stretch: 75%;
  font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1;
}
.stat-l { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Page hero (interiores) */
.page-hero { padding-block: clamp(28px, 5vw, 64px) 0; }
.page-hero .cells { grid-template-columns: 8fr 4fr; }
.page-hero .display { font-size: clamp(2.4rem, 6.4vw, 6rem); margin-bottom: 18px; }
.page-hero-aside { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.page-hero-img { padding: 0 !important; overflow: hidden; min-height: 260px; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .page-hero .cells { grid-template-columns: 1fr; }
  .page-hero-img { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- 8. Marquee ---------- */
.marquee {
  background: var(--ink); color: var(--paper);
  border-block: var(--line);
  overflow: hidden;
  white-space: nowrap;
  margin-top: clamp(40px, 6vw, 72px);
}
.marquee-track {
  display: inline-flex;
  animation: marquee 38s linear infinite;
  padding-block: 14px;
}
.marquee span {
  font-family: var(--f-display); font-weight: 900; font-stretch: 75%;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); text-transform: uppercase;
  padding-inline: 18px;
}
.marquee span:nth-child(even) { color: var(--yellow); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Dos formas de comprar ---------- */
.ways { grid-template-columns: 1fr 1fr; }
.way {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 420px;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.way .h2 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
.way ul { list-style: none; margin: 0; padding: 0; font-family: var(--f-mono); font-size: 14px; }
.way li { padding: 8px 0; border-top: 1px solid currentColor; }
.way-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.way-arrow {
  width: 64px; height: 64px; flex: none;
  border: 2px solid currentColor;
  display: grid; place-items: center;
  transition: transform .2s var(--ease);
}
.way-arrow svg { width: 28px; height: 28px; }
.way:hover { background: var(--ink) !important; color: var(--paper); }
.way:hover .way-arrow { transform: translate(6px, -6px); }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } .way { min-height: 340px; } }

/* ---------- 10. Product cards ---------- */
.products { grid-template-columns: repeat(3, 1fr); }
.product { display: flex; flex-direction: column; }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--paper-2);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .3s;
}
.product:hover .product-media img { transform: scale(1.05); }
.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--paper); border: var(--line);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase;
  padding: 4px 8px;
}
.product-tag--hot { background: var(--red); color: var(--ink); }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-body .h3 { text-transform: uppercase; font-stretch: 85%; }
.product-meta { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--mute); }
.product-list {
  list-style: none; margin: 0; padding: 0;
  font-size: 14.5px; color: var(--ink-2);
}
.product-list li { padding: 5px 0 5px 18px; border-top: 1px dashed rgba(18,18,18,.25); position: relative; }
.product-list li::before { content: "—"; position: absolute; left: 0; }
.product-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 8px;
}
.product-foot .price { font-size: 1.6rem; }
.product-foot .price small { font-size: .6em; font-weight: 400; }
.add-btn {
  min-height: 48px; padding: 0 16px;
  border: var(--line); background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; text-transform: uppercase;
  transition: background-color .12s, color .12s;
}
.add-btn:hover { background: var(--yellow); color: var(--ink); }
.add-btn.is-added { background: var(--green); color: #fff; }
.product[hidden] { display: none; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: var(--line); background: var(--paper);
  min-height: 42px; padding: 0 16px;
  font-family: var(--f-mono); font-size: 13px; text-transform: uppercase;
}
.chip:hover { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

/* Barra de envío */
.ship-meter { border: var(--line); background: var(--white); padding: 18px 20px; margin-bottom: 28px; }
.ship-meter p { font-family: var(--f-mono); font-size: 13.5px; margin-bottom: 10px; }
.meter { height: 14px; border: var(--line); background: var(--paper); position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--green); transition: width .6s var(--ease); }

/* ---------- 11. Steps ---------- */
.steps { grid-template-columns: repeat(3, 1fr); }
.step { min-height: 280px; display: flex; flex-direction: column; gap: 16px; }
.step-n {
  font-family: var(--f-display); font-weight: 900; font-stretch: 75%;
  font-size: 5.5rem; line-height: .8;
  -webkit-text-stroke: 2px var(--ink); color: transparent;
}
.cell--ink .step-n, .cell--blue .step-n { -webkit-text-stroke-color: var(--paper); }
.step p { color: inherit; opacity: .85; margin: 0; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }
@media (max-width: 560px) { .steps--4 { grid-template-columns: 1fr; } }

/* ---------- 12. Services split ---------- */
.split { grid-template-columns: 1fr 1fr; }
.split-media { padding: 0 !important; overflow: hidden; min-height: 360px; position: relative; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split-media { min-height: 260px; } }

/* ---------- 13. Visit / hours / map ---------- */
.visit { grid-template-columns: 5fr 7fr; }
.hours { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 14.5px; }
.hours td { padding: 12px 0; border-top: var(--hair); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.is-today td { background: var(--yellow); }
.hours tr.is-today td:first-child { padding-left: 8px; }
.hours tr.is-today td:last-child { padding-right: 8px; }
.open-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase;
  border: var(--line); padding: 6px 10px; background: var(--white);
}
.open-badge i { width: 10px; height: 10px; background: var(--mute); }
.open-badge.is-open i { background: var(--green); animation: blink 1.6s steps(2) infinite; }
.open-badge.is-closed i { background: var(--red); }
@keyframes blink { 50% { opacity: .25; } }
.map { padding: 0 !important; min-height: 420px; position: relative; background: var(--paper-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-top: var(--hair); }
.contact-list span { display: block; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--mute); }
.contact-list a, .contact-list strong { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .map { min-height: 320px; } }

/* ---------- 14. Catálogo en tienda ---------- */
.search {
  display: flex; border: var(--line); background: var(--white);
  margin-bottom: 24px;
}
.search label { display: grid; place-items: center; padding-inline: 16px; border-right: var(--line); background: var(--yellow); }
.search svg { width: 22px; height: 22px; }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 16px; font-size: 1.1rem; outline: none;
}
.search-empty { font-family: var(--f-mono); padding: 20px; border: var(--line); background: var(--white); margin-bottom: 24px; }
.catalog { grid-template-columns: repeat(4, 1fr); }
.cat { display: flex; flex-direction: column; gap: 14px; }
.cat-icon {
  width: 56px; height: 56px; border: var(--line); display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; font-size: 1.6rem;
}
.cat ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.cat li { padding: 6px 0; border-top: 1px dashed rgba(18,18,18,.25); }
.cat li.is-match { background: var(--yellow); }
.cat[hidden], .cat li[hidden] { display: none; }
@media (max-width: 1080px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog { grid-template-columns: 1fr; } }

/* ---------- 15. Price table (impresiones) ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border: var(--line); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: var(--hair); }
.price-table th { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; background: var(--ink); color: var(--paper); font-weight: 400; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td:last-child { font-family: var(--f-mono); font-weight: 700; white-space: nowrap; }
.price-table tr { transition: background-color .1s; }
.price-table tbody tr:hover { background: var(--yellow); }
.note { font-family: var(--f-mono); font-size: 12.5px; color: var(--mute); margin-top: 12px; }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  border: var(--line); border-radius: 0;
  background: var(--white);
  padding: 12px 14px;
  font-size: 16px;
  appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); border-color: var(--blue); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-cards { display: grid; gap: 8px; }
.radio-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: var(--line); background: var(--white); padding: 12px 14px;
  cursor: pointer;
}
.radio-card input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.radio-card strong { display: block; font-size: 15px; }
.radio-card small { display: block; color: var(--mute); font-size: 13px; line-height: 1.35; }
.radio-card:has(input:checked) { background: var(--yellow); }
.radio-card.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 17. Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(18,18,18,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility 0s .25s;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(460px, 100%);
  background: var(--paper);
  border-left: var(--line);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
}
.cart.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 0 0 20px; height: var(--nav-h); flex: none;
  border-bottom: var(--line);
}
.cart-head h2 { font-size: 1.8rem; font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.cart-close { height: 100%; aspect-ratio: 1; border: 0; border-left: var(--line); background: transparent; font-size: 28px; line-height: 1; }
.cart-close:hover { background: var(--ink); color: var(--paper); }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 20px; align-content: start; }
.cart-empty { text-align: center; padding: 40px 10px; font-family: var(--f-mono); font-size: 14px; }
.cart-empty .btn { margin-top: 18px; }
.cart-items { list-style: none; margin: 0; padding: 0; border: var(--line); background: var(--white); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px; border-top: var(--hair); align-items: center; }
.cart-item:first-child { border-top: 0; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border: var(--hair); }
.cart-item h3 { font-family: var(--f-body); font-size: 14.5px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.cart-item .price { font-size: 13.5px; }
.qty { display: inline-flex; border: var(--hair); margin-top: 6px; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; font-weight: 700; }
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty span { min-width: 28px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; border-inline: var(--hair); }
.cart-remove { border: 0; background: none; font-family: var(--f-mono); font-size: 11px; text-decoration: underline; text-transform: uppercase; color: var(--mute); }
.cart-totals { font-family: var(--f-mono); font-size: 14px; }
.cart-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-totals .total { border-top: var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.2rem; font-weight: 700; }
.cart-foot { padding: 16px 20px 20px; border-top: var(--line); background: var(--paper); flex: none; display: grid; gap: 10px; }
.cart-legal { font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); line-height: 1.4; }
.cart-done { border: var(--line); background: var(--yellow); padding: 16px; font-size: 15px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95;
  transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper);
  border: var(--line);
  font-family: var(--f-mono); font-size: 13px;
  padding: 12px 16px;
  display: flex; gap: 14px; align-items: center;
  transition: transform .35s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast button { border: 0; background: var(--yellow); color: var(--ink); font-family: var(--f-mono); font-weight: 700; font-size: 12px; text-transform: uppercase; padding: 6px 10px; }

/* ---------- 18. Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  border: var(--line);
  transition: transform .2s var(--ease), background-color .15s;
}
.wa-float:hover { background: var(--ink); transform: translateY(-3px); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- 19. FAQ ---------- */
.faq { border: var(--line); background: var(--white); }
.faq details { border-top: var(--hair); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 20px;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary { background: var(--yellow); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 4px 20px 20px; color: var(--ink-2); }

/* ---------- 20. CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; border-block: var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.cta-band .h2 { color: #fff; }
.cta-band .hl { color: var(--ink); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(48px, 6vw, 80px); }
.footer-word {
  font-family: var(--f-display); font-weight: 900; font-stretch: 75%;
  font-size: clamp(5rem, 22vw, 20rem); line-height: .78; text-transform: uppercase;
  letter-spacing: -.03em;
  color: var(--yellow);
  margin-bottom: clamp(32px, 4vw, 56px);
  overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: rgba(246,243,234,.25);
  border-block: 1px solid rgba(246,243,234,.25);
}
.footer-grid > div { background: var(--ink); padding: 24px 20px 28px 0; }
.footer-grid > div + div { padding-left: 20px; }
.footer-grid h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: var(--yellow); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer-grid li { padding: 3px 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { background: var(--yellow); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px 90px; font-family: var(--f-mono); font-size: 12px; color: rgba(246,243,234,.6); }
.footer-bottom a { color: inherit; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div, .footer-grid > div + div { padding: 20px 16px 24px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 22. Créditos ---------- */
.credits-list { list-style: none; margin: 0; padding: 0; border: var(--line); background: var(--white); }
.credits-list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; border-top: var(--hair); align-items: center; font-size: 14.5px; }
.credits-list li:first-child { border-top: 0; }
.credits-list img { width: 96px; height: 72px; object-fit: cover; border: var(--hair); }

/* ---------- 23. Reveal (con red de seguridad) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1 !important; transform: none !important; }
/* Si main.js nunca arranca, a los 4.5s todo se muestra igual */
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.js:not(.is-ready) .reveal { animation: revealSafety .01s 4.5s forwards; }

.split-word { display: inline-block; }

/* Solo se apaga lo realmente intrusivo */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 90s; }
}

/* ---------- 24. Foto pendiente de producto ---------- */
.product-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(18,18,18,.07) 14px 16px),
    var(--paper-2);
  font-family: var(--f-mono); text-align: center; padding: 16px;
}
.product-ph span {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  background: var(--paper); border: var(--line); padding: 6px 10px;
}
.product-ph small { font-size: 11px; color: var(--mute); word-break: break-all; }
.product-desc { font-size: 15px; color: var(--ink-2); margin: 0; }
.cart-ph {
  width: 64px; height: 64px; display: grid; place-items: center;
  border: var(--hair); background: var(--paper-2);
  font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; color: var(--mute);
}

/* ---------- 25. Los más pedidos (categorías) ---------- */
.picks { grid-template-columns: repeat(5, 1fr); }
.pick {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 260px; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.pick .h3 { text-transform: uppercase; font-stretch: 80%; font-size: clamp(1.4rem, 2vw, 1.9rem); }
.pick p { font-size: 14.5px; margin: 8px 0 0; }
.pick .way-arrow { width: 48px; height: 48px; }
.pick .way-arrow svg { width: 22px; height: 22px; }
.pick:hover { background: var(--ink) !important; color: var(--paper); }
.pick:hover .way-arrow { transform: translate(5px, -5px); }
@media (max-width: 1100px) {
  .picks { grid-template-columns: repeat(2, 1fr); }
  .pick:first-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .picks { grid-template-columns: 1fr; }
  .pick:first-child { grid-column: auto; }
  .pick { min-height: 0; }
}

/* ---------- 26. Mascota Davi (oculta hasta que exista davi.png) ---------- */
.mascot { margin: 0; pointer-events: none; }
.mascot[hidden] { display: none !important; }
.mascot img { width: 100%; height: auto; display: block; }
.mascot--hero {
  position: absolute; z-index: 3; left: 12px; bottom: 0;
  width: clamp(120px, 34%, 220px);
}
.cta-band .wrap { grid-template-columns: auto 1fr auto; }
.mascot--cta { width: clamp(96px, 12vw, 150px); }
.cta-band .wrap > :first-child:not(.mascot) { grid-column: 1 / 3; }
.has-mascot .cta-band .wrap > :first-child:not(.mascot) { grid-column: auto; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer-top .footer-word { flex: 1; min-width: 0; }
.mascot--footer { width: clamp(110px, 16vw, 220px); flex: none; margin-bottom: clamp(32px, 4vw, 56px); }
@media (max-width: 760px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .wrap > :first-child:not(.mascot) { grid-column: auto; }
}
.hero-figure .mascot img { position: static; inset: auto; width: 100%; height: auto; object-fit: contain; }

/* ---------- 27. Fotos reales de producto ---------- */
.product-media { aspect-ratio: 4 / 5; background: var(--white); }
.product-thumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 20px 0;
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase;
}
.thumb {
  width: 48px; height: 64px; padding: 0; border: var(--hair); background: var(--white);
  opacity: .65; transition: opacity .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-pressed="true"] { opacity: 1; outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }

/* Más modelos (preguntar precio) */
.more { grid-template-columns: repeat(5, 1fr); }
.more-item { display: flex; flex-direction: column; background: var(--white) !important; }
.more-media { aspect-ratio: 3 / 4; overflow: hidden; border-bottom: var(--line); }
.more-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.more-item:hover .more-media img { transform: scale(1.05); }
.more-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: space-between; }
.more-body h3 { font-family: var(--f-body); font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.more-body .link-arrow { font-size: 12px; align-self: flex-start; }
.products--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .products--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .products--4 { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .more { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .more { grid-template-columns: repeat(2, 1fr); } }
.more-cats { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.more-cats .h3 { text-transform: uppercase; font-stretch: 85%; margin-bottom: 12px; }
.more-cats ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.more-cats li { padding: 6px 0; border-top: 1px dashed rgba(18,18,18,.25); }
.more-cats .btn { margin-top: 14px; }
@media (max-width: 1000px) { .more-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .more-cats { grid-template-columns: 1fr; } }

/* ---------- 28. Promoción (Buen Fin) ---------- */
[data-promo-on][hidden], [data-promo-off][hidden] { display: none !important; }
.promo { background: var(--red); color: var(--ink); border-block: var(--line); margin-top: clamp(40px, 6vw, 72px); }
.promo + .section { padding-top: clamp(56px, 8vw, 110px); }
.promo-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding-block: clamp(28px, 4vw, 44px) 12px;
}
.promo-kicker { display: block; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; margin-bottom: 6px; }
.promo-title strong {
  display: block; font-family: var(--f-display); font-weight: 900; font-stretch: 75%;
  font-size: clamp(3rem, 7vw, 6rem); line-height: .85; text-transform: uppercase; letter-spacing: -.02em;
}
.promo-deal { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.2; }
.promo-pct {
  font-family: var(--f-display); font-weight: 900; font-stretch: 75%; white-space: nowrap;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .9;
  background: var(--yellow); border: var(--line); padding: 6px 12px 2px;
}
.promo-cta { display: grid; gap: 10px; justify-items: start; }
.promo-cta p { margin: 0; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; }
.promo-fine { font-family: var(--f-mono); font-size: 11.5px; padding-bottom: 20px; opacity: .85; }
@media (max-width: 900px) {
  .promo-inner { grid-template-columns: 1fr; }
  .promo-deal { flex-wrap: wrap; }
}
.promo-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--red); color: var(--ink); border: var(--line);
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 1.2;
  padding: 5px 8px; text-align: center;
}

/* Fachada */
.fachada { margin: 0 0 18px; border: var(--line); background: var(--white); max-width: 360px; }
.fachada img { width: 100%; height: auto; display: block; }
.fachada figcaption { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; padding: 8px 10px; border-top: var(--hair); }

/* ---------- 29. Textos más grandes (todo lo que no es título) ---------- */
body { font-size: 18.5px; line-height: 1.6; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.kicker { font-size: 14.5px; }
.strip { font-size: 14px; }
.nav-links a, .cart-btn, .menu-btn { font-size: 14.5px; }
.logo-sub { font-size: 12.5px; }
.btn { font-size: 15px; }
.link-arrow { font-size: 15px; }
.stat-l { font-size: 14px; }
.way ul { font-size: 15.5px; }
.product-meta { font-size: 13.5px; }
.product-desc { font-size: 17px; }
.product-list { font-size: 16.5px; }
.product-tag, .promo-badge { font-size: 12.5px; }
.product-thumbs { font-size: 12.5px; }
.add-btn { font-size: 14px; }
.pick p { font-size: 16.5px; }
.chip { font-size: 14px; }
.ship-meter p { font-size: 15px; }
.note { font-size: 14px; }
.step p { font-size: 17px; }
.hours { font-size: 16px; }
.open-badge { font-size: 13.5px; }
.contact-list span { font-size: 13.5px; }
.contact-list a, .contact-list strong { font-size: 1.15rem; }
.cat ul, .more-cats ul { font-size: 17px; }
.more-body h3 { font-size: 16.5px; }
.more-body .link-arrow { font-size: 13.5px; }
.price-table th { font-size: 13.5px; }
.price-table td { font-size: 17px; }
.field label, .field legend { font-size: 13.5px; }
.radio-card strong { font-size: 16.5px; }
.radio-card small { font-size: 14.5px; }
.cart-item h3 { font-size: 16px; }
.cart-item .price { font-size: 14.5px; }
.cart-totals { font-size: 15.5px; }
.cart-legal { font-size: 13px; }
.cart-remove { font-size: 12.5px; }
.toast { font-size: 14.5px; }
.faq summary { font-size: 1.15rem; }
.faq details > div { font-size: 17.5px; }
.footer-grid h3 { font-size: 13.5px; }
.footer-grid ul { font-size: 17px; }
.footer-bottom { font-size: 13.5px; }
.promo-kicker, .promo-cta p { font-size: 15.5px; }
.promo-deal { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.promo-fine { font-family: var(--f-body); font-size: 16.5px; line-height: 1.5; opacity: 1; }
.fachada figcaption { font-size: 13px; }
.credits-list li { font-size: 16px; }
.search-empty { font-size: 16px; }
@media (max-width: 560px) {
  body { font-size: 18px; }
  .strip { font-size: 13px; }
}

/* ---------- 30. Precio Buen Fin: tachado + precio con descuento ---------- */
.price--deal { display: flex; flex-direction: column; line-height: 1.05; }
.price-was { display: flex; align-items: center; gap: 8px; font-size: .7em; }
.price-was em { font-style: normal; font-size: .8em; background: var(--red); color: var(--ink); padding: 1px 6px; border: 2px solid var(--ink); }
.price--deal s { font-size: 1em; font-weight: 400; color: var(--ink-2); text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.price--deal .price-now { color: var(--red); font-size: 1.3em; }
.price--deal .price-now small { color: var(--ink); }
.cart-item .price s { font-weight: 400; color: var(--ink-2); text-decoration-color: var(--red); }
.cart-item .price .price-now { color: var(--red); }
.promo-badge { font-size: 15px; }
