/* Andanza — identidad: señalización de carretera española.
   Azul de autopista, línea amarilla, asfalto y el coral del atardecer. */
:root {
  --sand: #f3f6f9;      /* fondo de página: blanco frío */
  --sand-2: #e7eef5;    /* rellenos suaves */
  --paper: #ffffff;
  --ink: #17202b;       /* asfalto */
  --ink-2: #3c4a59;
  --muted: #687788;
  --line: #dfe6ee;
  --field: #c3cfdb;
  --sea: #0b4ea2;       /* azul de las señales de autopista */
  --sea-2: #e5eef9;
  --sign-dark: #08356f;
  --sun: #ffcc1a;       /* amarillo de la línea de la carretera */
  --sun-dark: #f0b400;
  --terra: #ff5a36;     /* atardecer */
  --terra-dark: #e2431f;
  --teal: #0f9f97;      /* mar */
  --olive: #0f9f97;
  --ok: #138556;
  --warn: #9a5b00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 32, 43, 0.06), 0 8px 24px rgba(23, 32, 43, 0.06);
  --display: 'Overpass', system-ui, sans-serif;
  --sans: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --header: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Cabecera */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header);
  display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { font: 900 26px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); padding-top: 4px; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { position: relative; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 15.5px; padding: 12px 14px 9px; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page']:not(.cta) { color: var(--ink); }
.nav a[aria-current='page']:not(.cta)::after { background: repeating-linear-gradient(90deg, var(--sun) 0 10px, transparent 10px 15px); }
.nav a.cta { background: var(--sea); color: #fff; border-radius: 9px; box-shadow: inset 0 0 0 2px var(--sea), inset 0 0 0 3.5px #fff; padding: 11px 16px 9px; margin-right: 8px; }
.nav a.cta:hover { background: var(--sign-dark); box-shadow: inset 0 0 0 2px var(--sign-dark), inset 0 0 0 3.5px #fff; }
.lang { border: 1.5px solid var(--line); background: var(--paper); border-radius: 9px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; padding: 0; }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn.open { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu { position: fixed; inset: var(--header) 0 0 0; z-index: 39; background: rgba(23, 32, 43, 0.45); }
.menu[hidden] { display: none; }
.menu-inner { display: grid; gap: 2px; align-content: start; margin-left: auto; width: min(380px, 100%); max-height: 100%; overflow: auto; background: #fff; padding: 12px 16px 24px; border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(23, 32, 43, 0.15); }
.menu-inner > a, .menu-group > a, .menu-mail { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 800 19px/1.2 var(--sans); }
.menu-inner .ico:last-child { width: 18px; height: 18px; color: var(--muted); }
.menu-group ul { list-style: none; margin: 0 0 4px 6px; padding: 4px 0 8px 10px; border-left: 3px solid var(--sun); }
.menu-group li a { display: flex; align-items: center; gap: 10px; padding: 10px 6px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 16px; }
.menu-group li .ico { width: 22px; height: 22px; color: var(--sea); }
.menu-mail { background: none; border: 0; justify-content: flex-start; cursor: pointer; color: var(--sea); font-size: 16px; margin-top: 8px; }
body.menu-open { overflow: hidden; }
/* Páginas de texto: Sobre, Contacto, Privacidad, Aviso legal */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin: 8px 0 10px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p { max-width: 68ch; line-height: 1.7; }
.legal-sobre .legal-lead { font: italic 400 22px/1.45 var(--city, 'Fraunces', serif); color: var(--sea); }
.legal-sobre p { font-size: 18px; line-height: 1.8; }
.sign-off { margin-top: 28px; display: grid; gap: 2px; }
.sign-off b { font: italic 600 28px/1.2 'Fraunces', serif; color: var(--ink); }
.sign-off small { color: var(--muted); font-size: 14px; }
.legal-lead { font-size: 19px; color: var(--ink-2); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.legal-nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.legal-nav a[aria-current='page'] { color: var(--ink); box-shadow: 0 3px 0 var(--sun); }
strong.fill { background: var(--sun); color: var(--ink); padding: 1px 5px; border-radius: 4px; font-weight: 900; text-transform: uppercase; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; font-size: 14px; }
.foot-links a { color: rgba(255, 255, 255, 0.85); }
.menu-small { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 4px 0; }
.menu-small a { color: var(--ink-2); font-size: 14px; font-weight: 700; text-decoration: none; }
.draft-flag { position: fixed; left: 12px; bottom: 12px; z-index: 30; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 6px; opacity: 0.85; }

/* Navegación inferior en móvil */
.tabbar { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 45;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 2px 8px; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a[aria-current='page'] { color: var(--sea); }
  .tabbar a[aria-current='page']::after { content: ''; position: absolute; bottom: 0; width: 26px; height: 3px; border-radius: 2px; background: var(--sun); }
  body { padding-bottom: 76px; }
  .draft-flag { display: none; }
}

main { min-height: calc(100vh - var(--header)); }
.wrap { width: min(1180px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.kicker { display: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 60ch; }

/* Botones: el principal es amarillo línea de carretera */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 3px 24px 0;
  border-radius: 10px; border: 0; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none;
  background: var(--sun); color: var(--ink); transition: transform 0.12s, background 0.15s;
  box-shadow: 0 2px 0 var(--sun-dark);
}
.btn:hover { background: #ffd84a; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.secondary { background: var(--paper); color: var(--ink); border: 1.5px solid var(--field); box-shadow: none; }
.btn.secondary:hover { border-color: var(--ink); background: var(--paper); }
.btn.ghost { background: transparent; color: var(--sea); box-shadow: none; padding: 0 10px; min-height: 40px; }
.btn.small { min-height: 40px; padding: 2px 16px 0; font-size: 14.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: var(--sand-2); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.badge-est { font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--warn); background: #fff3d1; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

/* Portada: foto a sangre y un cartel de autopista donde eliges destino */
.hero { position: relative; min-height: min(92vh, 820px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--sign-dark); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 34, 0.1) 0%, rgba(8, 20, 34, 0.05) 35%, rgba(8, 20, 34, 0.72) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(24px, 4vw, 56px); align-items: end; padding: 0 0 clamp(56px, 8vw, 110px); }
.hero h1 { font-size: clamp(44px, 6.6vw, 88px); font-weight: 900; line-height: 0.98; letter-spacing: -0.03em; max-width: 11ch; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3); }
.hero-copy p { font-size: clamp(18px, 2vw, 21px); max-width: 38ch; margin: 18px 0 0; color: rgba(255, 255, 255, 0.94); }
.sign { position: relative; background: var(--sea); color: #fff; border-radius: 16px; padding: 22px 24px 20px; box-shadow: inset 0 0 0 5px var(--sea), inset 0 0 0 8px #fff, 0 30px 60px rgba(0, 0, 0, 0.35); }
.sign::before, .sign::after { content: ''; position: absolute; top: 100%; width: 12px; height: 160px; background: linear-gradient(90deg, #8995a2, #c9d1da 45%, #7d8894); z-index: -1; }
.sign::before { left: 22%; } .sign::after { right: 22%; }
.sign-rows { list-style: none; margin: 0; padding: 4px 6px; display: grid; }
.sign-rows li + li { border-top: 2px solid rgba(255, 255, 255, 0.85); }
.sign-rows a { display: flex; align-items: center; gap: 14px; padding: 10px 2px 8px; color: #fff; text-decoration: none; font: 800 clamp(22px, 2.4vw, 28px)/1.1 var(--display); letter-spacing: -0.005em; }
.sign-rows a .dir { width: 30px; height: 30px; stroke-width: 2.6; }
.sign-rows a small { margin-left: auto; font-size: 14px; font-weight: 700; background: #fff; color: var(--sea); border-radius: 5px; padding: 3px 7px 1px; }
.sign-rows a:hover span { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.hero-form { display: flex; gap: 8px; margin-top: 14px; background: #fff; padding: 6px; border-radius: 11px; }
.hero-form input { flex: 1; min-width: 0; border: 0; padding: 4px 12px 0; font-size: 17px; background: transparent; color: var(--ink); }
.hero-form input:focus { outline: none; }
.hero-form .btn { box-shadow: none; }
.sign-note { display: block; margin-top: 12px; font-size: 13.5px; color: rgba(255, 255, 255, 0.9); }
.credit { position: absolute; right: 12px; top: 10px; z-index: 2; font-size: 11px; color: rgba(255, 255, 255, 0.75); text-decoration: none; }
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 34vh; }
  .sign::before, .sign::after { display: none; }
}
@media (max-width: 560px) {
  .hero .wrap { padding-top: 90px; padding-bottom: 28px; gap: 18px; }
  .hero h1 { font-size: 40px; }
  .hero-copy p { font-size: 17px; margin-top: 10px; }
  .sign { padding: 16px 16px 14px; }
  .sign-rows a { font-size: 21px; gap: 10px; padding: 8px 0 6px; }
  .sign-rows a .dir { width: 24px; height: 24px; }
  .sign-rows a small { font-size: 12px; white-space: nowrap; }
  .hero-form { flex-direction: column; }
  .hero-form input { min-height: 48px; }
}

/* Cómo funciona: cuatro hitos kilométricos sobre una carretera */
.road-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 44px 0 0; padding: 0; counter-reset: hito; }
.road-steps::before { content: ''; position: absolute; left: -2vw; right: -2vw; top: 66px; height: 34px; border-radius: 6px; background: var(--ink); }
.road-steps::after { content: ''; position: absolute; left: -2vw; right: -2vw; top: 82px; height: 3px; background: repeating-linear-gradient(90deg, var(--sun) 0 28px, transparent 28px 48px); }
.road-steps li { list-style: none; position: relative; z-index: 1; }
.hito { display: grid; place-items: center; width: 52px; height: 74px; margin-left: 6px; border-radius: 26px 26px 4px 4px; background: #fff; border: 2px solid #d2d9e1; box-shadow: 0 6px 14px rgba(23, 32, 43, 0.18); overflow: hidden; position: relative; }
.hito::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 24px; background: var(--terra); }
.hito b { position: relative; margin-top: 18px; font: 900 26px/1 var(--display); color: var(--ink); }
.road-steps h3 { font-size: 21px; margin: 40px 0 6px; }
.road-steps p { margin: 0; color: var(--ink-2); max-width: 30ch; }
@media (max-width: 860px) {
  .road-steps { grid-template-columns: 1fr; gap: 26px; padding-left: 96px; }
  .road-steps::before { left: 52px; right: auto; top: -6px; bottom: -6px; width: 28px; height: auto; }
  .road-steps::after { left: 64.5px; right: auto; top: -6px; bottom: -6px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--sun) 0 22px, transparent 22px 38px); }
  .road-steps li { display: grid; grid-template-columns: 1fr; }
  .hito { position: absolute; left: -94px; top: -2px; width: 38px; height: 54px; margin: 0; }
  .hito::before { height: 17px; }
  .hito b { font-size: 20px; margin-top: 13px; }
  .road-steps h3 { margin: 0 0 4px; }
}

/* Tarjetas de destino */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 32px; }
.dcard { position: relative; border-radius: 12px; overflow: hidden; background: var(--sand-2); aspect-ratio: 4 / 5; color: #fff; text-decoration: none; display: block; }
.dcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dcard:hover img { transform: scale(1.04); }
.dcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8, 20, 34, 0.8)); }
.dcard .meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.dcard small { font-size: 13.5px; font-weight: 700; opacity: 0.9; }
.dcard b { display: block; font: italic 600 32px/1.02 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -0.01em; margin-top: 2px; }
.dcard p { margin: 6px 0 0; font-size: 14.5px; opacity: 0.92; }
.dcard .placeholder { position: absolute; inset: 0; background: linear-gradient(160deg, var(--sea), var(--teal)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }

/* Cuentas del día a día */
.daily { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.daily p { color: var(--ink-2); font-size: 18px; margin: 12px 0 0; max-width: 34ch; }
.daily ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.daily li { border-bottom: 1px solid var(--line); }
.daily a { display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 18px 4px; color: var(--ink); text-decoration: none; }
.daily a .ico { width: 30px; height: 30px; color: var(--sea); justify-self: center; }
.daily a b { display: block; font-size: 19px; font-weight: 800; }
.daily a span span { color: var(--ink-2); }
.daily a > .ico:last-child { width: 20px; height: 20px; color: var(--muted); transition: transform 0.15s; }
.daily a:hover > .ico:last-child { transform: translateX(4px); color: var(--ink); }
@media (max-width: 760px) { .daily { grid-template-columns: 1fr; } }

/* Pie con buzón */
footer.site { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding: 48px 0 28px; margin-top: 40px; }
footer.site .wrap { display: grid; gap: 28px; }
.mailbox { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 20px 22px; }
.mailbox svg { width: 74px; height: 74px; }
.mailbox b { display: block; color: #fff; font-size: 21px; font-weight: 800; }
.mailbox p { margin: 2px 0 0; }
.foot-line { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.foot-line a { color: inherit; }
.foot-line .brandline { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; }
.foot-line .brandline svg { width: 24px; height: 24px; }
@media (max-width: 640px) { .mailbox { grid-template-columns: 56px minmax(0, 1fr); } .mailbox svg { width: 56px; height: 56px; } .mailbox .btn { grid-column: 1 / -1; } }

/* Planner */
.planner-head { padding: 28px 0 8px; }
.stepper { position: sticky; top: var(--header); z-index: 30; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.stepper ol { display: flex; gap: 6px; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.stepper ol::-webkit-scrollbar { display: none; }
.stepper li { list-style: none; flex: 1 0 auto; }
.stepper a { display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; border: 1.5px solid transparent; }
.stepper a span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--field); font-size: 14px; font-weight: 700; }
.stepper a.done span { background: var(--olive); border-color: var(--olive); color: #fff; }
.stepper a[aria-current='step'] { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.stepper a[aria-current='step'] span { background: var(--ink); border-color: var(--ink); color: #fff; }
.step { padding: 28px 0 60px; }
.step h2 { margin-bottom: 22px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; font-weight: 700; font-size: 15px; color: var(--ink); }
.field small { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--field); background: #fff; font-weight: 500; font-size: 16.5px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:hover, .field select:hover { border-color: #b9a993; }
.field input:focus, .field select:focus, .input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(14, 77, 100, 0.14); }
.unit { position: relative; }
.unit input { padding-right: 86px; }
.unit em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; font-size: 14px; pointer-events: none; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--terra); }
.segmented { display: inline-flex; background: var(--sand-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: 10px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.segmented button[aria-pressed='true'] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.stepnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.help-text { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
.notice { background: var(--sea-2); color: var(--sea); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; }

/* Place search */
.combo { position: relative; }
.combo input { scroll-margin-top: 104px; }
.combo ul { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(28, 43, 51, 0.16); }
.combo li button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.combo li button:hover, .combo li button:focus { background: var(--sand); outline: none; }
.combo li b { display: block; }
.combo li small { color: var(--muted); }
.combo .status { padding: 10px 12px; color: var(--muted); }
.picked { margin-top: 6px; font-size: 14px; color: var(--ok); font-weight: 600; }

/* Destination preview + weather */
.dest-preview { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.dest-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.dest-preview p { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 640px) { .dest-preview { grid-template-columns: 1fr; } }
.weather { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 14px; }
.weather div { background: var(--sand); border-radius: 14px; padding: 12px; text-align: center; }
.weather .wx { width: 40px; height: 40px; margin: 0 auto 4px; display: block; }
.weather small .ico { width: 13px; height: 13px; color: #2f7fd6; }
.weather b { display: block; font-size: 15px; }
.weather small { color: var(--muted); font-size: 12.5px; display: block; }

/* Travellers */
.counter { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border: 1.5px solid var(--field); border-radius: 12px; padding: 4px; }
.counter button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sand-2); font-size: 22px; font-weight: 700; cursor: pointer; }
.counter output { min-width: 44px; text-align: center; font: 600 24px var(--display); }
.traveler { display: grid; grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.trav-head { display: grid; grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 12px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 4px; }
.traveler:first-of-type { border-top: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
@media (max-width: 720px) { .trav-head { display: none; } .traveler { grid-template-columns: 40px 1fr 1fr; } .traveler input { grid-column: 2 / 4; } .traveler select[data-seat] { grid-column: 2; } }
.car { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px; background: var(--sand); }
.car-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.seatmap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.seat { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--sand); font-size: 14.5px; }
.seat i { font-style: normal; font-size: 12px; color: var(--muted); display: block; }

/* Route */
.map { position: relative; z-index: 0; isolation: isolate; height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--sand-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.stats div { background: var(--sand); border-radius: 14px; padding: 14px 16px; }
.stats small { color: var(--muted); font-weight: 600; font-size: 13px; display: block; }
.stats b { font: 600 26px/1.2 var(--display); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } }
.stops { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.stops li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--sand); border-radius: 12px; }

.costrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.costrow b { font-size: 18px; }

/* Places */
.links { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.links a { text-decoration: none; }
.tabs { display: flex; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.place { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.place.photo { padding: 0; overflow: hidden; }
.place.photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.place .fig { position: relative; }
.place .photo-credit { position: absolute; right: 6px; bottom: 6px; background: rgba(23, 32, 43, 0.6); color: #fff; font-size: 10.5px; padding: 1px 5px; border-radius: 4px; text-decoration: none; }
.place .ptype { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.place .ptype .ico { color: var(--sea); }
.place.photo .in { padding: 12px 14px 14px; display: grid; gap: 6px; }
.place b { font-size: 16px; }
.place small { color: var(--muted); }
.place .ptext { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.price { align-self: start; display: inline-flex; flex-wrap: wrap; gap: 4px; font-size: 13px; font-weight: 800; border-radius: 7px; padding: 3px 8px; }
.price a { color: inherit; }
.free-p { background: #e2f5ec; color: #11704a; }
.unk-p { background: #fff3d6; color: #8a5a00; }
.val-p { background: #e5eefb; color: var(--sea); }
.notplace { align-self: start; color: var(--muted); font-size: 12px; font-weight: 600; }
.more-row { display: flex; justify-content: center; margin: 16px 0 6px; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plist-title { margin: 22px 0 8px; font-size: 16px; }
.pline { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.pl-ico .ico { width: 22px; height: 22px; color: var(--sea); }
.pl-main b { display: block; font-size: 15.5px; }
.pl-main small { color: var(--muted); font-size: 13px; }
.pl-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.plist-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 4px 0 12px; }
.plist-tools label { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.plist-tools select { padding: 6px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.chip { border: 1.5px solid transparent; cursor: pointer; }
button.chip[aria-pressed='true'] { background: var(--sea); color: #fff; }
@media (max-width: 600px) {
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .place.photo .in { padding: 10px; gap: 5px; }
  .place b { font-size: 14.5px; line-height: 1.3; }
  .place .ptext { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .place .row { gap: 4px; }
  .place .row .btn { padding: 7px 9px; font-size: 12.5px; }
  .place .row .btn:first-child { flex: 1 1 100%; justify-content: center; }
  .place .row .btn.ghost { padding: 4px 2px; }
  .notplace { text-align: left; font-size: 11px; }
  .price { font-size: 11.5px; }
  .pline { grid-template-columns: 26px minmax(0, 1fr); }
  .pl-act { grid-column: 2; justify-content: flex-start; }
}
.place .row { display: flex; gap: 8px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-list li { display: grid; grid-template-columns: minmax(0, 1fr) 190px 130px auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--sand); border-radius: 12px; }
@media (max-width: 640px) { .plan-list li { grid-template-columns: 1fr 1fr; } }
.plan-list input { min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--field); background: #fff; width: 100%; }

/* Summary */
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.totals div { border-radius: var(--radius); padding: 22px; background: var(--sea); color: #fff; }
.totals div + div { background: var(--terra); }
.totals small { font-weight: 700; opacity: 0.85; }
.totals b { display: block; font: 600 clamp(32px, 5vw, 46px)/1.1 var(--display); margin-top: 6px; }
.bars { display: grid; gap: 12px; margin-top: 6px; }
.bar { display: grid; grid-template-columns: 130px 1fr 110px; gap: 12px; align-items: center; font-weight: 600; }
.bar i { display: block; height: 12px; border-radius: 99px; background: var(--terra); }
.bar span:last-child { text-align: right; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.person b { display: block; }
.person small { color: var(--muted); }
.pay { display: grid; grid-template-columns: 1.4fr 1fr 130px auto; gap: 10px; align-items: end; margin-top: 10px; }
@media (max-width: 720px) { .pay { grid-template-columns: 1fr 1fr; } }
.settle { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.settle li { padding: 12px 14px; border-radius: 12px; background: #eef6ef; color: var(--ok); font-weight: 700; }

/* Boarding passes (screen preview + print) */
.passes { display: grid; gap: 18px; margin-top: 16px; }
.bpass { display: grid; grid-template-columns: 1fr 210px; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); font-family: var(--sans); color: var(--ink); break-inside: avoid; }
.bpass .main { display: grid; grid-template-rows: auto 1fr auto; }
.bpass .top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--sea); color: #fff; }
.bpass .top b { font: 600 20px var(--display); display: flex; gap: 8px; align-items: center; }
.bpass .top b svg { width: 26px; height: 26px; }
.bpass .top span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; font-weight: 700; }
.bpass .body { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 20px; }
.bpass .photo { width: 100%; height: 100%; min-height: 150px; object-fit: cover; border-radius: 12px; background: var(--sand-2); }
.bpass .codes { display: flex; align-items: center; gap: 14px; }
.bpass .codes b { font: 600 46px/1 var(--display); letter-spacing: 0.02em; }
.bpass .codes .car-ico { flex: 1; border-top: 2px dashed var(--field); position: relative; min-width: 60px; }
.bpass .codes .car-side { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); width: 52px; height: 23px; background: #fff; padding: 0 5px; box-sizing: content-box; }
.bpass .cities { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.bpass dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin: 14px 0 0; }
.bpass dt { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bpass dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.bpass .foot { padding: 10px 20px; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); }
.bpass .stub { border-left: 2px dashed var(--field); padding: 16px; display: grid; gap: 8px; align-content: start; background: var(--sea-2); position: relative; }
.bpass .stub::before, .bpass .stub::after { content: ''; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); }
.bpass .stub::before { top: -11px; }
.bpass .stub::after { bottom: -11px; }
.bpass .stub .name { font: 600 20px/1.15 var(--display); }
.bpass .stub .share { font: 600 28px var(--display); color: var(--terra); }
.bpass { min-width: 0; }
.bpass .main, .bpass .stub, .bpass .body > div { min-width: 0; }
.bpass dd { overflow-wrap: anywhere; }
.bpass .stub .name { overflow-wrap: anywhere; }
.bpass .stub .lbl { margin-top: 6px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.seat-box { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.seat-box small { font-weight: 800; font-size: 14px; color: var(--ink); }
/* Billete: línea de ruta (carretera con línea amarilla), compañeros de coche y despedida */
.bpass .body > div { display: flex; flex-direction: column; }
.bpass .journey { margin-top: auto; padding-top: 12px; }
.bpass dl { margin-bottom: 14px; }
.jr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.jr-head span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.jr-head b { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.jr-line { position: relative; height: 26px; margin: 6px 7px 4px; }
.jr-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 9px; transform: translateY(-50%); border-radius: 5px; background: #17202b linear-gradient(90deg, #ffcc1a 0 10px, transparent 10px 18px) repeat-x 0 50% / 18px 2px; }
.jr-end { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); border: 3px solid #fff; box-shadow: 0 0 0 1.5px #17202b; background: #17202b; }
.jr-end.a { left: 0; }
.jr-end.b { left: 100%; background: #ff5a36; box-shadow: 0 0 0 1.5px #ff5a36; }
.jr-stop { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #0b4ea2; color: #0b4ea2; display: grid; place-items: center; }
.jr-stop svg { width: 14px; height: 14px; }
.jr-labels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
.jr-labels > div { display: grid; gap: 1px; min-width: 0; }
.jr-labels .mid { text-align: center; align-self: center; }
.jr-labels .end { text-align: right; }
.jr-labels small { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.jr-labels b { font: 600 20px/1.1 var(--display); color: var(--ink); }
.jr-labels span { font-size: 12px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.jr-note { margin: 6px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.bpass .stub { display: flex; flex-direction: column; }
.bpass .mates { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(11, 78, 162, 0.3); }
.bpass .mates ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.bpass .mates li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.bpass .mates li span { color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: right; }
.bpass .mates p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.bpass .good { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; font: 600 15px/1.15 var(--display); color: #0b4ea2; }
.bpass .good svg { width: 22px; height: 22px; flex: none; }
.seatmap { width: 64px; height: auto; flex: none; }
@media (max-width: 760px) {
  .bpass { grid-template-columns: 1fr; }
  .bpass .stub { border-left: 0; border-top: 2px dashed var(--field); }
  .bpass .body { grid-template-columns: 1fr; }
  .bpass .photo { min-height: 120px; max-height: 160px; }
}

/* Destinations page */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.filters .input { max-width: 340px; }
.filters select.input { max-width: 260px; }

/* Tools + trips */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.tool:hover { border-color: var(--ink); transform: translateY(-2px); }
.tool b { font: 600 22px/1.2 var(--display); }
.tool span { color: var(--ink-2); }
.tool em { font-style: normal; color: var(--terra); font-weight: 700; }
.trip-list { display: grid; gap: 12px; margin-top: 24px; }
.trip-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.trip-row img, .trip-row .ph { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg, var(--sea), #2b7088); }
.trip-row b { font: 600 20px var(--display); display: block; }
.trip-row small { color: var(--muted); }
.trip-row .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .trip-row { grid-template-columns: 56px 1fr; } .trip-row .acts { grid-column: 1 / -1; justify-content: flex-start; } .trip-row img, .trip-row .ph { width: 56px; height: 56px; } }

/* Andi, el copiloto */
.help-btn { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 0; border: 0; background: none; padding: 0; cursor: pointer; }
.andi-face { object-fit: cover; }
.help-btn .andi-face { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 10px 26px rgba(23, 32, 43, 0.32); border: 3px solid #fff; background: #fff; transition: transform 0.2s; }
.help-btn:hover .andi-face { transform: rotate(-6deg) scale(1.04); }
.help-btn span { order: -1; margin-right: -10px; padding: 9px 22px 7px 14px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; border-radius: 10px 4px 4px 10px; box-shadow: 0 8px 22px rgba(23, 32, 43, 0.18); }
.help-btn[aria-expanded='true'] span { display: none; }
@media (max-width: 860px) { .help-btn { bottom: 86px; right: 12px; } .help-btn .andi-face { width: 72px; height: 72px; } .help-btn span { display: none; } }
.help { position: fixed; right: 18px; bottom: 100px; z-index: 55; width: min(390px, calc(100% - 24px)); max-height: min(72vh, 580px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(23, 32, 43, 0.32); overflow: hidden; animation: help-in 0.18s ease-out; }
@keyframes help-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 860px) { .help { right: 12px; bottom: 154px; } }
.help header { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--sea); color: #fff; }
.help header .andi-face { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; flex: none; }
.help header b { font: 800 18px/1.1 var(--display); flex: 1; }
.help header b small { display: block; font-size: 12.5px; font-weight: 600; opacity: 0.85; }
.help header button { background: rgba(255, 255, 255, 0.16); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.help .msgs { padding: 16px; overflow-y: auto; display: grid; gap: 10px; }
.bubble { background: var(--sand); border-radius: 14px 14px 14px 4px; padding: 12px 14px; max-width: 92%; }
.bubble.me { justify-self: end; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble a { font-weight: 700; display: inline-block; margin-top: 6px; }
.options { display: grid; gap: 8px; }
.options button { text-align: left; border: 1.5px solid var(--field); background: #fff; padding: 10px 14px 8px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.options button:hover { border-color: var(--sea); color: var(--sea); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
@media (max-width: 860px) { .toast { bottom: 90px; } }

/* Print: only the boarding passes */
@media print {
  /* Sin margen de página, el navegador no tiene sitio para imprimir su encabezado y pie
     (fecha, dirección web); el margen lo pone el propio contenido. */
  @page { size: A4; margin: 0; }
  body { background: #fff; padding: 0; }
  #print-root .passes { padding: 10mm 10mm; gap: 0; margin: 0; }
  body.printing > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .bpass { width: 190mm; height: 134mm; grid-template-columns: minmax(0, 1fr) 50mm; box-shadow: none; margin: 0 0 8mm; border-color: #ccc; overflow: hidden; break-inside: avoid; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root .bpass:nth-child(2n) { break-after: page; page-break-after: always; margin-bottom: 0; }
  #print-root .bpass:nth-child(2n) + .bpass { margin-top: 10mm; }
  #print-root .bpass .body { grid-template-columns: 40mm minmax(0, 1fr); }
  #print-root .bpass .codes b { font-size: 38px; }
  #print-root .bpass dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 12px; margin-top: 10px; }
  #print-root .bpass .body { padding: 14px 18px 10px; }
  #print-root .bpass .stub { padding: 12px; }
  #print-root .stub::before, #print-root .stub::after { background: #fff; }
}
#print-root { display: none; }

/* Selects: custom chevron with breathing room; values never cut */
select, .field select, .input[is], select.input, .lang {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233d5163' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='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: 14px;
  padding-right: 44px !important; text-overflow: ellipsis;
}
.lang { padding: 9px 38px 9px 12px; background-position: right 12px center; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink); }
.flag { width: 24px; height: 16px; flex: none; display: block; }
.langsel { position: relative; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; margin: 0; padding: 6px; list-style: none; min-width: 190px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px rgba(23, 32, 43, 0.22); }
.lang-list[hidden] { display: none; }
.lang-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; }
.lang-list button:hover, .lang-list button:focus-visible { background: #eef3f8; outline: none; }
.lang-list [aria-selected='true'] button { background: #e3ecf8; }
/* Small source references instead of big credit lines */
.src { font-size: 11.5px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.src:hover { color: var(--sea); text-decoration: underline; }
.corner-credit { position: absolute; right: 8px; bottom: 6px; z-index: 500; background: rgba(15, 34, 51, 0.72); color: #fff; font-size: 10.5px; padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.map-wrap, .panel.has-credit { position: relative; }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(15, 34, 51, 0.6) !important; color: #fff !important; border-radius: 6px 0 0 0; }
.leaflet-control-attribution a { color: #cfe6ff !important; }

/* Car: form + top view with seats */
.car-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; align-items: start; }
@media (max-width: 760px) { .car-grid { grid-template-columns: 1fr; } .cardiagram { margin: 0 auto; } }
.cardiagram { width: 200px; margin: 18px 22px; padding: 0 16px 18px; border-radius: 86px 86px 46px 46px / 120px 120px 40px 40px; background: linear-gradient(90deg, #d6e4f2 0%, #f3f8fd 30%, #f3f8fd 70%, #d6e4f2 100%); border: 2.5px solid #9fb6cc; box-shadow: 0 14px 26px -14px rgba(15, 34, 51, 0.45); display: grid; gap: 10px; position: relative; }
.cardiagram .hood { height: 46px; margin: 0 18px; border-bottom: 2px solid rgba(15, 34, 51, 0.08); border-radius: 0 0 50% 50% / 0 0 30% 30%; background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.9), transparent 70%); }
.cardiagram .windshield { height: 26px; margin: -4px 6px 2px; border-radius: 46px 46px 8px 8px / 26px 26px 8px 8px; background: linear-gradient(180deg, #7fb0db, #b9d6ee); }
.cardiagram .rearwindow { height: 16px; margin: 2px 14px 0; border-radius: 6px 6px 30px 30px / 6px 6px 16px 16px; background: linear-gradient(0deg, #7fb0db, #b9d6ee); }
.cardiagram .wheel { position: absolute; width: 14px; height: 40px; border-radius: 6px; background: #2b3a48; }
.cardiagram .wheel.fl, .cardiagram .wheel.rl { left: -12px; }
.cardiagram .wheel.fr, .cardiagram .wheel.rr { right: -12px; }
.cardiagram .wheel.fl, .cardiagram .wheel.fr { top: 48px; }
.cardiagram .wheel.rl, .cardiagram .wheel.rr { bottom: 34px; }
.cardiagram .mirror { position: absolute; top: 74px; width: 14px; height: 9px; background: #9fb6cc; }
.cardiagram .mirror.l { left: -14px; border-radius: 8px 2px 2px 8px; }
.cardiagram .mirror.r { right: -14px; border-radius: 2px 8px 8px 2px; }
.seatrow { display: grid; gap: 8px; }
.seatrow.r2 { grid-template-columns: 1fr 1fr; }
.seatrow.r3 { grid-template-columns: 1fr 1fr 1fr; }
.seatcell { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 56px; border-radius: 12px; background: #fff; border: 1.5px dashed var(--field); text-align: center; }
.seatcell.busy { border-style: solid; border-color: var(--sea); }
.seatcell.none { visibility: hidden; }
.seatcell .avatar { width: 30px; height: 30px; font-size: 13px; }
.seatcell small { font-size: 9.5px; line-height: 1.1; color: var(--muted); font-weight: 700; padding: 0 2px; }

/* Route options */
.route-table { display: grid; gap: 8px; margin-top: 14px; }
.route-opt { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 15.5px; }
.route-opt:hover { border-color: var(--field); }
.route-opt.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 34, 51, 0.08); }
.route-opt small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.route-opt .swatch { width: 14px; height: 14px; border-radius: 50%; }
.route-opt .price { color: var(--terra-dark); font-size: 17px; }
@media (max-width: 760px) { .route-opt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; } .route-opt .ro-head { grid-column: 1 / -1; } }
.tag { font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: #e7f6ef; color: var(--ok); padding: 2px 8px; border-radius: 99px; margin-left: 8px; vertical-align: middle; }
.with-icon { display: flex; align-items: center; gap: 10px; }
.cup { width: 26px; height: 26px; color: #8a5a2b; }
.stops li { align-items: center; }
.cupwrap { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff6d6; flex: none; }
.stations { display: grid; gap: 2px; margin-top: 4px; font-size: 14.5px; }
.station { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.station:hover { color: var(--sea); }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.levels button { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.levels button b { font-size: 15px; }
.levels button span { font: 700 24px var(--display); color: var(--ink); }
.levels button small { color: var(--muted); font-size: 12.5px; }
.levels button[aria-pressed='true'] { border-color: var(--sea); background: var(--sea-2); }
@media (max-width: 560px) { .levels { grid-template-columns: 1fr; } }
.ptype { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.free { color: var(--ok); }
.freechip { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: var(--ok); background: #e7f6ef; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.linkbtn { border: 0; background: none; color: var(--sea); font-weight: 600; font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 0; }
.toggle.small { font-weight: 600; font-size: 14px; }
.pname { overflow: hidden; text-overflow: ellipsis; }

/* Andi */
.help header { gap: 10px; background: linear-gradient(135deg, var(--sea), var(--teal)); }
.help header b { flex: 1; font: 700 18px var(--display); }
.help .andi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 20px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 14px; width: auto; justify-self: start; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.options button.fb { border-color: var(--terra); color: var(--terra-dark); }
.fbform { display: grid; gap: 8px; }
.fbform textarea, .fbform input { width: 100%; border: 1.5px solid var(--field); border-radius: 12px; padding: 10px 12px; font-size: 15px; resize: vertical; }
.fbform .segmented button { padding: 7px 10px; font-size: 13px; }
footer.site a { color: var(--muted); }

/* Móvil: destinos en 2 columnas y tarjetas compactas (se ven ~4 a la vez) */
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
  .dcard { aspect-ratio: 3 / 4; }
  .dcard .meta { left: 10px; right: 10px; bottom: 10px; }
  .dcard small { font-size: 10px; }
  .dcard b { font-size: 18px; }
  .dcard p { display: none; }
}

/* Herramientas */
.tools-tabs { margin: 22px 0 18px; flex-wrap: wrap; }
#tool-box .panel { margin-bottom: 16px; }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; }
.result-grid > div { background: var(--sand); border-radius: 14px; padding: 14px 8px; }
.result-grid span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.result-grid b { font: 700 22px/1.2 var(--display); color: var(--ink); }
.result-grid .big { background: var(--sea); } .result-grid .big span, .result-grid .big b { color: #fff; }
.result-grid small { grid-column: 1 / -1; color: var(--muted); }
.topt { border-top: 1px solid var(--line); padding: 12px 0; }
.chk { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.route-opts { display: grid; gap: 10px; margin: 12px 0; }
@media (max-width: 640px) { .result-grid { grid-template-columns: 1fr 1fr; } #tool-box .grid3 { grid-template-columns: 1fr; } }

/* Gasolineras con precio oficial */
.stations .station { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.stations .station:hover { background: var(--sand); }
.stations .station .ico { width: 20px; height: 20px; color: var(--sea); }
.stations .station small { color: var(--muted); font-weight: 500; }
.stations .station .price { font-variant-numeric: tabular-nums; font-size: 15px; }
.stations .station .tag { grid-column: 2 / -1; justify-self: start; }
.fuel-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; }
.fuel-foot .src-note { color: var(--muted); font-size: 11.5px; }

/* Ciudades: nombre y descripción con carácter (Fraunces), pensado para leerse bien */
.city-name { font: italic 600 clamp(44px, 6vw, 72px)/1 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -0.015em; margin: 4px 0 14px; }
.city-region { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-weight: 700; }
.city-region .ico { color: var(--terra); }
.city-text { font: 400 19px/1.65 var(--serif); font-variation-settings: 'SOFT' 50, 'opsz' 18; color: var(--ink); max-width: 62ch; }
.dest-preview .city-text { font-size: 17.5px; }
.btn.back .ico { transform: rotate(180deg); }
.chip .ico { color: var(--sea); }

/* Pasos del planificador: el paso actual es un cartel azul */
.stepper a[aria-current='step'] { background: var(--sea); border-color: var(--sea); color: #fff; box-shadow: inset 0 0 0 2px var(--sea), inset 0 0 0 3.5px #fff; }
.stepper a[aria-current='step'] span { background: #fff; border-color: #fff; color: var(--sea); }
.stepper a span .ico { width: 16px; height: 16px; }
.notice .ico { color: var(--warn); margin-right: 4px; }
.segmented button .ico { color: var(--sea); margin-right: 2px; }
.segmented button[aria-pressed='true'] .ico { color: inherit; }

/* Paso 1: fechas de ida y vuelta, solo ida, hora opcional. iOS da a los campos de fecha un ancho
   propio que se salía del recuadro: se fuerza a ocupar su columna. */
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 16px; align-items: start; }
.dates .one-way-box { grid-column: 1 / -1; margin: 0; }
.dates .time-field { grid-column: 1 / -1; max-width: 260px; }
.dates.one-way #p-end-field { display: none; }
input[type='date'], input[type='time'] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; text-align: left; }
input[type='date']::-webkit-date-and-time-value, input[type='time']::-webkit-date-and-time-value { text-align: left; }
@media (max-width: 420px) { .dates { grid-template-columns: minmax(0, 1fr); } .dates .time-field { max-width: none; } }
/* Barra de pasos: el actual centrado; en el móvil se ven tres (anterior, actual, siguiente). */
.step-dots { display: none; }
@media (max-width: 600px) {
  .stepper ol { scroll-snap-type: x mandatory; padding: 8px 0 4px; gap: 0; }
  .stepper li { flex: 0 0 33.333%; scroll-snap-align: center; display: flex; justify-content: center; }
  .stepper a { padding: 6px 8px 6px 6px; gap: 6px; font-size: 13.5px; max-width: 100%; }
  .stepper a span { width: 26px; height: 26px; font-size: 13px; flex: none; }
  .step-dots { display: flex; justify-content: center; gap: 6px; padding: 0 0 7px; }
  .step-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
  .step-dots i.ok { background: var(--olive); }
  .step-dots i.on { width: 18px; border-radius: 3px; background: var(--sea); }
}
.stepper a em { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Tarjetas de ruta: cabecera con el nombre y cuatro datos con su etiqueta encima. */
.ro-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ro-head small { flex-basis: 100%; }
.ro-stat { display: grid; gap: 1px; min-width: 0; }
.ro-stat b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-cost b { color: var(--terra-dark); font-size: 17px; }
.stops b .moved { display: block; font-weight: 600; color: var(--teal); font-size: 12.5px; }
.station .hours { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.station .noprice { grid-column: 3; color: #8a5a00; background: #fff3d6; border-radius: 6px; padding: 2px 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

/* Selector de coche: marca → modelo → motor */
.carpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.carpick > div { position: relative; min-width: 0; }
@media (max-width: 760px) { .carpick { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.cpick { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff; padding: 0 12px; min-height: 50px; }
.cpick:focus-within { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.15); }
.cpick.off { background: var(--sand); opacity: 0.7; }
.cpick input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; padding: 12px 0; font-weight: 700; }
.cpick-chev { width: 10px; height: 10px; border-right: 2.4px solid var(--ink-2); border-bottom: 2.4px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); flex: none; }
.cpick-list { position: absolute; z-index: 35; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1.5px solid var(--field); border-radius: 12px; box-shadow: 0 16px 40px rgba(23, 32, 43, 0.18); max-height: 300px; overflow: auto; }
.cpick-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cpick-list li:hover, .cpick-list li.on { background: var(--sand); }
.cpick-list li b { display: block; font-size: 15px; }
.cpick-list li small { color: var(--muted); font-size: 12.5px; }
.cpick-list li.none { color: var(--muted); cursor: default; font-size: 14px; }
.brand-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 13px; flex: none; }
.carpick-note { margin-top: 6px; font-size: 12.5px; }
.cpick input:focus-visible { outline: none; }

/* Herramientas */
.tool-step { margin: 2px 0 12px; font-size: 16px; color: var(--sea); letter-spacing: 0.01em; }
.tool-map { height: 260px; margin: 14px 0 4px; border-radius: 14px; }
.route-opt.static { cursor: default; }
.tag-blue { background: #e5eefb !important; color: var(--sea) !important; }
.st-title { margin: 14px 0 4px; font-size: 14px; color: var(--ink-2); }
#c-stations .station { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.result-grid .saves { color: #11704a; font-weight: 800; }
.report-row { display: flex; justify-content: center; margin: 18px 0 4px; }
.print-tip { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; }
.print-tip .ico { flex: none; color: var(--terra); margin-top: 2px; }
@media (max-width: 600px) { #c-stations .station { grid-template-columns: 22px minmax(0, 1fr) auto; } #c-stations .station .btn { grid-column: 2 / -1; justify-self: start; } }

/* Informe de una página (solo al imprimir) */
.report { font-family: var(--sans); color: var(--ink); }
@media print {
  body.printing-report #print-root { padding: 11mm 13mm; }
  .report { width: 184mm; height: 272mm; display: flex; flex-direction: column; gap: 4mm; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 10pt; line-height: 1.4; }
  .report header { display: flex; justify-content: space-between; align-items: center; background: var(--sea); color: #fff; padding: 3mm 5mm; border-radius: 3mm; }
  .report header b { display: flex; align-items: center; gap: 2mm; font: 800 14pt var(--display); }
  .report header svg { width: 8mm; height: 8mm; }
  .report header span { font-size: 8.5pt; opacity: 0.9; }
  .report h1 { font: 800 19pt/1.1 var(--display); margin: 1mm 0 0; }
  .report h2 { font: 800 12pt var(--display); margin: 0 0 2mm; color: var(--sea); }
  .rep-top { display: grid; grid-template-columns: 82mm 1fr; gap: 5mm; align-items: start; }
  .rep-map { width: 100%; height: auto; display: block; }
  .rep-top dl { margin: 0; display: grid; gap: 2.5mm; }
  .rep-top dt { font-size: 7.5pt; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
  .rep-top dd { margin: 0; font-weight: 800; font-size: 10.5pt; }
  .rep-top dd small { display: block; font-weight: 500; color: var(--ink-2); font-size: 8.5pt; }
  .rep-costs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; text-align: center; }
  .rep-costs > div { background: #eef3f8; border-radius: 3mm; padding: 2.5mm; }
  .rep-costs span { display: block; font-size: 8pt; color: var(--muted); font-weight: 800; }
  .rep-costs b { font: 800 15pt var(--display); }
  .rep-costs .big { background: var(--sea); color: #fff; } .rep-costs .big span { color: #fff; }
  .rep-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .rep-table td { padding: 1.6mm 2mm; border-bottom: 0.3mm solid #dfe6ee; }
  .rep-table i { display: inline-block; width: 3mm; height: 3mm; border-radius: 50%; margin-right: 2mm; vertical-align: middle; }
  .rep-table tr.best { background: #e2f5ec; }
  .rep-table em { font-style: normal; font-weight: 800; color: #11704a; }
  .rep-save { margin: 1.5mm 0 0; font-weight: 800; color: #11704a; font-size: 9.5pt; }
  .rep-tips { border-top: 0.6mm solid var(--sun); padding-top: 3mm; flex: 1; }
  .rep-mine { background: #fff6d6; border-radius: 3mm; padding: 2.5mm 4mm; margin-bottom: 2.5mm; }
  .rep-mine b { font-size: 9pt; text-transform: uppercase; letter-spacing: 0.08em; color: #8a5a00; }
  .rep-mine p { margin: 1mm 0 0; font-size: 9.5pt; }
  .rep-tips ol { margin: 0; padding-left: 5mm; columns: 2; column-gap: 7mm; font-size: 9pt; }
  .rep-tips li { break-inside: avoid; margin-bottom: 1.8mm; }
  .rep-small { font-size: 8pt; color: var(--muted); margin: 1mm 0 0; }
  .report footer { font-size: 7.8pt; color: var(--ink-2); border-top: 0.3mm solid #dfe6ee; padding-top: 2mm; }
}
.narrow { max-width: 260px; }

/* Coche visto desde arriba (paso 2) */
.cartop { position: relative; width: 200px; margin: 6px auto 0; filter: drop-shadow(0 14px 16px rgba(23, 32, 43, 0.28)); }
.cartop .car-top { position: absolute; inset: 0; width: 100%; height: 100%; }
.seatpin { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 1px; z-index: 1; pointer-events: none; }
.seatpin .avatar { width: 30px; height: 30px; font-size: 13px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.seatpin .free-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px dashed #9fb0c2; display: block; margin: 9px 0; }
.seatpin small { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); line-height: 1.1; }
.seatpin:not(.busy) small { color: #b8c4d1; font-weight: 700; }
@media (max-width: 760px) { .cartop { width: 180px; } }

/* Textos de destino con aire */
.city-text p { margin: 0 0 0.9em; }
.city-text { line-height: 1.75; }
.story-intro { font-size: 1.12em; }
.story-fact { background: #fff6d6; border-left: 4px solid var(--sun); padding: 10px 14px; border-radius: 0 10px 10px 0; font-family: var(--sans); font-size: 15.5px; line-height: 1.6; }
.story-fact b { display: block; color: #8a5a00; }
.story-src { font: 600 12.5px var(--sans); color: var(--muted); }

.dest-page { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 12px; }
@media (max-width: 760px) { .dest-page { grid-template-columns: minmax(0, 1fr); } .dest-page #dd-photo { aspect-ratio: 16 / 10 !important; } }
@media (max-width: 520px) { .lang > span { display: none; } .lang { padding: 9px 32px 9px 11px; background-position: right 10px center; } }
