/* Web de presentación de RutaFlow (/web/). Independiente de la app. */
:root {
  --bg: #07090a;
  --ink: #f2f5f3;
  --muted: #a9b5af;
  --lime: #c6f432;
  --line: #1f2925;
  --card: #0f1412;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--lime); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -1.5px; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
.container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 110px; padding-bottom: 40px; }
.section-tight { padding-top: 0; padding-bottom: 110px; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }
.center, .center-head { text-align: center; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-lime { background: var(--lime); color: #07090a; }
.btn-lime:hover { color: #07090a; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #3a4640; }
.btn-ghost:hover { color: var(--ink); }
.btn-dark { background: #07090a; color: var(--lime); }
.btn-dark:hover { color: var(--lime); }
.btn-sm { min-height: 44px; padding: 10px 20px; }
.btn-lg { font-size: 18px; padding: 18px 32px; font-weight: 800; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Cabecera */
.nav-wrap { border-bottom: 1px solid #1c2320; position: sticky; top: 0; z-index: 10; background: rgba(7, 9, 10, .88); backdrop-filter: blur(10px); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.5px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Portada */
.hero-text { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #2b3530; background: #0f1513; color: #d8e2dc; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
h1 { font-size: clamp(52px, 8vw, 104px); line-height: .92; font-weight: 800; letter-spacing: -3px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; }
.lead-sm { font-size: 19px; color: var(--muted); line-height: 1.6; }
.row-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { font-size: 14px; color: #8a9891; }
.store { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid #5a6660; border-radius: 12px; padding: 9px 18px; min-height: 52px; text-align: left; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 18px; font-weight: 700; }
.store small { font-size: 11px; color: var(--lime); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.store:hover { border-color: var(--lime); color: #fff; }
.hero-map-wrap { max-width: 1100px; }
.hero-map { position: relative; height: 380px; border-radius: 28px 28px 0 0; border: 1px solid var(--line); border-bottom: 0; background: #0d1210; overflow: hidden; margin-top: 24px; }
.hero-map > svg { width: 100%; height: 100%; }
.map-card { position: absolute; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.map-card small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.map-card-a { left: 24px; top: 24px; width: 220px; background: var(--ink); color: #07090a; }
.map-card-a small { color: #4d5a53; }
.map-card-a .big { font-family: var(--display); font-size: 26px; }
.map-card-b { right: 24px; bottom: 24px; width: 250px; background: var(--lime); color: #07090a; }
.map-card-b strong { font-size: 18px; }
@media (max-width: 600px) { .hero-map { height: 300px; } .map-card-a { left: 12px; top: 12px; width: 180px; } .map-card-b { right: 12px; bottom: 12px; width: 210px; } }

/* Franja */
.marquee { background: var(--lime); color: #07090a; overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; font-family: var(--display); font-weight: 800; font-size: 30px; white-space: nowrap; animation: marquee 30s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Bloques en dos columnas */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { color: var(--lime); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.panel { flex: 1 1 480px; min-width: 0; background: #0d1210; border: 1px solid var(--line); border-radius: 28px; padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 6px 16px; font-size: 17px; }
.panel > svg { width: 100%; height: auto; }
.panel > .muted { margin: 16px 6px 4px; font-size: 16px; }
.tag { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.tag-bad { background: #3a1c10; color: #ffb08f; }
.tag-good { background: var(--lime); color: #07090a; }
.toggle { display: inline-flex; align-self: flex-start; background: #121816; border: 1px solid #26302b; border-radius: 999px; padding: 6px; gap: 6px; }
.toggle button { border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; color: var(--muted); }
.toggle button[aria-pressed='true'] { background: var(--lime); color: #07090a; font-weight: 700; }

/* Funciones */
.h2-wide { max-width: 800px; margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.bento-hero { grid-column: 1 / -1; background: var(--lime); color: #07090a; border-radius: 26px; padding: 40px; display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-end; justify-content: space-between; min-height: 220px; }
.bento-hero h3 { font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -1.5px; flex: 1 1 340px; }
.bento-hero p { font-size: 18px; flex: 1 1 300px; max-width: 480px; }
.feat { background: var(--card); border: 1px solid #1e2723; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.feat b { font-family: var(--display); font-size: 15px; color: var(--lime); }
.feat strong { font-size: 20px; }
.feat span { font-size: 15px; color: var(--muted); }

/* Pasos */
.steps-band { margin-top: 70px; border-top: 1px solid #1c2320; border-bottom: 1px solid #1c2320; background: #0b0f0d; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; padding-top: 90px; padding-bottom: 90px; }
.steps > div { display: flex; flex-direction: column; gap: 10px; }
.num { font-family: var(--display); font-size: 88px; font-weight: 800; line-height: 1; color: var(--lime); }
.steps h3 { font-size: 28px; }
.steps p { font-size: 17px; color: var(--muted); }

/* Instalar */
.soon { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px dashed #3a4640; border-radius: 16px; padding: 16px 18px; font-size: 15px; color: #c9d3ce; }
.soon svg { flex: 0 0 auto; }
.soon strong { color: var(--ink); }
.install { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.install-title { font-size: 20px; }
.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.install-steps li { display: flex; gap: 16px; align-items: flex-start; }
.install-steps li > span { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: #07090a; font-family: var(--display); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.install-steps div { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.install-steps strong { font-size: 18px; }
.install-steps small { font-size: 15px; color: var(--muted); }
[hidden] { display: none !important; }

/* Precios */
.center-head { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-bottom: 52px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.plan { background: var(--card); border: 1px solid #222c27; border-radius: 26px; padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 24px; }
.price { font-family: var(--display); font-size: 56px; font-weight: 800; line-height: 1; }
.price small { font-size: 18px; font-weight: 600; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 16px; color: #c9d3ce; }
.plan .btn { margin-top: auto; }
.plan-pro { background: var(--lime); color: #07090a; border: 0; }
.plan-pro ul { color: #07090a; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge { background: #07090a; color: var(--lime); font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }

/* Empresas */
.biz-wrap { padding: 110px 24px; }
.biz { max-width: 1240px; background: var(--ink); color: #07090a; border-radius: 34px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; }
@media (max-width: 600px) { .biz-wrap { padding: 80px 12px; } .biz { padding: 28px 18px; border-radius: 24px; } }
.biz a { color: #3f6b00; }
.biz-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.biz-text h2 { font-size: clamp(36px, 4vw, 56px); }
.biz-text p { font-size: 18px; line-height: 1.6; color: #33403a; }
.eyebrow-dark { color: #3f6b00; font-weight: 800; }
.arrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; font-weight: 600; }
.arrows li::before { content: '→ '; }
.biz-form { flex: 1 1 440px; min-width: 0; }
form { background: #fff; color: #07090a; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; border: 1px solid #dce3df; }
@media (max-width: 600px) { form { padding: 20px; } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
form input[type='text'], form input[type='email'], form input[type='tel'], form textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; border: 1.5px solid #cad3ce; border-radius: 12px; min-height: 48px; width: 100%; color: #07090a; background: #fff; }
form textarea { resize: vertical; min-height: 72px; }
form input:focus, form textarea:focus { outline: none; border-color: #07090a; }
form input[aria-invalid='true'] { border-color: #c2410c; }
.opt { font-weight: 500; color: #4d5a53; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; font-weight: 600; border: 1.5px solid #cad3ce; background: #fff; color: #07090a; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.chip[aria-pressed='true'] { background: #07090a; border-color: #07090a; color: var(--lime); font-weight: 700; }
form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: #4d5a53; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: #07090a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fff1eb; color: #9a3412; border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.lead-ok { background: #07090a; color: var(--ink); border-radius: 24px; padding: 48px 32px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.lead-ok h3 { font-size: 30px; }
.lead-ok p { color: var(--muted); font-size: 17px; }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; }

/* Preguntas */
.faq { max-width: 900px; }
.faq h2 { margin-bottom: 32px; font-size: clamp(36px, 4vw, 52px); }
details { border-bottom: 1px solid #222c27; }
summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 4px; font-size: 20px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--lime); }
details[open] summary::after { content: '−'; }
details p { padding: 0 4px 24px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Cierre y pie */
.final { background: var(--lime); color: #07090a; }
.final-in { padding-top: 100px; padding-bottom: 100px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.final h2 { font-size: clamp(44px, 6.5vw, 88px); line-height: .95; letter-spacing: -2.5px; max-width: 1000px; }
.final span { font-size: 15px; font-weight: 600; }
.foot { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 15px; color: #8a9891; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-brand strong { font-family: var(--display); font-size: 22px; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.foot-links a { color: #c9d3ce; }

/* Animaciones (se desactivan si el móvil pide menos movimiento) */
.route-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .pulse { animation: none; }
  .route-draw { animation: none; stroke-dashoffset: 0; }
}

/* Probadores */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; font-weight: 600; }
.ticks li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 12px; border-radius: 50%; background: var(--lime); color: #07090a; font-size: 14px; font-weight: 800; }
.light-form .lead-ok { border: 1px solid var(--line); }
.light-form form a { color: #3f6b00; }

/* Qué es + guías (SEO) */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px 56px; align-items: start; border-top: 1px solid #1c2320; padding-top: 56px; }
.about-text { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.65; color: #c9d3ce; }
.about-text strong { color: var(--ink); }
.guides-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.guide { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid #1e2723; color: var(--ink); text-decoration: none; }
.guide:hover { border-color: var(--lime); }
.guide strong { font-size: 19px; line-height: 1.25; }
.guide span:last-child { color: var(--muted); font-size: 15px; }
