/* ============================================================
   ORVANDIA — sistema de diseño v2
   Editorial cinético: tipografía geométrica pesada, rejilla
   asimétrica, mandarina + azul eléctrico sobre crema, y un
   capítulo oscuro para contraste. Movimiento con GSAP.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* Color */
  --ink:        #12100E;
  --ink-2:      #2A2724;
  --ink-3:      #5C5650;
  --muted:      #8A837B;
  --paper:      #FFF7ED;
  --paper-2:    #FFEDD5;
  --white:      #FFFFFF;
  --tang:       #F97316;
  --tang-deep:  #C2410C;
  --tang-tint:  #FFE4CC;
  --elec:       #2563EB;
  --elec-deep:  #1D4ED8;
  --elec-tint:  #DBEAFE;
  --mint:       #10B981;
  --line:       rgba(18,16,14,.12);
  --line-strong:rgba(18,16,14,.22);
  --danger:     #DC2626;

  /* Tipografía */
  --display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Espacio y forma */
  --gutter: 28px;
  --max: 1320px;
  --r-sm: 10px;
  --r: 20px;
  --r-lg: 32px;

  /* Sombra */
  --sh-sm: 0 1px 2px rgba(18,16,14,.05), 0 4px 12px rgba(18,16,14,.05);
  --sh-md: 0 4px 10px rgba(18,16,14,.06), 0 18px 40px rgba(18,16,14,.10);
  --sh-lg: 0 12px 30px rgba(18,16,14,.12), 0 40px 90px rgba(18,16,14,.16);

  /* Movimiento */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* Alias del sistema v1: las páginas legales, el checkout y el panel
     siguen usando estos nombres. Apuntan a los tokens nuevos. */
  --brand: var(--elec);       --brand-deep: var(--elec-deep);   --brand-tint: var(--elec-tint);
  --accent: var(--tang);      --accent-tint: var(--tang-tint);  --gold: var(--tang);
  --paper-warm: var(--paper-2); --card: var(--white);
  --ink-soft: var(--ink-3);   --ink-faint: var(--muted);
  --radius: var(--r);         --radius-sm: var(--r-sm);
  --shadow-sm: var(--sh-sm);  --shadow-md: var(--sh-md);        --shadow-lg: var(--sh-lg);
}

/* Enlaces dentro de la tarjeta */
.card-media { display: block; }
.card-name  { display: block; }
.card-name:hover { color: var(--tang-deep); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 900; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
p  { margin: 0 0 1em; }

.wrap        { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tang-deep);
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--tang);
  border-radius: 2px;
}
.eyebrow.no-line::before { display: none; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-3); line-height: 1.5; font-weight: 400; }
.mono { font-family: var(--mono); }

/* ---------- Grano ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Cursor propio (solo puntero fino) ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--tang);
    pointer-events: none;
    z-index: 2000;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease-out), height .25s var(--ease-out), background .25s;
    mix-blend-mode: multiply;
  }
  .cursor.big { width: 56px; height: 56px; background: var(--elec); opacity: .5; }
}

/* ---------- Telón de carga ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -.04em;
}
.curtain span { display: inline-block; }
.curtain.done { pointer-events: none; }

/* ---------- Barra de aviso ---------- */
.announce {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px var(--gutter);
  overflow: hidden;
  white-space: nowrap;
}
.announce .track { display: inline-flex; gap: 48px; animation: marquee 32s linear infinite; }
.announce .track span { display: inline-flex; align-items: center; gap: 12px; }
.announce .track i { width: 5px; height: 5px; border-radius: 50%; background: var(--tang); }
.announce strong { color: var(--tang); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Encabezado ---------- */
/* Los contenedores donde layout.js inyecta cabecera y pie no generan caja:
   así la cabecera pegajosa se ancla al documento y no a su envoltorio. */
#siteHeader, #siteFooter { display: contents; }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,247,237,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); background: rgba(255,247,237,.9); }
.head-row { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo span { color: var(--tang); }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--paper);
  font-size: .95rem; font-weight: 900;
}
.nav { display: flex; gap: 4px; margin-left: auto; font-size: .92rem; font-weight: 600; }
.nav a {
  color: var(--ink-3);
  padding: 9px 14px;
  border-radius: 100px;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a.on { color: var(--ink); background: rgba(18,16,14,.06); }
.head-actions { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.icon-btn {
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink);
  display: grid; place-items: center;
  position: relative;
  transition: background .2s, transform .2s var(--ease-spring);
}
.icon-btn:hover { background: rgba(18,16,14,.06); }
.icon-btn:active { transform: scale(.92); }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--tang); color: var(--ink);
  border-radius: 9px;
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  display: grid; place-items: center; padding: 0 5px;
  transition: transform .3s var(--ease-spring);
}
.cart-count.bump { transform: scale(1.5); }
.cart-count[data-empty="1"] { display: none; }
.menu-btn { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display);
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  padding: 15px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease-spring), box-shadow .3s, background .25s, color .25s, border-color .25s;
  text-align: center;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { box-shadow: var(--sh-md); }
