:root {
  --ink: #111111;
  --ink-2: #1b1b1b;
  --ink-3: #262626;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e4e2dc;
  --line-dark: #2e2e2e;
  --bg: #faf9f6;
  --card: #ffffff;
  --yellow: #ffcc00;
  --yellow-soft: #fff4c2;
  --green: #2fbf71;
  --good: #1f7a3d;
  --bad: #b3261e;
  --radius: 16px;
  --max: 1120px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.55; font-size: 17px; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 660px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.yellow { color: var(--yellow); }

/* Dark bands */
.dark { background: var(--ink); color: #fff; }
.dark .eyebrow { color: var(--yellow); }
.dark .lead, .dark p { color: #c9c9c9; }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card p, .dark .card li { color: #c9c9c9; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(17, 17, 17, .9); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.25rem; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav a { text-decoration: none; color: #c9c9c9; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 9px 18px; color: var(--ink); }
.lang { display: flex; border: 1px solid #444; border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 5px 11px; font: inherit; font-size: .8rem; cursor: pointer; color: #aaa; }
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); font-weight: 700; }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 15px 26px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(255, 204, 0, .7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid currentColor; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-live { background: #e3f6ec; color: var(--good); }
.chip-soon { background: var(--yellow-soft); color: #7a5b00; }
.dark .chip-live { background: rgba(47, 191, 113, .15); color: var(--green); }
.dark .chip-soon { background: rgba(255, 204, 0, .15); color: var(--yellow); }

/* Hero */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -260px; background: radial-gradient(circle, rgba(255, 204, 0, .18), transparent 65%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { color: #fff; }
.hero .lead { color: #c9c9c9; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 30px; font-size: .9rem; color: #aaa; padding: 0; list-style: none; }
.trust li::before { content: "✓"; color: var(--yellow); font-weight: 800; margin-right: 6px; }

/* Phone mock */
.phone { background: #000; border: 1px solid #333; border-radius: 40px; padding: 12px; max-width: 330px; margin: 0 auto; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 6px #1d1d1d; }
.phone-screen { background: #fff; color: var(--ink); border-radius: 30px; padding: 22px 18px 18px; min-height: 560px; display: flex; flex-direction: column; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.light-on { display: inline-flex; align-items: center; gap: 5px; color: var(--good); font-weight: 700; }
.light-on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.6s infinite; }
.phone-label { font-size: .78rem; color: var(--muted); }
.phone-big { font-size: 2.5rem; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.phone-tile { background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.phone-tile b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.phone-goal { background: var(--yellow-soft); border-radius: 12px; padding: 10px 12px; font-size: .82rem; }
.phone-bar { height: 6px; background: #fff; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.phone-bar span { display: block; height: 100%; width: 60%; background: var(--ink); transition: width .6s ease; }
.feed-title { font-size: .78rem; color: var(--muted); margin: 14px 0 6px; display: flex; justify-content: space-between; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; animation: slideIn .45s ease; }
.feed .route { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.feed .meta { color: var(--muted); font-size: .74rem; grid-column: 1 / -1; }
.feed .src { display: inline-block; background: var(--ink); color: var(--yellow); font-size: .65rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }

@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }

/* Verifactu band */
.vf { background: var(--yellow); padding: 22px 0; }
.vf .wrap { display: flex; align-items: center; justify-content: center; gap: 14px 28px; flex-wrap: wrap; text-align: center; font-weight: 600; }
.vf-count { display: flex; align-items: baseline; gap: 8px; }
.vf-count b { font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.vf a { font-weight: 700; }

/* Grids & cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-soft); margin: 0; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); }
.card li { margin-bottom: 4px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.3rem; }
.feature { display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .3); }
.feature .chip { align-self: flex-start; margin-top: auto; }
.feature h3 { margin: 0; }
.feature p { font-size: .92rem; }

/* Taxímetro flow */
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; margin: 40px 0 8px; }
.node { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 16px 18px; text-align: center; min-width: 130px; }
.node b { display: block; font-size: 1rem; color: #fff; }
.node span { font-size: .78rem; color: #999; }
.node.main { background: var(--yellow); border-color: var(--yellow); }
.node.main b, .node.main span { color: var(--ink); }
.wire { height: 2px; background: repeating-linear-gradient(90deg, #444 0 6px, transparent 6px 12px); position: relative; overflow: hidden; }
.wire::after { content: ""; position: absolute; top: -3px; left: -10%; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: travel 2.2s linear infinite; }
.wire.w2::after { animation-delay: 1.1s; }
@keyframes travel { to { left: 105%; } }
.integrations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.integ { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; }
.integ .icon { margin: 0; width: 44px; height: 44px; }
.integ h3 { font-size: 1rem; margin: 0 0 2px; color: #fff; }
.integ p { font-size: .88rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
.step { border-top: 2px solid var(--yellow); padding-top: 16px; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 900; color: var(--yellow); font-size: 1.4rem; display: block; margin-bottom: 6px; }
.step h3 { color: #fff; }

/* Gestoría */
.tax-card { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); padding: 26px; }
.tax-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tax-head b { font-size: 1.1rem; }
.piggy { background: var(--ink); color: #fff; border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.piggy .phone-label { color: #aaa; }
.piggy-amt { font-size: 2.2rem; font-weight: 800; color: var(--yellow); letter-spacing: -.03em; }
.piggy-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 12px; background: #333; }
.piggy-bar span:nth-child(1) { background: var(--yellow); width: 45%; }
.piggy-bar span:nth-child(2) { background: #fff; width: 30%; }
.piggy-bar span:nth-child(3) { background: #888; width: 25%; }
.piggy-legend { display: flex; gap: 14px; font-size: .75rem; color: #aaa; margin-top: 8px; flex-wrap: wrap; }
.piggy-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.tax-rows { display: grid; gap: 8px; }
.tax-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--bg); border-radius: 12px; font-size: .92rem; }
.tax-date { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.2; }
.tax-row .ok { color: var(--good); font-weight: 700; font-size: .82rem; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checklist li::before { content: "✓"; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 900; font-size: .9rem; }
.checklist b { display: block; }
.checklist span { color: var(--ink-soft); font-size: .95rem; }
.extra-box { margin-top: 26px; padding: 18px 20px; border: 2px dashed var(--ink); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.extra-box b { font-size: 1.05rem; }
.extra-box .price { font-size: 1.6rem; font-weight: 900; }

/* Fleet dashboard mock */
.dash { background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden; margin-top: 40px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.dash-bar { display: flex; gap: 6px; padding: 12px 16px; background: #f0eee8; align-items: center; }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d1c8; }
.dash-bar span { margin-left: 12px; font-size: .78rem; color: var(--muted); }
.dash-body { padding: 20px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.dash-kpi { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.dash-kpi b { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.dash-kpi span { font-size: .78rem; color: var(--muted); }
.dash-table-wrap { overflow-x: auto; }
.dash table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.dash th { text-align: left; font-weight: 600; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dash td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.dash td.num, .dash th.num { text-align: right; }
.status { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.status.ok { background: #e3f6ec; color: var(--good); }
.status.warn { background: #fce8e6; color: var(--bad); }
.status.live { background: var(--yellow-soft); color: #7a5b00; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 42px; padding: 0 0 26px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 64px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); }
.timeline time { font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline b { display: block; }
.timeline span { color: var(--ink-soft); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; margin-top: 40px; align-items: start; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.calc legend { font-weight: 700; margin-bottom: 10px; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field label { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: 4px; }
.field input, .form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--yellow); border-color: var(--ink); }
.unit { position: relative; }
.unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.unit input { padding-right: 56px; }
.result { position: sticky; top: 88px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px; }
.result .big { font-size: 3.2rem; font-weight: 900; letter-spacing: -.04em; color: var(--yellow); line-height: 1; margin: 6px 0 4px; }
.result .sub { color: #bdbdbd; font-size: .9rem; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 22px 0 0; font-size: .95rem; }
.result dt { color: #bdbdbd; }
.result dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.result dd.neg { color: #ff8a80; }
.result .total { border-top: 1px solid #333; padding-top: 8px; font-weight: 700; color: #fff; }
.result .hint { margin-top: 18px; font-size: .8rem; color: #9a9a9a; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35); }
.plan .price { font-size: 2.1rem; font-weight: 900; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan .per { color: var(--muted); font-size: .85rem; }
.tag { display: inline-block; background: var(--yellow); font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; margin-bottom: 8px; align-self: flex-start; }
.small { font-size: .85rem; color: var(--muted); }

/* Ambassadors */
.amb { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.amb-card { background: var(--yellow); color: var(--ink); border-radius: var(--radius); padding: 28px; }
.amb-card .phone-label { color: #5c4a00; }
.amb-amt { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin: 6px 0; }
.amb-range { width: 100%; accent-color: var(--ink); margin: 18px 0 6px; }
.amb-card p { color: var(--ink) !important; margin: 0; font-size: .9rem; }

/* Form */
.form-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { font-size: .85rem; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.check input { width: auto; margin-top: 4px; }
.form-msg { padding: 12px 14px; border-radius: 10px; font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: #e6f4ea; color: var(--good); }
.form-msg.err { display: block; background: #fce8e6; color: var(--bad); }
.hp { position: absolute; left: -9999px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Final CTA */
.final { text-align: center; padding: 96px 0; }
.final h2 { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; }

footer { background: var(--ink); color: #888; border-top: 1px solid var(--line-dark); padding: 32px 0; font-size: .85rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #bbb; }

/* Legal page */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Reveal on scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .hero .wrap, .calc, .form-box, .split, .amb { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4, .plans, .integrations { grid-template-columns: 1fr 1fr; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .result { position: static; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  section { padding: 60px 0; }
  .fields, .form .row, .plans, .grid-4, .integrations { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; justify-items: center; }
  .flow .wire { width: 2px; height: 28px; background: repeating-linear-gradient(180deg, #444 0 6px, transparent 6px 12px); }
  .flow .wire::after { display: none; }
  .integ { grid-template-columns: 44px 1fr; }
  .integ .chip { grid-column: 2; justify-self: start; }
  .timeline::before { left: 62px; }
  .timeline li { gap: 26px; }
  .timeline li::after { left: 56px; }
  .nav .btn { display: none; }
  .grid-4.features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .features .feature { padding: 16px 14px; }
  .features .feature p { font-size: .82rem; }
  .features .icon { width: 36px; height: 36px; font-size: 1.05rem; margin-bottom: 4px; }
  .features .chip { font-size: .68rem; padding: 3px 8px; white-space: normal; }
}
