.landing {
  --l-alt: color-mix(in srgb, var(--brand) 4%, var(--bg));
  --l-card-borde: color-mix(in srgb, var(--brand) 10%, var(--border));
  --l-sombra: 0 1px 2px rgba(40, 30, 140, 0.05), 0 14px 34px -14px rgba(60, 45, 200, 0.22);
  --l-sombra-alta: 0 2px 6px rgba(40, 30, 140, 0.06), 0 30px 70px -24px rgba(60, 45, 200, 0.35);
  --l-hero: color-mix(in srgb, var(--brand) 6%, var(--bg));
  --l-linea: color-mix(in srgb, var(--brand) 16%, transparent);
  --l-linea-2: color-mix(in srgb, var(--accent) 30%, transparent);
  --l-cierre: #2a1fa8;
  --l-cierre-2: #4f3fe0;
  --l-cierre-texto: #ffffff;
  --l-cierre-suave: rgba(255, 255, 255, 0.84);
  --l-cierre-linea: rgba(255, 255, 255, 0.16);
  background: var(--bg);
}
:root[data-theme="dark"] .landing {
  --l-alt: #07070c;
  --l-card-borde: var(--border);
  --l-sombra: var(--e-2);
  --l-sombra-alta: var(--e-3);
  --l-hero: color-mix(in srgb, var(--brand) 8%, var(--bg));
  --l-linea: color-mix(in srgb, var(--brand) 26%, transparent);
  --l-linea-2: color-mix(in srgb, var(--accent) 34%, transparent);
  --l-cierre: #17126a;
  --l-cierre-2: #3a2dc4;
}
.landing .card { border-color: var(--l-card-borde); box-shadow: var(--l-sombra); }
.landing .small { font-size: var(--t-sm); }

