/* Landing de Bama: mismas tokens que la app (claro/oscuro según el sistema); el hero y la franja final siempre van en navy. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.navy { --text: #e3e9f2; --muted: #a9b8cf; --surface: #1f2d46; --line: #35476a; --brand: #6cc4d8; --brand-text: #0f1b2e; --link: #8ad1e2; color: var(--text); background: radial-gradient(900px 420px at 85% -10%, #2a5f8f55, transparent 70%), linear-gradient(165deg, #0f1b2e 0%, #172a47 60%, #1f4e79 140%); }

/* Botones */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent; background: var(--brand); color: var(--brand-text); text-decoration: none; font-weight: 700; transition: background-color 120ms var(--ease-out), transform 120ms var(--ease-out), border-color 120ms; }
.cta:active { transform: scale(.97); }
.cta.lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.cta.ghost { background: transparent; color: inherit; border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .cta:hover { background: var(--brand-hover); } .cta.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); } .navy .cta:hover { background: #8ad1e2; } }

/* Aviso + menú */
.promo { background: #0f1b2e; color: #cfe8f0; font-size: .9rem; text-align: center; padding: 8px 16px; }
.promo strong { color: #6cc4d8; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo img { height: 40px; width: auto; }
.menu { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--link); }
.bar .cta { min-height: 42px; padding: 0 18px; }
.bar .login { color: var(--muted); font-weight: 600; text-decoration: none; font-size: .95rem; }
@media (max-width: 860px) { .menu, .bar .login { display: none; } .bar { justify-content: space-between; } }

/* Hero */
.hero { padding: 64px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #6cc4d8; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--text); background: #ffffff0d; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; padding-bottom: 0; }
.mascot { position: absolute; left: -26px; bottom: -6px; width: clamp(110px, 16vw, 170px); z-index: 2; filter: drop-shadow(0 8px 16px #0006); }
.frame { position: relative; border-radius: 14px 14px 0 0; overflow: hidden; background: #fff; border: 1px solid #ffffff22; box-shadow: 0 30px 60px -20px #000a; }
.frame-top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #e9eef4; }
.frame-top i { width: 10px; height: 10px; border-radius: 50%; background: #c3ccd8; }
.frame-top span { margin-left: 10px; flex: 1; max-width: 280px; font-size: .72rem; color: #55657d; background: #fff; border-radius: 6px; padding: 3px 10px; }
.frame img { display: block; width: 100%; height: auto; }
.frame.flat { border-radius: 14px; border-color: var(--line); box-shadow: var(--shadow-3); }

/* Franja de confianza */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust ul { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0; padding: 22px 0; list-style: none; }
.trust li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: .95rem; }
.trust svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--surface-2); color: var(--brand); }
.trust small { display: block; color: var(--muted); font-weight: 400; }

/* Secciones */
section.block { padding: 88px 0; }
.block h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; max-width: 760px; font-weight: 800; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 0 40px; }
.modules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.module { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-1); display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 800; font-size: .85rem; margin-bottom: 14px; }
.module h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.module p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); }
.alt { background: var(--surface-2); }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr .9fr; } .split.rev { grid-template-columns: .9fr 1.1fr; } .split.rev .split-media { order: 2; } }
.feat { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.feat li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.feat strong { font-size: .98rem; }
.feat span { color: var(--muted); }
@media (max-width: 560px) { .feat li { grid-template-columns: 1fr; gap: 4px; } }

/* Implementación */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step { position: relative; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-text); font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* Rubros */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { padding: 12px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; box-shadow: var(--shadow-1); }

/* Planes */
.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: 1.15fr .85fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.plan.main { border: 2px solid var(--brand); box-shadow: var(--shadow-2); }
.plan h3 { margin: 0; font-size: 1.3rem; }
.toggle { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface-2); width: fit-content; }
.toggle button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: background-color 160ms var(--ease-out), color 160ms; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: var(--brand-text); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: clamp(2.6rem, 6vw, 3.6rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.saving { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: .85rem; width: fit-content; }
.saving[hidden] { display: none; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317703f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .cta { margin-top: auto; }
.note { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }

/* Preguntas */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 160ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* Contacto + pie */
.contact { padding: 80px 0; text-align: center; }
.contact h2 { margin: 0 auto 14px; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.025em; max-width: 700px; font-weight: 800; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.mascot-sm { width: 110px; margin: 0 auto 8px; }
footer.site { padding: 28px 0 40px; background: #0b1524; color: #a9b8cf; font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: #8ad1e2; }
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: #25d366; color: #06311a; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px #0005; }
.wa svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 640px) { section.block { padding: 60px 0; } .hero { padding-top: 40px; } .plan { padding: 22px; } }

/* ===== Vivo: color cálido, fondo animado, tarjetas flotantes, cinta, pestañas ===== */
:root { --warm: #ffb454; --warm-ink: #b45309; --coral: #ff7a59; --grad: linear-gradient(135deg, #6cc4d8, #1f6fa8); }
.cta { box-shadow: 0 6px 16px -8px rgb(5 10 20 / .45); }
.navy .cta { background: linear-gradient(135deg, #ffc46b, #ff9f43); color: #2a1600; box-shadow: 0 8px 24px -6px rgb(5 10 20 / .45); }
.site-header .cta, .contact .cta, .plan .cta { background: linear-gradient(135deg, #ffc46b, #ff9f43); color: #2a1600; box-shadow: 0 8px 24px -8px rgb(5 10 20 / .45); }
@media (hover: hover) and (pointer: fine) { .cta:hover { transform: translateY(-2px); filter: brightness(1.05); } .navy .cta:hover, .site-header .cta:hover, .plan .cta:hover { background: linear-gradient(135deg, #ffd08a, #ffab5c); } .cta.ghost:hover { transform: translateY(-2px); } }
.cta.ghost { background: transparent; box-shadow: none; color: inherit; }
.hero { position: relative; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
.orb { position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; animation: drift 16s ease-in-out infinite alternate; }
.o1 { width: 520px; height: 520px; left: -140px; top: -120px; background: #1f78b8; }
.o2 { width: 460px; height: 460px; right: -120px; top: 60px; background: #2fb8d4; animation-duration: 20s; animation-delay: -6s; opacity: .4; }
.o3 { width: 360px; height: 360px; left: 38%; bottom: -160px; background: #ff9f43; opacity: .28; animation-duration: 24s; animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px #ffb45400; } 100% { box-shadow: 0 0 0 0 #ffb45400; } }
.hero-visual { perspective: 1200px; }
.hero-visual .frame { transform: rotateY(-6deg) rotateX(2deg); transform-origin: 70% 50%; }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #fff; color: #14233a; box-shadow: 0 2px 4px rgb(5 10 20 / .2), 0 18px 40px -12px #000a; }
.float b { display: block; font-size: .9rem; } .float small { color: #55657d; font-size: .78rem; }
.float .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 800; flex: none; }
.ico.ok { background: #e3f4ea; color: #17703f; } .ico.warn { background: #fbf0d5; color: #8a5a00; } .ico.money { background: #e2eefa; color: #1f5fa8; font-size: .8rem; }

/* Contadores */
.stats { position: relative; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-block: 1px solid var(--line); }
.stats .wrap { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-block: 36px; }
.stat { text-align: center; padding: 8px 12px; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--brand); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }


/* Módulos */
.module { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms; overflow: hidden; }
.module:nth-child(1) { --mc: #1f6fa8; } .module:nth-child(2) { --mc: #17a35a; } .module:nth-child(3) { --mc: #2f7cd8; } .module:nth-child(4) { --mc: #ff9f43; }
.mico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--mc); background: color-mix(in srgb, var(--mc) 16%, transparent); }
.mico svg { width: 22px; height: 22px; }

/* Fondos por sección */
.tint { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
#operacion { background: radial-gradient(800px 300px at 10% 0, #6cc4d826, transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg)); }

/* Pestañas */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; max-width: 100%; }
.tabs button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 11px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background-color 160ms var(--ease-out), color 160ms; }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-text); }
.tabpanel { display: grid; gap: 28px; align-items: center; animation: panel-in 380ms var(--ease-out); }
.tabpanel[hidden] { display: none; }
@media (min-width: 960px) { .tabpanel { grid-template-columns: 1.5fr .5fr; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ticks.side { gap: 16px; }
.panels { margin-bottom: 36px; }
.sunat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-3); max-width: 560px; }
.sc-head { display: flex; justify-content: space-between; padding: 4px 6px 14px; color: var(--muted); }
.sc-head b { color: var(--text); }
.sc-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 14px 6px; border-top: 1px solid var(--line); }
.sc-row small { display: block; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; } .dot.ok { background: var(--success); } .dot.wait { background: var(--warm); animation: ping 1.6s infinite; }
.pill { font-style: normal; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; } .pill.ok { background: var(--success-bg); color: var(--success); } .pill.wait { background: var(--warning-bg); color: var(--warning); }

/* Pasos conectados */
.steps { position: relative; }
.step { transition: transform 220ms var(--ease-out), box-shadow 220ms; }
.step::before { background: linear-gradient(135deg, #ffc46b, #ff9f43); color: #2a1600; box-shadow: 0 8px 18px -6px rgb(5 10 20 / .45); }
@media (hover: hover) and (pointer: fine) { .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } }

/* Rubros */
.tags span { transition: transform 160ms var(--ease-out), border-color 160ms; }
@media (hover: hover) and (pointer: fine) { .tags span:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--warm); } }

/* Planes */
.plan.main { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-color: transparent; background-clip: padding-box; box-shadow: 0 0 0 2px var(--brand), 0 30px 60px -24px rgb(5 10 20 / .4); }
.ribbon { position: absolute; top: -14px; right: 24px; padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, #ffc46b, #ff9f43); color: #2a1600; font-weight: 800; font-size: .8rem; box-shadow: 0 8px 18px -6px rgb(5 10 20 / .45); }

/* Contacto */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: -40%; translate: -50% 0; border-radius: 50%; background: #ff9f43; filter: blur(110px); opacity: .22; animation: drift 18s ease-in-out infinite alternate; }
.contact .wrap { position: relative; }

/* ===== Movimiento con Motion (landing.js). Todo es visible por defecto: el script solo anima desde ahí. ===== */
::selection { background: #6cc4d8; color: #0f1b2e; }
html { scrollbar-color: var(--line-strong) var(--bg); }
.site-header { transition: box-shadow 200ms var(--ease-out); }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgb(5 10 20 / .5); }
.hero { padding-bottom: 88px; }
.hero h1 { text-wrap: balance; }
.block h2, .contact h2 { text-wrap: balance; }
.hero .frame { border-radius: 14px; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }

/* Ticket: la venta que se arma sola en el hero */
.ticket { position: absolute; z-index: 3; left: -34px; bottom: -64px; width: 290px; padding: 14px 16px 16px; border-radius: 16px; background: #fff; color: #14233a; box-shadow: 0 2px 4px rgb(5 10 20 / .2), 0 28px 50px -18px rgb(5 10 20 / .7); font-variant-numeric: tabular-nums; }
.tk-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed #c3ccd8; font-size: .9rem; }
.tk-head span { color: #55657d; font-size: .78rem; }
.tk-lines { margin: 0; padding: 6px 0; list-style: none; }
.tk-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: .84rem; }
.tk-lines small { color: #55657d; }
.tk-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed #c3ccd8; font-weight: 700; }
.tk-total b { font-size: 1.35rem; letter-spacing: -.02em; }
.tk-pay { margin-top: 12px; }
.tk-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: #e3f4ea; color: #17703f; font-weight: 800; font-size: .86rem; }
.tk-btn svg { width: 18px; height: 18px; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tk-btn.idle { background: #1f4e79; color: #fff; }
.tk-btn.idle svg { display: none; }
.float .ico svg { width: 18px; height: 18px; }
.f1 { right: -18px; top: -26px; }
.f2 { right: -46px; top: 52px; }
.mascot { left: auto; right: -22px; bottom: -78px; }
@media (max-width: 959px) {
  .hero { padding-bottom: 56px; }
  .ticket { position: relative; left: auto; bottom: auto; margin: -40px 12px 0 auto; width: min(300px, 86%); }
  .f1 { right: 6px; top: -18px; }
  .f2 { display: none; }
}
@media (max-width: 520px) { .float { padding: 8px 12px; } .float small { display: none; } }

/* Módulos: luz que sigue al puntero */
.module::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 260ms var(--ease-out); background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--mc) 22%, transparent), transparent 70%); }
@media (hover: hover) and (pointer: fine) { .module:hover::before { opacity: 1; } .module:hover { box-shadow: var(--shadow-3); } }
.module > * { position: relative; }

/* Pestañas con indicador que se desliza */
.tabs { position: relative; }
.tabs button { position: relative; z-index: 1; }
.tabs button[aria-selected="true"] { background: none; box-shadow: none; }
.tab-ink { position: absolute; z-index: 0; top: 6px; left: 0; height: 46px; width: 0; border-radius: 11px; background: var(--brand); box-shadow: 0 2px 6px rgb(5 10 20 / .25); }
.tabs:not(.has-ink) button[aria-selected="true"] { background: var(--brand); }
.tabpanel { animation: none; }

/* Pasos: una línea que avanza con el scroll y enciende cada número */
.rail { display: none; }
@media (min-width: 980px) {
  .rail { display: block; position: absolute; z-index: 1; top: 42px; left: 42px; right: calc((100% - 48px) / 4 - 42px); height: 2px; background: var(--line); border-radius: 2px; pointer-events: none; }
  .rail i { position: absolute; inset: 0; background: #ff9f43; transform-origin: left; transform: scaleX(var(--p, 1)); border-radius: inherit; }
}
.step::before { position: relative; z-index: 2; transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out), color 300ms; }
.steps.tracking .step:not(.lit)::before { background: var(--surface-2); color: var(--muted); box-shadow: 0 0 0 1px var(--line); }

/* Preguntas: la respuesta se despliega */
.faq details > p { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .float, .dot.wait, .contact::before { animation: none; }
  .hero-visual .frame { transform: none; }
}

/* ===== Marca Bama tech (ADR 0046): landing SIEMPRE en modo claro, crema + terracota + naranja encendido ===== */
:root { --warm: #ea580c; --warm-ink: #9a3412; --grad: linear-gradient(135deg, #f97316, #c2410c); }
.promo { background: var(--brand); color: #ffe8d1; }
.promo strong { color: #fff; }
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: none; background: var(--bg); }
.navy { --text: #2a1d16; --muted: #6b5b4e; --surface: #ffffff; --line: #e3dcd0; --brand: #c2410c; --brand-text: #ffffff; --link: #a3400b;
  color: var(--text); background: radial-gradient(900px 460px at 88% -10%, rgb(234 88 12 / .14), transparent 70%), radial-gradient(700px 420px at -5% 105%, rgb(245 158 11 / .14), transparent 70%), var(--bg); }
.hero h1 em { color: var(--brand); font-family: var(--font-brand); font-style: italic; font-weight: 700; }
.chips li { background: var(--surface); }
.o1 { background: #fb923c; } .o2 { background: #f59e0b; opacity: .3; } .o3 { background: #ea580c; opacity: .18; }
.frame { border-color: var(--line); box-shadow: 0 30px 60px -28px rgb(42 29 22 / .45); }
.frame-top { background: var(--surface-2); } .frame-top i { background: #d8cfc1; } .frame-top span { color: var(--muted); }
.mascot { filter: drop-shadow(0 8px 14px rgb(42 29 22 / .22)); }
.float, .ticket { color: var(--text); box-shadow: 0 2px 4px rgb(42 29 22 / .08), 0 22px 44px -16px rgb(42 29 22 / .35); border: 1px solid var(--line); }
.float small, .tk-head span, .tk-lines small { color: var(--muted); }
.tk-head, .tk-total { border-color: var(--line); }
.ico.money { background: var(--hot-tint); color: var(--hot-text); }
.tk-btn.idle { background: var(--text); }
.cta, .navy .cta, .site-header .cta, .contact .cta, .plan .cta { background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; box-shadow: 0 8px 20px -8px rgb(194 65 12 / .6); }
.cta.ghost, .navy .cta.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .navy .cta:hover, .site-header .cta:hover, .plan .cta:hover, .contact .cta:hover { background: linear-gradient(135deg, #fb923c, #9a3412); } .cta.ghost:hover { background: var(--hot-soft); } }
.module:nth-child(1) { --mc: #0a7fbf; } .module:nth-child(2) { --mc: #0c8a4e; } .module:nth-child(3) { --mc: #6a44d4; } .module:nth-child(4) { --mc: #d46200; }
#operacion { background: radial-gradient(800px 300px at 10% 0, rgb(234 88 12 / .08), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg)); }
.step::before, .ribbon { background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; }
.rail i { background: var(--hot); }
.tab-ink, .toggle button[aria-pressed="true"] { box-shadow: 0 2px 6px rgb(194 65 12 / .3); }
.sunat-card { box-shadow: var(--shadow-2); }
.plan.main { box-shadow: 0 0 0 2px var(--brand), 0 30px 60px -28px rgb(194 65 12 / .35); }
::selection { background: #fdba74; color: #2a1d16; }
/* Franja final: el momento de marca, terracota con letra crema */
.contact { --text: #faf7f2; --muted: #ffe8d1; color: var(--text); background: linear-gradient(135deg, #7c2d12, #c2410c); }
.contact::before { background: #f59e0b; opacity: .3; }
.contact .cta { background: #faf7f2; color: #9a3412; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5); }
@media (hover: hover) and (pointer: fine) { .contact .cta:hover { background: #fff; } }
footer.site { background: var(--surface-2); color: var(--muted); border-top: 1px solid var(--line); }
footer.site a { color: var(--link); }
.wa { box-shadow: 0 8px 24px rgb(42 29 22 / .3); }

/* ===== Escenas vivas (landing.js): pulso SUNAT, avisos sobre capturas, iconos de pasos, brillo del plan ===== */
.float .ico { position: relative; }
.ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid #17a35a; opacity: 0; pointer-events: none; }
.ring.go { animation: ring 900ms var(--ease-out) 1; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }

.frame.flat { position: relative; }
.live-chip { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgb(42 29 22 / .08), 0 18px 36px -14px rgb(42 29 22 / .45); opacity: 0; pointer-events: none; font-variant-numeric: tabular-nums; }
.live-chip b { display: block; font-size: .9rem; }
.live-chip small { display: block; color: var(--muted); font-size: .78rem; }
.lc-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--hot-tint, #ffedd5); color: var(--warm-ink); font-weight: 800; flex: none; }
.lc-bar { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.lc-bar > i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.sc-row[data-hold] { opacity: 0; }

.sico { position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; color: var(--warm); }
.sico * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 800ms var(--ease-out); }
.steps.tracking .step:not(.lit) .sico * { stroke-dashoffset: 1; }
.steps.tracking .step.lit { transform: translateY(-4px); }

.plan.main::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--sweep, 0deg), transparent 0 70%, #fb923c 85%, #fff4e6 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan.main.glow::after { animation: sweep 1700ms var(--ease-out) 1; }
@keyframes sweep { 0% { --sweep: 0deg; opacity: 1; } 80% { opacity: 1; } 100% { --sweep: 360deg; opacity: 0; } }
.contact .cta { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5), 0 0 0 10px rgb(250 247 242 / .12); } }
@media (prefers-reduced-motion: reduce) { .contact .cta, .ring.go, .plan.main.glow::after { animation: none; } .live-chip { display: none; } }

/* Planes por funciones: tres tarjetas + interruptor */
.plans { grid-template-columns: 1fr; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.toggle { margin-bottom: 22px; }
.plan { padding: 26px; }
.plan .who { margin: -8px 0 0; color: var(--muted); font-size: .95rem; }
.plan .lead-in { margin: 0; font-weight: 700; font-size: .92rem; color: var(--warm-ink); }
.plan .price b { font-size: clamp(2.2rem, 4vw, 2.8rem); }
.extras { display: grid; gap: 8px; margin: 26px 0 0; padding: 18px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.extras p { margin: 0; color: var(--muted); }
.extras strong { color: var(--text); }
.ribbon.alt { background: linear-gradient(135deg, #7c2d12, #c2410c); }
.plan:not(.main) .ribbon { position: absolute; top: -14px; right: 24px; padding: 5px 14px; border-radius: 999px; color: #fff; font-weight: 800; font-size: .8rem; }

/* Diferencia frente a sistemas genéricos */
.vs { display: grid; gap: 16px; }
@media (min-width: 900px) { .vs { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.vs-col { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.vs-col h3 { margin: 0 0 14px; font-size: 1.25rem; }
.vs-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.vs-col li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.vs-col li svg { width: 24px; height: 24px; padding: 5px; border-radius: 50%; }
.vs-col.us { border: 2px solid var(--brand); box-shadow: 0 30px 60px -30px rgb(194 65 12 / .35); }
.vs-col.us li svg { background: #e3f4ea; color: #17703f; }
.vs-col.them { background: var(--surface-2); color: var(--muted); }
.vs-col.them li svg { background: #f3e1de; color: #a3361f; }
.vs-col.them h3 { color: var(--muted); }

/* Respaldo */
.backing { padding: 48px 0; background: var(--surface); border-top: 1px solid var(--line); }
.backing .wrap { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; max-width: 900px; }
.backing .seal { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--grad); color: #fff; box-shadow: 0 14px 28px -12px rgb(194 65 12 / .6); }
.backing .seal svg { width: 38px; height: 38px; }
.backing h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; }
.backing p { margin: 0; color: var(--muted); }
.backing strong { color: var(--text); white-space: nowrap; }
@media (max-width: 520px) { .backing .wrap { grid-template-columns: 1fr; } }
.backing-link { display: inline-block; margin-top: 10px; color: var(--link); font-weight: 700; text-decoration: none; }
.backing-link span { display: inline-block; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .backing-link:hover span { transform: translateX(4px); } .backing-link:hover { text-decoration: underline; } }