.btn-accent { background: var(--tang); color: var(--ink); }
.btn-accent:hover { background: #FB8A3C; box-shadow: 0 10px 30px rgba(249,115,22,.35); }
.btn-elec { background: var(--elec); color: #fff; }
.btn-elec:hover { background: var(--elec-deep); box-shadow: 0 10px 30px rgba(37,99,235,.35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 19px 34px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .arr { transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 96px);
  overflow: clip;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.hero-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.hero-bg .b1 { width: 52vw; height: 52vw; right: -12vw; top: -18vw; background: var(--tang-tint); }
.hero-bg .b2 { width: 34vw; height: 34vw; left: -14vw; bottom: -10vw; background: var(--elec-tint); }
.hero-bg .gridlines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  opacity: .5;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: .3em; font-size: clamp(2.6rem, 5.6vw, 4.9rem); }
.hero h1 .swap {
  display: inline-block;
  max-width: 100%;
  color: var(--tang);
  background-image: linear-gradient(rgba(249,115,22,.28), rgba(249,115,22,.28));
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 0% .12em;
  animation: underline 1s var(--ease-out) .8s forwards;
}
@keyframes underline { to { background-size: 100% .12em; } }
.hero .lede { max-width: 48ch; margin-bottom: 26px; }

/* Selector de problema: el usuario elige y cambia el producto de la portada */
.problem-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.problem-picker button {
  border: 2px solid var(--line-strong);
  background: transparent;
  border-radius: 100px;
  padding: 10px 16px;
  font-size: .88rem; font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .25s var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
}
.problem-picker button i {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: .35; transition: all .25s;
}
.problem-picker button:hover { border-color: var(--ink); color: var(--ink); }
.problem-picker button.on {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  transform: translateY(-1px);
}
.problem-picker button.on i { background: var(--tang); opacity: 1; box-shadow: 0 0 0 4px rgba(249,115,22,.25); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 32px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* La lámina del producto en portada */
.hero-stage { position: relative; }
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
}
.hero-art .art { position: absolute; inset: 0; }
.hero-art .art svg, .hero-art .art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .art.leaving { z-index: 1; }
.hero-art .art.entering { z-index: 2; }
.hero-chip {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 15px;
  box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: 11px;
  font-size: .84rem; font-weight: 600;
  z-index: 3;
  will-change: transform;
}
.hero-chip small { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 2px; }
.hero-chip .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.hero-chip.c1 { left: -18px; top: 12%; }
.hero-chip.c2 { right: -14px; top: 44%; }
.hero-chip.c3 { left: 8%; bottom: -14px; }
.hero-price-tag {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
  padding: 10px 16px; border-radius: 100px;
}
.hero-price-tag s { color: var(--muted); font-weight: 500; font-size: .85rem; margin-left: 6px; }
.scroll-hint {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint .wheel {
  width: 22px; height: 34px; border: 2px solid var(--line-strong); border-radius: 12px; position: relative;
}
.scroll-hint .wheel::after {
  content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--tang); transform: translateX(-50%);
  animation: wheel 1.6s var(--ease-out) infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* ---------- Cinta grande ---------- */
.ticker {
  border-block: 2px solid var(--ink);
  background: var(--tang);
  color: var(--ink);
  padding-block: 18px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: -.02em;
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: 8px 24px;
}
.ticker .track { display: inline-flex; gap: 40px; animation: marquee 40s linear infinite; }
.ticker .track span { display: inline-flex; align-items: center; gap: 40px; }
.ticker .track i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.section-warm { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .eyebrow { color: var(--tang); }
.section-dark .lede { color: rgba(255,247,237,.7); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap;
}
.section-head p { margin: 0; max-width: 54ch; color: var(--ink-3); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255,247,237,.7); }
.section-head .link {
  font-weight: 700; font-size: .95rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px; border-bottom: 2px solid var(--tang);
  white-space: nowrap;
}
.section-head .link:hover .arr { transform: translateX(4px); }
.section-head .link .arr { transition: transform .25s var(--ease-out); }
.section-num {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted);
  display: block; margin-bottom: 8px;
}

/* ---------- Capítulo anclado (scroll storytelling) ---------- */
.story { position: relative; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.story-stage {
  position: sticky; top: 100px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
}
.story-stage svg, .story-stage img { width: 100%; height: 100%; object-fit: cover; }
.story-stage .stage-label {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 8px;
}
.story-stage .stage-ring {
  position: absolute; inset: 0;
  border: 0 solid var(--tang);
  border-radius: var(--r-lg);
  pointer-events: none;
}
.chapters { display: grid; gap: clamp(56px, 10vh, 140px); padding-block: 4vh; }
.chapter { min-height: min(40vh, 440px); display: flex; flex-direction: column; justify-content: center; }
.chapter .num {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; color: var(--tang-deep);
  margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.chapter .num::before { content: ''; width: 36px; height: 2px; background: var(--tang); }
.chapter h3 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .5em; }
.chapter p { font-size: 1.08rem; color: var(--ink-3); max-width: 46ch; }
.chapter .quote {
  font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; color: var(--ink);
  border-left: 3px solid var(--tang); padding-left: 18px; margin-top: 12px;
}

/* ---------- Rejilla bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 16px;
}
.bento > * { grid-column: span 3; }
.bento .span-6 { grid-column: span 6; }
.bento .span-4 { grid-column: span 4; }
.bento .span-8 { grid-column: span 8; }
.bento .row-2 { grid-row: span 2; }
.bento-tile {
  border-radius: var(--r);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 200px;
}
.bento-tile.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bento-tile.tang { background: var(--tang); color: var(--ink); border-color: var(--tang); }
.bento-tile.elec { background: var(--elec); color: #fff; border-color: var(--elec); }
.bento-tile .big {
  font-family: var(--display); font-weight: 900; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(3rem, 7vw, 6rem);
}
.bento-tile .big small { font-size: .35em; font-weight: 700; letter-spacing: -.02em; margin-left: 4px; }
.bento-tile .cap { font-size: .95rem; font-weight: 500; opacity: .85; max-width: 26ch; margin-top: 12px; }
.bento-tile .lbl {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7;
}

/* ---------- Tarjeta de producto ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
  transition: box-shadow .35s var(--ease-out), border-color .3s;
  will-change: transform;
}
.card:hover { box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card-media {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--paper-2); overflow: hidden;
}
.card-media svg, .card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.card:hover .card-media svg, .card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 100px; z-index: 2;
}
.card-save {
  position: absolute; top: 14px; right: 14px;
  background: var(--tang); color: var(--ink);
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  padding: 7px 10px; border-radius: 100px; z-index: 2;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card-name { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.card-tag { font-size: .88rem; color: var(--ink-3); line-height: 1.4; flex: 1; }
.stars { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.stars .s { color: var(--tang); letter-spacing: -1px; }
.price-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.price { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.price-old { font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.quick-add {
  margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .3s var(--ease-spring), background .25s;
}
.quick-add:hover { background: var(--tang); color: var(--ink); transform: scale(1.1) rotate(90deg); }
.quick-add:active { transform: scale(.95); }

/* ---------- Cajón del carrito ---------- */
.drawer-back {
  position: fixed; inset: 0; background: rgba(18,16,14,.5);
  opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 80;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh;
  width: min(440px, 100vw);
  background: var(--paper);
  z-index: 90;
  transform: translateX(104%);
  transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-lg);
  border-left: 1px solid var(--line);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; background: var(--white); }
.line-item { display: flex; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-media { width: 80px; height: 80px; border-radius: 14px; background: var(--paper-2); overflow: hidden; flex: none; }
.line-media svg, .line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-info { flex: 1; min-width: 0; }
.line-name { font-weight: 700; font-size: .95rem; line-height: 1.2; margin-bottom: 3px; letter-spacing: -.01em; }
.line-price { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 100px; overflow: hidden; margin-top: 10px; background: var(--white); }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.05rem; color: var(--ink-3); line-height: 1; }
.qty button:hover { background: var(--paper-2); color: var(--ink); }
.qty span { min-width: 30px; text-align: center; font-family: var(--mono); font-size: .85rem; font-weight: 600; }
.line-remove { background: none; border: 0; cursor: pointer; font-size: .76rem; color: var(--muted); text-decoration: underline; padding: 0; margin-top: 8px; }
.line-remove:hover { color: var(--danger); }
.totals { font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; padding-block: 5px; }
.totals .grand { font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.free-ship-note {
  background: var(--elec-tint); color: var(--elec-deep);
  border-radius: var(--r-sm); padding: 11px 14px; font-size: .84rem; margin-bottom: 14px; text-align: center; font-weight: 500;
}
.free-ship-note .bar { height: 5px; background: rgba(37,99,235,.18); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.free-ship-note .bar i { display: block; height: 100%; background: var(--elec); border-radius: 3px; transition: width .6s var(--ease-out); }
.empty-state { text-align: center; padding-block: 64px; color: var(--muted); }
.empty-state svg { margin: 0 auto 16px; color: var(--line-strong); }

/* ---------- Página de producto ---------- */
.pdp {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 72px);
  padding-block: 28px 60px; align-items: start;
}
.pdp-media {
  border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2);
  aspect-ratio: 1 / 1; border: 1px solid var(--line);
  position: sticky; top: 96px; box-shadow: var(--sh-md);
}
.pdp-media svg, .pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: .2em; }
.pdp-tag { font-size: 1.15rem; color: var(--ink-3); margin-bottom: 20px; }
.pdp-price { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pdp-price .price { font-size: 2.4rem; }
.pdp-save { background: var(--tang); color: var(--ink); font-family: var(--mono); font-size: .72rem; font-weight: 600; padding: 6px 11px; border-radius: 100px; }
.stock-line { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); margin-bottom: 24px; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(16,185,129,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.2); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,.08); } }
.pdp-problem {
  font-size: 1.05rem; color: var(--ink); font-weight: 500;
  background: var(--paper-2); border-left: 4px solid var(--tang);
  padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 24px;
}
.pdp-bullets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.pdp-bullets li { display: flex; gap: 12px; font-size: .98rem; color: var(--ink-3); align-items: flex-start; }
.pdp-bullets li .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; margin-top: 1px; }
.pdp-buy { display: grid; gap: 10px; margin-bottom: 22px; }
.guarantee-box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: var(--white); display: grid; gap: 14px; }
.guarantee-box div { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.guarantee-box svg { flex: none; margin-top: 2px; color: var(--elec); }
.guarantee-box b { display: block; }
.guarantee-box span { color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: .78rem; letter-spacing: .04em; color: var(--muted); padding: 13px 16px 13px 0; width: 40%; vertical-align: top; }
.spec-table td { padding: 13px 0; font-weight: 500; }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255,247,237,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px var(--gutter);
  display: none; align-items: center; gap: 14px;
  transform: translateY(110%); transition: transform .4s var(--ease-out);
}
.sticky-buy.show { transform: none; }
.sticky-buy .price { font-size: 1.2rem; }
.sticky-buy .btn { flex: 1; padding: 14px 18px; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center/10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 10px no-repeat;
  transition: transform .35s var(--ease-out), background .3s, border-color .3s;
}
.accordion details[open] summary::after {
  transform: rotate(45deg); background-color: var(--tang); border-color: var(--tang);
}
.accordion p { padding-bottom: 20px; margin: 0; color: var(--ink-3); font-size: .97rem; max-width: 64ch; }
.section-dark .accordion { border-top-color: rgba(255,247,237,.15); }
.section-dark .accordion details { border-bottom-color: rgba(255,247,237,.15); }
.section-dark .accordion p { color: rgba(255,247,237,.7); }
.section-dark .accordion summary::after { border-color: rgba(255,247,237,.3); background-image: linear-gradient(var(--paper), var(--paper)), linear-gradient(var(--paper), var(--paper)); }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  border: 2px solid var(--line-strong); background: transparent; border-radius: 100px;
  padding: 10px 18px; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink-3);
  transition: all .2s var(--ease-out);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18,16,14,.08);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; margin-top: 6px; display: none; }
