:root {
  --charcoal: #171a1a;
  --graphite: #252a29;
  --graphite-2: #2f3534;
  --off-white: #f4f1ea;
  --paper: #fbfaf6;
  --white: #ffffff;
  --copper: #d96832;
  --copper-dark: #b9531f;
  --steel: #89908e;
  --line: #e4dfd4;
  --text: #171a1a;
  --muted: #5d6463;
  --success: #2f8f5b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 26, 26, .06), 0 10px 30px rgba(23, 26, 26, .08);
  --font: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --display: Archivo, Inter, 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--display); text-decoration: none; padding: 16px 24px; border-radius: 6px; border: 1.5px solid transparent; transition: background .15s, color .15s, transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: var(--white); box-shadow: 0 8px 20px rgba(217, 104, 50, .28); }
.btn-primary:hover { background: var(--copper-dark); }
.btn-ghost { background: rgba(255, 255, 255, .72); border-color: var(--charcoal); color: var(--charcoal); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); }
.btn-outline { border-color: var(--copper); color: var(--copper-dark); background: transparent; }
.btn-outline:hover { background: var(--copper); color: var(--white); }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-light { background: var(--white); color: var(--charcoal); padding: 18px 26px; font-size: 17px; }
.btn-light:hover { background: var(--off-white); }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.03em; color: var(--charcoal); }
.brand b { color: var(--copper); font-weight: 800; }
.brand-light { color: var(--white); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--copper-dark); }
.nav .nav-login { color: var(--copper-dark); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; overflow: hidden; background: #e9e5dc; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; z-index: -2; }
.hero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(246, 243, 236, .97) 0%, rgba(246, 243, 236, .9) 30%, rgba(246, 243, 236, .55) 52%, rgba(246, 243, 236, .05) 75%), linear-gradient(0deg, rgba(246, 243, 236, .7) 0%, rgba(246, 243, 236, 0) 30%); }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(56px, 10vh, 110px) 0 40px; }
.hero-copy { max-width: 900px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 78px); font-weight: 900; letter-spacing: -.035em; color: #141616; }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: #2b302f; max-width: 440px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badges { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 18px 40px; }
.hero-badges li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.25; color: #2b302f; font-weight: 500; }
.video-toggle { position: absolute; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--copper); background: var(--charcoal); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 4px rgba(217, 104, 50, .25); }
.video-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle[data-state="paused"] .i-play { display: block; }
.video-toggle[data-state="paused"] .i-pause { display: none; }

