/* NRUTA: página web. Mismo lenguaje visual de la app: negro y blanco, tipografía grande y la patente como sello. */

:root {
  --g50: #F6F6F6;
  --g100: #EEEEEE;
  --g200: #E2E2E2;
  --g300: #CBCBCB;
  --g400: #AFAFAF;
  --g500: #6B6B6B;
  --g600: #545454;
  --g800: #1F1F1F;
  --blue: #276EF1;
  --ok: #03703C;
  --ok-bg: #E6F2ED;
  --vial: #FFC043; /* amarillo de demarcación vial: solo en carreteras y en el logo */
  --carton: #C9A577; /* cartón: solo en cajas de paquetería */
  --carton-borde: #A8845A;
  --cinta: #E4CFA8;
  --bolsa: #3D3D3D;
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 18px; line-height: 1.5; color: #000; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--g500); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
[id] { scroll-margin-top: 76px; }

/* ---------- Marca: carretera que termina en flecha ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: .01em; line-height: 1; }
.logo .mark { width: 34px; height: 34px; flex: none; }
.top .logo { --mk-bg: #fff; --mk-road: #000; --mk-line: var(--vial); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 26px;
  border: 0; border-radius: 10px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 999px; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-light { background: var(--g100); color: #000; }
.btn-light:hover { background: var(--g200); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: var(--g100); }

/* ---------- Encabezado ---------- */
.top { position: sticky; top: 0; z-index: 10; background: #000; color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.nav { display: flex; gap: 28px; margin-right: auto; margin-left: 24px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--g300); }
.nav a:hover { color: #fff; }

/* ---------- Portada ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.scene { margin-top: 64px; height: 270px; }
.scene svg { display: block; width: 100%; height: 100%; }
.cordillera { fill: #EFEFEF; }
.nieve { fill: #fff; }
.ciudad { fill: #D9D9D9; }
.calzada { fill: #000; }
.borde { stroke: #fff; stroke-width: 2; opacity: .35; }
.pista { stroke: var(--vial); stroke-width: 4; stroke-dasharray: 38 30; }
.veh { animation: avanza 36s linear infinite; }
@keyframes avanza { from { transform: translateX(-260px); } to { transform: translateX(1700px); } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(46px, 6.6vw, 86px); line-height: .98; letter-spacing: -.04em; font-weight: 700; max-width: 10.5ch; text-wrap: balance; }
.tagline { margin-top: 22px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.015em; }
.lead { margin-top: 14px; font-size: 20px; line-height: 1.5; color: var(--g600); max-width: 31em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 18px; font-size: 15px; color: var(--g500); }

.phone { --s: .9; width: calc(395px * var(--s)); height: calc(800px * var(--s)); }
.phone-inner {
  width: 395px; height: 800px; transform: scale(var(--s)); transform-origin: top left;
  border: 10px solid #000; border-radius: 52px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.phone iframe { display: block; width: 375px; height: 780px; border: 0; }
.phone-cap { margin-top: 14px; font-size: 14px; color: var(--g500); text-align: center; }

/* ---------- Bloques ---------- */
.blk { padding: 104px 0; border-top: 1px solid var(--g100); }
h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 18ch; text-wrap: balance; }
.sub { margin-top: 18px; font-size: 20px; color: var(--g600); max-width: 34em; }

/* Para quién */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.who-col { padding: 40px 36px 36px; border-radius: 24px; background: var(--g50); }
.who-col h3 { margin-top: 30px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.who-col > p { margin-top: 10px; color: var(--g600); }
.who-col ul { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.who-col li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.who-col li .ic { width: 22px; height: 22px; margin-top: 2px; }

.garage { display: flex; flex-direction: column; justify-content: flex-end; height: 92px; }
.vehs { display: block; height: auto; }
.vehs.uno { width: 232px; max-width: 100%; }
.vehs.flota { width: 100%; max-width: 500px; }
.ground { height: 8px; margin-top: 3px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--vial) 0 14px, transparent 14px 28px) 0 50% / 100% 2px no-repeat, #000; }

/* Cómo funciona */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 12px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--vial) 0 18px, transparent 18px 36px) 0 50% / 100% 2px no-repeat, #000;
}
.step { position: relative; }
.step .n { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid #000; border-radius: 50%; background: #fff; color: #000; font-weight: 800; font-size: 17px; }
.step h3 { margin-top: 18px; font-size: 23px; letter-spacing: -.015em; }
.step p { margin-top: 8px; font-size: 17px; color: var(--g600); }

/* Funciones (bloque negro) */
.dark { background: repeating-linear-gradient(90deg, var(--vial) 0 48px, transparent 48px 96px) 0 0 / 100% 4px no-repeat, #000; color: #fff; border-top: 0; }
.dark .sub { color: var(--g300); }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 52px; }
.feat { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid #2E2E2E; }
.feat .ic { width: 28px; height: 28px; margin-top: 1px; }
.feat h3 { font-size: 21px; letter-spacing: -.01em; }
.feat p { margin-top: 6px; font-size: 17px; color: var(--g400); }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 52px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--g200); border-radius: 18px; }
.plan.best { border: 2px solid #000; }
.plan h3 { font-size: 22px; }
.plan .price { margin-top: 14px; font-size: 52px; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .per { margin-top: 8px; font-size: 16px; color: var(--g500); }
.plan .btn { margin-top: auto; }
.plan-list { list-style: none; display: grid; gap: 10px; margin: 22px 0 28px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.plan-list .ic { width: 20px; height: 20px; margin-top: 1px; }
.badge { align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 600; }
.plan-note { margin-top: 22px; font-size: 16px; color: var(--g500); max-width: 40em; }
.badge-dark { background: #000; color: #fff; }
.extra { margin-top: 72px; }
.extra-title { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.025em; }
.extra-sub { margin-top: 10px; color: var(--g600); max-width: 40em; }
.services { margin-top: 28px; border-top: 1px solid var(--g200); }
.service { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--g200); }
.service-main { min-width: 0; }
.service h4 { font-size: 21px; letter-spacing: -.01em; }
.service-main p { margin-top: 6px; max-width: 60ch; font-size: 17px; color: var(--g600); }
.service-end { display: flex; align-items: center; gap: 20px; flex: none; }
.service-end p { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.service-end b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.service-end span { font-size: 14px; color: var(--g500); }

/* Preguntas */
.faq { margin-top: 40px; }
.faq details { border-top: 1px solid var(--g200); }
.faq details:last-child { border-bottom: 1px solid var(--g200); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; line-height: .8; color: var(--g500); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; color: var(--g600); max-width: 62ch; }

/* Llamado final */
.cta { padding: 104px 0; background: #000; color: #fff; }
.cta .wrap { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 56px; align-items: start; }
.cta .sub { color: var(--g300); }
.lead-form { display: grid; gap: 18px; }
.lead-form label > span, .lead-form legend { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.lead-form fieldset { border: 0; }
.lead-form input:not([type=radio]), .lead-form select {
  width: 100%; height: 56px; padding: 0 16px; border: 2px solid transparent; border-radius: 10px;
  background: var(--g800); color: #fff; font: inherit; font-size: 17px;
}
.lead-form input::placeholder { color: var(--g500); }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: #fff; }
.lead-form select {
  -webkit-appearance: none; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
}
.lead-form .invalid { border-color: #FF6B5C !important; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--g800); font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: #fff; color: #000; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.lead-form .btn { width: 100%; margin-top: 4px; }
.form-msg { min-height: 1.5em; font-size: 16px; color: var(--g300); }
.form-msg:empty { min-height: 0; }
.form-nota { font-size: 14px; color: var(--g500); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.foot { padding: 48px 0 56px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; }
.foot .muted { margin-left: auto; }

/* ---------- Pantallas medianas y móviles ---------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-phone { justify-self: center; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { left: 14px; right: auto; top: 0; bottom: 0; width: 12px; height: auto; background: repeating-linear-gradient(180deg, var(--vial) 0 18px, transparent 18px 36px) 50% 0 / 2px 100% no-repeat, #000; }
  .step { padding-left: 64px; }
  .step .n { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 6px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .who, .feats, .cta .wrap { grid-template-columns: 1fr; }
  .feats { gap: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 48px 0 0; }
  .scene { height: 170px; margin-top: 40px; }
  .lead { font-size: 18px; }
  .ctas .btn { width: 100%; }
  .phone { --s: .76; }
  .blk, .cta { padding: 72px 0; }
  .who-col { padding: 30px 24px 28px; }
  .plans { grid-template-columns: 1fr; }
  .service { flex-direction: column; align-items: flex-start; gap: 14px; }
  .service-end { width: 100%; justify-content: space-between; }
  .service-end p { align-items: flex-start; }
  .faq summary { font-size: 18px; }
  .foot .muted { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .veh { animation-play-state: paused; } /* quedan detenidos y repartidos en la carretera */
}