.field input[aria-invalid="true"] ~ .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Pie ---------- */
.site-foot { background: var(--ink); color: rgba(255,247,237,.7); padding-block: 72px 28px; overflow: hidden; position: relative; }
.foot-word {
  font-family: var(--display); font-weight: 900; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(5rem, 19vw, 19rem);
  color: rgba(255,247,237,.06);
  white-space: nowrap; user-select: none; pointer-events: none;
  position: absolute; left: 50%; bottom: -.08em; transform: translateX(-50%);
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,247,237,.12); position: relative; }
.site-foot .logo { color: var(--paper); font-size: 1.7rem; }
.site-foot .logo .mark { background: var(--tang); color: var(--ink); }
.site-foot h4 { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tang); margin-bottom: 16px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.site-foot a:hover { color: var(--paper); }
.site-foot p { font-size: .92rem; line-height: 1.6; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-family: var(--mono); font-size: .72rem; color: rgba(255,247,237,.45); position: relative; }
.pay-marks { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-mark { background: rgba(255,247,237,.08); border-radius: 6px; padding: 5px 9px; font-size: .62rem; font-weight: 600; letter-spacing: .06em; color: rgba(255,247,237,.7); }

/* ---------- Aviso flotante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 100px);
  background: var(--ink); color: var(--paper);
  padding: 14px 22px; border-radius: 100px;
  font-size: .92rem; font-weight: 600;
  box-shadow: var(--sh-lg); opacity: 0;
  transition: all .45s var(--ease-spring);
  z-index: 200; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--tang); color: var(--ink); display: grid; place-items: center; }

/* ---------- Páginas de texto ---------- */
.doc { padding-block: 48px 72px; }
.doc h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: .25em; }
.doc .updated { font-family: var(--mono); color: var(--muted); font-size: .78rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.6rem; margin-top: 2.2em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.8em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.25em; margin-bottom: 1.2em; }
.doc li { margin-bottom: .5em; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--paper-2); font-weight: 700; }
.callout {
  background: var(--paper-2); border-left: 4px solid var(--tang);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 18px 22px; margin-bottom: 1.5em;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Revelado (estado inicial para GSAP) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal-x { opacity: 0; transform: translateX(-28px); }
.no-js .reveal, .no-js .reveal-x, .motion-off .reveal, .motion-off .reveal-x { opacity: 1; transform: none; }

/* ---------- Utilidades ---------- */
.hide { display: none !important; }
.center { text-align: center; }
.stack { display: grid; gap: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: 10px 18px; z-index: 5000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; top: 0; }
:focus-visible { outline: 3px solid var(--elec); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .bento > * { grid-column: span 6; }
  .bento .span-4 { grid-column: span 6; }
  .bento .span-8 { grid-column: span 12; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  #darkGrid { grid-template-columns: 1fr !important; }
  .hero-stage { max-width: 480px; margin-inline: auto; width: 100%; }
  .hero-chip.c1 { left: 8px; }
  .hero-chip.c2 { right: 8px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { position: relative; top: 0; max-width: 480px; margin-inline: auto; }
  .chapters { padding-block: 24px 0; gap: 48px; }
  .chapter { min-height: 0; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .sticky-buy { display: flex; }
}

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  :root { --gutter: 18px; --r: 16px; --r-lg: 24px; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px var(--gutter) 18px; margin: 0;
    display: none; box-shadow: var(--sh-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover, .nav a.on { background: none; }
  .head-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  .ticker { font-size: 1rem; padding-block: 14px; }
  .bento { grid-auto-rows: auto; gap: 12px; }
  .bento > *, .bento .span-4, .bento .span-6, .bento .span-8 { grid-column: span 12; }
  .bento .row-2 { grid-row: auto; }
  .bento-tile { padding: 22px; min-height: 150px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 13px 14px 15px; }
  .card-name { font-size: .98rem; }
  .card-tag { font-size: .8rem; }
  .price { font-size: 1.15rem; }
  .quick-add { width: 38px; height: 38px; }
  .row-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-chip { padding: 10px 12px; font-size: .78rem; }
  .hero-chip.c3 { display: none; }
  .hero-meta { gap: 14px; }
  .problem-picker button { padding: 9px 13px; font-size: .82rem; }
  .cursor { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-x { opacity: 1; transform: none; }
  .announce .track, .ticker .track { animation: none; }
  .cursor, .curtain { display: none; }
  .story-stage { position: relative; top: 0; }
}
