/* ============================================================
   YEPAR GO — Landing (yepargo.com)
   Sin estilos en línea en el HTML: la política de seguridad
   (_headers) solo deja cargar CSS desde este archivo.
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --brand: #f58634;
  --brand-ink: #b34f09;
  --dark: #0b1220;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #1a1006; box-shadow: 0 6px 16px rgba(245, 134, 52, .35); }
.btn-primary:hover { background: #f79448; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ── Cabecera ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-name .b1 { color: #64748b; }
.brand-name .b2 { color: var(--brand); }
.nav { display: none; gap: 26px; margin-left: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav a:hover { color: var(--brand-ink); }
.top-cta { display: flex; gap: 8px; margin-left: auto; }

/* ── Portada ── */
.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(245, 134, 52, .16), transparent 60%),
    linear-gradient(#fff, #fffaf5);
  padding: 44px 0 72px;
  overflow: hidden;
}
.hero-in { display: grid; gap: 44px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.hero h1, .sec-h, .cta-final h2 { text-wrap: balance; }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.hl { color: #d4630c; }
.lead { margin-top: 18px; font-size: 1.125rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1006' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-fig { position: relative; max-width: 540px; width: 100%; margin: 0 auto; }
.map { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06); background: #fff; }
.float {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .05);
}
.float-t { font-size: 13px; font-weight: 800; }
.float-s { font-size: 12px; color: var(--muted); }
.float-a { top: 6%; left: 3%; min-width: 168px; }
.float-b { bottom: 6%; right: 3%; display: flex; align-items: center; gap: 10px; }
.tl { margin-top: 8px; display: grid; gap: 5px; font-size: 12px; color: #94a3b8; }
.tl li { display: flex; align-items: center; gap: 8px; }
.tl li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; }
.tl .done { color: var(--ink-2); }
.tl .done::before { background: #22c55e; border-color: #22c55e; }
.tl .now { color: var(--ink); font-weight: 800; }
.tl .now::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(245, 134, 52, .25); }
.okdot { width: 28px; height: 28px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; flex: none; }

/* ── Secciones ── */
.sec { padding: 72px 0; scroll-margin-top: 68px; }
.sec-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-h { font-size: clamp(1.7rem, 4.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.sec-p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; max-width: 40em; }
.sec-p.center, .sec-h.center { text-align: center; }
.sec-p.center { margin-left: auto; margin-right: auto; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: .97rem; }

.steps3 { display: grid; gap: 16px; margin-top: 36px; counter-reset: none; }
.num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #1a1006; font-weight: 800; margin-bottom: 14px; }

.grid3 { display: grid; gap: 16px; margin-top: 36px; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff3e6; color: var(--brand-ink); margin-bottom: 14px; }
.ico svg { width: 22px; height: 22px; }
.tag { display: inline-block; margin-top: 2px; padding: 2px 9px; border-radius: 999px; background: #fff3e6; color: var(--brand-ink); font-size: 12px; font-weight: 700; }

.countries { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-top: 16px; }
.flags { display: flex; gap: 10px; }
.flag { width: 52px; height: 35px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }

/* ── App del chofer (sección oscura) ── */
.sec-dark { background: var(--dark); color: #e2e8f0; }
.sec-dark .sec-h { color: #fff; }
.sec-dark .sec-p { color: #94a3b8; }
.app-in { display: grid; gap: 44px; align-items: center; }
.bul { margin-top: 24px; display: grid; gap: 12px; }
.bul li { position: relative; padding-left: 30px; color: #cbd5e1; }
.bul li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1006' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.small { margin-top: 22px; font-size: 14px; color: #94a3b8; }

.phone-wrap { display: flex; justify-content: center; }
.phone { width: 272px; border-radius: 38px; border: 9px solid #1e293b; background: #030712; padding: 22px 16px 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); color: #f9fafb; }
.ph-hi { font-size: 17px; font-weight: 800; }
.ph-sub { font-size: 12px; color: #9ca3af; margin-top: 1px; }
.ph-chips { display: flex; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #9ca3af; border: 1px solid #1f2937; border-radius: 999px; padding: 3px 9px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.ph-task { margin-top: 16px; padding: 12px; border: 1.5px solid #4f46e5; border-radius: 14px; background: rgba(79, 70, 229, .12); display: grid; gap: 2px; }
.ph-task-t { font-size: 13px; font-weight: 800; }
.ph-task-s { font-size: 11px; color: #9ca3af; }
.ph-lbl { margin-top: 16px; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #6b7280; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.st { border-radius: 12px; padding: 12px 4px; text-align: center; display: grid; gap: 1px; }
.st b { font-size: 20px; font-weight: 800; }
.st span { font-size: 10px; font-weight: 700; }
.st-b { background: rgba(59, 130, 246, .15); color: #60a5fa; }
.st-g { background: rgba(34, 197, 94, .15); color: #4ade80; }
.st-r { background: rgba(239, 68, 68, .15); color: #f87171; }
.ph-btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 16px; }
.pb { text-align: center; border-radius: 10px; padding: 10px 6px; font-size: 12px; font-weight: 800; }
.pb-r { background: rgba(239, 68, 68, .18); color: #f87171; border: 1px solid rgba(239, 68, 68, .4); }
.pb-g { background: #16a34a; color: #fff; }

/* ── Precios ── */
.seg { display: flex; width: max-content; max-width: 100%; margin: 28px auto 0; padding: 4px; background: #f1f5f9; border-radius: 999px; gap: 2px; }
.seg-btn { display: flex; align-items: center; gap: 8px; padding: 9px 20px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; color: var(--muted); transition: background .15s, box-shadow .15s, color .15s; }
.seg-btn .flag { width: 24px; height: 16px; border-radius: 3px; }
.seg-btn[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .18); }

.plans { display: grid; gap: 16px; margin-top: 32px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--brand); box-shadow: 0 16px 40px rgba(245, 134, 52, .2); }
.plan-flag { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #1a1006; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan-name { font-size: 1.15rem; font-weight: 800; }
.plan-desc { margin-top: 4px !important; min-height: 2.9em; }
.plan-price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.plan ul { margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.plan li.on svg { color: #16a34a; }
.plan li.off { color: #64748b; }
.plan li.off svg { color: #94a3b8; }
.plan .btn { width: 100%; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 46em; }

/* ── Preguntas ── */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--brand-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ── Llamada final ── */
.cta-final { background: linear-gradient(135deg, #f58634, #f9a15a); color: #1a1006; padding: 64px 0; text-align: center; }
.cta-in { display: grid; gap: 14px; justify-items: center; }
.cta-final h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.cta-final p { max-width: 36em; font-size: 1.05rem; }
.cta-final .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, .3); margin-top: 8px; }
.cta-final .btn-primary:hover { background: #1e293b; }

/* ── Pie ── */
.foot { padding: 36px 0; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand p { line-height: 1.3; }
.foot-brand span { color: var(--muted); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.foot-nav a:hover { color: var(--brand-ink); }
.copy { font-size: 13px; color: var(--muted); }

/* ── Pantallas más anchas ── */
@media (min-width: 760px) {
  .nav { display: flex; }
  .steps3, .grid3 { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .countries { flex-direction: row; align-items: center; gap: 24px; padding: 28px; }
  .foot-in { grid-template-columns: 1fr auto; align-items: center; }
  .copy { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 96px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .app-in { grid-template-columns: 1.2fr 1fr; }
  .sec { padding: 96px 0; }
  .float-a { left: -5%; }
  .float-b { right: -4%; }
}
@media (max-width: 420px) {
  .top-in { gap: 10px; }
  .brand-name { font-size: 18px; }
  .top-cta { gap: 6px; }
  .top-cta .btn-sm { padding: 7px 11px; font-size: 13px; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
  .float-a { min-width: 150px; }
}

@media (max-width: 370px) {
  .top-cta .btn-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover { transform: none; }
}

/* Texto solo para lectores de pantalla */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Página 404 ── */
.nf { min-height: 100vh; }
.nf-in { text-align: center; padding-top: 80px; }
.nf-in img { margin: 0 auto 24px; }
.nf-in h1 { font-size: 2rem; }
.nf-in .lead { margin: 14px auto 28px; }