.progreso { position: fixed; inset: 0 0 auto; height: 3px; z-index: calc(var(--z-nav) + 1); background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (min-width: 860px) and (max-width: 1079px) {
  .landing .nav-links .link:nth-child(3), .landing .nav-links .link:nth-child(6) { display: none; }
}
.nav-menu .btn { margin-top: 10px; border-top: 0; justify-content: center; color: var(--brand-ink); }

.hero { position: relative; padding: 56px 0 96px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--l-hero), var(--bg) 78%); border-bottom: 1px solid var(--l-card-borde); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg i { position: absolute; border-radius: 50%; border: 1px solid var(--l-linea); left: 76%; top: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.hero-bg i:nth-child(1) { width: min(540px, 110vw); }
.hero-bg i:nth-child(2) { width: min(820px, 160vw); border-style: dashed; border-color: var(--l-linea-2); animation: girar 120s linear infinite; }
.hero-bg i:nth-child(2)::after { content: ""; position: absolute; left: 14.6%; top: 14.6%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
@keyframes girar { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 979px) { .hero-bg i { left: 50%; top: 78%; } }
.hero-grid { position: relative; display: grid; gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 760; letter-spacing: -0.034em; line-height: 1.03; }
.rotar { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.08em; padding-bottom: 0.08em; box-sizing: content-box; }
.rotar span { display: block; background: linear-gradient(90deg, var(--brand-text), color-mix(in srgb, var(--accent) 85%, var(--brand-text))); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.rotar span.sale { animation: sale 0.38s var(--ease-out) forwards; }
.rotar span.entra { animation: entra 0.5s var(--ease-spring) both; }
@keyframes sale { to { transform: translateY(-28%); opacity: 0; } }
@keyframes entra { from { transform: translateY(28%); opacity: 0; } to { transform: none; opacity: 1; } }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; letter-spacing: -0.006em; color: var(--text-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn-primary { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.hero-cta .btn svg { width: 18px; height: 18px; margin-left: 6px; transition: transform var(--d) var(--ease-out); }
.hero-cta .btn:hover svg { transform: translateX(3px); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 16px; height: 16px; color: var(--ok); }
@media (min-width: 980px) {
  .hero { padding: 96px 0 128px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.mock { position: relative; perspective: 1400px; }
.mock-window { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--l-sombra-alta) !important; background: var(--surface); transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg)); transition: transform 0.4s var(--ease-out); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--surface-2); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 35%, transparent); }
.mock-bar span:nth-child(1) { background: #ff6159; }
.mock-bar span:nth-child(2) { background: #ffbd2e; }
.mock-bar span:nth-child(3) { background: #28c941; }
.mock-bar em { margin-left: 10px; font-style: normal; }
.mock-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; padding: 14px; font-size: 12px; }
.mock-search { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); margin-bottom: 10px; font-family: var(--mono); }
.mock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mock-prod { display: grid; gap: 2px; padding: 10px 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.mock-prod b { font-weight: 600; font-size: 12px; }
.mock-prod small { color: var(--muted); }
.mock-prod i { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--surface-2); }
.mock-prod i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--s); border-radius: inherit; background: var(--ok); }
.mock-prod i.bajo::after { background: var(--warn); }
.mock-cart { display: grid; gap: 7px; align-content: start; padding: 12px; border-radius: var(--r); background: var(--surface-2); }
.mock-title { font-size: 13px; margin-bottom: 4px; }
.mock-line { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.mock-sep { border-top: 1px dashed var(--border); margin: 3px 0; }
.mock-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; margin-top: 2px; }
.mock-pay { margin-top: 6px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.mock-receipt, .chip { position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-lg); box-shadow: var(--l-sombra-alta) !important; font-size: 13px; background: var(--surface); }
.mock-receipt { left: -18px; bottom: -30px; }
.mock-receipt b, .chip b { display: block; }
.mock-receipt small, .chip small { color: var(--muted); }
.receipt-ok, .chip-ic { width: 32px; height: 32px; flex: none; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-weight: 800; }
.receipt-ok svg, .chip-ic svg { width: 16px; height: 16px; }
.chip-ic.yape { background: #742284; color: #fff; }
.chip-ic.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chip-yape { right: -22px; top: -26px; }
.chip-stock { right: -24px; bottom: -34px; }
@media (max-width: 980px) { .chip-stock { display: none; } }
@media (max-width: 560px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-receipt { left: 8px; }
  .chip-yape { right: 8px; }
  .mock-window { transform: none; }
}

.confianza { border-block: 1px solid var(--l-card-borde); background: var(--surface); overflow: hidden; }
.marquee { display: flex; width: max-content; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 36px; padding: 18px 18px; animation: desplazar 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text-2); font-size: var(--t-sm); font-weight: 600; }
.marquee-track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.confianza:hover .marquee-track { animation-play-state: paused; }
@keyframes desplazar { to { transform: translateX(-100%); } }

.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--l-alt); }
.section-tight { padding: 56px 0; }
.section-head { display: grid; gap: 12px; text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2, .rubros-copy h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 720; letter-spacing: -0.03em; line-height: 1.08; }
.section-head > .muted, .rubros-copy > .muted { font-size: var(--t-lg); line-height: 1.55; }
.section-head .eyebrow, .rubros-copy .eyebrow { justify-self: center; font-size: 12px; letter-spacing: 0.16em; }
.section-head.left .eyebrow, .rubros-copy .eyebrow { justify-self: start; }

