:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --white: #fff;
  --forest: #194f3b;
  --dark: #102e22;
  --muted: #495950;
  --line: #cbd8cc;
  --control-line: #839288;
  --soft: #e1eddf;
  --error: #962e22;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--dark);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--forest); text-underline-offset: .18em; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, legend { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
.wrap { width: min(1392px, calc(100% - clamp(32px, 6.4vw, 96px))); margin-inline: auto; }

.header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(9px, 1.6vw, 22px);
  font-size: clamp(.98rem, 1.7vw, 1.42rem);
  line-height: 1.13;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: clamp(37px, 4vw, 52px);
  aspect-ratio: 1;
  flex: none;
  place-items: center;
  border-radius: 9px;
  color: var(--white);
  background: var(--forest);
  font-size: clamp(1rem, 2vw, 1.6rem);
}
.button {
  display: inline-flex;
  min-height: 46px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--forest);
  border-radius: 8px;
  padding: .62rem 1rem;
  background: var(--forest);
  color: var(--white);
  font-weight: 720;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--dark); }
.button:disabled { opacity: .65; cursor: wait; }
.button-secondary { color: var(--forest); background: transparent; }
.button-secondary:hover { color: var(--white); }
.header-action { white-space: nowrap; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  padding-block: clamp(24px, 3.4vw, 50px);
  border-top: 1px solid var(--line);
}
.hero h2 { color: var(--forest); font-size: clamp(2rem, 4.5vw, 3.9rem); line-height: 1.02; }
.hero > div > p { margin-top: .8rem; font-size: clamp(1.05rem, 1.8vw, 1.5rem); line-height: 1.3; }
.hero figure { margin: 0; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 2.12; object-fit: cover; border-radius: 13px; }
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 54px);
  align-items: start;
  padding-block: clamp(24px, 2.8vw, 42px);
  scroll-margin-top: 12px;
}
.booking-layout fieldset { margin: 0; min-width: 0; padding: 0; border: 0; }
.route-column h1 { margin-bottom: 20px; font-size: clamp(2rem, 4.7vw, 4.1rem); }
.route-fare { margin-top: .85rem; color: var(--forest); font-weight: 720; }
.route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: .75rem clamp(12px, 1.8vw, 25px);
  border: 1px solid var(--control-line);
  border-radius: 9px;
  background: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 720;
  cursor: pointer;
}
.route + .route { margin-top: 10px; }
.route:has(:checked) { background: var(--soft); }
.route:hover { border-color: var(--forest); }
.route input, .departure-option input, .consent input { accent-color: var(--forest); width: 1.1rem; height: 1.1rem; flex: none; margin: 0; }
.journey-note { margin-top: clamp(18px, 2.5vw, 30px); padding-top: 1rem; border-top: 1px solid var(--line); }
.journey-note h3 { font-size: 1.2rem; }
.journey-note p { margin-top: .3rem; color: var(--muted); max-width: 55ch; }

.panel { min-width: 0; padding: clamp(16px, 2.3vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.panel h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.booking-panel > p { color: var(--muted); }
#recargar { margin-top: 1rem; }
.departure-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: .75rem .85rem;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  cursor: pointer;
}
.departure-option + .departure-option { margin-top: .55rem; }
.departure-option:has(:checked) { background: var(--soft); }
.departure-option time { font-weight: 730; }
.departure-meta { display: block; color: var(--muted); font-size: .9rem; }
.departure-full { background: var(--paper); border-color: var(--line); cursor: default; }
.departure-full .departure-meta { font-weight: 700; }
.fields { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(6rem, .34fr); }
.traveler-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 5px; min-width: 0; font-weight: 650; }
.field input, .field select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  padding: .5rem .65rem;
  background: var(--white);
  color: var(--dark);
  font-weight: 400;
}
.trip-details, .receipt { margin-block: .9rem; padding: .85rem; background: #f1f6ef; border-radius: 8px; }
.trip-details { display: grid; grid-template-columns: minmax(0, 6rem) 1fr; align-items: end; gap: .6rem 1rem; }
.trip-details > p:first-child { grid-column: 1 / -1; }
#total { font-weight: 750; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin-block: 1rem; font-size: .94rem; }
.consent input { margin-top: .18rem; }
.book-button { width: 100%; }
.form-note { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.booking-panel .error, .error { margin-top: .9rem; color: var(--error); }
.receipt h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.receipt p + p { margin-top: .55rem; }
.receipt .button { margin-top: .85rem; }
#codigo { font-family: ui-monospace, monospace; white-space: nowrap; }
.footer { display: flex; gap: .6rem 1.3rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 1.15rem 1.6rem; font-size: .92rem; }
.footer span { font-weight: 780; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.admin { max-width: 900px; padding-block: clamp(24px, 5vw, 58px); }
.admin h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.admin h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.admin .panel + .panel { margin-top: 1rem; }
.admin .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin .full { grid-column: 1 / -1; }
.admin .login { max-width: 500px; }
.admin .feedback { margin-bottom: 1rem; }
.admin .departures-list { list-style: none; margin: 0; padding: 0; }
.admin .departures-list > li + li { border-top: 1px solid var(--line); margin-top: 1.15rem; padding-top: 1.15rem; }
.admin .departure-listing { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
.admin details { margin-top: .7rem; }
.admin summary { color: var(--forest); font-weight: 720; cursor: pointer; }
.booking-record { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; padding: .65rem 0; }
.booking-record + .booking-record { border-top: 1px solid var(--line); }
.booking-record p { flex: 1 1 13rem; overflow-wrap: anywhere; }
.button-link { padding: .2rem 0; background: transparent; border: 0; color: var(--forest); text-decoration: underline; cursor: pointer; }
.privacy { max-width: 700px; }
.privacy p + p { margin-top: 1em; }

@media (max-width: 740px) {
  .hero, .booking-layout { grid-template-columns: 1fr; }
  .hero img { aspect-ratio: 1.95; }
  .header-inner { min-height: 66px; }
}
@media (max-width: 390px) {
  .brand-divider { display: none; }
  .header-action { padding-inline: .65rem; font-size: .88rem; }
  .traveler-fields, .admin .fields { grid-template-columns: 1fr; }
}
