/* =============================================================
   LONE DOG GOODS — styles.css
   Archetype: Editorial Dark Warm (garage / atelier de motos)
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0A0A09;   /* near-black, warm-tinted — never pure #000 for large fields */
  --bg-2:      #131110;   /* card / raised surface */
  --bg-3:      #1C1916;   /* nav solid, hover surface */
  --black:     #000000;   /* true black — masthead band, footer band, logo swatches */
  --cream:     #F3EFE6;   /* primary text on dark */
  --cream-2:   #F3EFE6;   /* secondary text — same as primary, per request (was #C9C3B6) */
  --cream-3:   #8A8478;   /* metadata / faint */
  --white:     #FFFFFF;   /* reserved accents */
  --red:       #E30000;   /* brand accent — price, CTA, urgency */
  --red-dark:  #B50000;
  --yellow:    #FDE404;   /* secondary accent — stock badges, highlights */
  --line:      rgba(243,239,230,0.12);
  --line-2:    rgba(243,239,230,0.22);

  --sans:  "Archivo", sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", monospace;
  --display: "Gearline Motors", var(--sans);
  --accent-mono: "HWT Artz", var(--mono);

  --container: 1280px;
  --gap: clamp(1rem, 2vw, 1.75rem);
  --nav-h: 76px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@font-face {
  font-family: "Gearline Motors";
  src: url("assets/fonts/GearlineMotorsSans01Regular-Jp72m.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "HWT Artz";
  src: url("assets/fonts/HWTArtz.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }
::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: ldFadeOutUp; }
::view-transition-new(root) { animation-name: ldFadeInUp; }
@keyframes ldFadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes ldFadeInUp  { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  border-radius: 6px; font-weight: 700; font-size: .85rem;
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gap); }

.kicker {
  font-family: var(--accent-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.kicker .dot { color: var(--red); font-weight: 700; font-size: 0.95em; line-height: 1; flex-shrink: 0; }

/* Lightning bolt — brand marker for especially important info. Use sparingly. */
.bolt-marker { color: var(--red); font-style: normal; margin-inline: 0.35em; display: inline-block; font-size: 1.2em; line-height: 1; vertical-align: -0.05em; }
.bolt-marker--yellow { color: var(--yellow); }

/* ✖ separator — brand divider between two content blocks */
.section-divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  max-width: 420px; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem) var(--gap) 0;
}
.divider-x { color: var(--red); font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.divider-line { flex: 1; height: 1px; background: var(--line-2); }

[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word > span { display: inline-block; }

/* =============================================================
   4. Typography
   ============================================================= */
h1, .h1 { font-family: var(--display); font-weight: 400; font-synthesis: none; text-transform: uppercase; }
h2, .h2 { font-family: var(--display); font-weight: 400; font-synthesis: none; text-transform: uppercase; }

.section-kicker {
  text-align: center;
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.1vw, 2.15rem);
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--cream);
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}
.section-title em {
  font-style: normal;
  color: var(--red);
}

/* =============================================================
   5. Components
   ============================================================= */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(227,0,0,0.25);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(227,0,0,0.38); background: var(--red-dark); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--cream); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(-1px) scale(0.97); transition-duration: .12s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,9,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; }
.nav-logo { height: 34px; width: auto; }
.nav-wordmark {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}
.nav-link {
  position: relative;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-2);
  padding: 0.3rem 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--cream); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 26px; padding: 4px;
}
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--cream); transition: transform .3s var(--ease-out), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile a {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--cream);
}
.nav-mobile .btn { margin-top: 1rem; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.4rem;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1.1rem 0;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.marquee-track {
  display: inline-flex; flex: none; gap: 1.4rem; white-space: nowrap; will-change: transform;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.marquee-track .dot { color: var(--red); }
@keyframes marqueeScroll { to { transform: translateX(-100%); } }

/* ---------- Tilt card + cursor halo ---------- */
.tilt-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .3s ease;
  position: relative;
  isolation: isolate;
}
.tilt-card:hover { transition-duration: .15s; }
.featured-card-glow {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(227,0,0,0.28), transparent 62%);
  opacity: 0; transition: opacity .35s;
}
.tilt-card:hover .featured-card-glow { opacity: 1; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,9,0.15) 0%, transparent 30%, transparent 62%, var(--bg) 100%);
}

