/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --bg:        #0B0F14;
  --bg-soft:   #0F1620;
  --surface:   #131B26;
  --surface-2: #1A2330;
  --border:    #232E3D;
  --text:      #E9EEF4;
  --text-dim:  #9AA7B4;
  --text-faint:#5E6B7A;

  --accent:    #00D9A3;
  --accent-dim:#00B589;
  --accent-glow: rgba(0,217,163,0.35);
  --warn:      #FF9A3D;
  --warn-glow: rgba(255,154,61,0.3);
  --danger:    #FF5C72;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-lift: 0 20px 60px -20px rgba(0,0,0,0.6);

  --ease: cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; border:none; background:none; color:inherit; }
ul{ list-style:none; }
h1,h2,h3{ font-family: var(--font-display); font-weight:600; letter-spacing:-0.02em; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.text-accent{ color: var(--accent); }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  color: var(--accent); margin-bottom:16px;
}
.eyebrow::before{
  content:""; width:6px; height:6px; border-radius:50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.section__head{
  max-width: 720px; margin: 0 auto 56px; padding: 0 24px; text-align:center;
}
.section__head h2{ font-size: clamp(28px,4vw,42px); margin-bottom:14px; }
.section__head p{ color: var(--text-dim); font-size:17px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight:600; font-size:15px; white-space:nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #06140F;
  box-shadow: 0 8px 24px -6px var(--accent-glow);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 32px -8px var(--accent-glow); }
.btn--primary:active{ transform: translateY(0) scale(.98); }
.btn--ghost{
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--block{ width:100%; }
.btn--lg{ padding: 18px 36px; font-size:17px; }
.btn--sm{ padding:9px 16px; font-size:13px; }
.btn:disabled{ opacity:.4; cursor:not-allowed; transform:none !important; box-shadow:none !important; }

.chip{
  display:inline-flex; align-items:center; gap:6px;
  background: var(--surface); border:1px solid var(--border);
  padding:8px 14px; border-radius:999px; font-size:13px; color: var(--text-dim);
  transition: border-color .25s, color .25s, transform .25s;
}
.chip:hover{ border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

.badge{ font-size:12px; font-weight:600; padding:5px 12px; border-radius:999px; }
.badge--ok{ background: rgba(0,217,163,.12); color: var(--accent); }
.badge--warn{ background: rgba(255,154,61,.12); color: var(--warn); }
.badge--muted{ background: var(--surface-2); color: var(--text-faint); }

/* scroll reveal */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
.fade-up{ opacity:0; transform: translateY(20px); animation: fadeUp .8s var(--ease) forwards; animation-delay: var(--d,0s); }
@keyframes fadeUp{ to{ opacity:1; transform:none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 200;
  padding: 18px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.is-scrolled{
  padding: 12px 0;
  background: rgba(11,15,20,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner{
  max-width: 1200px; margin:0 auto; padding: 0 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav__brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:18px; }
.nav__mark{
  width:32px; height:32px; border-radius:9px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color:#06140F; font-weight:700;
}
.nav__name strong{ color: var(--accent); }
.nav__links{ display:flex; gap:32px; font-size:14px; color: var(--text-dim); }
.nav__links a{ transition: color .2s; position:relative; }
.nav__links a:hover{ color: var(--text); }
.nav__cta{
  background: var(--surface-2); border:1px solid var(--border);
  padding:10px 20px; border-radius:999px; font-size:14px; font-weight:600;
  transition: border-color .25s, transform .25s;
}
.nav__cta:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.nav__burger{ display:none; flex-direction:column; gap:4px; padding:8px; }
.nav__burger span{ width:22px; height:2px; background: var(--text); border-radius:2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative; padding: 160px 24px 100px;
  display:flex; flex-direction:column; align-items:center;
  overflow:hidden;
}
.hero__glow{
  position:absolute; top:-200px; left:50%; translate:-50% 0;
  width:900px; height:600px; border-radius:50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(40px); opacity:.5; pointer-events:none;
}
.hero__grid{
  position:absolute; inset:0; pointer-events:none; opacity:.25;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, black, transparent);
}
.hero__inner{
  position:relative; max-width:1200px; width:100%;
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap:64px; align-items:center;
}
.hero__copy h1{
  font-size: clamp(34px, 5vw, 56px); line-height:1.08; margin-bottom:20px;
}
.hero__lead{ color: var(--text-dim); font-size:18px; max-width:480px; margin-bottom:32px; }
.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:32px; }
.hero__chips{ display:flex; flex-wrap:wrap; gap:10px; }

.hero__device{ position:relative; }
.device{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift);
  overflow:hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.hero__device:hover .device{ transform: perspective(1000px) rotateY(-1deg) rotateX(0.5deg); }
.device__bar{
  display:flex; align-items:center; gap:8px; padding:14px 18px;
  background: var(--surface-2); border-bottom:1px solid var(--border);
}
.dot{ width:9px; height:9px; border-radius:50%; }
.dot--r{ background:#FF5C72; } .dot--y{ background:#FFC53D; } .dot--g{ background:#00D9A3; }
.device__title{ margin-left:10px; font-size:13px; color: var(--text-faint); font-weight:500; }
.device__screen{ padding:20px; }
.ticker__row{
  display:flex; justify-content:space-between; padding:12px 0;
  border-bottom:1px dashed var(--border); font-size:14px; color: var(--text-dim);
}
.ticker__row--new{ animation: rowIn .5s var(--ease); color: var(--text); }
@keyframes rowIn{ from{ opacity:0; transform: translateX(-12px); background: rgba(0,217,163,.08);} to{ opacity:1; transform:none; } }
.ticker__price{ font-family: var(--font-mono); }
.ticker__total{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:18px; margin-top:6px; font-family:var(--font-display); font-size:18px; font-weight:600;
}
.odometer{ font-family: var(--font-mono); color: var(--accent); transition: color .3s; }

.floatcard{
  position:absolute; display:flex; gap:10px; align-items:flex-start;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m);
  padding:12px 16px; box-shadow: var(--shadow-lift); max-width:200px;
  animation: floatY 5s ease-in-out infinite;
}
.floatcard p{ font-size:12px; color: var(--text-dim); }
.floatcard strong{ font-size:13px; }
.floatcard--stock{ top:-8%; left:-12%; animation-delay:.2s; }
.floatcard--sale{ bottom:-6%; right:-8%; animation-delay:1s; }
@keyframes floatY{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

.hero__scrolldown{
  margin-top:80px; display:flex; flex-direction:column; align-items:center; gap:8px;
  color: var(--text-faint); font-size:12px;
}
.hero__scrolldown span{
  width:1px; height:36px; background: linear-gradient(to bottom, var(--accent), transparent);
  position:relative; overflow:hidden;
}
.hero__scrolldown span::after{
  content:""; position:absolute; top:-100%; left:0; width:100%; height:100%;
  background: var(--accent); animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine{ 0%{ top:-100%; } 100%{ top:100%; } }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: var(--bg-soft); }
.stats__inner{
  max-width:1200px; margin:0 auto; padding: 40px 24px;
  display:grid; grid-template-columns: repeat(4,1fr); gap:24px; text-align:center;
}
.stat__num{ display:block; font-family:var(--font-display); font-size: clamp(26px,3vw,36px); color: var(--accent); }
.stat__label{ font-size:13px; color: var(--text-faint); }

/* ============================================================
   DEMO / POS
   ============================================================ */
.demo{ padding: 120px 24px 100px; }
.pos{
  max-width: 1080px; margin:0 auto;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift); overflow:hidden;
}
.pos__topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 26px; border-bottom:1px solid var(--border); background: var(--surface-2);
}
.pos__shop{ display:flex; align-items:center; gap:12px; }
.pos__shopicon{ font-size:24px; }
.pos__shop p{ font-size:12px; color: var(--text-faint); }
.pos__status{ display:flex; align-items:center; gap:8px; font-size:13px; color: var(--accent); font-weight:600; }
.pulse{ width:8px; height:8px; border-radius:50%; background: var(--accent); box-shadow:0 0 0 0 var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 var(--accent-glow);} 70%{ box-shadow:0 0 0 8px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }

.pos__body{ display:grid; grid-template-columns: 96px 1fr; min-height: 560px; }
.pos__tabs{
  display:flex; flex-direction:column; gap:6px; padding:18px 10px;
  border-right:1px solid var(--border); background: var(--bg-soft);
}
.pos__tab{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:14px 4px; border-radius: var(--radius-s); font-size:11px; color: var(--text-faint);
  transition: background .25s, color .25s;
}
.pos__tab span{ font-size:19px; }
.pos__tab:hover{ background: var(--surface-2); color: var(--text-dim); }
.pos__tab.is-active{ background: rgba(0,217,163,.1); color: var(--accent); }

.pos__panel{ display:none; padding:24px; }
.pos__panel.is-active{ display:block; animation: panelIn .4s var(--ease); }
@keyframes panelIn{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }
.pos__panel[data-panel="venta"].is-active{ display:grid; grid-template-columns: 1.5fr 1fr; gap:22px; }

.pos__catfilters{ display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.catchip{
  padding:8px 14px; border-radius:999px; font-size:13px; background: var(--surface-2);
  border:1px solid var(--border); color: var(--text-dim); transition: all .2s;
}
.catchip:hover{ color: var(--text); }
.catchip.is-active{ background: var(--accent); color:#06140F; border-color: var(--accent); font-weight:600; }

.pos__products{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:12px;
  max-height:420px; overflow-y:auto; padding-right:4px;
}
.product{
  position:relative; text-align:left; background: var(--surface-2); border:1px solid var(--border);
  border-radius: var(--radius-m); padding:14px; transition: transform .2s, border-color .2s, box-shadow .2s;
  display:flex; flex-direction:column; gap:6px;
}
.product:hover{ transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 24px -10px var(--accent-glow); }
.product:active{ transform: translateY(0) scale(.97); }
.product__emoji{ font-size:26px; }
.product__name{ font-size:13.5px; font-weight:600; line-height:1.25; }
.product__price{ font-family: var(--font-mono); color: var(--accent); font-size:13px; }
.product__low::after{
  content:"Stock bajo"; position:absolute; top:8px; right:8px;
  font-size:9px; font-weight:700; color: var(--warn); background: rgba(255,154,61,.12);
  padding:3px 7px; border-radius:999px;
}
.product__addburst{
  position:absolute; inset:0; border-radius: var(--radius-m); background: var(--accent);
  opacity:0; pointer-events:none;
}
.product.is-added .product__addburst{ animation: burst .5s ease-out; }
@keyframes burst{ 0%{ opacity:.35; } 100%{ opacity:0; } }

.pos__cart{ background: var(--bg-soft); border:1px solid var(--border); border-radius: var(--radius-m); padding:18px; display:flex; flex-direction:column; }
.pos__cartHead{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.pos__cartHead h3{ font-size:15px; }
.pos__clear{ font-size:12px; color: var(--text-faint); transition: color .2s; }
.pos__clear:hover{ color: var(--danger); }
.pos__cartItems{ flex:1; min-height:180px; max-height:280px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; }
.pos__empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; color: var(--text-faint); gap:8px; text-align:center; font-size:13px; padding:24px 0; }
.pos__empty span{ font-size:28px; opacity:.5; }

.cartline{
  display:flex; align-items:center; gap:10px; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius-s); padding:10px 12px; animation: rowIn .35s var(--ease);
}
.cartline__name{ flex:1; font-size:13px; font-weight:600; }
.cartline__sub{ font-size:11px; color: var(--text-faint); font-family: var(--font-mono); }
.cartline__qty{ display:flex; align-items:center; gap:6px; }
.cartline__qty button{
  width:22px; height:22px; border-radius:6px; background: var(--surface-2); border:1px solid var(--border);
  font-size:13px; line-height:1; display:grid; place-items:center; transition: background .2s;
}
.cartline__qty button:hover{ background: var(--accent); color:#06140F; }
.cartline__qtyval{ width:18px; text-align:center; font-family: var(--font-mono); font-size:13px; }
.cartline__price{ font-family: var(--font-mono); font-size:13px; min-width:78px; text-align:right; }

.pos__cartFooter{ border-top:1px solid var(--border); padding-top:14px; margin-top:14px; }
.pos__row{ display:flex; justify-content:space-between; font-size:13px; color: var(--text-dim); padding:4px 0; }
.pos__row--total{ font-family:var(--font-display); font-size:18px; color: var(--text); font-weight:600; padding-top:8px; }
#checkoutBtn{ margin-top:14px; }

/* STOCK PANEL */
.stockpanel__head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; flex-wrap:wrap; gap:10px; }
.stockpanel__head h3{ font-size:16px; }
.stocktable{ display:flex; flex-direction:column; gap:8px; }
.stockrow{
  display:grid; grid-template-columns: 28px 1fr 90px 120px; align-items:center; gap:14px;
  background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-s); padding:12px 14px;
}
.stockrow__name{ font-size:13px; font-weight:600; }
.stockrow__qty{ font-family: var(--font-mono); font-size:13px; text-align:center; }
.stockbar{ height:6px; border-radius:99px; background: var(--bg-soft); overflow:hidden; }
.stockbar__fill{ height:100%; border-radius:99px; background: var(--accent); transition: width 1s var(--ease); }
.stockbar__fill.is-low{ background: var(--warn); }

/* REPORTES PANEL */
.reportpanel__cards{ display:grid; grid-template-columns: repeat(3,1fr); gap:14px; margin-bottom:24px; }
.reportcard{ background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-m); padding:18px; }
.reportcard__label{ font-size:12px; color: var(--text-faint); display:block; margin-bottom:8px; }
.reportcard__value{ font-family: var(--font-display); font-size:22px; display:block; margin-bottom:6px; }
.reportcard__delta{ font-size:12px; color: var(--accent); }
.reportpanel__chart{ background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-m); padding:20px; }
.chart{ display:flex; align-items:flex-end; gap:10px; height:160px; }
.chart__bar{ flex:1; background: linear-gradient(to top, var(--accent-dim), var(--accent)); border-radius:6px 6px 0 0; min-height:4px; transition: height 1s var(--ease); position:relative; }
.chart__bar span{ position:absolute; bottom:-22px; left:0; right:0; text-align:center; font-size:10px; color: var(--text-faint); }

/* EQUIPO PANEL */
.teampanel__head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.teampanel__head h3{ font-size:16px; }
.teamlist{ display:flex; flex-direction:column; gap:10px; }
.teamrow{ display:flex; align-items:center; gap:14px; background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-s); padding:12px 14px; }
.avatar{ width:38px; height:38px; border-radius:50%; background: var(--surface); border:1px solid var(--border); display:grid; place-items:center; font-size:13px; font-weight:700; color: var(--text-dim); }
.avatar--owner{ background: rgba(0,217,163,.12); color: var(--accent); border-color: transparent; }
.teamrow__info{ flex:1; }
.teamrow__info p{ font-size:12px; color: var(--text-faint); }

/* ============================================================
   FEATURES
   ============================================================ */
.features{ padding: 100px 24px; background: var(--bg-soft); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.features__grid{
  max-width:1160px; margin:0 auto; display:grid; grid-template-columns: repeat(3,1fr); gap:20px;
}
.feature{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m);
  padding:28px; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover{ transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.feature__icon{ font-size:26px; display:inline-block; margin-bottom:14px; }
.feature h3{ font-size:17px; margin-bottom:8px; }
.feature p{ font-size:14px; color: var(--text-dim); }

/* ============================================================
   PLANS
   ============================================================ */
.plans{ padding: 110px 24px; }
.plans__grid{ max-width:1080px; margin:0 auto; display:grid; grid-template-columns: repeat(3,1fr); gap:22px; align-items:start; }
.plan{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-l);
  padding:32px 28px; position:relative; transition: transform .35s var(--ease), border-color .35s;
}
.plan:hover{ transform: translateY(-4px); border-color: var(--text-faint); }
.plan--featured{ border-color: var(--accent); background: linear-gradient(160deg, var(--surface), rgba(0,217,163,.06)); transform: scale(1.03); }
.plan--featured:hover{ transform: scale(1.03) translateY(-4px); }
.plan__tag{
  position:absolute; top:-12px; left:50%; translate:-50% 0;
  background: var(--accent); color:#06140F; font-size:11px; font-weight:700;
  padding:5px 14px; border-radius:999px; white-space:nowrap;
}
.plan h3{ font-size:18px; margin-bottom:14px; color: var(--text-dim); }
.plan__price{ font-family: var(--font-display); font-size:34px; margin-bottom:22px; }
.plan__price span:first-child{ font-size:16px; color: var(--text-faint); margin-right:4px; }
.plan__price span:last-child{ font-size:14px; color: var(--text-faint); font-family: var(--font-body); }
.plan__list{ display:flex; flex-direction:column; gap:11px; margin-bottom:28px; }
.plan__list li{ font-size:14px; color: var(--text-dim); padding-left:22px; position:relative; }
.plan__list li::before{ content:"✓"; position:absolute; left:0; color: var(--accent); font-weight:700; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta{ padding:110px 24px; text-align:center; position:relative; overflow:hidden; }
.finalcta::before{
  content:""; position:absolute; top:50%; left:50%; translate:-50% -50%;
  width:700px; height:400px; background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(50px); opacity:.4; pointer-events:none;
}
.finalcta__inner{ max-width:560px; margin:0 auto; position:relative; }
.finalcta h2{ font-size: clamp(26px,4vw,38px); margin-bottom:14px; }
.finalcta p{ color: var(--text-dim); margin-bottom:32px; }

.footer{ padding:32px 24px; text-align:center; border-top:1px solid var(--border); color: var(--text-faint); font-size:13px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal{ position:fixed; inset:0; z-index:300; display:none; align-items:center; justify-content:center; padding:20px; }
.modal.is-open{ display:flex; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(5,8,11,.7); backdrop-filter: blur(4px); animation: fadeIn .25s; }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
.modal__sheet{
  position:relative; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-l);
  padding:28px; width:100%; max-width:420px; box-shadow: var(--shadow-lift);
  animation: sheetIn .35s var(--ease);
}
@keyframes sheetIn{ from{ opacity:0; transform: translateY(24px) scale(.97); } to{ opacity:1; transform:none; } }
.modal__head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.modal__head h3{ font-size:18px; }
.modal__x{ font-size:16px; color: var(--text-faint); padding:4px; }
.modal__totalbox{
  background: var(--bg-soft); border:1px solid var(--border); border-radius: var(--radius-m);
  padding:18px; display:flex; flex-direction:column; gap:4px; margin-bottom:20px; text-align:center;
}
.modal__totalbox span{ font-size:12px; color: var(--text-faint); }
.modal__totalbox strong{ font-family: var(--font-display); font-size:28px; color: var(--accent); }
.paymethods{ display:grid; grid-template-columns: repeat(2,1fr); gap:10px; margin-bottom:24px; }
.paymethod{
  display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px;
  background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-m);
  font-size:13px; color: var(--text-dim); transition: all .2s;
}
.paymethod span{ font-size:20px; }
.paymethod:hover{ border-color: var(--text-faint); }
.paymethod.is-active{ border-color: var(--accent); background: rgba(0,217,163,.08); color: var(--text); }
.modal__actions{ display:flex; gap:12px; }
.modal__actions .btn{ flex:1; }

.modal__sheet--success{ text-align:center; max-width:380px; }
.successcheck{ width:64px; height:64px; margin:0 auto 18px; }
.successcheck__circle{ stroke: var(--accent); stroke-width:2; stroke-dasharray:166; stroke-dashoffset:166; animation: circleDraw .5s var(--ease) forwards; }
.successcheck__check{ stroke: var(--accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:48; stroke-dashoffset:48; animation: checkDraw .35s var(--ease) .4s forwards; }
@keyframes circleDraw{ to{ stroke-dashoffset:0; } }
@keyframes checkDraw{ to{ stroke-dashoffset:0; } }
.modal__sheet--success h3{ margin-bottom:6px; }
.modal__sheet--success > p{ color: var(--text-dim); font-size:13px; margin-bottom:20px; }
.receipt{
  background: var(--bg-soft); border:1px dashed var(--border); border-radius: var(--radius-m);
  padding:16px; margin-bottom:20px; text-align:left; font-family: var(--font-mono); font-size:12.5px;
}
.receipt__row{ display:flex; justify-content:space-between; padding:4px 0; color: var(--text-dim); }
.receipt__total{ display:flex; justify-content:space-between; padding-top:10px; margin-top:8px; border-top:1px dashed var(--border); font-weight:700; color: var(--text); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float{
  position:fixed; bottom:24px; right:24px; z-index:150;
  width:56px; height:56px; border-radius:50%; background:#25D366;
  display:grid; place-items:center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6);
  animation: floatY 4s ease-in-out infinite;
  transition: transform .25s;
}
.wa-float:hover{ transform: scale(1.08); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__device{ order:-1; max-width:480px; margin:0 auto; }
  .features__grid{ grid-template-columns: repeat(2,1fr); }
  .plans__grid{ grid-template-columns:1fr; max-width:420px; }
  .plan--featured{ transform:none; order:-1; }
  .pos__body{ grid-template-columns:1fr; }
  .pos__tabs{ flex-direction:row; border-right:none; border-bottom:1px solid var(--border); overflow-x:auto; }
  .pos__panel[data-panel="venta"].is-active{ grid-template-columns:1fr; }
  .pos__products{ grid-template-columns: repeat(2,1fr); max-height:none; }
  .reportpanel__cards{ grid-template-columns:1fr; }
}
@media (max-width: 720px){
  .nav__links{ display:none; }
  .nav__cta{ display:none; }
  .nav__burger{ display:flex; }
  .stats__inner{ grid-template-columns: repeat(2,1fr); }
  .features__grid{ grid-template-columns:1fr; }
  .stockrow{ grid-template-columns: 24px 1fr 70px; }
  .stockrow__bar{ display:none; }
  .floatcard{ display:none; }
}
