/* ==========================================================================
   Streetly · streetly.net
   Tokens alineados con la app: fondo neutro, azul de marca #0163B9,
   azul suave #D8E2FF, radios generosos y modo oscuro automático.
   ========================================================================== */

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --ink: #1a1d21;
  --ink-2: #5b6472;
  --line: #e2e6ee;

  --brand: #0163b9;          /* rellenos, carretera, botones */
  --brand-text: #0163b9;     /* texto/enlaces de marca */
  --on-brand: #ffffff;
  --tint: #d8e2ff;           /* mismo azul suave que los campos de la app */
  --tint-ink: #001a41;

  --green: #1f8f5f;
  --violet: #6d4fd1;
  --amber: #b86e00;

  --bezel: #10141b;
  --phone-shadow: rgba(1, 40, 90, 0.42);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1118;
    --surface: #151b25;
    --ink: #edf0f5;
    --ink-2: #a2abb9;
    --line: #252d3a;

    --brand-text: #8fc0f7;
    --tint: #10315a;
    --tint-ink: #d3e5ff;

    --green: #4cc38a;
    --violet: #a48cf2;
    --amber: #e8a13a;

    --bezel: #2b3343;
    --phone-shadow: rgba(0, 0, 0, 0.6);
  }
  :root:not([data-theme="light"]) .brand img,
  :root:not([data-theme="light"]) .footer__brand img { filter: brightness(1.45) saturate(0.85); }
}


/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 90%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brand-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: var(--radius-s); text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 650;
  font-stretch: 92%;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; }

p { margin: 0; }
.lede { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--ink-2); max-width: 46ch; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  border: 0;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: #014c93; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand-text); color: var(--brand-text); }
.btn--soon {
  background: var(--tint); color: var(--tint-ink); cursor: default;
}
.btn--sm { padding: 0.6rem 1rem; font-size: 0.95rem; border-radius: 12px; }

/* ---------- Cabecera ---------- */

.site-header { position: relative; z-index: 5; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand img { width: 42px; height: 42px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 32px); }
.nav__links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(24px, 4vw, 48px) clamp(96px, 12vw, 170px);
}