.cifras-sec { padding: 64px 0; }
.cifras { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cifra { padding: 26px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--l-card-borde); box-shadow: var(--l-sombra); display: grid; gap: 6px; }
.cifra b { font-size: clamp(36px, 4vw, 48px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--brand-text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cifra span { color: var(--text-2); font-size: var(--t-sm); }

.rubros-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .rubros-grid { grid-template-columns: 1fr 1fr; } }
.rubros-copy { display: grid; gap: 16px; justify-items: start; }
.tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 4px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--l-card-borde); box-shadow: var(--l-sombra); }
.tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r); background: transparent; color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer; transition: background var(--d), color var(--d); }
.tabs button svg { width: 18px; height: 18px; }
.tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.tabs button:not([aria-selected="true"]) svg { color: var(--c, currentColor); }
:root[data-theme="dark"] .tabs button:not([aria-selected="true"]) svg { color: color-mix(in srgb, var(--c, currentColor) 62%, white); }
.rubro-texto { color: var(--text-2); font-size: var(--t-md); max-width: 520px; min-height: 3em; }
.rubro-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rubro-lista li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.rubro-lista li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7f4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rubro-demo { padding: 22px; display: grid; gap: 14px; border-radius: var(--r-lg); background: var(--surface); position: relative; overflow: hidden; }
.rubro-demo::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.rd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rd-nombre { font-size: var(--t-lg); }
.rd-tag { padding: 3px 10px; border-radius: var(--r-full); background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--text)); font-size: var(--t-xs); font-weight: 700; }
.rd-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 196px; align-content: start; }
.rd-items li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); animation: aparecer 0.42s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.rd-items .rd-ic { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); font-weight: 800; font-size: var(--t-sm); }
.rd-items small { display: block; color: var(--muted); font-size: var(--t-xs); }
.rd-items b { font-variant-numeric: tabular-nums; }
.rd-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--border); font-size: var(--t-lg); }
.rd-monto { font-size: var(--t-2xl); font-variant-numeric: tabular-nums; }
.rd-doc { font-size: var(--t-sm); color: var(--muted); }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bento { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { padding: 28px; display: grid; gap: 10px; align-content: start; overflow: hidden; position: relative; transition: transform var(--d-slow) var(--ease-out), box-shadow var(--d-slow) var(--ease-out), border-color var(--d-slow) var(--ease-out); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--l-sombra-alta); border-color: color-mix(in srgb, var(--brand) 32%, var(--border)); }
.feature h3 { font-size: 18px; line-height: 1.3; }
.feature-icon, .paso-ic, .g-ic { --c: var(--brand); color: var(--c); }
:root[data-theme="dark"] :is(.feature-icon, .paso-ic, .g-ic) { color: color-mix(in srgb, var(--c) 62%, white); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); margin-bottom: 6px; }
:root[data-theme="dark"] .feature-icon { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon { transition: transform var(--d-slow) var(--ease-spring); }
.feature:hover .feature-icon { transform: translateY(-2px) rotate(-4deg); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f-caja { grid-column: span 2; }
  .f-reportes { grid-column: span 2; }
  .f-kardex { grid-column: span 2; }
  .f-ticket { grid-column: span 2; }
}
.f-caja { background: linear-gradient(140deg, var(--brand-soft), transparent 55%), var(--surface); }
.f-reportes { background: linear-gradient(200deg, var(--accent-soft), transparent 55%), var(--surface); }
.g-pagos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pg { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.pg b { font-size: var(--t-md); color: var(--text); font-variant-numeric: tabular-nums; }
.pg.yape { border-color: color-mix(in srgb, #742284 40%, var(--border)); }
.pg.vuelto { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.pg.vuelto b { color: var(--ok); }
.g-barras { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 12px; }
.g-barras i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); transform-origin: bottom; }
.g-barras i:last-child { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--brand))); }
.js-motion .g-barras i { transform: scaleY(0); transition: transform 0.8s var(--ease-spring); }
.js-motion .is-visible .g-barras i { transform: none; }
.g-barras i:nth-child(2) { transition-delay: 60ms; } .g-barras i:nth-child(3) { transition-delay: 120ms; } .g-barras i:nth-child(4) { transition-delay: 180ms; } .g-barras i:nth-child(5) { transition-delay: 240ms; } .g-barras i:nth-child(6) { transition-delay: 300ms; } .g-barras i:nth-child(7) { transition-delay: 360ms; }
.g-kardex { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.g-kardex li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--r); background: var(--surface-2); color: var(--text-2); }
.g-kardex b { font-variant-numeric: tabular-nums; color: var(--text); }
.k { font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; padding: 2px 0; border-radius: var(--r-sm); }
.k.in { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.k.out { color: var(--brand-text); background: var(--brand-soft); }
.k.aj { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.g-ticket { justify-self: center; width: 190px; margin-top: 8px; padding: 16px 16px 20px; background: #fff; color: #222; border-radius: 4px; font-family: var(--mono); font-size: 11px; display: grid; gap: 6px; text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3); transform: rotate(-2deg); mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; }
.g-ticket i { height: 6px; border-radius: 3px; background: #e6e6ee; }
.g-ticket em { font-style: normal; font-weight: 800; }
.g-ticket .qr { justify-self: center; width: 48px; height: 48px; background: conic-gradient(#222 25%, #fff 0 50%, #222 0 75%, #fff 0) 0 0 / 12px 12px; }

.dia { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; gap: 18px; position: relative; --avance: 0; }
.dia::before, .dia::after { content: ""; position: absolute; left: 64px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--border); }
.dia::after { background: linear-gradient(180deg, var(--brand), var(--accent)); transform-origin: top; transform: scaleY(var(--avance)); }
.dia li { display: grid; grid-template-columns: 52px 1fr; gap: 40px; align-items: start; position: relative; }
.dia li::before { content: ""; position: absolute; left: 58px; top: 18px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); z-index: 1; transition: border-color var(--d-slow), background var(--d-slow), transform var(--d-slow) var(--ease-spring); }
.dia li.hecho::before { border-color: var(--brand); background: var(--brand); transform: scale(1.15); box-shadow: 0 0 0 5px var(--brand-soft); }
.dia time { padding-top: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand-text); text-align: right; }
.dia-card { padding: 18px 22px; }
.dia-card h3 { font-size: var(--t-lg); margin-bottom: 4px; }

.flujo { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 48px; }
.flujo::before { content: ""; position: absolute; left: 10%; right: 10%; top: 32px; height: 2px; background: repeating-linear-gradient(90deg, var(--l-card-borde) 0 8px, transparent 8px 14px); z-index: 0; }
.paso { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; }
.paso-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, var(--border)); box-shadow: var(--l-sombra); }
:root[data-theme="dark"] .paso-ic { background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.paso-ic svg { width: 26px; height: 26px; }
.paso small { color: var(--muted); font-size: var(--t-xs); }
.flujo-punto { position: absolute; top: 27px; left: 10%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); z-index: 0; animation: viajar 5s var(--ease-out) infinite; }
@keyframes viajar { 0% { left: 10%; opacity: 0; } 8% { opacity: 1; } 85% { left: calc(90% - 12px); opacity: 1; } 100% { left: calc(90% - 12px); opacity: 0; } }
@media (max-width: 720px) {
  .flujo { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .flujo::before, .flujo-punto { display: none; }
}
.sunat-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .sunat-grid { grid-template-columns: 0.85fr 1.15fr; } .calc { position: sticky; top: 96px; } }
.calc { padding: 26px; display: grid; gap: 14px; }
.calc h3 { font-size: var(--t-xl); }
.calc-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.calc-in label { display: grid; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--text-2); }
.calc-out { margin: 0; display: grid; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--surface-2); }
.calc-out div { display: flex; justify-content: space-between; color: var(--text-2); }
.calc-out dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); transition: color var(--d); }
.calc-out dd.cambio { color: var(--brand-text); }
.calc-out .tot { padding-top: 10px; border-top: 1px dashed var(--border); font-size: var(--t-lg); font-weight: 800; color: var(--text); }
.calc-out .tot dd { font-weight: 800; }
.glosario { margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.glosario div { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--l-card-borde); display: grid; gap: 6px; align-content: start; }
.glosario dt { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.glosario dt::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.glosario dd { margin: 0; color: var(--text-2); font-size: 15px; }

.pricing { display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan { position: relative; padding: 32px; display: grid; gap: 14px; align-content: start; transition: transform var(--d) var(--ease-out), box-shadow var(--d) var(--ease-out); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--l-sombra-alta); }
.plan h3 { font-size: 20px; }
.plan .btn { margin-top: auto; }
.plan-featured { border: 1px solid transparent !important; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--brand), var(--accent)) border-box; box-shadow: var(--l-sombra-alta); }
@media (min-width: 900px) { .plan-featured { transform: translateY(-10px); } .plan-featured:hover { transform: translateY(-14px); } }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 14px; border-radius: var(--r-full); background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--accent))); color: #fff; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.price { font-size: 46px; font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-note { font-size: 14px; margin-top: -8px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 10px; color: var(--text-2); }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.4px solid var(--ok); border-bottom: 2.4px solid var(--ok); transform: rotate(-45deg); }
.ref-note { font-size: var(--t-xs); color: var(--warn); font-weight: 600; }
.compare { max-width: 1040px; margin: 32px auto 0; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare caption { text-align: left; padding: 18px 22px 6px; font-weight: 650; }
.compare th, .compare td { text-align: left; padding: 13px 22px; border-top: 1px solid var(--border); vertical-align: top; }
.compare thead th { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.compare tbody th { font-weight: 600; color: var(--text); width: 26%; }
.compare td:nth-child(2) { color: var(--text); font-weight: 550; }
.compare td:nth-child(3) { color: var(--muted); }

.confianza-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .confianza-grid { grid-template-columns: 0.8fr 1.2fr; } }
.garantias { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.garantias article { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--l-card-borde); box-shadow: var(--l-sombra); display: grid; gap: 8px; align-content: start; }
.garantias h3 { font-size: var(--t-md); }
.garantias p { font-size: var(--t-sm); }
.g-ic { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent); }
:root[data-theme="dark"] .g-ic { background: color-mix(in srgb, var(--c) 22%, transparent); }
.g-ic svg { width: 20px; height: 20px; }