/* ---------- Global cursor field (site-wide, fixed behind all content) ---------- */
.global-cursor-field {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
.global-mesh {
  position: absolute; inset: -10%;
  background:
    radial-gradient(38% 36% at var(--mx, 30%) var(--my, 35%), rgba(227,0,0,0.24), transparent 60%),
    radial-gradient(30% 28% at calc(var(--mx, 30%) + 18%) calc(var(--my, 35%) - 10%), rgba(253,228,4,0.04), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(253,228,4,0.02), rgba(227,0,0,0.06), rgba(253,228,4,0.01), rgba(227,0,0,0.06));
  filter: blur(56px) saturate(105%);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.global-grain {
  position: absolute; inset: 0;
  opacity: 0.14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) var(--gap) 3rem;
  width: 100%;
  text-align: center;
}
.hero-logo { width: clamp(256px, 36vw, 384px); height: auto; margin: 0 auto 1.6rem; }
.hero-eyebrow { justify-content: center; margin-bottom: 1.4rem; }
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: 0.02em;
  line-height: 1;
  max-width: 16ch;
  margin-inline: auto;
  color: var(--cream);
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-title em { font-style: normal; color: var(--red); }
.hero-subtitle {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--cream-2);
  max-width: 46ch;
  margin: 1.4rem auto 0;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2.3rem;
  flex-wrap: wrap;
}

/* ---------- Manifesto / about teaser ---------- */
.manifesto {
  padding: clamp(5.5rem, 12vw, 9rem) var(--gap);
  max-width: var(--container);
  margin: 0 auto;
}
.manifesto-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.manifesto-text .kicker { margin-bottom: 1.1rem; }
.manifesto-title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  letter-spacing: 0.03em;
  margin: 0 0 1.2rem;
}
.manifesto-title em { font-style: normal; color: var(--red); }
.manifesto-body {
  font-size: 1.02rem;
  color: var(--cream-2);
  line-height: 1.75;
  max-width: 52ch;
}
.manifesto-body + .manifesto-body { margin-top: 1rem; }
.manifesto-grid--single {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.manifesto-grid--single .manifesto-body { margin-inline: auto; }
.manifesto-grid--single .kicker { justify-content: center; }

/* ---------- Video loop ---------- */
.video-section {
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gap) clamp(3rem, 7vw, 5rem);
  max-width: 980px;
  margin: 0 auto;
}
.video-section .kicker { justify-content: center; margin-bottom: 1.1rem; }
.video-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  line-height: 0;
}
.video-el {
  width: 100%;
  height: auto;
  display: block;
}
.video-mute-btn {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,9,0.65);
  border: 1px solid rgba(243,239,230,0.3);
  color: var(--cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease, transform .3s var(--ease-soft);
}
.video-mute-btn:hover { background: var(--red); border-color: var(--red); transform: scale(1.08); }
.video-mute-btn .icon-unmuted { display: none; }
.video-mute-btn[aria-pressed="true"] .icon-muted { display: none; }
.video-mute-btn[aria-pressed="true"] .icon-unmuted { display: block; }

/* ---------- Featured helmets ---------- */
.featured {
  padding: clamp(3rem, 7vw, 5rem) var(--gap) clamp(4rem, 8vw, 6rem);
  max-width: var(--container);
  margin: 0 auto;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.featured-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.featured-card:hover { border-color: var(--line-2); }
.featured-card-media {
  position: relative; aspect-ratio: 1; background: var(--bg-3); overflow: hidden;
}
.featured-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-soft); }
.featured-card:hover .featured-card-media img { transform: scale(1.08); }
.featured-card-body { padding: 1rem 1.1rem 1.2rem; }
.featured-card-line {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-3); margin-bottom: 0.35rem;
}
.featured-card-name {
  font-family: var(--sans); font-weight: 800; font-size: 0.98rem; text-transform: uppercase;
  color: var(--cream); margin-bottom: 0.5rem; line-height: 1.25;
}
.featured-card-price {
  font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--red);
}
.featured-foot { text-align: center; margin-top: 2.4rem; }
.featured-cta { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }

/* ---------- Process (cómo comprar) ---------- */
.process {
  padding: clamp(5rem, 10vw, 8rem) var(--gap);
  max-width: var(--container);
  margin: 0 auto;
}
.process-grid {
  display: grid;
  gap: 1.4rem;
}
.process-step {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
}
.process-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--red);
}
.process-title {
  font-family: var(--sans); font-weight: 800; font-size: 1.15rem; text-transform: uppercase;
  color: var(--cream); margin-bottom: 0.5rem;
}
.process-text { color: var(--cream-2); font-size: 0.95rem; line-height: 1.65; max-width: 60ch; }

