/* Layout concept: a horizon line runs through every section — the Andes silhouette
   repeats as a structural motif, and route data reads like highway signage. */
:root {
  --bg: #eef0e7;
  --surface: #ffffff;
  --surface-2: #e4e8dc;
  --ink: #202a1f;
  --ink-soft: #56604f;
  --accent: #a8481c;
  --accent-2: #3c5a46;
  --line: #cdd3bf;
  --sign: #20281f;
  --sign-fg: #eef0e7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a15;
    --surface: #1a241d;
    --surface-2: #202b22;
    --ink: #eaeee3;
    --ink-soft: #aab6a1;
    --accent: #e08a4f;
    --accent-2: #8fbd9c;
    --line: #2d3a2f;
    --sign: #eaeee3;
    --sign-fg: #121a15;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.label {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 14px;
  padding: 13px 22px; border-radius: 3px; border: 1px solid var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff8f2; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(0,0,0,.3); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Newsreader", serif; font-weight: 600; font-size: 21px; }
.brand svg { flex: none; }
.brand-icon { display: flex; align-items: center; flex: none; }
.brand-icon:empty { display: none; }
.brand-icon img { width: 1.3em; height: 1.3em; object-fit: contain; border-radius: 4px; display: block; }
#brand-name, #brand-name-footer { font-family: "Dancing Script", cursive; font-weight: 700; font-size: 1.35em; line-height: 1; }
nav.links { display: flex; gap: 28px; align-items: center; }
nav.links a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
nav.links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch[hidden], .lang-switch button[hidden] { display: none; }
.lang-switch button { display: block; width: 28px; height: 19px; padding: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; cursor: pointer; background: none; opacity: .55; transition: opacity .15s, box-shadow .15s; }
.lang-switch button svg { display: block; width: 100%; height: 100%; }
.lang-switch button:hover { opacity: .9; }
.lang-switch button.active { opacity: 1; box-shadow: 0 0 0 2px var(--accent, #a8481c); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; width: 40px; height: 40px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  nav.links { display: none; }
  .menu-btn { display: flex; align-items: center; justify-content: center; }
  .nav-cta .btn-ghost { display: none; }
}
#mobile-menu { display: none; flex-direction: column; padding-block: 4px 18px; gap: 2px; }
#mobile-menu.open { display: flex; }
#mobile-menu a { padding: 12px 4px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); font-weight: 500; }

/* ---------- hero ---------- */
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 28px 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1.display { font-size: clamp(34px, 5.4vw, 58px); font-style: italic; font-weight: 500; }
h1.display em { font-style: normal; color: var(--accent); font-weight: 600; }
.hero p.sub { margin-top: 20px; font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
.hero-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.stat b { display: block; font-family: "Newsreader", serif; font-size: 26px; font-weight: 600; }
.stat span { font-size: 12.5px; color: var(--ink-soft); }
.scene { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3.3; border: 1px solid var(--line); }
.scene svg { display: block; width: 100%; height: 100%; }

.carousel { position: absolute; inset: 0; }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform .7s ease; }
.carousel-slide { flex: none; width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.carousel-dots .dot.active { background: #fff; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(20,24,18,.45); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel-arrow:hover { background: rgba(20,24,18,.7); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

/* ---------- section scaffolding ---------- */
section { padding-block: 76px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 22ch; }
.section-head p { color: var(--ink-soft); max-width: 40ch; font-size: 15px; margin-top: 10px; }
.band { background: var(--surface-2); }

/* ---------- servicios ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fleet-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 26px 22px; min-width: 0; }
.fleet-card .cap { font-family: "Space Mono", monospace; font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.fleet-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.fleet-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- rutas ---------- */
.route-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .route-grid { grid-template-columns: 1fr; } }
.route-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: flex; gap: 18px; min-width: 0; }
.sign { flex: none; background: var(--sign); color: var(--sign-fg); font-family: "Space Mono", monospace; font-weight: 700; font-size: 13px; padding: 8px 10px; border-radius: 3px; text-align: center; line-height: 1.3; height: fit-content; white-space: pre-line; }
.route-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.route-body p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 10px; }
.route-meta { display: flex; gap: 16px; font-family: "Space Mono", monospace; font-size: 12px; color: var(--accent-2); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-grid p { color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; }
.why-list { display: grid; gap: 18px; margin-top: 8px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item svg { flex: none; margin-top: 2px; color: var(--accent-2); }
.why-item h4 { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.why-item p { font-size: 13.5px; margin: 0; color: var(--ink-soft); }



/* ---------- reservas ---------- */
.booking-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
.booking-info ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.booking-info li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 28px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.req { color: var(--accent); font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 80px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 12px; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.form-error { font-size: 13px; color: var(--accent); margin-top: 10px; display: none; }
.form-error.show { display: block; }
.confirm { display: none; text-align: center; padding: 30px 10px; }
.confirm.show { display: block; }
.confirm svg { color: var(--accent-2); margin-bottom: 12px; }
.confirm h3 { font-size: 19px; margin-bottom: 8px; }
.confirm p { color: var(--ink-soft); font-size: 14px; }
form.submitted .form-fields { display: none; }

/* ---------- faq ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; text-align: left; padding: 20px 4px; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); gap: 16px; }
.faq-q .plus { flex: none; transition: transform .2s ease; color: var(--accent); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { margin: 0 4px 20px; font-size: 14px; color: var(--ink-soft); max-width: 60ch; }
.faq-a a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; color: var(--accent); margin-top: 2px; }
.contact-list b { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-bottom: 3px; }
.copy-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-btn { background: none; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; padding: 4px 8px; cursor: pointer; color: var(--ink-soft); font-family: "Space Mono", monospace; }
.copy-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.zone-chip { font-family: "Space Mono", monospace; font-size: 11.5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.map-box { border: 1px solid var(--line); border-radius: 4px; aspect-ratio: 1 / 1; overflow: hidden; }
.map-box iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 40px 32px; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 36ch; font-size: 13.5px; color: var(--ink-soft); }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); text-decoration: none; }
.foot-social a:hover { color: var(--ink); border-color: var(--ink-soft); }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin: 0 0 12px; }
.foot-col a { display: block; font-size: 13.5px; text-decoration: none; color: var(--ink); margin-bottom: 8px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- whatsapp fab ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: #2f8a52; color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); z-index: 20;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.field[hidden] { display: none; }
#route-fields:has(#pickup-field[hidden]) { grid-template-columns: 1fr; }
.field label .opt { font-weight: 400; opacity: .7; }
.field label [hidden] { display: none; }