.hero__copy { display: grid; gap: 28px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* La carretera: el elemento memorable de la página. Nace en un pin y se dibuja. */
.road {
  position: absolute; left: 0; bottom: -2px; width: 100%; height: auto;
  z-index: -1; pointer-events: none;
}
.road-body { fill: none; stroke: var(--brand); stroke-width: 34; stroke-linecap: round; }
.road-dash { fill: none; stroke: #fff; stroke-opacity: 0.92; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 18; }
.road-reveal {
  fill: none; stroke: #fff; stroke-width: 70; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw-road 2.6s cubic-bezier(0.55, 0.05, 0.25, 1) 0.35s forwards;
}
.road-pin { fill: var(--brand); opacity: 0; animation: pin-in 0.55s ease-out 0.05s forwards; }
.road-pin-eye { fill: var(--bg); }

@keyframes draw-road { to { stroke-dashoffset: 0; } }
@keyframes pin-in {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Móvil con el timeline de la app */
.hero__device { display: grid; justify-items: center; position: relative; }

.phone {
  position: relative;
  width: min(318px, 78vw);
  aspect-ratio: 9 / 16.6;
  border-radius: 46px;
  padding: 10px;
  background: var(--bezel);
  box-shadow: 0 50px 90px -34px var(--phone-shadow), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.screen {
  height: 100%;
  border-radius: 37px;
  background: var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 22px 16px 16px;
  gap: 14px;
}
.screen__head { display: grid; gap: 2px; }
.screen__place { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.screen__meta { font-size: 0.78rem; color: var(--ink-2); }

.days { display: flex; gap: 6px; }
.days span {
  font-size: 0.74rem; font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.days span.is-on { background: var(--tint); color: var(--tint-ink); box-shadow: none; }

.tl { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; align-content: start; }
.tl li {
  display: grid; grid-template-columns: 38px 16px 1fr; column-gap: 8px;
  padding-bottom: 12px; position: relative;
}
.tl .t { font-size: 0.72rem; color: var(--ink-2); padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl .n { position: relative; }
.tl .n::before {
  content: ""; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--surface); border: 3.5px solid var(--c, var(--brand));
}
.tl li:not(:last-child) .n::after {
  content: ""; position: absolute; left: 50%; top: 22px; bottom: -12px;
  width: 0; border-left: 2px dashed var(--line); transform: translateX(-50%);
}
.tl .c { background: var(--bg); border-radius: 12px; padding: 7px 10px; display: grid; gap: 1px; }
.tl .c b { font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.tl .c small { font-size: 0.68rem; color: var(--ink-2); }

.budget { margin-top: auto; display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.budget__row { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--ink-2); }
.budget__row b { color: var(--ink); font-weight: 600; }
.budget__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.budget__bar i { display: block; height: 100%; width: 62%; border-radius: inherit; background: var(--brand); }

.mode-chip {
  position: absolute; left: -46px; bottom: 122px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 12px 8px 14px;
  font-size: 0.82rem; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(1, 40, 90, 0.35), 0 0 0 1px var(--line);
  z-index: 2;
}
.mode-chip i {
  width: 34px; height: 20px; border-radius: 999px; background: var(--brand); position: relative;
}
.mode-chip i::after {
  content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
}
.device-note { margin-top: 14px; font-size: 0.8rem; color: var(--ink-2); }

/* ---------- Secciones ---------- */

.section { padding-block: clamp(36px, 5vw, 60px); }
.section--line { border-top: 1px solid var(--line); }

/* Funciones: índice con líneas finas, no rejilla de tarjetas */
.features {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 7vw, 104px);
}
.features__intro { position: sticky; top: 32px; align-self: start; display: grid; gap: 20px; }

.feature-list { border-bottom: 1px solid var(--line); }
.feature {
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding-block: 18px; border-top: 1px solid var(--line);
}
.feature svg {
  width: 30px; height: 30px; margin-top: 2px;
  fill: none; stroke: var(--brand-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); max-width: 52ch; }
.tag {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0;
  padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--tint); color: var(--tint-ink);
}

/* Cómo funciona: sí es una secuencia, se dibuja como ruta con nodos */
.steps {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 7vw, 104px); align-items: start;
}
.steps__intro { display: grid; gap: 20px; }
.route { list-style: none; margin: 0; padding: 0; }
.route li { position: relative; padding: 0 0 44px 64px; }
.route li:last-child { padding-bottom: 0; }
.route li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 7px solid var(--brand);
}
.route li:not(:last-child)::after {
  content: ""; position: absolute; left: 12.5px; top: 40px; bottom: 6px;
  border-left: 3px dashed var(--brand); opacity: 0.5;
}
.route h3 { margin-bottom: 6px; }
.route p { color: var(--ink-2); max-width: 46ch; }

/* Idiomas */
.langs-block { display: grid; gap: 28px; }
.langs {
  display: flex; flex-wrap: wrap; gap: 0.3rem 2.4rem;
  font-family: var(--font-display); font-weight: 600; font-stretch: 90%;
  font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.25;
}

/* Planes */
.plans-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 60ch; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px; border-radius: var(--radius-l);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.plan h3 { font-size: 1.35rem; }
.plan__price { display: grid; gap: 2px; }
.plan__amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan__amount small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: 0.75; }
.plan__alt { font-size: 0.92rem; opacity: 0.8; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 17px; height: 17px;
  background: var(--brand-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan--featured { background: var(--brand); color: #fff; box-shadow: none; }
.plan--featured h3 { color: #fff; }
.plan--featured li::before { background: #fff; }
.plans-note { margin-top: 24px; font-size: 0.9rem; color: var(--ink-2); max-width: 70ch; }

/* Web próximamente */
.soon-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-l);
  background: var(--tint); color: var(--tint-ink);
}
.soon-band h2 { color: var(--tint-ink); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.soon-band p { max-width: 52ch; opacity: 0.88; }
.soon-band .btn--primary { background: var(--tint-ink); color: var(--tint); }


/* ---------- Encabezado de sección en fila ---------- */

.head-row { display: grid; gap: 10px; margin-bottom: clamp(18px, 2.6vw, 28px); max-width: 60ch; }

/* ---------- Itinerario + mapa ---------- */

.appframe {
  display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  border-radius: var(--radius-l); overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px var(--phone-shadow);
}
.appframe__list { padding: 24px; display: grid; gap: 18px; align-content: start; }
.appframe__top { display: grid; gap: 2px; }
.appframe__top b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.appframe__top span { font-size: 0.85rem; color: var(--ink-2); }

.stops { list-style: none; margin: 0; padding: 0; display: grid; }
.stops li:not(.leg) { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: 14px; }
.stops i {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--c); color: #fff; font: 700 0.9rem/1 var(--font-display); font-style: normal;
}
.stops b { display: block; font-weight: 600; line-height: 1.25; }
.stops small { color: var(--ink-2); font-size: 0.82rem; }
.stops .leg { padding: 0 0 0 28px; }
.stops .leg span {
  display: block; position: relative; padding: 7px 0 7px 22px; font-size: 0.78rem; color: var(--ink-2);
}
.stops .leg span::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px dashed var(--line);
}

.appframe__map { width: 100%; height: 100%; min-height: 320px; }
.m-ground { fill: color-mix(in srgb, var(--tint) 30%, var(--surface)); }
.m-water { fill: color-mix(in srgb, var(--brand) 22%, var(--surface)); }
.m-park { fill: color-mix(in srgb, var(--green) 22%, var(--surface)); }
.m-streets path { fill: none; stroke: var(--surface); stroke-width: 9; stroke-linecap: round; }
.m-route-halo { fill: none; stroke: var(--surface); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.m-route { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 11; }
.m-pin circle { fill: var(--c); stroke: var(--surface); stroke-width: 4; }
.m-pin text { fill: #fff; font: 700 15px var(--font-display); }

/* ---------- Destinos ---------- */

.dests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.dests li {
  display: grid; gap: 4px; align-content: start; padding: 18px 24px 22px 0;
  border-bottom: 1px solid var(--line);
}
.dests li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.dests b { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; font-stretch: 90%; letter-spacing: -0.025em; line-height: 1.1; }
.dests span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-text); }
.dests p { margin-top: 8px; color: var(--ink-2); max-width: 34ch; }

/* ---------- Preguntas ---------- */

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 104px); align-items: start; }
.faq__list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 15px; padding-right: 44px; position: relative;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--brand-text); border-bottom: 2px solid var(--brand-text);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); max-width: 56ch; }