/* ---------- Payments strip ---------- */
.payments {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem var(--gap);
  background: var(--bg-2);
}
.payments-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.7rem 1.6rem;
}
.payments-label {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-3);
}
.payments-list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: center; }
.payments-list span {
  font-family: var(--mono); font-size: 0.78rem; color: var(--cream-2);
}

/* ---------- Payment groups (Importación page) ---------- */
.payment-groups {
  display: flex; flex-direction: column; gap: 1.6rem;
  max-width: 760px; margin: 0 auto;
}
.payment-group-label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-3); margin-bottom: 0.7rem; display: block; text-align: center;
}
.payment-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.payment-chip {
  font-family: var(--mono); font-size: 0.78rem; color: var(--cream-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.45rem 1rem;
}

/* ---------- Final CTA (index) ---------- */
.final-cta {
  padding: clamp(5.5rem, 12vw, 9rem) var(--gap);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.final-cta-title {
  font-size: clamp(1.5rem, 3.1vw, 2.15rem);
  letter-spacing: 0.03em;
  margin-bottom: 1.1rem;
}
.final-cta-title em { font-style: normal; color: var(--red); }
.final-cta-sub { color: var(--cream-2); margin-bottom: 2rem; }
.final-cta-link { margin-top: 1.4rem; }
.final-cta-link a {
  font-family: var(--mono); font-size: 0.78rem; color: var(--cream-3);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.final-cta-link a:hover { color: var(--red); border-color: var(--red); }

/* ---------- Mini page hero (catálogo / nosotros) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) var(--gap) 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.page-hero-title { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: 0.03em; }
.page-hero-title em { font-style: normal; color: var(--red); }
.page-hero-sub { color: var(--cream-2); max-width: 56ch; margin: 1rem auto 0; }
.page-hero-sub + .page-hero-sub { margin-top: 0.8rem; }

/* ---------- Category switch (Cascos / Accesorios) ---------- */
.category-switch {
  display: flex; justify-content: center; gap: 0.9rem;
  margin-top: 1.8rem; flex-wrap: wrap;
}
.category-btn {
  font-family: var(--sans); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--cream-2);
  background: var(--bg-2); border: 1px solid var(--line-2);
  padding: 0.9rem 2.2rem; border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .3s var(--ease-soft);
}
.category-btn:hover { border-color: var(--cream); color: var(--cream); transform: translateY(-2px); }
.category-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }
.category-btn:active { transform: scale(0.96); transition-duration: .12s; }

/* ---------- Sticky filter bar ---------- */
.filter-bar {
  position: sticky; top: var(--nav-h); z-index: 40;
  background: rgba(10,10,9,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filter-inner { max-width: var(--container); margin: 0 auto; padding: 0.9rem var(--gap); display: flex; flex-direction: column; }
.pill-row { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pill-row[hidden] { display: none; }
.pill-row::-webkit-scrollbar { display: none; }
@media (min-width: 960px) {
  .pill-row { flex-wrap: wrap; overflow-x: visible; row-gap: 0.5rem; justify-content: center; }
}
.pill {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line-2); color: var(--cream-2);
  padding: 0.5rem 1rem; border-radius: 999px; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pill:hover { border-color: var(--cream); color: var(--cream); }
.pill.active { background: var(--red); border-color: var(--red); color: var(--white); }
.pill:active { transform: scale(0.94); transition: transform .12s var(--ease-soft); }

.select-row {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0.9rem 1.1rem;
  margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--line);
}
.select-wrap { display: flex; flex-direction: column; gap: 0.25rem; }
.select-wrap[hidden] { display: none; }
.select-wrap label {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-3);
}
.select-wrap select {
  font-family: var(--mono); font-size: 0.76rem;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 0.42rem 1.8rem 0.42rem 0.65rem; color: var(--cream);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23C9C3B6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.65rem center;
  min-width: 96px;
}
.select-wrap select:focus { border-color: var(--red); }
.btn-clear-filters {
  align-self: center; background: none; border: none; border-bottom: 1px solid var(--red); color: var(--red);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0; margin-left: 0.2rem;
}

/* ---------- Stat strip ---------- */
.stat-strip { text-align: center; padding: 1.3rem 1rem; border-bottom: 1px solid var(--line); }
.stat-strip p {
  margin: 0; font-family: var(--mono); font-size: clamp(0.72rem, 2vw, 0.86rem);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream-2);
}
.stat-strip span { color: var(--red); font-weight: 700; }

/* ---------- Catalog ---------- */
#catalog { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
.catalog-subcategory-header {
  padding-top: clamp(1.2rem, 3vw, 1.8rem);
}
.catalog-subcategory-header h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin: 0;
}
.line-section { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(1rem, 3vw, 2rem); scroll-margin-top: 150px; }
.section-head { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.4rem; }
.section-head .bolt { display: none; }
.section-head h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); letter-spacing: 0.03em; color: var(--cream); margin: 0; }
.section-count {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream-3); margin-left: auto; white-space: nowrap; align-self: center;
}
.stitch-rule { border: none; border-top: 1px solid var(--line-2); margin: 0.9rem 0 2.1rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.6rem 1.4rem; }