.faq { display: grid; gap: 12px; max-width: 1040px; margin: 0 auto; align-items: start; }
.faq-col { display: grid; gap: 12px; }
@media (min-width: 860px) { .faq { grid-template-columns: 1fr 1fr; gap: 16px; } .faq-col { gap: 16px; } }
.faq details { background: var(--surface); border: 1px solid var(--l-card-borde); border-radius: var(--r-lg); padding: 0 22px; transition: box-shadow var(--d-slow) var(--ease-out), border-color var(--d-slow) var(--ease-out); }
.faq details:hover { border-color: color-mix(in srgb, var(--brand) 22%, var(--border)); }
.faq details[open] { box-shadow: var(--l-sombra); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.faq summary { cursor: pointer; list-style: none; padding: 19px 0; font-weight: 600; letter-spacing: -0.008em; line-height: 1.4; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234433cc' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform var(--d-slow) var(--ease-out); }
:root[data-theme="dark"] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a99fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); overflow: hidden; }

.cierre { position: relative; overflow: hidden; isolation: isolate; padding: 96px 0; color: var(--l-cierre-texto); background: linear-gradient(135deg, var(--l-cierre), var(--l-cierre-2)); }
.cierre::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.cierre-formas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cierre-formas i { position: absolute; left: 84%; top: 50%; border-radius: 50%; border: 1px solid var(--l-cierre-linea); aspect-ratio: 1; transform: translate(-50%, -50%); }
.cierre-formas i:nth-child(1) { width: 260px; }
.cierre-formas i:nth-child(2) { width: 520px; border-style: dashed; animation: girar 140s linear infinite reverse; }
.cierre-formas i:nth-child(3) { width: 800px; }
.cierre-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .cierre-in { grid-template-columns: 1.3fr auto; gap: 48px; } }
.cierre-copy { display: grid; gap: 14px; max-width: 640px; }
.cierre-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #3fe0c5; }
.cierre h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 740; letter-spacing: -0.032em; line-height: 1.05; color: var(--l-cierre-texto); }
.cierre-copy > p:last-child { font-size: var(--t-lg); line-height: 1.55; color: var(--l-cierre-suave); }
.cierre-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cierre-btn { background: #ffffff; color: #2a1fa8; border-color: transparent; font-weight: 650; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45); }
.cierre-btn:hover { background: #f0efff; color: #2a1fa8; border-color: transparent; transform: translateY(-1px); }
.cierre-btn svg { margin-left: 2px; transition: transform var(--d) var(--ease-out); }
.cierre-btn:hover svg { transform: translateX(3px); }
.cierre-sec { background: transparent; color: var(--l-cierre-texto); border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
.cierre-sec:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); color: var(--l-cierre-texto); }
@media (max-width: 560px) { .cierre { padding: 72px 0; } .cierre-cta .btn { flex: 1 1 100%; } .cierre-formas i { left: 90%; top: 18%; } }

.regiones-sec .section-head { margin-bottom: 32px; }
.reg-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.zonas { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--l-card-borde); }
.zonas button { height: 34px; padding: 0 16px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--text-2); font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; transition: background var(--d), color var(--d); }
.zonas button:hover { color: var(--text); background: var(--surface-2); }
.zonas button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.reg-nav { display: flex; gap: 8px; }
.reg-nav .icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--l-card-borde); background: var(--surface); color: var(--text); transition: opacity var(--d), border-color var(--d); }
.reg-nav .icon-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); color: var(--brand-text); }
.reg-nav .icon-btn:disabled { opacity: 0.4; cursor: default; }
.reg-nav svg { width: 18px; height: 18px; }
.regiones { list-style: none; margin: 0; padding: 4px 2px 22px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
@media (max-width: 1079px) { .regiones { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 819px) { .regiones { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 560px) {
  .regiones { grid-auto-columns: 80%; gap: 14px; }
  .zonas { display: flex; flex-wrap: nowrap; width: 100%; }
  .zonas button { flex: 1 1 auto; padding: 0 8px; white-space: nowrap; }
  .reg-nav { display: none; }
}
.region { scroll-snap-align: start; overflow: hidden; display: grid; align-content: start; }
.region[hidden] { display: none; }
.region-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.region-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.region:hover .region-foto img { transform: scale(1.05); }
.zona { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: var(--r-full); color: #ffffff; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.04em; }
.zona-costa { background: #0369a1; }
.zona-sierra { background: #b45309; }
.zona-selva { background: #047857; }
.region-txt { display: grid; gap: 2px; padding: 16px 18px 20px; }
.region-txt h3 { font-size: var(--t-lg); line-height: 1.3; }
.region-txt small { color: var(--muted); font-size: var(--t-xs); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.region-txt p { margin-top: 8px; color: var(--text-2); font-size: var(--t-sm); }
.foto-credito { margin-top: 6px; text-align: center; color: var(--muted); font-size: var(--t-xs); }
.foto-credito a { color: var(--brand-text); }

.rubro-visual { display: grid; }
.rubro-foto { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--l-card-borde); background: var(--surface-2); }
.rubro-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rubro-lugar { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: var(--t-xs); font-weight: 700; box-shadow: var(--e-1); }
.rubro-visual .rubro-demo { position: relative; z-index: 1; width: min(100%, 440px); margin: -84px 0 0 auto; }
@media (max-width: 560px) { .rubro-visual .rubro-demo { width: calc(100% - 12px); margin-top: -36px; } }

.dia-fotos { list-style: none; max-width: 1040px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dia-fotos figure { margin: 0; display: grid; gap: 10px; }
.dia-fotos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--l-card-borde); }
.dia-fotos figcaption { display: grid; gap: 2px; color: var(--text-2); font-size: var(--t-sm); }
.dia-fotos figcaption b { color: var(--brand-text); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.dia-credito { margin: 12px 0 48px; }
@media (max-width: 720px) {
  .dia-fotos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .dia-fotos li { scroll-snap-align: start; }
}

.creditos { padding: 56px 0 88px; }
.creditos-in { max-width: 960px; display: grid; gap: 28px; }
.creditos h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 720; letter-spacing: -0.03em; line-height: 1.08; }
.creditos-notas { margin: 0; padding: 16px 20px 16px 38px; display: grid; gap: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--l-card-borde); color: var(--text-2); font-size: var(--t-sm); }
.creditos-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.credito { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: start; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--l-card-borde); }
.credito img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.credito div { display: grid; gap: 4px; min-width: 0; }
.credito h2 { font-size: var(--t-md); font-weight: 650; line-height: 1.35; }
.credito p { color: var(--text-2); font-size: var(--t-sm); overflow-wrap: anywhere; }
.credito p.muted { color: var(--muted); font-size: var(--t-xs); }
.credito a { color: var(--brand-text); }
@media (max-width: 560px) { .credito { grid-template-columns: 96px 1fr; gap: 12px; } }

.landing .footer { padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-marca { display: grid; gap: 12px; align-content: start; max-width: 280px; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid h3 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 4px; }
.footer-grid nav a { color: var(--text-2); }
.footer-grid nav a:hover { color: var(--brand-text); }
.footer-grid .libro { display: inline-flex; align-items: center; gap: 8px; }
.footer-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--l-card-borde); font-size: var(--t-xs); }

.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js-motion .reveal.is-visible { opacity: 1; transform: none; }
.js-motion .reveal-delay-1 { transition-delay: 0.08s; }
.js-motion .reveal-delay-2 { transition-delay: 0.16s; }
.js-motion .reveal-delay-3 { transition-delay: 0.24s; }
.js-motion .mock-window { animation: float-in 0.8s var(--ease-out) both; }
.js-motion .hero-bg i { animation: anillo 1.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js-motion .hero-bg i:nth-child(2) { animation: anillo 1.4s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both, girar 120s 1.6s linear infinite; }
@keyframes anillo { from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); } }
.js-motion .chip-yape { animation: chip-in 0.6s 0.5s var(--ease-spring) both, mecer 6s 1.2s ease-in-out infinite; }
.js-motion .chip-stock { animation: chip-in 0.6s 0.8s var(--ease-spring) both, mecer 7s 1.5s ease-in-out infinite reverse; }
@keyframes float-in { from { opacity: 0; transform: translateY(30px) rotateY(-12deg) rotateX(6deg); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(0.9); } }
@keyframes mecer { 50% { transform: translateY(-8px); } }

.en-bucle .mock-scan { display: inline-block; overflow: hidden; white-space: nowrap; animation: escribir 7s steps(13) infinite; }
.en-bucle .m1 { animation: elegir 7s var(--ease-out) infinite; }
.en-bucle .l1 { animation: linea1 7s var(--ease-out) infinite; }
.en-bucle .l2 { animation: linea2 7s var(--ease-out) infinite; }
.en-bucle .l3 { animation: linea3 7s var(--ease-out) infinite; }
.en-bucle .l4 { animation: linea4 7s var(--ease-out) infinite; }
.en-bucle .mock-pay { animation: pagar 7s var(--ease-out) infinite; }
.en-bucle .mock-receipt { animation: recibo 7s var(--ease-spring) infinite; }
.mock.pausado * { animation-play-state: paused !important; }
@keyframes escribir { 0% { width: 0; } 14%, 100% { width: 13ch; } }
@keyframes elegir { 0%, 15% { border-color: var(--border); box-shadow: none; } 18%, 30% { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); } 40%, 100% { border-color: var(--border); box-shadow: none; } }
@keyframes linea1 { 0%, 18% { opacity: 0; transform: translateX(8px); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes linea2 { 0%, 28% { opacity: 0; transform: translateX(8px); } 32%, 100% { opacity: 1; transform: none; } }
@keyframes linea3 { 0%, 38% { opacity: 0; transform: translateX(8px); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes linea4 { 0%, 46% { opacity: 0; transform: translateX(8px); } 50%, 100% { opacity: 1; transform: none; } }
@keyframes pagar { 0%, 55% { transform: none; filter: none; } 58% { transform: scale(0.96); filter: brightness(1.15); } 62%, 100% { transform: none; filter: none; } }
@keyframes recibo { 0%, 60% { opacity: 0; transform: translateY(14px) scale(0.92); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .mock *, .hero-bg i, .cierre-formas i, .marquee-track, .flujo-punto, .chip { animation: none !important; }
  .mock-window { transform: none; }
  .region-foto img { transition: none; }
  .region:hover .region-foto img { transform: none; }
}
.rd-n { display: block; font-weight: 600; }
@media (max-width: 560px) { .tabs { grid-template-columns: repeat(2, 1fr); } }