/* ---------- Cuenta y redes ---------- */

.nav__auth { display: flex; align-items: center; gap: 8px; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: color 0.15s ease, box-shadow 0.15s ease;
}
.social a:hover { color: var(--brand-text); box-shadow: inset 0 0 0 1.5px var(--brand-text); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social circle[r="0.8"] { fill: currentColor; stroke: none; }

.credits { flex-basis: 100%; font-size: 0.8rem; line-height: 1.5; }
.credits summary { cursor: pointer; }
.credits ul { margin: 8px 0 0; padding-left: 1.1rem; }

.auth { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.auth[hidden] { display: none; }
.auth__backdrop { position: absolute; inset: 0; background: rgba(6, 14, 28, 0.55); }
.auth__panel {
  position: relative; width: min(440px, 100%); max-height: 100%; overflow-y: auto;
  display: grid; gap: 18px; padding: 28px; border-radius: var(--radius-l);
  background: var(--surface); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line);
}
.auth__panel h2 { font-size: 1.7rem; padding-right: 40px; }
.auth__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
}
.auth__close:hover { background: var(--bg); color: var(--ink); }
.auth__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--bg); }
.auth__tabs button {
  padding: 0.65rem 0.5rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2);
  font: 600 0.95rem/1.2 var(--font-body); cursor: pointer;
}
.auth__tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.auth__notice { padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--tint-ink); font-size: 0.9rem; line-height: 1.45; }
.auth form { display: grid; gap: 16px; }
.auth form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 12px; border: 0;
  background: var(--bg); color: var(--ink); font: 1rem/1.3 var(--font-body); box-shadow: inset 0 0 0 1.5px var(--line);
}
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #c0392b; }
.field__hint { font-size: 0.85rem; color: var(--ink-2); }
.field__err { font-size: 0.88rem; color: #c0392b; }
.field--check { grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.field--check label { font-weight: 400; }
.field--check .field__err { grid-column: 1 / -1; }
.auth__submit { width: 100%; }
.auth__result { padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 0.92rem; line-height: 1.45; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Fotos ---------- */

.ph { display: block; overflow: hidden; background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--empty { display: grid; place-items: center; color: var(--brand-text); }
.ph--empty svg { width: 28%; max-width: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.stops .ph { width: 52px; height: 52px; border-radius: 12px; }
.stops li:not(.leg) { grid-template-columns: 32px 52px 1fr; }
.dests .ph { aspect-ratio: 4 / 3; border-radius: var(--radius-m); margin-bottom: 14px; }
.dests .ph--empty svg { width: 12%; max-width: 44px; }

/* ---------- Pie ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--ink-2); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.footer__brand img { width: 30px; height: 30px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--ink-2); }

/* ---------- Página de privacidad ---------- */

.doc { padding-block: clamp(40px, 7vw, 88px) clamp(72px, 10vw, 128px); }
.doc__inner { max-width: 72ch; margin-inline: auto; display: grid; gap: 22px; }
.doc h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 4px; }
.doc h2 { font-size: 1.35rem; margin-top: 28px; letter-spacing: -0.02em; }
.doc ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.doc .meta { color: var(--ink-2); font-size: 0.95rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; width: 34%; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; padding-bottom: clamp(140px, 30vw, 240px); }
  .hero__device { margin-top: 12px; }
  .features, .steps, .faq { grid-template-columns: 1fr; }
  .appframe { grid-template-columns: 1fr; }
  .appframe__map { min-height: 0; aspect-ratio: 560 / 420; }
  .dests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dests li, .dests li:not(:nth-child(3n+1)) { padding: 24px 20px 28px 0; border-left: 0; }
  .dests li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .features__intro { position: static; }
  .plans { grid-template-columns: 1fr; }
  .soon-band { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (max-width: 640px) {
  .site-header .btn--soon { display: none; }
}
@media (max-width: 420px) {
  .nav__login { display: none; }
}

@media (max-width: 520px) {
  .dests { grid-template-columns: 1fr; }
  .dests li, .dests li:nth-child(2n) { padding: 22px 0 26px; border-left: 0; }
  .appframe__list { padding: 16px; }
  .mode-chip { left: -10px; bottom: 112px; }
  .phone { border-radius: 40px; }
  .screen { border-radius: 31px; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .road-reveal { animation: none; stroke-dashoffset: 0; }
  .road-pin { animation: none; opacity: 1; }
}

/* Aviso de cookies necesarias */
.consent { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: 720px; margin-inline: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 18px; background: var(--surface, #fff); color: var(--ink); border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18), inset 0 0 0 1px var(--line); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; font-size: .92rem; }

/* Selector de idioma */
.lang-switch { font-weight: 600; letter-spacing: .04em; min-width: 44px; }

/* ===== Sitio multipágina ===== */
h1.as-h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 650; font-stretch: 92%; line-height: 1.06; letter-spacing: -0.028em; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-block: 12px; }
.brand img { width: 38px; height: 38px; }
.nav__links a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--brand); }
.nav__cta { white-space: nowrap; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; border-radius: 16px; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mnav__panel { position: absolute; right: 0; top: 52px; min-width: 230px; display: grid; gap: 2px; padding: 8px; background: var(--bg); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.2), inset 0 0 0 1px var(--line); }
.mnav__panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mnav__panel a:hover, .mnav__panel a[aria-current="page"] { background: var(--tint); color: var(--tint-ink); }
@media (max-width: 960px) { .mnav { display: block; } }
@media (max-width: 520px) { .nav__login { display: none; } .nav { gap: 8px; } .site-header .wrap { gap: 10px; } .brand { font-size: 1.2rem; } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); min-width: 168px; opacity: .92; cursor: default; }
.store__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.store__soon { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.store--img { background: transparent; padding: 0; min-width: 0; position: relative; }
.store--img img { height: 48px; width: auto; display: block; filter: grayscale(.35); opacity: .75; }
.store--img .store__soon { color: var(--ink-2); padding-left: 2px; }

.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.page-band { padding-block: clamp(40px, 7vw, 80px) 0; }
.explore { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.explore a { display: grid; gap: 8px; height: 100%; padding: 22px; border-radius: 18px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.explore a:hover { box-shadow: inset 0 0 0 1.5px var(--brand-text); }
.explore b { font-family: var(--font-display); font-size: 1.1rem; }
.explore span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 960px) { .explore { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .explore { grid-template-columns: 1fr; } }

.news { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.news li { display: grid; }
.news a { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); }
.news .ph, .art-hero .ph { display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; }
.news .ph img, .art-hero .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news h3 { font-size: 1.15rem; }
.news p { color: var(--ink-2); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news .src { font-size: .78rem; color: var(--ink-2); opacity: .75; -webkit-line-clamp: 2; }
.news .kicker, .art .kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); font-weight: 600; }
.news a:hover h3 { color: var(--brand-text); }
@media (max-width: 960px) { .news { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) {
  .news { grid-template-columns: 1fr; gap: 20px; }
  .news a { grid-template-columns: 96px 1fr; column-gap: 14px; row-gap: 4px; }
  .news .ph { grid-column: 1; grid-row: 1 / span 4; aspect-ratio: 1 / 1; border-radius: 12px; align-self: start; }
  .news .kicker { grid-column: 2; }
  .news h3 { grid-column: 2; font-size: 1.05rem; line-height: 1.25; }
  .news p { grid-column: 2; -webkit-line-clamp: 2; font-size: .9rem; }
  .news .src { grid-column: 2; }
}

.art { max-width: 72ch; margin-inline: auto; display: grid; gap: 20px; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 9vw, 110px); }
.art h1 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); line-height: 1.05; }
.art h2 { font-size: 1.4rem; margin-top: 18px; letter-spacing: -.02em; }
.art .meta { color: var(--ink-2); font-size: .92rem; }
.art p, .art li { font-size: 1.02rem; line-height: 1.65; }
.art ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.art-hero { margin-block: 6px; }
.art-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 22px; border-radius: 18px; background: var(--tint); color: var(--tint-ink); margin-top: 12px; }
.art-cta p { flex: 1 1 260px; font-weight: 600; }
.art-cta .btn--primary { background: var(--tint-ink); color: var(--tint); }
.related { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; list-style: none; margin: 0; }
.credits-line { flex-basis: 100%; font-size: .8rem; color: var(--ink-2); }
.site-footer .footer__stores { flex-basis: 100%; font-size: .85rem; color: var(--ink-2); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.nav__links a, .nav .btn { white-space: nowrap; }
.nav__links { gap: clamp(12px, 1.8vw, 26px); }
@media (max-width: 1120px) { .nav__links { display: none; } .mnav { display: block; } }
.mnav__panel .mlang { border-top: 1px solid var(--line); margin-top: 4px; color: var(--ink-2); }
@media (max-width: 520px) { .nav__auth .lang-switch { display: none; } }
@media (min-width: 521px) { .mnav__panel .mlang { display: none; } }
.art-hero .ph { margin-inline: auto; }

/* ===== Bloques de relleno ===== */
.ph--tile { display: grid; place-items: center; color: #fff; }
.tile__in { display: grid; justify-items: center; gap: 8px; padding: 16px; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.tile__in svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tile__in b { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -.02em; }
.region { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 44px 0 20px; }
.region:first-of-type { margin-top: 8px; }
.rt { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px !important; counter-reset: none; }
.rt li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 14px; padding: 14px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 1rem !important; }
.rt li b { font-family: var(--font-display); color: var(--brand-text); }
.rt li span { line-height: 1.5; }
@media (max-width: 520px) { .rt li { grid-template-columns: 1fr; gap: 4px; } }
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.cgrid li { padding: 22px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 8px; align-content: start; }
.cgrid h3 { font-size: 1.08rem; }
.cgrid p { color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.dayline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 640px; border-left: 2px solid var(--line); margin-left: 8px; }
.dayline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 12px; padding: 12px 0 12px 18px; position: relative; }
.dayline li::before { content: ""; position: absolute; left: -7px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.dayline time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand-text); }
.dayline b { display: block; font-family: var(--font-display); }
.dayline span { color: var(--ink-2); font-size: .97rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.chk { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.chk li { padding-left: 26px; position: relative; line-height: 1.5; }
.chk li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-text); font-weight: 700; }
.prose { max-width: 68ch; font-size: 1.02rem; line-height: 1.65; }
.tbl { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.tbl table { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl thead th { font-family: var(--font-display); background: var(--tint); color: var(--tint-ink); }
.tbl tbody th { text-align: left; font-weight: 500; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl thead th:first-child { text-align: left; }
.tbl .yes { color: var(--brand-text); font-weight: 700; }
.tbl .no { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.art-hero .ph--tile { aspect-ratio: 21 / 8; }
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-bottom: 28px; }
.story .h3 { font-size: 1.35rem; margin-bottom: 8px; }
.mailbox { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px; border-radius: 18px; background: var(--tint); color: var(--tint-ink); margin-bottom: 28px; }
.mailbox__addr { font-family: var(--font-display); font-size: clamp(1.15rem, 3vw, 1.7rem); font-weight: 650; overflow-wrap: anywhere; user-select: all; }
.mailbox .btn--primary { background: var(--tint-ink); color: var(--tint); }
.tr-demo { margin-top: 26px; }
.tr-demo summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tr-demo summary::-webkit-details-marker { display: none; }
.tr-demo summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.tr-demo[open] summary svg { transform: rotate(180deg); }
.tr-demo__body { margin-top: 20px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr); align-items: start; }
.tr-demo__text { max-width: 56ch; }
.tr-card { border-radius: 18px; background: var(--tint); padding: 18px; display: grid; gap: 10px; }
.tr-card__row { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tr-card__row--out { background: var(--brand); box-shadow: none; }
.tr-card__row--out p, .tr-card__row--out .tr-card__lang { color: var(--on-brand); }
.tr-card__lang { flex: 0 0 auto; font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); line-height: 1.4; }
.tr-card__row--out .tr-card__lang { box-shadow: none; background: rgba(255,255,255,.22); }
.tr-card__row p { margin: 0; line-height: 1.45; }
.tr-card__mid { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); font-size: .82rem; }
.tr-card__mid svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 760px) { .tr-demo__body { grid-template-columns: 1fr; } }
.aff-line a{color:inherit;text-decoration:underline}

/* ---- Guías: afiliados y huecos de anuncios ---- */
.aff { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.aff h2 { margin: 0; font-size: 1.25rem; }
.aff p { margin: 0; font-size: 1rem; }
.aff__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.aff-inline { font-size: 1rem !important; }
.aff-inline a { font-weight: 600; }
.ad-slot__label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }

.aff__note { margin: 0; font-size: .82rem !important; color: var(--ink-2); }
.aff__note a { color: var(--ink-2); }

/* Vídeo de presentación */
.vid { margin: 28px 0 0; max-width: 640px; }
.vid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: #0a254a; border: 1px solid var(--line); }
.vid figcaption { margin-top: 10px; }
.vid-txt { max-width: 640px; margin: 14px 0 0; color: var(--ink-2); }
.vid-txt summary { cursor: pointer; font-weight: 600; color: var(--brand-text); }
.vid-txt p { margin-top: 10px; line-height: 1.6; }

/* Presupuesto: ilustración */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.bcard { background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: 0 18px 48px -24px rgba(10,37,74,.35), inset 0 0 0 1.5px var(--line); display: grid; gap: 14px; max-width: 460px; }
.bcard__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); }
.bcard__top b { font-size: 1.1rem; letter-spacing: -0.01em; }
.bcard__top span { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); }
.bcard__sum { display: flex; align-items: baseline; gap: 8px; }
.bcard__sum strong { font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.03em; }
.bcard__sum span { color: var(--ink-2); }
.bcard__bar { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.bcard__bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.bcard__alert { margin: 0; font-size: .85rem; color: var(--tint-ink); background: var(--tint); padding: 8px 12px; border-radius: 10px; }
.bcard__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bcard__cats li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .9rem; }
.bcard__cats em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.bcard__cats i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.bcard__cats i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brand); border-radius: 999px; opacity: .75; }
.bcard__cur { display: flex; flex-wrap: wrap; gap: 6px; }
.bcard__cur span { font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.bcard__cur span.on { background: var(--brand); color: var(--on-brand); box-shadow: none; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Preguntas: columna de ayuda */
.faq__aside { display: grid; gap: 16px; align-content: start; }
.faq__aside .lede { max-width: 40ch; }
.faq__help { background: var(--tint); color: var(--tint-ink); border-radius: 18px; padding: 20px; display: grid; gap: 12px; }
.faq__help p { margin: 0; }
.faq__help .row { display: flex; flex-wrap: wrap; gap: 10px; }