.card {
  display: flex; flex-direction: column;
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.card .featured-card-glow { display: none; }
.card:hover { border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-3); border: none; padding: 0; width: 100%; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-soft); }
.card-media:hover img { transform: scale(1.07); }
.card-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.card-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.card-dots span.on { background: var(--white); }
.card-gallery-hint {
  position: absolute; top: 0.6rem; right: 0.6rem; background: rgba(0,0,0,0.72); color: var(--white);
  font-family: var(--mono); font-size: 0.6rem; padding: 0.25rem 0.5rem; border-radius: 3px;
}
.card-stock {
  position: absolute; top: 0.6rem; left: 0.6rem; background: var(--red); color: var(--white);
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0.3rem 0.55rem; max-width: calc(100% - 1.2rem); border-radius: 3px;
}
.card-body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-eyebrow {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-3); margin: 0 0 0.4rem; display: flex; align-items: center; justify-content: space-between; gap: 0.4rem;
}
.card-cert {
  font-family: var(--mono); font-size: 0.56rem; color: var(--cream-2);
  border: 1px solid var(--line-2); padding: 0.08rem 0.32rem; white-space: nowrap; border-radius: 3px;
}
.card-name { font-family: var(--sans); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); margin: 0 0 0.15rem; line-height: 1.3; }
.card-color { font-family: var(--mono); font-style: italic; font-weight: 500; font-size: 0.8rem; color: var(--cream-2); margin: 0 0 0.8rem; }
.card-sizes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.95rem; }
.size-chip { font-family: var(--mono); font-size: 0.64rem; border: 1px solid var(--line-2); color: var(--cream-2); padding: 0.18rem 0.48rem; line-height: 1.3; border-radius: 3px; }
.card-price { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--red); margin: 0 0 1rem; margin-top: auto; }
.card-price small { font-family: var(--mono); font-weight: 500; font-size: 0.66rem; color: var(--cream-3); display: block; margin-top: 0.15rem; text-transform: none; }
.btn-consultar {
  display: block; width: 100%; text-align: center;
  font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase;
  background: transparent; color: var(--cream); border: 1px solid var(--line-2); padding: 0.75rem 0.6rem; line-height: 1.3;
  border-radius: 5px;
  transition: background .15s ease, transform .3s var(--ease-soft);
}
.btn-consultar:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-consultar:active { transform: scale(0.97); transition-duration: .12s; }
.card-whatsapp-note {
  font-family: var(--mono); font-size: 0.64rem; text-align: center; color: var(--cream-3);
  margin: 0.55rem 0 0;
}

.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state p { margin: 0 0 1rem; font-size: 1.05rem; color: var(--cream-2); }
.btn-link {
  background: none; border: none; border-bottom: 1px solid var(--red); color: var(--red);
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0;
}

/* ---------- Sizes table ---------- */
.sizes-section { max-width: var(--container); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gap); }
.sizes-img-btn { display: block; width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0; position: relative; overflow: hidden; }
.sizes-img-btn img { width: 100%; }
.sizes-img-btn[hidden] { display: none; }
.zoom-hint {
  position: absolute; bottom: 0.8rem; right: 0.8rem; background: rgba(0,0,0,0.75); color: var(--white);
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.4rem 0.75rem; border-radius: 4px;
}