/* Secciones */
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.section-head p { margin-top: 12px; font-size: 18px; color: var(--muted); }
.section-head.center { text-align: center; }
.section-head.light h2 { color: var(--white); }
.section-head.light p { color: #c9ccc9; }

/* Flujo */
.flow { background: radial-gradient(1200px 400px at 50% 0%, #2a302f 0%, var(--charcoal) 70%); padding: 88px 0 96px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.step { position: relative; background: linear-gradient(180deg, var(--graphite-2), var(--graphite)); border: 1px solid #3a403f; border-radius: var(--radius); padding: 26px 18px 24px; text-align: center; color: var(--white); }
.step:not(:last-child)::after { content: ''; position: absolute; right: -16px; top: 74px; width: 10px; height: 10px; border-top: 3px solid var(--copper); border-right: 3px solid var(--copper); transform: rotate(45deg); }
.step-icon { width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 22px; background: var(--off-white); display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .06); }
.step h3 { font-size: 20px; font-weight: 800; }
.step p { margin-top: 8px; font-size: 15px; color: #c9ccc9; }

/* Features */
.feature { padding: 96px 0; border-bottom: 1px solid var(--line); }
.feature.alt { background: var(--off-white); }
.feature-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.feature-row.reverse > :first-child { order: 2; }
.feature-icon { margin-bottom: 18px; }
.feature-copy h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.feature-copy p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 470px; }
.feature-copy .check { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text); font-weight: 500; margin-top: 22px; }
.feature-copy .check::before { content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Mockups de app */
.app-window { margin: 0; display: grid; grid-template-columns: 150px 1fr; background: var(--white); border: 10px solid var(--charcoal); border-radius: 18px; box-shadow: 0 30px 60px rgba(23, 26, 26, .22); overflow: hidden; font-size: 13px; }
.app-window.small { grid-template-columns: 120px 1fr; border-width: 8px; }
.app-side { background: var(--charcoal); color: #c9ccc9; display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; }
.app-side span { padding: 7px 10px; border-radius: 6px; font-size: 12px; }
.app-side .on { background: var(--copper); color: var(--white); font-weight: 600; }
.app-logo { font: 800 15px/1 var(--display); color: var(--white) !important; padding: 4px 10px 14px !important; }
.app-logo b { color: var(--copper); }
.app-main { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.app-title { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 14px; }
.fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.input { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--text); font-size: 13px; background: var(--paper); }
.weights, .money { display: grid; gap: 10px; }
.weights { grid-template-columns: repeat(3, 1fr); }
.money { grid-template-columns: 1fr 1.3fr; }
.weights div, .money div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.weights div { text-align: center; }
.weights small, .money small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.weights b { display: block; font: 800 28px/1.1 var(--display); margin-top: 4px; }
.weights .net b { color: var(--success); }
.money b { display: block; font: 800 22px/1.1 var(--display); margin-top: 4px; }
.app-cta { background: var(--copper); color: var(--white); text-align: center; padding: 12px; border-radius: 7px; font-weight: 700; }

.conn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offline-card { background: #fbe3d3; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.offline-card b { font: 800 20px/1 var(--display); color: var(--copper-dark); }
.offline-card span { font-size: 12px; color: var(--muted); }
.sync-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.sync-card small { font-size: 11px; color: var(--muted); }
.sync-card p { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 6px; }
.mini-btn { border: 1.5px solid var(--charcoal); border-radius: 6px; padding: 7px; text-align: center; font-weight: 700; font-size: 12px; margin-top: 4px; }

.audit { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; overflow-x: auto; }
.audit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.audit-head span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 12px; }
.audit table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.audit th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.audit td { padding: 10px 8px; border-bottom: 1px solid #f0ece3; white-space: nowrap; }
.audit td:last-child { white-space: normal; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.dot.ok { background: var(--success); } .dot.edit { background: #3b7dd8; } .dot.void { background: #c93434; } .dot.cash { background: #7b5cc4; } .dot.login { background: var(--steel); }

.photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(23, 26, 26, .2); }
.photo img { width: 100%; height: auto; }

/* Beneficios */
.benefits { padding: 96px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-bottom: 3px solid var(--copper); }
.card img { flex: none; }
.card h3 { font-size: 19px; font-weight: 800; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { padding: 96px 0; background: var(--off-white); border-top: 1px solid var(--line); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 52px 20px 22px; font-weight: 700; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--copper); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* CTA */
.cta { background: var(--copper) linear-gradient(120deg, rgba(255, 255, 255, .06) 0 25%, transparent 25% 50%, rgba(255, 255, 255, .06) 50% 75%, transparent 75%) 0 0/36px 36px; color: var(--white); padding: 56px 0; }
.cta-row { display: flex; align-items: center; gap: 36px; }
.cta-scale { filter: brightness(0) invert(1); opacity: .9; flex: none; }
.cta h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; flex: 1; }

/* Footer */
.site-footer { background: var(--charcoal); color: #c9ccc9; padding: 40px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p { font-size: 14px; margin-top: 8px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: var(--white); }
.site-footer .copy { margin: 0; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-row { gap: 40px; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse > :first-child { order: 0; }
  .feature { padding: 72px 0; }
  .hero { min-height: 640px; }
  .hero-veil { background: linear-gradient(180deg, rgba(246, 243, 236, .95) 0%, rgba(246, 243, 236, .82) 55%, rgba(246, 243, 236, .55) 100%); }
  .cta-row { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .step:last-child { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .app-window, .app-window.small { grid-template-columns: 1fr; border-width: 6px; }
  .app-side { display: none; }
  .fields { grid-template-columns: 1fr; }
  .weights b { font-size: 22px; }
  .money { grid-template-columns: 1fr; }
  .conn { grid-template-columns: 1fr; }
  .hero-badges { gap: 14px 22px; }
  .video-toggle { right: 16px; bottom: 16px; }
  .btn { width: 100%; justify-content: center; }
  .nav .btn, .hero-actions .btn { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
