:root, html[data-tema='claro'] {
  --suave: cubic-bezier(0.16, 1, 0.3, 1);
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #5e5e5e;
  --line: #e6e6e6;
  --soft: #f4f4f4;
  --inv-bg: #0a0a0a;
  --inv-fg: #ffffff;
  --marca: #0570f9; /* el azul del "Ya": solo en el logo y en el punto en vivo */
  color-scheme: light;
}
html[data-tema='oscuro'] {
  --bg: #000000;
  --fg: #f4f4f4;
  --muted: #a0a0a0;
  --line: #222222;
  --soft: #141414;
  --inv-bg: #f4f4f4;
  --inv-fg: #0a0a0a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Sin zoom: ni doble toque ni pellizco (el iPhone ignora user-scalable=no; menu.js frena sus gestos). */
html, body { touch-action: pan-x pan-y; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cont { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .cont { padding: 0 16px; } }

/* ---------- Barra ---------- */
.barra { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.barra.borde { border-bottom-color: var(--line); }
.barra .cont { height: 68px; display: flex; align-items: center; gap: 28px; }
.marca { display: flex; align-items: center; }
.marca img { height: 26px; width: auto; display: block; }
.logo-noche { display: none !important; }
html[data-tema='oscuro'] .logo-dia { display: none !important; }
html[data-tema='oscuro'] .logo-noche { display: block !important; }
.enlaces { display: flex; gap: 26px; font-size: 14px; color: var(--muted); margin-left: auto; }
.enlaces a:hover { color: var(--fg); }
.acciones-barra { display: flex; align-items: center; gap: 10px; }
.btn-tema { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.btn-tema .sol { display: none; }
html[data-tema='oscuro'] .btn-tema .sol { display: block; }
html[data-tema='oscuro'] .btn-tema .luna { display: none; }
@media (max-width: 860px) { .enlaces { display: none; } .acciones-barra { margin-left: auto; } }
.btn-menu { display: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; }
.btn-menu span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: currentColor; transition: top 0.3s var(--suave), transform 0.3s var(--suave); }
.btn-menu span:first-child { top: 15px; }
.btn-menu span:last-child { top: 23px; }
.btn-menu[aria-expanded='true'] span:first-child { top: 19px; transform: rotate(45deg); }
.btn-menu[aria-expanded='true'] span:last-child { top: 19px; transform: rotate(-45deg); }
.menu-movil { display: none; }
@media (max-width: 860px) {
  .btn-menu { display: block; }
  .menu-movil { position: fixed; z-index: 49; top: 68px; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 16px 24px max(28px, env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.45s var(--suave), visibility 0s linear 0.45s; }
  .menu-movil.abierto { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.45s var(--suave), visibility 0s; }
  .menu-movil .enlace { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 32px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
  .menu-movil .menu-ctas { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }
  .menu-movil .enlace, .menu-movil .menu-ctas { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.6s var(--suave); }
  .menu-movil.abierto .enlace, .menu-movil.abierto .menu-ctas { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 50ms); }
  html.menu-abierto { overflow: hidden; }
}
@media (max-width: 640px) { .menu-movil { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 370px) { .acciones-barra .btn.chico { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid var(--fg); white-space: nowrap; transition: transform 0.15s, background 0.2s, color 0.2s; }
.btn:active { transform: scale(0.98); }
.btn.lleno { background: var(--fg); color: var(--bg); }
.btn.lleno:hover { opacity: 0.88; }
.btn.borde { background: transparent; }
.btn.borde:hover { background: var(--soft); }
.btn.chico { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Portada ---------- */
.portada { padding: 72px 0 96px; }
.portada .cont { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.portada h1 { margin: 0; font-size: clamp(46px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 700; }
.portada h1 span { display: block; color: var(--muted); }
/* La palabra clave arriba del título ("Rastreo GPS en Paraguay"): chica, como un rótulo. */
.portada h1 small { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.portada p { margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 520px; }
.portada .ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.datos { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.datos span { display: inline-flex; align-items: center; gap: 8px; }
.datos span::before { content: ''; width: 14px; height: 1px; background: var(--muted); }
@media (max-width: 900px) {
  .portada { padding: 40px 0 72px; }
  .portada .cont { grid-template-columns: 1fr; gap: 44px; }
}

.lienzo { position: relative; aspect-ratio: 6 / 5.4; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; background: var(--bg); }
.lienzo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lienzo .grilla { stroke: var(--line); stroke-width: 1; }
.lienzo .manzana { fill: var(--soft); }
.lienzo .calle { stroke: var(--line); stroke-width: 10; stroke-linecap: round; fill: none; }
.lienzo .ruta { stroke: var(--fg); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: dibujar 3.2s cubic-bezier(0.6, 0, 0.2, 1) 0.3s forwards; }
.lienzo .inicio { fill: var(--bg); stroke: var(--fg); stroke-width: 3; }
.lienzo .punto { fill: var(--marca); }
.lienzo .halo { fill: var(--marca); opacity: 0.18; transform-box: fill-box; transform-origin: center; animation: latir 1.8s ease-out infinite; }
@keyframes dibujar { to { stroke-dashoffset: 0; } }
@keyframes latir { from { transform: scale(0.6); opacity: 0.25; } to { transform: scale(1.8); opacity: 0; } }
.etq { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06); }
.etq b { font-weight: 600; }
.etq .gris { color: var(--muted); }
.etq.arriba { top: 18px; left: 18px; }
.etq.abajo { bottom: 18px; right: 18px; left: 18px; justify-content: space-between; padding: 14px 16px; }
.etq.abajo .col { display: flex; flex-direction: column; gap: 2px; }
.etq.abajo small { font-size: 11px; color: var(--muted); }
.vivo { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--fg); }

/* ---------- Secciones ---------- */
.seccion { padding: 104px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .seccion { padding: 72px 0; } }
.titulo { max-width: 760px; }
.titulo small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.titulo h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.titulo p { margin: 18px 0 0; font-size: 18px; color: var(--muted); }

/* Vehículos */
.tipos { margin-top: 48px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.tipo { aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.tipo svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tipo:hover { border-color: var(--fg); }
.tipo[aria-selected='true'] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 900px) {
  .tipos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -16px; margin-right: -16px; padding: 0 16px; scrollbar-width: none; }
  .tipos::-webkit-scrollbar { display: none; }
  .tipo { flex: none; width: 104px; scroll-snap-align: start; }
}
.detalle { margin-top: 16px; border: 1px solid var(--line); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.detalle h3 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.detalle .lead { margin: 16px 0 0; font-size: 17px; color: var(--muted); }
.detalle ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.detalle li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; }
.detalle li:last-child { border-bottom: 1px solid var(--line); }
.detalle li .n { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.detalle .anim { animation: aparecer 0.45s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .detalle { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } }

/* Funciones */
.funciones { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.funcion { padding: 34px 30px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.funcion .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.funcion h3 { margin: 8px 0 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.funcion p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .funciones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .funciones { grid-template-columns: 1fr; } .funcion { padding: 26px 22px; } }

/* App */
.app-sec .cont { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .app-sec .cont { grid-template-columns: 1fr; gap: 48px; } }
.telefono { width: min(320px, 82vw); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 44px; border: 10px solid var(--fg); background: var(--bg); padding: 22px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12); }
.tel-cab { display: flex; justify-content: space-between; align-items: center; }
.tel-cab b { font-size: 18px; letter-spacing: -0.02em; }
.tel-pill { font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; }
.tel-mapa { flex: 1; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); position: relative; overflow: hidden; }
.tel-mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tel-mapa .c { stroke: var(--line); stroke-width: 9; fill: none; }
.tel-mapa .r { stroke: var(--fg); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.tel-mapa .h { fill: var(--fg); opacity: 0.12; }
.tel-mapa .p { fill: var(--fg); }
.tel-fila { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.tel-fila small { display: block; color: var(--muted); font-size: 11px; }
.tel-sw { width: 40px; height: 24px; border-radius: 999px; background: var(--fg); position: relative; flex: none; }
.tel-sw::after { content: ''; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.tel-acc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tel-acc span { border: 1px solid var(--line); border-radius: 14px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 600; }
.tel-acc .ic { width: 16px; height: 16px; }

/* Pasos */
.pasos { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.paso { padding: 34px 30px; border-radius: 26px; border: 1px solid var(--line); }
.paso .num { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.paso h3 { margin: 26px 0 8px; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.paso p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .pasos { grid-template-columns: 1fr; } }

/* Precios */
/* Una sola fila que se desliza a la derecha, con flechas y barra de avance debajo. */
.planes-marco { position: relative; margin-top: 56px; }
.planes-marco::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 72px; background: linear-gradient(to right, transparent, var(--bg)); pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.planes-marco.hay-mas::after { opacity: 1; }
.planes { display: grid; grid-auto-flow: column; grid-auto-columns: 272px; column-gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 288px; scrollbar-width: none; }
.planes::-webkit-scrollbar { display: none; }
.plan { position: relative; scroll-snap-align: start; padding: 34px 30px; border-radius: 26px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.plan:nth-child(2) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.plan:nth-child(2) .gris { color: var(--bg); color: color-mix(in srgb, var(--bg) 62%, var(--fg)); }
.plan:nth-child(2) .btn { border-color: var(--bg); background: var(--bg); color: var(--fg); }
.plan h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.plan .precio { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .precio small { font-size: 15px; font-weight: 500; letter-spacing: 0;; white-space: nowrap; }
@media (max-width: 420px) { .plan .precio { font-size: 35px; } }
.plan .contrato { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.plan .contrato:hover { text-decoration: underline; text-underline-offset: 3px; }
.plan .contrato .ic { width: 18px; height: 18px; }
.plan .f, .plan .resumen { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan .f .ic, .plan .resumen .ic { width: 18px; height: 18px; margin-top: 2px; }
.plan .f.no { color: var(--muted); }
.plan:nth-child(2) .f.no { color: inherit; opacity: 0.5; }
.plan .btn { margin-top: 14px; }
/* Las funciones se nombran una vez por fila: en las demás tarjetas queda solo el tilde (el nombre sigue para lectores de pantalla). */
.plan:not(.con-nombres) .f-txt, .plan .oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan > div:empty, .plan .resumen { display: none; }
.plan.resumida .f { display: none; }
.plan.resumida .resumen { display: flex; }
/* Compu: todas comparten las filas (subgrid), así cada tilde queda a la altura de su nombre; la primera tarjeta
   (la de los nombres) queda fija a la izquierda y las demás pasan por debajo. */
.planes:not(.angosto) .plan { display: grid; grid-row: 1 / span var(--filas, 12); grid-template-rows: subgrid; row-gap: 12px; }
.planes:not(.angosto) .plan > div:empty { display: block; }
.planes:not(.angosto) .plan.con-nombres { grid-column: 1; position: sticky; left: 0; z-index: 2; }
/* Franja fija detrás de la primera tarjeta (tapa sus esquinas redondeadas y el espacio hasta la siguiente). */
.planes:not(.angosto)::before { content: ''; grid-column: 1; grid-row: 1 / span var(--filas, 12); position: sticky; left: 0; z-index: 1; width: 288px; background: var(--bg); transition: box-shadow 0.3s; }
.planes.corrido:not(.angosto)::before { box-shadow: 20px 0 24px -20px rgba(0, 0, 0, 0.35); }
/* Celular: tarjetas casi a todo el ancho, la siguiente se asoma por el borde. */
.planes.angosto { grid-auto-columns: min(84%, 340px); scroll-padding-left: 16px; margin: 0 -16px; padding: 0 16px; }
.planes.angosto .plan .btn { margin-top: auto; }
.planes-incluyen { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.planes-incluyen h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.planes-incluyen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.planes-incluyen li { display: flex; gap: 10px; align-items: flex-start; }
.planes-incluyen .ic { width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 640px) { .planes-marco::after { right: -16px; width: 48px; } }
.planes-nav { margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.planes-progreso { position: relative; flex: 1; height: 2px; margin-right: 14px; border-radius: 2px; background: var(--line); overflow: hidden; }
.planes-progreso span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 2px; background: var(--fg); transition: left 0.15s linear; }
.planes-flecha { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: border-color 0.2s, opacity 0.2s; }
.planes-flecha:hover:not(:disabled) { border-color: var(--fg); }
.planes-flecha:disabled { opacity: 0.3; cursor: default; }
.planes-flecha.atras .ic { transform: scaleX(-1); }
.planes-nav.empuja #planes-adelante { border-color: var(--fg); }
.planes-nav.empuja #planes-adelante .ic { animation: empujar 1.3s var(--suave) infinite; }
@keyframes empujar { 0%, 100% { transform: translateX(-2px); } 45% { transform: translateX(4px); } }
.gris { color: var(--muted); }
.nota-planes { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.nota-planes a, .preguntas details p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.consulta { margin-top: 48px; padding: 40px; border-radius: 26px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.consulta p { margin: 0; font-size: 20px; letter-spacing: -0.01em; max-width: 560px; }

/* Instalar */
.instalar-caja { border-radius: 32px; background: var(--inv-bg); color: var(--inv-fg); padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.instalar-caja h2 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.instalar-caja p { margin: 18px 0 0; font-size: 17px; opacity: 0.72; }
.instalar-caja .btn { border-color: var(--inv-fg); background: var(--inv-fg); color: var(--inv-bg); }
.instalar-caja .lado { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.instalar-caja .plataformas { font-size: 13px; opacity: 0.65; }
@media (max-width: 900px) { .instalar-caja { grid-template-columns: 1fr; padding: 40px 26px; } }

/* Preguntas */
.preguntas { margin-top: 48px; border-top: 1px solid var(--line); }
.preguntas details { border-bottom: 1px solid var(--line); }
.preguntas summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary .ic { transition: transform 0.25s; margin-top: 3px; }
.preguntas details[open] summary .ic { transform: rotate(45deg); }
.preguntas details p { margin: -8px 0 26px; color: var(--muted); font-size: 16px; max-width: 760px; }

/* Cierre y pie */
.cierre { padding: 120px 0; text-align: center; border-top: 1px solid var(--line); }
.cierre h2 { margin: 0 auto; max-width: 900px; font-size: clamp(40px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.05em; }
.cierre .ctas { margin-top: 40px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pie { border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 14px; color: var(--muted); }
.pie a:hover { color: var(--fg); }
.pie-arriba { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.pie-marca p { margin: 18px 0 22px; max-width: 320px; line-height: 1.55; }
.pie-col { display: flex; flex-direction: column; align-items: flex-start; }
.pie-col h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--fg); }
.pie-col a, .pie-lugar { padding: 7px 0; } /* área de toque cómoda en el celular */
.pie-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.pie-wa .ic { width: 18px; height: 18px; }
.pie-abajo { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 13px; }
.pie-flex { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.pie-flex b { color: var(--fg); font-weight: 600; }
.pie-flex:hover { border-color: var(--fg); }
@media (max-width: 900px) { .pie-arriba { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pie-marca { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .pie { padding-top: 56px; }
  .pie-arriba { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .pie-abajo { flex-direction: column; align-items: flex-start; }
}

/* Aparecer al bajar */
.revelar { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 0.8s var(--suave), transform 1s var(--suave), filter 0.8s var(--suave); }
.revelar[data-desde='arriba'] { transform: translateY(-40px); }
.revelar.zoom { transform: translateY(48px) scale(0.92); }
.revelar.zoom[data-desde='arriba'] { transform: translateY(-48px) scale(0.92); }
.revelar.visible { opacity: 1; transform: none; filter: none; }
/* En las grillas cada elemento entra un poco después del anterior (--i lo pone landing.js). Con animación y no con
   transición, para no pisar las transiciones propias de cada elemento. */
.escalonado:not(.visible) > * { opacity: 0; }
.escalonado.visible > * { animation: subir 0.9s var(--suave) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.escalonado.visible[data-desde='arriba'] > * { animation-name: bajar; }
@keyframes subir { from { opacity: 0; transform: translateY(40px) scale(0.97); } }
@keyframes bajar { from { opacity: 0; transform: translateY(-40px) scale(0.97); } }
/* Profundidad: la portada y el teléfono se corren apenas al hacer scroll (--prof lo pone landing.js). */
.portada .lienzo { translate: 0 var(--prof, 0); }
.telefono.visible { translate: 0 var(--prof, 0); }
.portada h1, .portada h1 span, .portada p, .portada .ctas, .portada .datos { animation: entrar 1s var(--suave) backwards; }
.portada h1 span { animation-delay: 0.12s; }
.portada p { animation-delay: 0.22s; }
.portada .ctas { animation-delay: 0.32s; }
.portada .datos { animation-delay: 0.42s; }
.portada .lienzo { animation: entrar-lienzo 1.2s var(--suave) 0.2s backwards; }
@keyframes entrar { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } }
@keyframes entrar-lienzo { from { opacity: 0; transform: translateY(40px) scale(0.94); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revelar, .revelar.zoom { opacity: 1; transform: none; filter: none; transition: none; }
  .escalonado > *, .escalonado.visible > *, .portada h1, .portada h1 span, .portada p, .portada .ctas, .portada .datos, .portada .lienzo { opacity: 1; animation: none; }
  .planes-nav.empuja #planes-adelante .ic { animation: none; }
  .lienzo .ruta { animation: none; stroke-dashoffset: 0; }
  .lienzo .halo, .detalle .anim { animation: none; }
  .portada .lienzo, .telefono.visible { translate: none; }
}

/* Condiciones y privacidad (/condiciones) */
.lg { padding: 64px 0 96px; }
.lg .cont { max-width: 820px; }
.lg h1 { margin: 0; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.045em; }
.lg-fecha { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.lg-resumen { margin-top: 40px; padding: 30px 32px; border-radius: 26px; background: var(--inv-bg); color: var(--inv-fg); }
.lg-resumen h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.01em; }
.lg .lg-resumen li::marker { color: inherit; }
.lg-indice { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-indice a { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.lg-indice a:hover { color: var(--fg); border-color: var(--fg); }
.lg-parte { margin: 72px 0 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.035em; line-height: 1.05; }
.lg section, .lg-parte { scroll-margin-top: 84px; }
.lg h3 { margin: 40px 0 12px; font-size: 21px; letter-spacing: -0.015em; display: flex; gap: 12px; align-items: baseline; }
.lg h3 span { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg section p { margin: 0 0 12px; }
.lg section ul, .lg section ol { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.lg section li::marker { color: var(--muted); }
.lg-ejemplo { padding: 16px 20px; border-radius: 16px; background: var(--soft); font-size: 15px; }
.lg-contacto { margin-top: 64px; padding: 32px; border-radius: 26px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.lg-contacto p { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
@media (max-width: 640px) { .lg { padding-top: 40px; } .lg-resumen, .lg-contacto { padding: 24px 20px; } }

/* Pedí el tuyo: tres pasos cortos en una hoja (abajo en el celular, centrada en la compu) */
html.pd-abierto { overflow: hidden; }
.pd-fondo { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0); transition: background 0.3s ease; }
.pd-fondo.visible { background: rgba(0, 0, 0, 0.55); }
.pd-caja { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 28px; padding: 0 32px 28px; opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.3s ease, transform 0.45s var(--suave); }
.pd-fondo.visible .pd-caja { opacity: 1; transform: none; }
/* Arriba, siempre a la vista: volver, avance y cerrar */
.pd-cab { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin: 0 -32px 22px; padding: 18px 18px 14px 32px; background: var(--bg); }
.pd-atras, .pd-cerrar { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; transition: border-color 0.2s; }
.pd-atras .ic { transform: rotate(180deg); }
.pd-cerrar { margin-left: auto; }
.pd-progreso { flex: 1; max-width: 168px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pd-progreso i { height: 4px; border-radius: 4px; background: var(--line); transition: background 0.35s ease; }
.pd-progreso i.hecho { background: var(--fg); }
.pd-cuenta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-caja.listo .pd-progreso, .pd-caja.listo .pd-cuenta, .pd-caja.listo .pd-atras { visibility: hidden; }
@media (hover: hover) { .pd-atras:hover, .pd-cerrar:hover { border-color: var(--fg); } }
.pd-caja h2 { margin: 0; font-size: clamp(26px, 4vw, 30px); line-height: 1.1; letter-spacing: -0.035em; }
.pd-caja h2:focus { outline: none; }
.pd-nota { margin: -6px 0 2px; font-size: 15px; color: var(--muted); }
.pd-plan { align-self: flex-start; margin: 0 0 2px; padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 13px; color: var(--muted); }
.pd-plan b { color: var(--fg); font-weight: 600; }
#form-pedido { display: flex; flex-direction: column; gap: 16px; }
.pd-paso { display: flex; flex-direction: column; gap: 16px; min-width: 0; animation: pd-entra 0.4s var(--suave) both; }
@keyframes pd-entra { from { opacity: 0; transform: translateX(14px); } }
.pd-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-campo > span { font-size: 13px; font-weight: 600; }
.pd-campo input, .pd-campo select { height: 50px; width: 100%; min-width: 0; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); color: var(--fg); font: inherit; font-size: 16px; transition: border-color 0.2s; }
.pd-campo input::placeholder { color: var(--muted); opacity: 0.7; }
.pd-campo input:focus, .pd-campo select:focus { outline: none; border-color: var(--fg); }
/* Departamento y ciudad: listas desplegables con la flecha propia (la del sistema no combina con el modo noche). */
.pd-campo select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.pd-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* El vehículo: íconos en grilla */
.pd-tipos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pd-tipo { position: relative; min-width: 0; }
.pd-tipo input { position: absolute; opacity: 0; pointer-events: none; }
.pd-tipo span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 78px; padding: 0 4px; border-radius: 16px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pd-tipo svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pd-tipo input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.pd-tipo input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (hover: hover) { .pd-tipo span:hover { border-color: var(--fg); } }
/* Cantidad: menos / número / más */
.pd-cantidad { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; height: 50px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); overflow: hidden; transition: border-color 0.2s; }
.pd-cantidad:focus-within { border-color: var(--fg); }
.pd-cantidad button { border: 0; background: transparent; font-size: 22px; font-weight: 400; line-height: 1; }
.pd-cantidad button:disabled { opacity: 0.25; cursor: default; }
.pd-campo .pd-cantidad input { height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-ayuda { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.pd-trampa { display: none !important; }
.pd-error { margin: 0; min-height: 0; font-size: 14px; color: #e5484d; }
.pd-error:empty { display: none; }
.pd-enviar { width: 100%; margin-top: 4px; }
.pd-enviar:disabled { opacity: 0.6; }
.pd-legal { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.pd-legal a { text-decoration: underline; text-underline-offset: 2px; }
.pd-listo { text-align: center; padding: 8px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pd-listo h2 { margin: 6px 0 0; }
.pd-listo p { margin: 0 0 10px; color: var(--muted); max-width: 380px; }
.pd-tilde { width: 64px; height: 64px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; animation: pd-aparece 0.5s var(--suave) both; }
.pd-tilde .ic { width: 30px; height: 30px; stroke-width: 2.2; }
@keyframes pd-aparece { from { transform: scale(0.6); opacity: 0; } }
@media (max-width: 640px) {
  .pd-fondo { align-items: flex-end; padding: 0; }
  .pd-caja { max-width: none; max-height: 94dvh; border-radius: 26px 26px 0 0; border-bottom: 0; padding: 0 16px max(24px, env(safe-area-inset-bottom)); transform: translateY(100%); }
  .pd-cab { margin: 0 -16px 18px; padding: 14px 12px 12px 16px; }
  .pd-tipo span { height: 74px; font-size: 12px; }
  .pd-tipo svg { width: 32px; height: 32px; }
}
@media (max-width: 360px) { .pd-dos { grid-template-columns: 1fr; } .pd-tipo span { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .pd-caja, .pd-fondo { transition: none; } .pd-paso { animation: none; } }

/* Redes y WhatsApp (pie y menú del celular) */
.redes { display: flex; gap: 10px; }
.redes a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg); transition: background 0.2s, border-color 0.2s; }
.redes a:hover { background: var(--soft); border-color: var(--fg); }
.menu-redes { justify-content: center; margin-bottom: 10px; }
.menu-redes a { width: 48px; height: 48px; }

/* La casa en el mapa: la aguja queda en el medio y se mueve el mapa */
.pd-mapa { position: relative; height: 240px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); z-index: 0; }
.pd-mapa .leaflet-container, .pd-mapa.leaflet-container { font: inherit; }
.pd-aguja { position: absolute; left: 50%; top: 50%; z-index: 500; width: 34px; height: 44px; margin: -44px 0 0 -17px; pointer-events: none; transition: transform 0.2s var(--suave); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.pd-aguja path { fill: #0570f9; stroke: #ffffff; stroke-width: 2; }
.pd-aguja circle { fill: #ffffff; }
.pd-aguja.levantada { transform: translateY(-10px); }
.pd-sombra { position: absolute; left: 50%; top: 50%; z-index: 499; width: 12px; height: 5px; margin: -2px 0 0 -6px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); pointer-events: none; }
.pd-mapa .leaflet-tile-pane { filter: grayscale(1) contrast(1.06) brightness(1.03); }
html[data-tema='oscuro'] .pd-mapa .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) grayscale(1) brightness(0.88) contrast(0.92); }
.pd-mapa .leaflet-bar { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.pd-mapa .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); font-weight: 400; }
.pd-mapa .leaflet-bar a:last-child { border-bottom: 0; }
.pd-mapa .leaflet-control-attribution { background: transparent; color: var(--muted); font-size: 10px; }
.pd-mapa .leaflet-control-attribution a { color: var(--muted); }
.pd-gps { position: absolute; right: 10px; bottom: 26px; z-index: 600; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--fg); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.pd-gps.buscando .ic { color: #0570f9; animation: pd-gps 1.2s ease-in-out infinite; }
@keyframes pd-gps { 50% { opacity: 0.35; } }
.pd-ubic-estado { margin: 0; font-size: 13px; color: var(--muted); font-weight: 400; }
.pd-ubic-estado.ok { color: var(--fg); font-weight: 600; }
.pd-ubic-estado.mal { color: #d93025; font-weight: 600; }
.pd-gps .ic { width: 20px; height: 20px; }
.etq b.num { font-variant-numeric: tabular-nums; }
/* Sin la línea finita entre los cuadros del mapa (se ve con el filtro de grises) */
.pd-mapa .leaflet-tile { width: 257px !important; height: 257px !important; }