/* ---------- Info importante ---------- */
.info-section { max-width: 780px; margin: 0 auto; padding: 0 var(--gap) clamp(3rem, 6vw, 5rem); }
.info-box { border: 1px solid var(--line-2); border-radius: 12px; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--bg-2); }
.info-box h2 { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 1.2rem; color: var(--red); }
.info-box p { font-weight: 500; font-size: 0.94rem; line-height: 1.7; color: var(--cream-2); margin: 0 0 1rem; }
.info-callout { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-2); }
.info-callout strong { display: block; font-family: var(--mono); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--cream); }
.info-callout p { margin: 0; }
.info-callout a { color: var(--red); border-bottom: 1px solid var(--red); }
.info-callout a:hover { color: var(--cream); border-color: var(--cream); }

/* ---------- Entrega y envío — editorial, sin tarjetas ---------- */
.delivery-section .section-title { margin-bottom: 1.6rem; }
.delivery-lead {
  text-align: center; color: var(--cream-2); font-size: 1.02rem; line-height: 1.7;
  max-width: 56ch; margin: 0 auto 2.2rem;
}
.carrier-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3rem);
}
.carrier-name {
  font-family: var(--sans); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.25rem);
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--cream);
}
.carrier-sep { color: var(--red); font-weight: 700; font-size: 0.9rem; }
.delivery-rule { max-width: 420px; margin: 0 auto 2.2rem; }
.delivery-highlight {
  text-align: center; max-width: 640px; margin: 0 auto; color: var(--cream-2);
  font-size: 0.98rem; line-height: 1.75;
}
.delivery-highlight strong { color: var(--cream); }
.delivery-highlight .text-accent { color: var(--red); }
.delivery-highlight .bolt-marker { font-size: 1.25em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--cream); text-align: center; padding: clamp(3rem, 6vw, 4rem) 1.25rem; }
.footer-logo { width: 60px; margin: 0 auto 1.1rem; }
.footer-brand { font-family: var(--sans); font-weight: 800; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.35rem; }
.footer-tagline { font-style: italic; font-weight: 500; font-size: 0.86rem; color: var(--cream-3); margin: 0 0 1.6rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; margin-bottom: 1.6rem; }
.footer-nav a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2); }
.footer-nav a:hover { color: var(--cream); }
.btn-instagram {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); border: 1px solid var(--line-2); padding: 0.6rem 1.2rem; border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-instagram:hover { background: var(--red); border-color: var(--red); }
.footer-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(243,239,230,0.14);
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.footer-contact-item { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.72rem; color: var(--cream-3); text-decoration: none; }
.footer-contact-item svg { flex-shrink: 0; opacity: 0.9; }
a.footer-contact-item:hover { color: var(--cream); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,4,0.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-stage { max-width: min(90vw, 900px); max-height: 76vh; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 76vh; object-fit: contain; }
.lb-close { position: absolute; top: 1.1rem; right: 1.3rem; color: var(--cream); font-size: 1.6rem; line-height: 1; padding: 0.4rem; }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.3); color: var(--cream);
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lb-arrow:hover { background: var(--red); border-color: var(--red); }
.lb-prev { left: clamp(0.6rem, 3vw, 2rem); }
.lb-next { right: clamp(0.6rem, 3vw, 2rem); }
.lb-caption { position: absolute; bottom: 3.4rem; left: 50%; transform: translateX(-50%); color: var(--cream); font-family: var(--mono); font-size: 0.8rem; text-align: center; padding: 0 1rem; }
.lb-dots { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.lb-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.lb-dots span.on { background: var(--red); }

/* ---------- Página de gracias (post-pago) ---------- */
.thanks-back-logo { display: block; text-align: center; padding: 1.85rem 0 0.3rem; }
.thanks-back-logo img { width: 50px; margin: 0 auto; }
.thanks-page { max-width: 620px; margin: 0 auto; padding: 1.25rem var(--gap) clamp(3rem, 6vw, 4.5rem); text-align: center; }
.thanks-image { width: 100%; border: 1px solid var(--line); margin-bottom: clamp(2rem, 5vw, 2.75rem); border-radius: 10px; }

/* =============================================================
   7. Effects — reduced-motion aware overrides live in §9
   ============================================================= */

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .featured-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1.1rem 0.85rem; }
  .card-body { padding: 0.85rem 0.85rem 1rem; }
  .card-name { font-size: 0.84rem; }
  .card-price { font-size: 1rem; }
  .lb-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .section-count { display: none; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   9. Reduced-motion — only intrusive effects gated
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 60s; }
}
