/* ============================================================
   EMKO Design — "Prisma sobre negro"
   Design system CSS — tokens, base, nav, hero, cube, marquee.
   Task 4 appends catalog/cards/chips, Cashea band, Visítanos,
   footer, drawer/FAB, checkout below the marker at EOF.
   ============================================================ */

/* ---------- Tokens (spec §3, verbatim) ---------- */
:root{
  --bg: #0B0B0D;            --surface: #131316;      --card: #17171B;
  --line: rgba(255,255,255,.08);
  --text: #F5F5F7;          --text-2: rgba(245,245,247,.70);
  --grad-full: linear-gradient(135deg,#166534,#22C55E 25%,#84CC16 55%,#A3E635 85%,#D9F99D);
  --grad-cta:  linear-gradient(135deg,#A3E635,#22C55E);   /* dominant ring stops */
  --wa: #25D366;            /* WhatsApp green — reserved EXCLUSIVELY for WhatsApp actions */
  --cashea: #FFDD00;        /* Cashea band only */
  --radius: 16px;  --radius-sm: 10px;
  --ease: cubic-bezier(.22,1,.36,1);

  /* internal, not part of spec §3 but needed for layout consistency */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }
html, body{ margin: 0; padding: 0; overflow-x: hidden; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input{ font: inherit; color: inherit; }
h1, h2, h3, h4{ margin: 0; font-family: 'Outfit', 'Inter', system-ui, sans-serif; }
p{ margin: 0; }

::selection{ background: #22C55E; color: #0B1A08; }

:focus-visible{
  outline: 2px solid #84CC16;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- A11y utilities ---------- */
.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; top: -100%; left: 12px; z-index: 200;
  background: var(--card); color: var(--text);
  padding: 12px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: top .2s var(--ease);
}
.skip-link:focus{ top: 12px; }

/* ---------- Type utilities ---------- */
.eyebrow{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
}

.grad-text,
h1 em.grad{
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 em.grad{
  font-style: italic;
  font-weight: 600;
  /* slow gradient shimmer across the accent words */
  background-size: 220% 100%;
  animation: grad-sweep 7s ease-in-out infinite alternate;
}
@keyframes grad-sweep{
  from{ background-position: 0% 50%; }
  to{   background-position: 100% 50%; }
}

.price{ font-family: 'Outfit', sans-serif; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), opacity .2s var(--ease);
}
.btn .ico{ width: 18px; height: 18px; flex-shrink: 0; }

.btn-grad{
  background: var(--grad-cta);
  color: #0B1A08;   /* dark ink for legibility on apple-green CTA */
  box-shadow: 0 8px 24px -8px rgba(34, 197, 94,.55);
}
.btn-grad:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(132, 204, 22,.6);
}
.btn-grad:active{ transform: translateY(0); }

.btn-outline{
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  transform: translateY(-2px);
}

.btn-wa{
  background: var(--wa);
  color: #06210F;
}
.btn-wa:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(37,211,102,.55);
}

.btn-block{ width: 100%; }

/* ---------- Scroll-reveal (JS-gated; page must render fully without JS) ---------- */
body.js .reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
body.js .reveal.in{
  opacity: 1;
  transform: none;
}
/* mild stagger inside grids so rows cascade instead of thudding in at once */
body.js .grid .reveal:nth-child(4n+2){ transition-delay: .07s; }
body.js .grid .reveal:nth-child(4n+3){ transition-delay: .14s; }
body.js .grid .reveal:nth-child(4n+4){ transition-delay: .21s; }

@media (prefers-reduced-motion: reduce){
  body.js .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV — sticky glass
   ============================================================ */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,11,13,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark{ display: flex; color: var(--text); }
.brand-mark .mark-svg{ width: 26px; height: 26px; }
.brand-word{
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-word em{
  font-style: normal;
  font-weight: 600;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: .3em;
  text-transform: none;
  letter-spacing: normal;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}
.nav-links a{
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--grad-cta);
  transition: right .25s var(--ease);
}
.nav-links a:hover{ color: var(--text); }
.nav-links a:hover::after{ right: 0; }

@media (max-width: 640px){
  .nav-links{ gap: 16px; }
  .nav-links a{ font-size: 13px; }
  .brand-word{ font-size: 15px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(56px, 9vw, 104px);
  isolation: isolate;
}

/* grain overlay — SVG turbulence, very low opacity */
.hero::after{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-decor{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora{
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .16;
  animation: aurora-drift 16s ease-in-out infinite alternate;
}
.aurora-2{ animation-delay: -8s; }
@keyframes aurora-drift{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{   transform: translate3d(-40px,30px,0) scale(1.12); }
}
.aurora-1{
  top: -220px;
  right: -160px;
  background: radial-gradient(circle, #15803D 0%, #22C55E 45%, transparent 72%);
}
.aurora-2{
  bottom: -240px;
  left: -180px;
  background: radial-gradient(circle, #84CC16 0%, #D9F99D 45%, transparent 72%);
}

.hero-grid{
  position: absolute;
  inset: -10%;
  background-image:
    repeating-linear-gradient(30deg, rgba(255,255,255,.045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-30deg, rgba(255,255,255,.045) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 85%);
  animation: grid-pan 70s linear infinite;
}
@keyframes grid-pan{
  from{ transform: translate(0, 0); }
  to{   transform: translate(46px, 27px); }
}

.hero-arc{
  position: absolute;
  top: -140px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0 70%, #22C55E 78%, #84CC16 92%, transparent 96%);
  -webkit-mask: radial-gradient(closest-side, transparent 92%, #000 93%);
  mask: radial-gradient(closest-side, transparent 92%, #000 93%);
  opacity: .85;
}

/* twinkling spark field — two layers of tiny radial dots, offset phases */
.sparks{
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 24%, rgba(255,255,255,.7), transparent 100%),
    radial-gradient(1px 1px at 28% 68%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 46% 16%, rgba(217, 249, 157,.65), transparent 100%),
    radial-gradient(1px 1px at 64% 42%, rgba(255,255,255,.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 83% 20%, rgba(34, 197, 94,.6), transparent 100%),
    radial-gradient(1px 1px at 91% 64%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1px 1px at 55% 82%, rgba(255,255,255,.35), transparent 100%);
  animation: spark-twinkle 5.5s ease-in-out infinite alternate;
}
.sparks-b{
  background-image:
    radial-gradient(1px 1px at 18% 48%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 34%, rgba(21, 128, 61,.6), transparent 100%),
    radial-gradient(1px 1px at 72% 74%, rgba(255,255,255,.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 38%, rgba(132, 204, 22,.55), transparent 100%),
    radial-gradient(1px 1px at 6% 78%, rgba(255,255,255,.4), transparent 100%);
  animation-delay: -2.75s;
}
@keyframes spark-twinkle{
  from{ opacity: .25; }
  to{   opacity: 1; }
}

/* pulsing floor glow beneath the cube */
.cube-glow{
  position: absolute;
  top: 62%;
  right: 3%;
  width: 480px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 197, 94,.28) 0%, rgba(132, 204, 22,.14) 45%, transparent 72%);
  filter: blur(34px);
  animation: glow-pulse 6s ease-in-out infinite alternate;
}
@keyframes glow-pulse{
  from{ opacity: .55; transform: scaleX(.92); }
  to{   opacity: 1;   transform: scaleX(1.06); }
}

/* edge vignette for depth */
.vignette{
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 42%, transparent 55%, rgba(0,0,0,.42) 100%);
}

/* ============================================================
   EL SELLO EMKO — su logo, vivo. Anillo de gradiente girando,
   hairline, disco oscuro, cubo (geometría exacta del logo) y
   órbita de chispas. Es la pieza central del hero.
   ============================================================ */
.hero-stage{
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.seal-wrap{
  perspective: 1100px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.seal{
  position: relative;
  width: min(430px, 74vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  animation: seal-in 1.5s var(--ease) both;
}
@keyframes seal-in{
  from{ opacity: 0; transform: scale(.84) rotateX(14deg); }
  to{   opacity: 1; transform: none; }
}

/* resplandor ambiental que respira */
.seal-glow{
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94,.45), rgba(132, 204, 22,.24) 40%, rgba(21, 128, 61,.14) 60%, transparent 74%);
  filter: blur(52px);
  animation: seal-breathe 6.5s ease-in-out infinite alternate;
}
@keyframes seal-breathe{
  from{ opacity: .62; transform: scale(.93); }
  to{   opacity: 1;   transform: scale(1.07); }
}

/* anillo cónico con los colores del logo, girando */
.seal-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    #D9F99D 0deg, #84CC16 52deg, #22C55E 118deg, #15803D 188deg,
    #166534 246deg, #15803D 302deg, #22C55E 338deg, #D9F99D 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 86.7%);
  mask: radial-gradient(closest-side, transparent 86%, #000 86.7%);
  animation: seal-spin 24s linear infinite;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94,.5));
}
@keyframes seal-spin{ to{ transform: rotate(360deg); } }

/* destello que recorre el anillo */
.seal-sheen{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,.55) 16deg, transparent 40deg);
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 86.7%);
  mask: radial-gradient(closest-side, transparent 86%, #000 86.7%);
  animation: seal-spin 6.5s linear infinite;
  mix-blend-mode: overlay;
}

/* hairline blanco interior (está en su logo) */
.seal-hairline{
  position: absolute;
  inset: 7.6%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
}

/* disco oscuro con profundidad */
.seal-face{
  position: absolute;
  inset: 9.6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #26262D 0%, #17171C 56%, #0F0F13 100%);
  box-shadow: inset 0 2px 30px rgba(0,0,0,.75), inset 0 -22px 44px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5%;
}

.seal-cube{
  width: 30%;
  overflow: visible;
  filter: drop-shadow(0 6px 20px rgba(34, 197, 94,.5));
  animation: cube-float 7s ease-in-out infinite alternate;
}
@keyframes cube-float{
  from{ transform: translateY(-3px); }
  to{   transform: translateY(4px); }
}

.seal-word{ display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sw-emko{
  display: flex;
  gap: .16em;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(25px, 6vw, 45px);
  letter-spacing: .05em;
  line-height: 1;
  color: #fff;
}
.sw-emko i{
  font-style: normal;
  display: inline-block;
  animation: letter-rise .85s var(--ease) both;
}
.sw-emko i:nth-child(1){ animation-delay: .85s; }
.sw-emko i:nth-child(2){ animation-delay: .95s; }
.sw-emko i:nth-child(3){ animation-delay: 1.05s; }
.sw-emko i:nth-child(4){ animation-delay: 1.15s; }
@keyframes letter-rise{
  from{ opacity: 0; transform: translateY(16px) scale(.9); }
  to{   opacity: 1; transform: none; }
}
.sw-design{
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 2.4vw, 19px);
  letter-spacing: .2em;
  color: rgba(255,255,255,.88);
  animation: letter-rise .85s var(--ease) 1.28s both;
}

/* chispas en órbita */
.seal-orbit{
  position: absolute;
  inset: -5%;
  animation: seal-spin 15s linear infinite;
  pointer-events: none;
}
.seal-orbit i{ position: absolute; border-radius: 50%; }
.seal-orbit i:nth-child(1){
  top: -3px; left: 50%; width: 7px; height: 7px;
  background: #84CC16; box-shadow: 0 0 14px 2px rgba(132, 204, 22,.9);
}
.seal-orbit i:nth-child(2){
  bottom: 8%; left: 12%; width: 5px; height: 5px;
  background: #22C55E; box-shadow: 0 0 12px 2px rgba(34, 197, 94,.9);
}
.seal-orbit i:nth-child(3){
  top: 20%; right: 2%; width: 4px; height: 4px;
  background: #D9F99D; box-shadow: 0 0 10px 2px rgba(217, 249, 157,.85);
}

/* titular corto bajo el sello */
.hero-h1{
  font-size: clamp(28px, 4.8vw, 54px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.07;
  max-width: 15ch;
  margin: 0 auto clamp(24px, 3.4vw, 34px);
  text-wrap: balance;
  animation: hero-in .9s var(--ease) 1.35s both;
}
.hero-stage .hero-ctas{ justify-content: center; animation: hero-in .9s var(--ease) 1.5s both; }
.hero-stage .hero-trust{ justify-content: center; margin-top: 30px; animation: hero-in .9s var(--ease) 1.62s both; }

@media (max-width: 640px){
  .seal{ width: min(340px, 82vw); }
  .hero-stage .hero-trust{ gap: 8px 18px; }
}

@media (prefers-reduced-motion: reduce){
  .seal, .seal-glow, .seal-ring, .seal-sheen, .seal-orbit, .seal-cube,
  .sw-emko i, .sw-design, .hero-h1,
  .hero-stage .hero-ctas, .hero-stage .hero-trust{ animation: none !important; }
  .seal{ transition: none; }
}

.hero-inner{
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
  perspective: 900px;
  /* vanishing point centered on the cube (right-aligned column), not the whole row */
  perspective-origin: 78% 52%;
}

.hero-copy{
  max-width: 620px;
}
.hero-copy .eyebrow{ margin-bottom: 18px; }

/* entrance cascade — pure CSS, runs on load, no JS dependency */
.hero-copy > *{
  animation: hero-in .9s var(--ease) both;
}
.hero-copy .eyebrow{ animation-delay: .08s; }
.hero h1{           animation-delay: .18s; }
.hero-sub{          animation-delay: .32s; }
.hero-ctas{         animation-delay: .46s; }
@keyframes hero-in{
  from{ opacity: 0; transform: translateY(26px); }
  to{   opacity: 1; transform: none; }
}
/* cube entrance is a fade composed with its spin — see .hero-cube below */
@keyframes cube-fade{ from{ opacity: 0; } to{ opacity: 1; } }

.hero h1{
  font-size: clamp(44px, 7.6vw, 92px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 em{ font-style: normal; }

.hero-sub{
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.55;
  margin-bottom: 36px;
}

.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* trust markers under the CTAs */
.hero-trust{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 38px;
  animation-delay: .58s;   /* joins the hero-in cascade */
}
.hero-trust li{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.hero-trust li::before{
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-cta);
  flex-shrink: 0;
}

/* scroll cue — thin gradient line with a falling dot */
.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 1px;
  height: 46px;
  z-index: 2;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.22));
  overflow: hidden;
}
.scroll-cue::after{
  content: '';
  position: absolute;
  left: -1.5px;
  top: -6px;
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: var(--grad-cta);
  animation: cue-fall 2.2s var(--ease) infinite;
}
@keyframes cue-fall{
  0%{   transform: translateY(0);    opacity: 0; }
  25%{  opacity: 1; }
  80%{  transform: translateY(50px); opacity: 0; }
  100%{ transform: translateY(50px); opacity: 0; }
}

/* ---------- Vitrina de producto del hero ---------- */
.hero-showcase{
  position: relative;
  width: min(400px, 46vw);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.showcase-glow{
  position: absolute;
  left: 50%; top: 44%;
  width: 108%; height: 74%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center, rgba(34, 197, 94,.30), rgba(132, 204, 22,.16) 44%, transparent 72%);
  filter: blur(54px);
  pointer-events: none;
  animation: showcase-breathe 8s ease-in-out infinite alternate;
}
@keyframes showcase-breathe{
  from{ opacity: .6; transform: translate(-50%,-50%) scale(.92); }
  to{   opacity: 1;  transform: translate(-50%,-50%) scale(1.08); }
}
.showcase-svg{
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
  filter: drop-shadow(0 10px 26px rgba(34, 197, 94,.28));
}
.showcase-svg.fade-in{ animation: showcase-in .7s var(--ease) both; }
@keyframes showcase-in{
  from{ opacity: 0; transform: translateY(10px) scale(.97); }
  to{   opacity: 1; transform: none; }
}
/* modo fotos reales del inventario */
.showcase-photos{
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #191920, #121216);
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.75);
}
.sc-photo{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .8s var(--ease), transform 5s linear;
}
.sc-photo.on{ opacity: 1; transform: scale(1); }
.hero-showcase.fotos .showcase-glow{ opacity: .5; }
@media (prefers-reduced-motion: reduce){
  .sc-photo{ transition: none; }
}

.showcase-meta{
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; min-height: 44px;
}
.showcase-brand{
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  background: var(--grad-cta);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.showcase-name{ font-size: 13.5px; color: var(--text-2); }
.showcase-dots{ position: relative; display: flex; gap: 7px; margin-top: 10px; }
.showcase-dots button{
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background .25s var(--ease), width .25s var(--ease);
}
.showcase-dots button.on{ width: 22px; border-radius: 999px; background: var(--grad-cta); }

@media (max-width: 860px){
  .hero-showcase{ width: min(330px, 74vw); }
}
@media (prefers-reduced-motion: reduce){
  .showcase-glow{ animation: none; }
  .showcase-svg.fade-in{ animation: none; }
  .showcase-dots button{ transition: none; }
}

/* ---------- The cube (retirado del hero; se conserva por si se reutiliza) ---------- */
.hero-cube{
  --s: clamp(190px, 24vw, 300px);
  width: var(--s);
  aspect-ratio: 1;
  position: relative;
  flex-shrink: 0;
  transform-style: preserve-3d;
  /* NOTE: never animate opacity/filter on this element — a grouping property
     here flattens preserve-3d and the cube collapses into a plane. */
  animation: cube-spin 24s linear infinite;
  margin-inline: auto;
}
.hero-cube .face{
  position: absolute;
  inset: 0;
  background: rgba(245,245,247,.025);
  border: 1px solid;
  border-image: var(--grad-full) 1;
  /* entrance fade lives on the faces — safe, they're leaf elements */
  animation: cube-fade 1.2s ease-out both;
}
.face-front{  transform: translateZ(calc(var(--s) / 2)); }
.face-back{   transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.face-right{  transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.face-left{   transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.face-top{    transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.face-bottom{ transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

/* inner core — a smaller cube counter-rotating inside the outer one (gyroscope) */
.cube-core{
  position: absolute;
  inset: 27.5%;                     /* 45% of the outer cube */
  transform-style: preserve-3d;     /* no opacity/filter here — flattens 3D */
  animation: core-spin 15s linear infinite;
}
.cube-core .cface{
  position: absolute;
  inset: 0;
  background: rgba(34, 197, 94,.05);
  border: 1px solid;
  border-image: var(--grad-cta) 1;
  animation: cube-fade 1.6s ease-out both;
}
.cface-front{  transform: translateZ(calc(var(--s) * .225)); }
.cface-back{   transform: rotateY(180deg) translateZ(calc(var(--s) * .225)); }
.cface-right{  transform: rotateY(90deg) translateZ(calc(var(--s) * .225)); }
.cface-left{   transform: rotateY(-90deg) translateZ(calc(var(--s) * .225)); }
.cface-top{    transform: rotateX(90deg) translateZ(calc(var(--s) * .225)); }
.cface-bottom{ transform: rotateX(-90deg) translateZ(calc(var(--s) * .225)); }

@keyframes core-spin{
  from{ transform: rotateX(22deg) rotateY(360deg); }
  to{   transform: rotateX(22deg) rotateY(0); }
}

/* gentle float folded into the spin so the cube breathes while it turns */
@keyframes cube-spin{
  0%{   transform: translateY(0)     rotateX(-18deg) rotateY(0); }
  50%{  transform: translateY(-12px) rotateX(-18deg) rotateY(180deg); }
  100%{ transform: translateY(0)     rotateX(-18deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .hero-cube{ animation: none; transform: rotateX(-18deg) rotateY(35deg); }
  .hero-cube .face{ animation: none; }
  .cube-core{ animation: none; transform: rotateX(22deg) rotateY(45deg); }
  .cube-core .cface{ animation: none; }
  .hero-copy > *{ animation: none; }
  .aurora{ animation: none; }
  h1 em.grad{ animation: none; }
  .sparks{ animation: none; opacity: .6; }
  .cube-glow{ animation: none; }
  .hero-grid{ animation: none; }
  .scroll-cue{ display: none; }
}

@media (max-width: 860px){
  .hero-inner{
    flex-direction: column-reverse;
    text-align: center;
    /* cube is now a centered block above the copy — reset the vanishing point */
    perspective-origin: 50% 50%;
  }
  .hero-copy{ max-width: 100%; }
  .hero-copy .eyebrow{ display: block; }
  .hero-sub{ margin-inline: auto; }
  .hero-ctas{ justify-content: center; }
  /* the arc must never cross the headline on small screens — shrink it,
     pin it to the top corner behind the cube, and quiet it down */
  .hero-arc{
    width: 340px;
    height: 340px;
    top: -110px;
    right: -130px;
    opacity: .38;
  }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee{
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
}
.marquee-track{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 2.4vw, 20px);
  letter-spacing: .06em;
  background: var(--grad-full);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.marquee-track span{ padding: 0 .5em; }
.marquee-track .marquee-sep{ opacity: .55; padding: 0 .8em; }

@keyframes marquee{
  from{ transform: translateX(0); }
  to{   transform: translateX(-50%); }
}

.marquee:hover .marquee-track{ animation-play-state: paused; }

@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* slim dark scrollbars inside the drawer + checkout panel */
.drawer-items::-webkit-scrollbar,
.checkout-panel::-webkit-scrollbar{ width: 6px; }
.drawer-items::-webkit-scrollbar-thumb,
.checkout-panel::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 3px;
}
.drawer-items, .checkout-panel{ scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }

/* ===== Task 4 appends below ===== */

/* disabled state used by app.js on #goCheckout / #coNext (class + native disabled) */
.btn.disabled,
.btn:disabled{
  opacity: .4;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* ============================================================
   TRUST BAND — cómo compras (envío nacional / pago al recibir / originales)
   ============================================================ */
.trust-band{
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent);
}
.trust-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 820px){
  .trust-inner{ grid-template-columns: 1fr; gap: 28px; }
}
.trust-item{ display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.trust-ico{
  width: 30px;
  height: 30px;
  color: #84CC16;
  margin-bottom: 2px;
}
.trust-item h3{
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.trust-item p{
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34ch;
}
.trust-item strong{ color: var(--text); font-weight: 600; }

/* ============================================================
   CATALOG — section head, controls, chips
   ============================================================ */
.catalog{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 108px) var(--gutter) clamp(48px, 7vw, 80px);
}

.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
}
.section-head h2,
.visit-info h2{
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  position: relative;
  padding-bottom: 14px;
}
.section-head h2::after,
.visit-info h2::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-cta);
}

.bcv-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}

.catalog-controls{
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.search-wrap{ max-width: 420px; }
#search{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
#search::placeholder{ color: var(--text-2); }
#search:focus{
  outline: none;
  border-color: rgba(255,255,255,.28);
  background: #1b1b20;
}

.chips{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chips::-webkit-scrollbar{ display: none; }

.chip{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.chip:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.24);
}
.chip.active{
  background: var(--grad-cta);
  color: #0B1A08;
  border-color: transparent;
}

/* ---------- Grid ---------- */
.grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px){
  .grid{ grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 1100px){
  .grid{ grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.empty-msg{
  text-align: center;
  color: var(--text-2);
  padding: 48px 0;
  font-size: 15px;
}

/* ============================================================
   CARD — gradient hover-border technique (verbatim per brief)
   ============================================================ */
.card{
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover{
  transform: translateY(-4px);
  border-color: transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              var(--grad-cta) border-box;
  box-shadow: 0 20px 44px -22px rgba(0,0,0,.65);
}

/* Arte de producto por categoría — composición "de estudio" mientras llegan
   las fotos reales del inventario. Capas: luz cenital, halo de color, pedestal
   de luz, textura y un aro interior de vidrio. */
.card-media{
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(130% 85% at 50% -6%, rgba(255,255,255,.07), transparent 52%),
    radial-gradient(72% 58% at 50% 40%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 74%),
    linear-gradient(180deg, #191920 0%, #121216 100%);
}
/* aro interior: le da un borde de vidrio al recuadro */
.card-media::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -30px 46px -30px rgba(0,0,0,.8);
}
/* charco de luz bajo el producto (efecto pedestal) */
.card-media::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: 58%;
  height: 13%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tint) 48%, transparent), transparent 72%);
  filter: blur(11px);
  opacity: .6;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card-media svg{
  position: relative;
  z-index: 2;
  width: 50%;
  stroke: var(--tint);
  fill: none;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--tint) 42%, transparent));
  transition: transform .32s var(--ease), filter .32s var(--ease);
}
.card-media img{ position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media svg{
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 14px 30px color-mix(in srgb, var(--tint) 58%, transparent));
}
.card:hover .card-media::after{ opacity: 1; transform: translateX(-50%) scaleX(1.12); }
.card-view{ z-index: 4; }

@media (prefers-reduced-motion: reduce){
  .card-media svg, .card-media::after{ transition: none; }
}

.badge-star{
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0B1A08;
  background: var(--grad-cta);
  border-radius: 999px;
  z-index: 2;
}

.card-body{
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-name{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  order: 1;
  /* clamp to two lines so mismatched name lengths don't wreck the grid rhythm */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cat{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tint);
  order: 0;
  margin-bottom: 2px;
}
.card-row{
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.card-row .price{
  font-size: 17px;
  color: var(--text);
}

.add-btn{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #0B1A08;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(34, 197, 94,.55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.add-btn:hover{
  transform: scale(1.08);
  box-shadow: 0 8px 20px -6px rgba(132, 204, 22,.6);
}
.add-btn:active{ transform: scale(.94); }
.add-btn.add-btn-off,
.add-btn:disabled{
  background: rgba(255,255,255,.08);
  color: var(--text-2);
  box-shadow: none;
  cursor: not-allowed;
}
.add-btn.add-btn-off:hover,
.add-btn:disabled:hover{ transform: none; box-shadow: none; }

/* Badge de disponibilidad — deriva de cantidad vs stock_min (inventario en vivo). */
.card-stock{ order: 2; font-size: 11.5px; font-weight: 600; margin: 2px 0 0; }
.card-stock.stock-ok{ color: var(--text-2); font-weight: 500; opacity: .8; }
.card-stock.stock-low{ color: #84CC16; }
.card-stock.stock-out{ color: var(--text-2); opacity: .55; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
.card-agotado .card-media{ opacity: .55; }
.card-agotado .card-name{ opacity: .7; }

/* ============================================================
   CASHEA BAND — deliberate highlighter stripe, breaks dark theme
   ============================================================ */
.band-cashea{
  background: var(--cashea);
  color: #111;
  padding: clamp(48px, 8vw, 76px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.band-cashea::before{
  /* subtle diagonal texture so the flat yellow doesn't look like a placeholder div */
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 34px);
  pointer-events: none;
}
.cashea-inner{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 780px){
  .cashea-inner{ grid-template-columns: 1fr; }
}

.cashea-chip{
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 11px 22px;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.4);
  margin-bottom: 22px;
}
.cashea-chip img{ height: 30px; width: auto; }

.cashea-title{
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.8vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.04;
}
.cashea-title strong{ font-weight: 800; }
.cashea-sub{
  font-size: clamp(14.5px, 1.6vw, 17px);
  font-weight: 500;
  color: rgba(17,17,17,.72);
  max-width: 480px;
  margin-top: 14px;
  line-height: 1.55;
}

/* dark side card — ties the yellow band back to the site's dark system */
.cashea-side{
  background: #131316;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.5);
}
.cashea-points{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}
.cashea-points li{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}
.cashea-points li::before{
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cashea);
  color: #111;
  font-size: 12px;
  font-weight: 800;
}
.btn-cashea{
  background: var(--cashea);
  color: #111;
  font-weight: 700;
}
.btn-cashea:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
.btn-dark{
  margin-top: 6px;
  background: #111;
  color: var(--cashea);
  border-color: #111;
}
.btn-dark:hover{
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.45);
}

/* ============================================================
   VISÍTANOS
   ============================================================ */
.visit{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 108px) var(--gutter);
}
.visit-inner{
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
@media (max-width: 820px){
  .visit-inner{ grid-template-columns: 1fr; }
}

.visit-info h2{
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.visit-address{
  font-style: normal;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.visit-hours{
  font-size: 14.5px;
  color: var(--text-2);
  margin-bottom: 28px;
}
.visit-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.visit-map{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 280px;
  background: var(--surface);
}
.visit-map iframe{
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
  filter: grayscale(1) invert(.92) contrast(.9);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) var(--gutter) 40px;
  text-align: center;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 36px;
}

.footer-brand{ display: contents; } /* items lay out directly in the centered .footer-inner column */
.footer-brand .brand-mark{ margin-bottom: 2px; }
.footer-tagline{
  font-size: 14.5px;
  color: var(--text-2);
  max-width: 320px;
  line-height: 1.5;
  margin-top: 4px;
}

.footer-instagram{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-instagram .fc-ico{ width: 17px; height: 17px; opacity: .85; }
.footer-instagram:hover{ color: var(--text); border-color: rgba(255,255,255,.2); transform: translateY(-1px); }

.footer-copy{
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.hairline{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 auto 28px;
  max-width: 320px;
}

.powered-by{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: 0 auto;
  opacity: .6;
  transition: opacity .2s var(--ease);
}
.powered-by:hover{ opacity: 1; }
.powered-by span{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-2);
}
.powered-by img{ height: 26px; width: auto; }

/* ============================================================
   CART: OVERLAY + DRAWER + FAB
   ============================================================ */
.overlay{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5,5,6,.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.overlay.show{ opacity: 1; }

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  width: min(400px, 92vw);
  display: flex;
  flex-direction: column;
  background: #121215;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -20px rgba(0,0,0,.6);
  padding: 24px 22px 22px;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
}
.drawer.open{ transform: none; }

.drawer-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer-head h2{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.drawer-close{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  font-size: 15px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.drawer-close:hover{ background: rgba(255,255,255,.08); color: var(--text); }

.drawer-items{
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 4px -4px 4px 0;
  padding-right: 4px;
}
.drawer-empty{
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 40px 6px;
}

/* .drawer-item is used both in the drawer and reused verbatim inside
   #coItems (checkout step 1) — style the class, not the container. */
.drawer-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-item:last-child{ border-bottom: 0; padding-bottom: 0; }

.drawer-item-info{ min-width: 0; }
.drawer-item-name{
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.drawer-item-sub{
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.drawer-item-qty{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.qty-btn{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.qty-btn:hover{ border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.qty-val{
  min-width: 18px;
  text-align: center;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.drawer-item-remove{
  margin-left: 4px;
  flex-shrink: 0;
  color: var(--text-2);
  font-size: 13px;
  transition: color .2s var(--ease);
}
.drawer-item-remove:hover{ color: #84CC16; }

.drawer-total-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-family: 'Outfit', sans-serif;
}
.drawer-total-row span:first-child{
  font-size: 14px;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
}
.drawer-total-row span:last-child{
  font-size: 22px;
  font-weight: 600;
}
.drawer-note{
  font-size: 12.5px;
  color: var(--text-2);
  margin: 8px 0 18px;
}

.fab{
  position: fixed;
  right: clamp(18px, 4vw, 32px);
  bottom: clamp(18px, 4vw, 32px);
  z-index: 80;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #0B1A08;
  box-shadow: 0 14px 34px -10px rgba(34, 197, 94,.6);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fab:hover{ transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(132, 204, 22,.65); }
.fab .ico{ width: 22px; height: 22px; }
.fab.pop{ animation: fab-pop .4s var(--ease); }
@keyframes fab-pop{ 50%{ transform: scale(1.18); } }

.fab-count{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--bg);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce){
  .fab.pop{ animation: none; }
  .drawer{ transition: none; }
  .overlay{ transition: none; }
  .checkout, .checkout .checkout-panel{ transition: none; }
}

/* ---------- "Fly to cart" — clone que vuela del producto al carrito ---------- */
.fly-clone{
  position: fixed;
  z-index: 500;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 34px -10px rgba(34,197,94,.6);
  will-change: transform, opacity;
}
.fly-clone img{ width: 100%; height: 100%; object-fit: cover; }
.fly-clone-icon{ display: grid; place-items: center; padding: 14%; }
.fly-clone-icon svg{ width: 100%; height: 100%; stroke: #84CC16; fill: none; stroke-width: 1.5; }

/* pulso satisfactorio del contador cuando el producto "aterriza" en el carrito */
@keyframes fab-count-pulse{
  0%{ transform: scale(1); }
  35%{ transform: scale(1.5); background: #84CC16; }
  100%{ transform: scale(1); }
}
.fab-count.pulse{ animation: fab-count-pulse .5s var(--ease); }
@media (prefers-reduced-motion: reduce){
  .fab-count.pulse{ animation: none; }
}

/* ---------- "Added to cart" pill — flies in from the right edge ---------- */
/* Product cards sit well below the top-bar cart icon, so this keeps the
   confirmation (+ a way to open the drawer) on-screen without scrolling up. */
.added-toast{
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 450;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #17171B;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px -18px rgba(0,0,0,.7);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transform: translateX(140%);
  opacity: 0;
  transition: transform .42s var(--ease), opacity .3s var(--ease);
}
.added-toast.show{ transform: translateX(0); opacity: 1; }
.added-toast-check{
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-cta); color: #0B1A08; font-size: 12px; font-weight: 700;
}
.added-toast-link{ font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px){
  .added-toast{ top: 74px; right: 12px; }
}
@media (prefers-reduced-motion: reduce){
  .added-toast{ transition: opacity .2s var(--ease); transform: none; }
}

/* ============================================================
   CHECKOUT — full-screen 4-step wizard (addendum §A/§D)
   ============================================================ */
.checkout{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 4vw, 40px);
  background: rgba(5,5,6,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* entrance/exit — app.js toggles .open (rAF after unhide; hidden set on transitionend) */
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.checkout.open{ opacity: 1; }
.checkout .checkout-panel{
  transform: translateY(18px) scale(.985);
  transition: transform .32s var(--ease);
}
.checkout.open .checkout-panel{ transform: none; }

.checkout-panel{
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 100%;
  overflow-y: auto;
  background: linear-gradient(180deg, #16161a 0%, #131316 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
}
.checkout-panel::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-cta);
  border-radius: var(--radius) var(--radius) 0 0;
}
@media (max-width: 640px){
  .checkout{ padding: 0; }
  .checkout-panel::before{ border-radius: 0; }
  .checkout-panel{
    max-width: none;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
}

.checkout-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  font-size: 15px;
  z-index: 2;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.checkout-close:hover{ background: rgba(255,255,255,.08); color: var(--text); }

/* ---------- Stepper ---------- */
.stepper{
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 4px 0 38px;
}
.step-item{
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: default;
}
.step-item[role="button"]{ cursor: pointer; }
.step-item[role="button"]:hover .step-num{ border-color: #84CC16; }
.step-item[role="button"]:hover .step-label{ color: var(--text); }

/* connector line — spans between step centers, sits behind the dots */
.step-item:not(:first-child)::before{
  content: '';
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.step-item.done:not(:first-child)::before,
.step-item.current:not(:first-child)::before{
  background: var(--grad-cta);
}

.step-num{
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.step-item.current .step-num{
  background: var(--grad-cta);
  border-color: transparent;
  color: #0B1A08;
  box-shadow: 0 0 0 4px rgba(34, 197, 94,.18);
}
.step-item.done .step-num{
  background: var(--card);
  border-color: #84CC16;
  color: transparent;
  font-size: 0;
}
.step-item.done .step-num::after{
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #84CC16;
}

.step-text{ display: flex; flex-direction: column; gap: 2px; }
.step-label{
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.step-item.current .step-label{ color: var(--text); }
.step-item.done .step-label{ color: var(--text-2); }
.step-hint{
  font-size: 10.5px;
  color: var(--text-2);
  opacity: .7;
  max-width: 110px;
}
@media (max-width: 480px){
  .step-hint{ display: none; }
}

/* ---------- Step panels ---------- */
.checkout-body{ min-height: 240px; }
.co-step h3{
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}

.co-items{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.co-subtotal-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: 'Outfit', sans-serif;
}
.co-subtotal-row span:first-child{
  font-size: 14px;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
}
.co-subtotal-row span:last-child{ font-size: 20px; font-weight: 600; }

/* ---------- Form fields ---------- */
.form-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.form-field label{
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="date"]{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  color-scheme: dark; /* keeps the native date picker/calendar icon dark-themed too */
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input::placeholder{ color: rgba(245,245,247,.35); }
.form-field input:focus{
  outline: none;
  border-color: #84CC16;
  background: #1b1b20;
  box-shadow: 0 0 0 4px rgba(132,204,22,.14);
}
.field-note{
  font-size: 12px;
  color: var(--text-2);
  margin-top: -2px;
}

.form-field.invalid input,
.form-field.invalid input:focus{
  border-color: #FA5A5A;
  background: rgba(250,90,90,.06);
}
.form-field .field-error{
  display: none;
  font-size: 12.5px;
  color: #FF8080;
  gap: 6px;
  align-items: center;
}
.form-field.invalid .field-error{ display: flex; }
.form-field .field-error::before{ content: '⚠'; font-size: 11px; }

/* ---------- Entrega radios ---------- */
.co-modo{
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.co-modo legend{
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 0;
  margin-bottom: 2px;
}
.radio-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.radio-card:hover{ border-color: rgba(255,255,255,.24); }
.radio-card input{
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  transition: border-color .2s var(--ease);
}
.radio-card input:checked{ border-color: transparent; background: var(--grad-cta); }
.radio-card input:checked::after{
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.radio-card:has(input:checked){
  color: var(--text);
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--grad-cta) border-box;
  border: 1px solid transparent;
}

/* ---------- Método de pago cards ---------- */
.pago-grid{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pago-card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.pago-card:hover{ border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.pago-title{
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.pago-note{
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
}
.pago-card.active{
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--grad-cta) border-box;
}
.pago-card.active .pago-title::after{
  content: ' ✓';
  color: #84CC16;
}

/* Cashea card gets a permanent gradient border treatment, brighter when selected */
.pago-cashea{
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, rgba(34, 197, 94,.55), rgba(132, 204, 22,.55)) border-box;
  border: 1px solid transparent;
}
.pago-cashea:hover{
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--grad-cta) border-box;
}
.pago-cashea.active{
  background: linear-gradient(#1c1710, #1c1710) padding-box,
              var(--grad-cta) border-box;
  box-shadow: 0 0 0 4px rgba(34, 197, 94,.14);
}

/* app.js toggles this on .pago-grid when step 3 is submitted without a selection */
.pago-grid.invalid .pago-card{
  border-color: rgba(250,90,90,.55);
}
.pago-grid.invalid::after{
  content: 'Elige un método de pago para continuar';
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #FF8080;
}

/* ---------- Recap (step 4) ----------
   #coRecap is a flat container app.js fills with:
   .co-recap-items (div of <p> item lines) + .co-recap-total (p) +
   .co-recap-bs (p, optional, holds .co-recap-rate span) +
   plain <p><strong>Label:</strong> value</p> lines (entrega/nombre/tel/pago). */
.co-recap{
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}
#coRecap p{
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
#coRecap strong{ color: var(--text-2); font-weight: 500; margin-right: 4px; }

.co-recap-items{
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.co-recap-items p{ color: var(--text-2); }

#coRecap .co-recap-total{
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

/* ---------- ≈Bs secondary amount (bcv line under totals) ---------- */
#coRecap .co-recap-bs{
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.co-recap-rate{
  font-size: 11.5px;
  opacity: .75;
}

.co-recap > p + p{ margin-top: 2px; }

.co-recap-discount{
  color: #84CC16 !important;
  font-size: 13.5px;
  margin-bottom: 4px;
}

/* ---------- Voucher / cupón — "¿Tienes un cupón?" (paso 3) ---------- */
.co-voucher{
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.co-voucher > label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.co-voucher-row{ display: flex; gap: 8px; }
.co-voucher-row input{
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
}
.co-voucher-row input::placeholder{ color: rgba(245,245,247,.35); text-transform: none; }
.co-voucher-row input:focus{ outline: none; border-color: rgba(255,255,255,.28); }
.co-voucher-row button{ flex-shrink: 0; padding: 11px 18px; font-size: 13.5px; white-space: nowrap; }
.co-voucher-row button:disabled{ opacity: .7; cursor: default; }
.co-voucher-msg{ font-size: 13px; margin-top: 10px; margin-bottom: 0; }
.co-voucher-msg-ok{ color: #84CC16; }
.co-voucher-msg-err{ color: #FA5A5A; }
@media (max-width: 420px){
  .co-voucher-row{ flex-direction: column; }
  .co-voucher-row button{ width: 100%; }
}

/* ---------- Método seleccionado — detalle (dónde pagar) + referencia/comprobante ---------- */
.field-optional{ font-weight: 400; color: var(--text-2); font-size: 11.5px; }

.pago-detalle{
  margin-top: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid #84CC16;
  border-radius: var(--radius-sm);
}
.pago-detalle .field-note{ margin-bottom: 14px; }
.pago-detalle .form-field:last-child{ margin-bottom: 0; }

.form-field input[type="file"]{
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-2);
  max-width: 100%;
}
.form-field input[type="file"]::file-selector-button{
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #0B1A08;
  background: var(--grad-cta);
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  margin-right: 10px;
  cursor: pointer;
}
.form-field.invalid input[type="file"]{ border-color: #FA5A5A; }

/* ---------- Confirmación / envío del pedido (paso 4) ---------- */
.co-cashea-box{ margin-bottom: 16px; }
.co-submit-err{
  display: flex; justify-content: center; text-align: center;
  margin-top: 12px;
}
.co-submit-err::before{ content: '⚠'; margin-right: 6px; font-size: 11px; }
#coSubmit:disabled{ opacity: .6; cursor: default; }

/* ---------- Confirmation panel ---------- */
.co-done{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 32px 8px 8px;
}
.co-done-check{
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #0B1A08;
  box-shadow: 0 16px 36px -10px rgba(34,197,94,.55);
  animation: co-done-pop .5s var(--ease) both;
}
.co-done-check svg{ width: 32px; height: 32px; }
@keyframes co-done-pop{
  0%{ transform: scale(.4); opacity: 0; }
  60%{ transform: scale(1.08); opacity: 1; }
  100%{ transform: scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .co-done-check{ animation: none; }
}
.co-done p{
  font-size: 15px;
  color: var(--text-2);
  max-width: 380px;
  line-height: 1.5;
}
.co-done .btn{ width: 100%; max-width: 320px; }

/* ---------- Nav buttons ---------- */
.checkout-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.checkout-nav .btn{ flex: 1; }

@media (max-width: 480px){
  .checkout-nav{ flex-direction: column-reverse; }
  .checkout-nav .btn{ width: 100%; }
}

/* ============================================================
   [hidden] safety net — MUST stay the last rule in the file.
   app.js drives visibility purely via the native `hidden` property
   (checkout, drawer, coDone, checkout-nav, bcvBadge, fabCount,
   coDireccionWrap, coBack/coNext buttons...). Several components above
   (and .btn from the pre-Task-4 base) declare an explicit `display`,
   which ties in specificity with the UA `[hidden]{display:none}` rule —
   on a tie the later author rule wins, so without this, `el.hidden =
   true` would silently fail to hide them. One blanket override, kept
   last on purpose, closes that gap for every current and future case.
   ============================================================ */

/* ---------- TARJETA — badge "ver detalles" al hover ---------- */
.card{ cursor: pointer; }
.card-view{
  position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 6px);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  background: rgba(11,11,13,.82); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.card:hover .card-view, .card:focus-visible .card-view{ opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   MODAL DE PRODUCTO — premium: media elevada + tira de fotos,
   tipografía refinada, chips de confianza, entrada escalonada.
   ============================================================ */
.pm-overlay{
  position: fixed; inset: 0; z-index: 160;
  background: rgba(5,5,6,.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.pm-overlay.show{ opacity: 1; }
.pm-modal{
  position: fixed; z-index: 161;
  top: 50%; left: 50%; transform: translate(-50%,-46%) scale(.97);
  width: min(840px, 94vw); max-height: 90vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(180deg, #16161a 0%, #131316 100%);
  border: 1px solid var(--line);
  border-radius: 22px; padding: 34px;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.03) inset;
  opacity: 0; transition: opacity .32s var(--ease), transform .38s var(--ease);
}
.pm-modal.show{ opacity: 1; transform: translate(-50%,-50%) scale(1); }
.pm-close{
  position: absolute; top: 16px; right: 18px; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-2); font-size: 14px;
  background: rgba(11,11,13,.4);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.pm-close:hover{ background: rgba(255,255,255,.1); color: var(--text); transform: rotate(90deg); }

.pm-top{ display: grid; grid-template-columns: minmax(0,320px) 1fr; gap: 36px; align-items: start; }
@media (max-width: 680px){
  .pm-top{ grid-template-columns: 1fr; gap: 22px; }
  .pm-modal{ padding: 22px 18px 26px; border-radius: 18px; }
}

/* ---------- Media: marco elevado + halo verde detrás ---------- */
.pm-media-frame{ position: relative; }
.pm-media-frame::before{
  content: '';
  position: absolute; inset: -14%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--tint, #84CC16) 40%, transparent), transparent 72%);
  filter: blur(42px);
  opacity: .85;
}
.pm-media{
  position: relative; isolation: isolate;
  aspect-ratio: 1; border-radius: 18px;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(130% 85% at 50% -6%, rgba(255,255,255,.08), transparent 52%),
    radial-gradient(72% 58% at 50% 40%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 74%),
    linear-gradient(180deg, #1c1c22 0%, #121216 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.06);
}
.pm-media::after{
  content: ''; position: absolute; left: 50%; bottom: 14%;
  width: 58%; height: 13%; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tint) 50%, transparent), transparent 72%);
  filter: blur(11px); opacity: .7;
}
.pm-media svg{
  position: relative; z-index: 2;
  width: 48%; stroke: var(--tint); fill: none; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--tint) 42%, transparent));
}
.pm-media img, .pm-media video{ position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tira de miniaturas — solo si el producto trae >1 foto/video ---------- */
.pm-thumbs{
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto;
  scrollbar-width: none;
}
.pm-thumbs::-webkit-scrollbar{ display: none; }
.pm-thumb{
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--line); opacity: .55;
  transition: opacity .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.pm-thumb img, .pm-thumb video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumb:hover{ opacity: .85; transform: translateY(-1px); }
.pm-thumb.active{ opacity: 1; border-color: #84CC16; box-shadow: 0 0 0 3px rgba(132,204,22,.16); }

/* ---------- Info: eyebrow, nombre, precio, stock, bundle, confianza, CTA ---------- */
.pm-marca{ font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tint, #84CC16); margin-bottom: 8px; }
.pm-modal h3{ font-size: clamp(21px, 2.8vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; margin-bottom: 16px; }
.pm-price-block{ margin-bottom: 14px; }
.pm-precio{ font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.pm-bs{ font-size: 13px; color: var(--text-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pm-stock{ font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.pm-stock.stock-ok{ color: #7BE0A6; font-weight: 500; }
.pm-stock.stock-low{ color: #84CC16; }
.pm-stock.stock-out{ color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }

/* ---------- Chips de confianza — reemplaza la línea de texto plano ---------- */
.pm-trust{ display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.pm-trust li{
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  background: color-mix(in srgb, #84CC16 9%, var(--surface));
  border: 1px solid color-mix(in srgb, #84CC16 26%, transparent);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #B7EE7A;
}
.pm-trust li svg{ width: 15px; height: 15px; flex-shrink: 0; color: #84CC16; }

#pmAdd{ box-shadow: 0 10px 30px -8px rgba(34,197,94,.5); }

/* ---------- Entrada escalonada — cada bloque de info aparece en cascada ---------- */
.pm-modal.show .pm-media-frame{ animation: hero-in .55s var(--ease) both; }
.pm-modal.show .pm-info > *{ animation: hero-in .5s var(--ease) both; }
.pm-modal.show .pm-info > *:nth-child(1){ animation-delay: .04s; }
.pm-modal.show .pm-info > *:nth-child(2){ animation-delay: .09s; }
.pm-modal.show .pm-info > *:nth-child(3){ animation-delay: .14s; }
.pm-modal.show .pm-info > *:nth-child(4){ animation-delay: .19s; }
.pm-modal.show .pm-info > *:nth-child(5){ animation-delay: .24s; }
.pm-modal.show .pm-info > *:nth-child(6){ animation-delay: .29s; }
.pm-modal.show .pm-info > *:nth-child(7){ animation-delay: .34s; }

@media (prefers-reduced-motion: reduce){
  .pm-overlay, .pm-modal, .card-view, .pm-thumb{ transition: none; }
  .pm-modal.show .pm-media-frame, .pm-modal.show .pm-info > *{ animation: none; }
}

/* ---------- CARRITO EN LA BARRA SUPERIOR ---------- */
.nav-cart{
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  flex-shrink: 0;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.nav-cart:hover{ border-color: transparent; background: var(--grad-cta); transform: translateY(-1px); }
.nav-cart .ico{ width: 19px; height: 19px; }
.nav-cart .fab-count{
  position: absolute; top: -3px; right: -3px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--grad-cta); color: #0B1A08;
  font-size: 10.5px; font-weight: 700; border: 2px solid var(--bg);
  font-variant-numeric: tabular-nums;
}
.nav-cart:hover .fab-count{ background: #fff; color: #111; }
.nav-cart.pop{ animation: fab-pop .4s var(--ease); }
@media (max-width: 640px){
  .nav-inner{ gap: 12px; }
  .nav-links{ gap: 14px; }
  .nav-cart{ width: 38px; height: 38px; }
}

/* ---------- BOTÓN FLOTANTE DE WHATSAPP ---------- */
.wa-float{
  position: fixed;
  right: clamp(16px, 4vw, 30px);
  bottom: clamp(16px, 4vw, 30px);
  z-index: 80;
  display: inline-flex; align-items: center; gap: 0;
  height: 58px; padding: 0 19px;
  border-radius: 999px;
  background: var(--wa);
  color: #06210F;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.55);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), gap .25s var(--ease), padding .25s var(--ease);
}
.wa-float svg{ width: 26px; height: 26px; flex-shrink: 0; }
.wa-float-label{
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px;
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .3s var(--ease);
}
.wa-float:hover{ transform: translateY(-3px); gap: 10px; box-shadow: 0 18px 44px -10px rgba(37,211,102,.7); }
.wa-float:hover .wa-float-label{ max-width: 130px; }
@media (max-width: 640px){
  .wa-float{ height: 54px; padding: 0 16px; }
  .wa-float svg{ width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce){
  .wa-float, .wa-float-label, .nav-cart{ transition: none; }
}

/* ---------- LOGOS DE MARCAS ---------- */
.brands{
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 4.5vw, 46px) var(--gutter);
  text-align: center;
}
.brands-label{
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-2);
  margin-bottom: 22px;
}
/* carrusel infinito: la pista lleva el set duplicado y se desplaza -50% */
.brands-marquee{
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands-track{
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(38px, 6vw, 78px);
  animation: brands-slide 26s linear infinite;
}
.brands-marquee:hover .brands-track{ animation-play-state: paused; }
@keyframes brands-slide{
  from{ transform: translateX(0); }
  to{   transform: translateX(-50%); }
}
.brands-track .brand-logo{ flex-shrink: 0; }
@media (prefers-reduced-motion: reduce){
  .brands-track{ animation: none; justify-content: center; flex-wrap: wrap; width: 100%; }
}
/* logos reales en SVG → se vuelven blancos para unificarlos con los tipográficos */
img.brand-logo{
  height: clamp(20px, 2.6vw, 27px);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .62;
  transition: opacity .22s var(--ease);
}
img.brand-logo:hover{ opacity: 1; }
.brand-type{
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(17px, 2.3vw, 23px);
  letter-spacing: -.02em;
  color: var(--text);
  opacity: .62;
  transition: opacity .22s var(--ease);
}
.brand-type:hover{ opacity: 1; }

/* ---------- ENLACES DE DEMO EN EL FOOTER ---------- */
.demo-links{
  display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
  padding: 16px 0; margin-bottom: 8px;
  border-top: 1px solid var(--line);
}
.demo-links-lab{
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  color: #D9F99D; background: rgba(217, 249, 157,.1);
  border: 1px solid rgba(217, 249, 157,.28);
  padding: 4px 10px; border-radius: 999px;
}
.demo-links a{
  font-size: 13px; color: var(--text-2);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.demo-links a:hover{ color: var(--text); border-color: var(--line); }

/* ---------- PROMO BAR + POPUP (controlados desde admin.html) ---------- */
.promo-bar{
  position: relative;
  z-index: 60;
  background: var(--grad-cta);
  color: #0B1A08;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 2vw, 15px);
  text-align: center;
  padding: 11px 44px;
  letter-spacing: -.01em;
}
.promo-bar-x{
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: rgba(11,26,8,.75);
  font-size: 13px;
}
.promo-bar-x:hover{ background: rgba(0,0,0,.12); color: #0B1A08; }

.site-pop-overlay{
  position: fixed; inset: 0; z-index: 150;
  background: rgba(4,7,4,.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.site-pop-overlay.show{ opacity: 1; }
.site-pop{
  position: fixed; z-index: 151;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(.94);
  width: min(420px, 92vw);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(132,204,22,.10), transparent 60%),
    linear-gradient(180deg, #16181d, #101116);
  border: 1px solid rgba(163,230,53,.16);
  border-radius: 22px;
  padding: 42px 30px 26px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 50px 110px -34px rgba(0,0,0,.82), inset 0 0 0 1px rgba(255,255,255,.02);
  opacity: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.site-pop.show{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
.site-pop-glow{
  position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 190px; pointer-events: none;
  background: radial-gradient(circle, rgba(132,204,22,.32), transparent 68%);
  filter: blur(14px);
}
.site-pop-eyebrow{
  position: relative;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #A3E635; margin-bottom: 12px;
}
.site-pop h3{
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -.02em; line-height: 1.12;
  margin-bottom: 10px;
}
.site-pop p{
  position: relative;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 auto 20px;
  max-width: 30ch;
}
.site-pop-x{
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  font-size: 14px;
  background: rgba(255,255,255,.05);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.site-pop-x:hover{ background: rgba(255,255,255,.12); color: var(--text); }
.site-pop-fine{ position: relative; font-size: 11.5px; color: rgba(245,245,247,.45); margin: 12px 0 4px; }
.site-pop-cta{ width: 100%; position: relative; margin-top: 4px; }

@media (prefers-reduced-motion: reduce){
  .site-pop-overlay, .site-pop{ transition: none; }
}

/* ============================================================
   PHASE 1 — vitrina landing, tienda completa (shop.html),
   ofertas/countdown, bundles, compartir, popup con newsletter
   ============================================================ */

/* ---------- Filas "Recomendados" / "Ofertas" + CTA a la tienda ---------- */
.row-title{
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 16px;
}
.prod-row{ margin-bottom: 44px; }
.grid-row{ margin-bottom: 4px; }

.catalog-cta{
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 5vw, 44px);
}

/* ---------- Precio con oferta (tarjeta + modal) ---------- */
.price-wrap{ display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-wrap .price-strike{
  font-size: 12px;
  color: var(--text-2);
  text-decoration: line-through;
  text-decoration-color: rgba(245,245,247,.4);
  opacity: .8;
}
.price-wrap .price-sale{ color: #84CC16; }

.card-oferta{
  order: 2;
  font-size: 11px;
  font-weight: 600;
  color: #84CC16;
  margin: 2px 0 0;
  font-variant-numeric: tabular-nums;
}

.pm-precio .price-strike{
  font-size: .5em;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: line-through;
  text-decoration-color: rgba(245,245,247,.4);
  margin-right: 8px;
}
.pm-precio .price-sale{ color: #84CC16; }
.pm-oferta-line{
  font-size: 12.5px;
  font-weight: 600;
  color: #84CC16;
  margin: -6px 0 12px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Bundle: "compra este y llévate X gratis/con descuento" ---------- */
.pm-bundle{
  margin: 2px 0 14px;
  padding: 11px 14px;
  background: color-mix(in srgb, #84CC16 14%, transparent);
  border: 1px solid color-mix(in srgb, #84CC16 38%, transparent);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #D9F99D;
  line-height: 1.45;
}
.pm-bundle:empty{ display: none; }

/* ---------- Compartir producto ---------- */
.pm-share-btn{
  position: absolute; top: 14px; right: 56px; z-index: 3;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-2);
  border: 1px solid var(--line);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.pm-share-btn .ico{ width: 16px; height: 16px; }
.pm-share-btn:hover{ background: rgba(255,255,255,.08); color: var(--text); border-color: transparent; }

.pm-share-menu{
  position: absolute; top: 52px; right: 16px; z-index: 4;
  background: #1b1b20; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px; display: flex; flex-direction: column; min-width: 186px;
  box-shadow: 0 20px 48px -18px rgba(0,0,0,.65);
}
.pm-share-menu button{
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; font-size: 13.5px; border-radius: 8px;
  text-align: left; width: 100%; color: var(--text);
}
.pm-share-menu button:hover{ background: rgba(255,255,255,.07); }
.pm-share-menu .ico{ width: 16px; height: 16px; flex-shrink: 0; color: var(--text-2); }

/* ---------- Shop.html — hero compacto + buscador destacado ---------- */
.shop-hero{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) var(--gutter) 4px;
}
.shop-hero h1{
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.shop-hero p{ color: var(--text-2); font-size: 15px; max-width: 540px; line-height: 1.55; }

.search-wrap-shop{ max-width: 560px; }
.search-wrap-shop #search{ padding: 16px 20px; font-size: 16px; }

/* ---------- Popup con imagen + newsletter ---------- */
.site-pop-img{
  width: 100%; max-height: 160px; object-fit: cover;
  border-radius: var(--radius-sm); margin-bottom: 16px;
}
.site-pop-nl{ display: flex; gap: 8px; margin: 4px 0 6px; }
.site-pop-nl input{
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 13px 15px;
  font-size: 14px; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-pop-nl input::placeholder{ color: rgba(245,245,247,.4); }
.site-pop-nl input:focus{ outline: none; border-color: rgba(163,230,53,.5); box-shadow: 0 0 0 3px rgba(132,204,22,.14); }
.site-pop-nl button{ flex-shrink: 0; padding: 13px 20px; font-size: 14px; border-radius: 12px; }
.site-pop-nl-msg{ font-size: 13px; color: #A3E635; font-weight: 600; margin: 2px 0 10px; }

@media (max-width: 480px){
  .site-pop-nl{ flex-direction: column; }
  .site-pop-nl button{ width: 100%; }
}

/* ============================================================
   AUTH — header chip + login/signup modal (index.html, shop.html, cuenta.html)
   ============================================================ */
.auth-area{ display: flex; align-items: center; }

.auth-chip{
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13.5px;
  white-space: nowrap;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.auth-chip-login{
  padding: 10px 18px 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text);
}
.auth-chip-login .ico{ width: 16px; height: 16px; flex-shrink: 0; }
.auth-chip-login:hover{ border-color: transparent; background: var(--grad-cta); color: #0B1A08; transform: translateY(-1px); }
.auth-chip-user{ padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.auth-chip-user:hover{ border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.auth-avatar{
  width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad-cta); color: #0B1A08;
  font-size: 12px; font-weight: 700;
}
.auth-chip-name{ max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px){ .auth-chip-name{ display: none; } .auth-chip-user{ padding: 5px; } }

/* Icon-only chip once the nav gets tight — brand + 2-3 links + auth + cart
   all share one row down to 360px, so "Iniciar sesión" drops its label first. */
@media (max-width: 480px){
  .nav-inner{ gap: 8px; }
  .auth-chip-login{
    width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%;
  }
  .auth-chip-login-text{ display: none; }
}

.auth-overlay{
  position: fixed; inset: 0; z-index: 700;
  background: rgba(5,5,6,.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.auth-overlay.show{ opacity: 1; }
.auth-modal{
  position: fixed; z-index: 701;
  top: 50%; left: 50%; transform: translate(-50%,-46%) scale(.97);
  width: min(420px, 92vw); max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #16161a 0%, #131316 100%);
  border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.85);
  opacity: 0; transition: opacity .3s var(--ease), transform .34s var(--ease);
}
.auth-modal.show{ opacity: 1; transform: translate(-50%,-50%) scale(1); }
.auth-modal-close{
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-2); font-size: 13px;
  background: rgba(255,255,255,.05);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.auth-modal-close:hover{ background: rgba(255,255,255,.1); color: var(--text); transform: rotate(90deg); }

.auth-modal-head{ text-align: center; margin-bottom: 22px; }
.auth-modal-mark{
  display: inline-block; font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: .18em; padding: 5px 12px; border-radius: 999px;
  background: var(--grad-cta); color: #0B1A08; margin-bottom: 14px;
}
.auth-modal-head h3{ font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.auth-modal-head p{ font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

.auth-tabs{
  display: flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.auth-tab{
  flex: 1; padding: 10px; font-size: 13px; font-weight: 600; font-family: 'Outfit', sans-serif;
  color: var(--text-2); border-radius: 999px; transition: background .2s var(--ease), color .2s var(--ease);
}
.auth-tab.active{ background: var(--grad-cta); color: #0B1A08; }

.auth-google-btn{
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; margin-bottom: 18px;
  background: #fff; color: #1f1f1f; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-google-btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(0,0,0,.5); }
.auth-google-glyph{ width: 19px; height: 19px; flex-shrink: 0; }

.auth-divider{
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; color: var(--text-2); font-size: 12px;
}
.auth-divider::before, .auth-divider::after{ content: ''; flex: 1; height: 1px; background: var(--line); }

.auth-form .form-field{ margin-bottom: 14px; }
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form input[type="date"]{
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-form input::placeholder{ color: rgba(245,245,247,.35); }
.auth-form input:focus{
  outline: none; border-color: #84CC16; background: #1b1b20;
  box-shadow: 0 0 0 4px rgba(132,204,22,.14);
}
.auth-form .form-field label{
  display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px;
}
.auth-error{
  font-size: 13px; color: #FF8080; background: rgba(250,90,90,.08);
  border: 1px solid rgba(250,90,90,.25); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 14px;
}

/* ---------- Post-signup "Completa tu perfil" step ---------- */
.auth-profile-head{ margin-bottom: 22px; }
.field-note-inline{ font-weight: 400; color: var(--text-2); }
.auth-profile-skip{
  display: block; width: 100%; text-align: center; margin-top: 12px;
  font-size: 13px; color: var(--text-2); padding: 6px;
  transition: color .2s var(--ease);
}
.auth-profile-skip:hover{ color: var(--text); }

/* ============================================================
   FAVORITOS — heart on product cards + product modal
   ============================================================ */
.fav-btn{
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  background: rgba(11,11,13,.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.fav-btn .ico{ width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: fill .2s var(--ease); }
.fav-btn:hover{ transform: scale(1.08); background: rgba(11,11,13,.65); }
.fav-btn.active{ color: #FF6B81; }
.fav-btn.active .ico{ fill: #FF6B81; stroke: #FF6B81; }

.pm-fav-btn{
  position: absolute; top: 14px; right: 98px; z-index: 3;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-2);
  border: 1px solid var(--line);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.pm-fav-btn .ico{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: fill .2s var(--ease); }
.pm-fav-btn:hover{ background: rgba(255,255,255,.08); color: var(--text); border-color: transparent; }
.pm-fav-btn.active{ color: #FF6B81; border-color: transparent; }
.pm-fav-btn.active .ico{ fill: #FF6B81; stroke: #FF6B81; }

/* ============================================================
   CUENTA — account area (cuenta.html)
   ============================================================ */
.account-hero{
  max-width: var(--container); margin: 0 auto;
  padding: clamp(44px, 7vw, 76px) var(--gutter) 8px;
}
.account-hero h1{
  font-size: clamp(28px, 4.2vw, 42px); font-weight: 700; letter-spacing: -.02em;
  margin: 8px 0 10px;
}
.account-hero p{ color: var(--text-2); font-size: 15px; max-width: 520px; line-height: 1.55; }

/* ---------- Guard (logged out) ---------- */
.account-guard{
  max-width: var(--container); margin: 0 auto;
  padding: 24px var(--gutter) clamp(64px, 9vw, 108px);
  display: flex; justify-content: center;
}
.account-guard-card{
  width: min(440px, 100%); text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 36px);
}
.account-guard-mark{
  display: inline-block; font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: .18em; padding: 5px 12px; border-radius: 999px;
  background: var(--grad-cta); color: #0B1A08; margin-bottom: 18px;
}
.account-guard-card h2{ font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.account-guard-card p{ color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin-bottom: 24px; }

/* ---------- App shell ---------- */
.account-app{
  max-width: var(--container); margin: 0 auto;
  padding: 24px var(--gutter) clamp(64px, 9vw, 108px);
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 900px){
  .account-app{ flex-direction: row; align-items: flex-start; gap: 36px; }
}

.account-tabs{
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.account-tabs::-webkit-scrollbar{ display: none; }
.account-tab{
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.account-tab .ico{ width: 16px; height: 16px; flex-shrink: 0; }
.account-tab:hover{ color: var(--text); border-color: rgba(255,255,255,.24); }
.account-tab.active{ background: var(--grad-cta); color: #0B1A08; border-color: transparent; }
.account-tab-logout{ color: #FF8080; }
.account-tab-logout:hover{ color: #FF8080; border-color: rgba(250,90,90,.35); background: rgba(250,90,90,.08); }

@media (min-width: 900px){
  .account-tabs{
    flex-direction: column; overflow-x: visible; padding-bottom: 0;
    width: 240px; flex-shrink: 0; position: sticky; top: 92px;
  }
  .account-tab{ width: 100%; justify-content: flex-start; }
  .account-tab-logout{ margin-top: 12px; }
}

.account-content{ flex: 1; min-width: 0; }

.acc-panel{
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
}
.acc-panel h2{ font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: -.01em; }
.acc-panel-sub{ color: var(--text-2); font-size: 14px; margin-top: 6px; margin-bottom: 22px; }
.acc-panel > .grid{ margin-top: 4px; }

/* ---------- 1. Panel ---------- */
.acc-stats{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 22px 0 28px;
}
.acc-stat{
  text-align: center; padding: 18px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.acc-stat-num{
  display: block; font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acc-stat-label{ display: block; font-size: 11.5px; color: var(--text-2); margin-top: 4px; }

.acc-shortcuts{ display: flex; flex-wrap: wrap; gap: 10px; }
.acc-shortcut{
  padding: 11px 18px; font-size: 13.5px; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.acc-shortcut:hover{ border-color: rgba(255,255,255,.28); transform: translateY(-1px); }

/* ---------- 2. Mis pedidos ---------- */
.acc-pedidos-list{ display: flex; flex-direction: column; gap: 14px; }
.acc-pedido-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.acc-pedido-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.acc-pedido-num{ font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px; }
.acc-pedido-fecha{ font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.acc-pedido-items{ padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.acc-pedido-item{ font-size: 13.5px; color: var(--text-2); padding: 3px 0; }
.acc-pedido-envio{ margin-bottom: 12px; padding: 10px 12px; background: rgba(132,204,22,.07); border-radius: 8px; }
.acc-pedido-envio p{ font-size: 12.5px; color: var(--text-2); padding: 2px 0; }
.acc-pedido-envio strong{ color: var(--text); }
.acc-pedido-foot{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-pedido-total{ font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px; }
.acc-recomprar{ padding: 9px 16px; font-size: 12.5px; }

.acc-pill{
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.pill-pendiente{ background: rgba(251,191,36,.15); color: #FBBF24; }
.pill-aprobado{ background: rgba(34,197,94,.15); color: #22C55E; }
.pill-enviado{ background: rgba(56,189,248,.15); color: #38BDF8; }
.pill-entregado{ background: rgba(132,204,22,.18); color: #84CC16; }
.pill-rechazado{ background: rgba(250,90,90,.15); color: #FF8080; }

/* ---------- 3. Mi perfil ---------- */
.acc-form{ max-width: 460px; }
.acc-form .form-field input[disabled]{ opacity: .6; cursor: not-allowed; }
.acc-form-msg{ font-size: 13px; border-radius: var(--radius-sm); padding: 10px 12px; margin: -6px 0 16px; }
.acc-form-msg-ok{ background: rgba(34,197,94,.1); color: #84CC16; }
.acc-form-msg-err{ background: rgba(250,90,90,.08); color: #FF8080; }

/* ---------- 5. Vouchers ---------- */
.acc-vouchers-list{ display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px){ .acc-vouchers-list{ grid-template-columns: repeat(2, 1fr); } }
.acc-voucher-card{
  background: linear-gradient(135deg, var(--surface), var(--card));
  border: 1px dashed rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 18px;
}
.acc-voucher-inactivo{ opacity: .55; }
.acc-voucher-code{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .02em;
  margin-bottom: 10px;
}
.acc-copy-btn{
  width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-2); border: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.acc-copy-btn .ico{ width: 14px; height: 14px; }
.acc-copy-btn:hover{ color: var(--text); border-color: rgba(255,255,255,.28); }
.acc-copy-btn.copied{ color: #84CC16; border-color: transparent; background: rgba(132,204,22,.15); }
.acc-voucher-valor{ font-size: 15px; font-weight: 600; color: #84CC16; margin-bottom: 4px; }
.acc-voucher-motivo{ font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.acc-voucher-foot{ display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-2); }

/* ---------- 6. Tareas sociales ---------- */
.acc-tareas-list{ display: flex; flex-direction: column; gap: 12px; }
.acc-tarea-card{
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
}
.acc-tarea-titulo{ font-weight: 600; font-size: 14.5px; }
.acc-tarea-desc{ font-size: 13px; color: var(--text-2); margin-top: 3px; max-width: 44ch; }
.acc-tarea-link{ display: inline-block; font-size: 12.5px; color: #84CC16; margin-top: 6px; }
.acc-tarea-action{ flex-shrink: 0; }
.acc-tarea-form{ display: flex; gap: 8px; flex-wrap: wrap; }
.acc-tarea-prueba{
  min-width: 180px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; color: var(--text);
}
.acc-tarea-form .btn{ padding: 10px 16px; font-size: 13px; flex-shrink: 0; }

/* ---------- 7. Newsletter ---------- */
.acc-toggle{ display: inline-flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 16px; }
.acc-toggle input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-toggle-track{
  width: 46px; height: 26px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  position: relative; flex-shrink: 0; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.acc-toggle-thumb{
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-2); transition: transform .22s var(--ease), background .22s var(--ease);
}
.acc-toggle input:checked + .acc-toggle-track{ background: var(--grad-cta); border-color: transparent; }
.acc-toggle input:checked + .acc-toggle-track .acc-toggle-thumb{ transform: translateX(20px); background: #0B1A08; }
.acc-toggle-label{ font-size: 14px; color: var(--text); }

/* ---------- toast ---------- */
.acc-toast{
  position: fixed; left: 50%; bottom: 28px; z-index: 600;
  transform: translate(-50%, 12px); opacity: 0;
  background: #1b1b20; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; font-size: 13.5px; color: var(--text);
  box-shadow: 0 20px 48px -18px rgba(0,0,0,.65);
  transition: opacity .26s var(--ease), transform .26s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.acc-toast.show{ opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce){
  .auth-overlay, .auth-modal, .fav-btn, .pm-fav-btn, .acc-toggle-track, .acc-toggle-thumb, .acc-toast{ transition: none; }
}

[hidden]{ display: none !important; }

/* product description in the modal */
.pm-desc{ color:var(--text-2); font-size:14px; line-height:1.65; margin:2px 0 4px; max-width:52ch; }

/* ---- Escáner de código de barras (cliente en tienda) ---- */
/* Botón en la barra de navegación, gemelo del carrito. */
.nav-scan{ position:relative; width:42px; height:42px; display:grid; place-items:center;
  border-radius:50%; border:1px solid var(--line); background:transparent; color:var(--text);
  flex-shrink:0; cursor:pointer;
  transition:border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.nav-scan:hover{ border-color:transparent; background:var(--grad-cta); color:#0B1A08; transform:translateY(-1px); }
.nav-scan .ico{ width:19px; height:19px; }
@media (max-width:600px){ .nav-scan{ width:38px; height:38px; } }
@media (prefers-reduced-motion:reduce){ .nav-scan{ transition:none; } }

.scan-overlay{ position:fixed; inset:0; z-index:120; display:flex; align-items:center;
  justify-content:center; padding:18px; background:rgba(6,8,5,.78); backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px); }
.scan-overlay[hidden]{ display:none; }
.scan-sheet{ position:relative; width:min(420px,100%); background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius); padding:22px 20px 20px;
  box-shadow:0 24px 60px rgba(0,0,0,.55); }
.scan-close{ position:absolute; top:10px; right:12px; width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line); background:#0d0d10; color:var(--text); font-size:20px; line-height:1;
  cursor:pointer; }
.scan-title{ margin:0 0 4px; font-size:18px; color:var(--text); }
.scan-hint{ margin:0 0 14px; font-size:13px; color:var(--text-2); }
.scan-reader{ width:100%; aspect-ratio:4/3; border-radius:var(--radius-sm); overflow:hidden;
  background:#000; }
.scan-reader video{ width:100%; height:100%; object-fit:cover; }
.scan-msg{ margin:12px 0 0; min-height:18px; font-size:13px; color:var(--text-2); text-align:center; }
.scan-msg.is-error{ color:#FCA5A5; }
