@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --footer-bg: #333333;
  --text-primary: #333333;
  --text-dark: #000000;
  --text-muted: #818181;
  --btn-dark: #323232;
  --white: #ffffff;
  --font-body: 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter Tight', 'Helvetica Now Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 24px;
  --radius-pill: 1000px;
  --page-max: 1728px;
  --page-pad: 40px;
  --section-gap: 200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  border: none;
  outline: none;
}

.page-wrapper {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ─── HEADER ─────────────────────────────────────────── */
.site-header {
  padding: 20px var(--page-pad);
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.header-logo img,
.header-logo .logo-svg {
  height: 28px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-phone {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  height: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
}

.btn-phone:hover {
  background: #e8e8e8;
}

.btn-reservar {
  display: flex;
  align-items: center;
  background: var(--btn-dark);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  height: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-reservar:hover {
  background: #222;
}

/* ─── MAIN CONTENT ────────────────────────────────────── */
.site-main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad) 40px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* ─── HERO ────────────────────────────────────────────── */
.hero-section {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1648 / 917;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8.4%;
  right: 8.4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hero-headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 68px;
  line-height: 0.882em;
  letter-spacing: -0.04em;
  color: var(--white);
  max-width: 560px;
  white-space: pre-line;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 68px;
  line-height: 0.882em;
  letter-spacing: -0.04em;
  color: var(--white);
  text-align: right;
  max-width: 580px;
  white-space: pre-line;
}

/* ─── MEET AVENUE ─────────────────────────────────────── */
.meet-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.21em;
  color: var(--text-muted);
}

.meet-body {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.125em;
  color: var(--text-muted);
  max-width: 1170px;
}

.meet-body-highlight {
  color: var(--text-primary);
}

/* ─── SERVICES ────────────────────────────────────────── */
.services-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 251px;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.21em;
  color: var(--text-primary);
}

.service-card-body {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
  color: var(--text-primary);
}

/* ─── LOCATIONS ───────────────────────────────────────── */
.locations-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Frame 49: description + map+panel, vertical gap=80 */
.locations-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.locations-description {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.21em;
  color: var(--text-primary);
  max-width: 1170px;
}

/* Frame 52: map + panel side by side, gap=40 */
.locations-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: stretch;
}

.locations-map {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 626px;
}

.locations-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Frame 53: airports + divider + train stations, vertical gap=80 */
.locations-panel {
  width: 721px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid #9D9D9D;
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  overflow-x: hidden;
}

.location-group {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.location-group-header {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.location-list li {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

.location-divider {
  height: 1px;
  background: #818181;
}

/* ─── FLEET ───────────────────────────────────────────── */
.fleet-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.fleet-description {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.21em;
  color: var(--text-primary);
}

.fleet-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1648 / 809;
}

.fleet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  padding: 40px 0; /* horizontal padding lives on footer-inner for correct alignment */
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 40px;  /* matches site-main padding so content aligns with sections above */
  display: flex;
  flex-direction: row;
  gap: 25px;
  justify-content: space-between;
  align-items: stretch;
  min-height: 528px;
}

.footer-left {
  max-width: 445px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 60px;
  font-weight: 500;
  line-height: 60px;
  letter-spacing: -2.4px;
  color: var(--white);
  white-space: pre-line;
}

.footer-right {
  width: 439px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-logo .logo-footer-svg {
  width: 439px;
  height: 65px;
  display: block;
}

.footer-links-row {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-category {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
  color: var(--white);
}

.footer-link-item {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link-item:hover {
  opacity: 1;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: var(--white);
  text-align: right;
  opacity: 0.6;
}

/* ─── BOOKING OVERLAY ─────────────────────────────────── */
.booking-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--surface);
  padding: 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.booking-overlay.active {
  display: flex;
}

.booking-step-1 {
  background: transparent;
  padding: 0 !important; /* override mobile .booking-overlay padding rule */
  overflow: hidden !important;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
  transition: background 0.35s ease;
}

/* 'shown' added via JS double-rAF so transitions fire on iOS Safari */
.booking-step-1.shown {
  background: rgba(0,0,0,0.35);
}

.step1-panel {
  width: 625px;
  max-width: 100%;
  height: 100%;
  min-height: 100vh;
  background: var(--surface);
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-step-1.shown .step1-panel {
  transform: translateX(0);
}

.booking-step-1 .btn-close-overlay {
  background: var(--white);
  color: var(--text-dark);
}

.booking-step-1 .btn-close-overlay:hover {
  background: #e8e8e8;
  color: var(--text-dark);
}

@media (prefers-reduced-motion: reduce) {
  .booking-step-1,
  .step1-panel {
    transition: none;
  }
}

.booking-step-2,
.booking-step-3 {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

/* Hide X button in step2 and step3 — "Editar" covers the use case */
.booking-step-2 .booking-close-row,
.booking-step-3 .booking-close-row {
  display: none;
}

.booking-close-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.btn-close-overlay {
  width: 50px;
  height: 50px;
  background: var(--btn-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--white);
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-close-overlay:hover {
  background: #111;
}

/* Step 1 card */
.booking-card {
  width: 100%;
  max-width: 545px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.booking-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-card-title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.33em;
  color: var(--text-dark);
}

.booking-disclaimer {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
}

.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--btn-dark);
  flex-shrink: 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.form-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
}

.form-input {
  height: 52px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  background: #e8e8e8;
}

/* Time split selects */
.time-selects {
  display: flex;
  gap: 6px;
}
.time-selects .form-select {
  flex: 1;
  min-width: 0;
}

/* Date text input — consistent size during type switch */
.date-text-input {
  height: 52px !important;
  min-height: 52px !important;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-input.field-error {
  outline: 2px solid #c0392b;
  background: #fff5f5;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.form-row .form-field {
  flex: 1;
  min-width: 0;
}

.passengers-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.passengers-input-wrap .form-input {
  padding-right: 80px;
}

.passengers-controls {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-counter {
  width: 28px;
  height: 28px;
  background: var(--btn-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-counter:hover {
  background: #111;
}

.passenger-count-display {
  font-size: 16px;
  color: var(--text-dark);
  min-width: 20px;
  text-align: center;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
  display: none;
}

.autocomplete-dropdown.open {
  display: block;
}

.autocomplete-item {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s;
}

.autocomplete-item:hover {
  background: var(--surface);
}

/* Small pill dark button */
.btn-pill-sm {
  background: var(--btn-dark);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-pill-sm:hover {
  background: #111;
}

.btn-pill-lg {
  background: var(--btn-dark);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  height: 50px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-pill-lg:hover {
  background: #111;
}

.btn-edit {
  background: none;
  border: 1px solid #333333;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--btn-dark);
  display: inline-flex;
  align-items: center;
}

.btn-edit:hover {
  background: var(--surface);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* ─── STEP 2 ──────────────────────────────────────────── */
.booking-panel-left {
  width: 541px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.33em;
  color: var(--text-dark);
}

.summary-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.summary-row .summary-field {
  flex: 1;
}

.summary-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-field-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
}

.summary-field-value {
  height: 43px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.booking-panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  height: calc(100vh - 80px);
}

/* Mobile-only trip summary strip — hidden on desktop */
.s2-mobile-strip {
  display: none;
}

.vehicles-scroll {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 4px;
}

.vehicle-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  position: relative;
}

.vehicle-card:hover {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.vehicle-card.selected {
  box-shadow: 0 0 0 3px var(--text-dark);
}

.vehicle-card-image {
  background: url('../images/fleet.jpg') center/cover no-repeat, #333;
  border-radius: var(--radius-md);
  min-width: 398px;
  min-height: 261px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.vehicle-name-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vehicle-type {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

.vehicle-model {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

.vehicle-specs {
  display: flex;
  flex-direction: row;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
}

.vehicle-spec {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vehicle-price-label {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
}

.vehicle-price {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-dark);
}

.vehicle-selector {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 2px solid #999;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

.vehicle-card.selected .vehicle-selector {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

/* ─── STEP 3 ──────────────────────────────────────────── */
.step3-left {
  width: 541px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.step3-left .booking-panel-left {
  width: 100%;
}

.selected-vehicle-mini {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: row;
  gap: 60px;
  height: 121px;
  align-items: center;
}

.mini-car-image {
  background: url('../images/fleet.jpg') center/cover no-repeat, #333;
  border-radius: 12px;
  width: 167px;
  height: 97px;
  flex-shrink: 0;
  overflow: hidden;
}

.mini-car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-car-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-car-type {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.mini-car-model {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
}

.step3-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.step3-price-label {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
}

.step3-price-amount {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-dark);
}

.step3-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  min-width: 0;
}

.step3-right {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-textarea {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  resize: vertical;
  height: 101px;
  width: 100%;
}

.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  height: 52px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23818181' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--surface);
  padding-right: 36px;
}

/* ─── CONFIRMATION MESSAGE ────────────────────────────── */
.booking-step-3.showing-confirmation {
  align-items: center;
  justify-content: center;
}

.booking-confirmation {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 60px 40px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.booking-confirmation.active {
  display: flex;
}

/* ─── CAPACITY MODAL ──────────────────────────────────── */
#capacity-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#capacity-modal.active {
  display: flex;
}
.cap-inner {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cap-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
}
.cap-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}
.cap-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-align: left;
  gap: 16px;
}
.cap-option:hover {
  box-shadow: 0 0 0 2px var(--text-dark);
}
.cap-option-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}
.cap-option-price {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
}
.cap-iva {
  font-size: 13px;
  color: var(--text-muted);
}
.cap-cancel {
  align-self: flex-start;
}

.confirmation-title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-dark);
}

.confirmation-body {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}

.confirmation-error {
  color: #c0392b;
}

/* ─── CONTACT PAGE ────────────────────────────────────── */
.contact-main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 120px var(--page-pad) var(--section-gap);
}

.contact-row {
  display: flex;
  flex-direction: row;
  gap: 100px;
}

.contact-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.contact-group-label {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.33em;
  color: var(--text-muted);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item-title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4em;
  color: var(--text-primary);
}

.contact-item-link {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4em;
  color: var(--text-primary);
}

.contact-item-link a {
  color: inherit;
  text-decoration: none;
}

.contact-item-link a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

/* Hero height cap for 1401-1700px wide laptop screens (e.g. 1440×900 MacBook) */
@media (min-width: 1401px) and (max-width: 1700px) and (max-height: 960px) {
  .hero-section {
    max-height: 68vh;
  }
}

@media (max-width: 1400px) {
  :root {
    --section-gap: 140px;
  }

  .hero-section {
    max-height: 65vh;
  }

  .hero-headline,
  .hero-tagline {
    font-size: 52px;
    line-height: 50px;
    letter-spacing: -2px;
  }

  .meet-body {
    font-size: 38px;
    line-height: 56px;
  }

  .footer-tagline {
    font-size: 46px;
    line-height: 48px;
  }

  .locations-panel {
    width: min(620px, 47%);
  }

  .booking-panel-left,
  .step3-left {
    width: 440px;
  }

  .vehicle-card-image {
    min-width: 260px;
  }
}

@media (max-width: 1199px) {
  :root {
    --page-pad: 24px;
    --section-gap: 100px;
  }

  .hero-headline,
  .hero-tagline {
    font-size: 42px;
    line-height: 42px;
    letter-spacing: -1.6px;
  }

  .hero-text {
    bottom: 32px;
    left: 32px;
    right: 32px;
  }

  .meet-body {
    font-size: 32px;
    line-height: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations-row {
    flex-direction: column;
  }

  .locations-map {
    min-height: 360px;
  }

  .locations-panel {
    width: 100%;
    min-width: 0;
  }

  .locations-description {
    font-size: 30px;
    line-height: 38px;
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
    min-height: unset;
  }

  .footer-tagline {
    font-size: 40px;
    line-height: 1.1em;
  }

  .footer-left {
    max-width: 100%;
    gap: 28px;
  }

  .footer-right {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
  }

  .footer-logo .logo-footer-svg {
    width: 100%;
    max-width: 439px;
    height: auto;
  }

  .booking-step-2,
  .booking-step-3 {
    flex-direction: column;
    align-items: stretch;
  }

  /* When stacked, hide full info panel and show compact strip instead */
  .booking-step-2 .booking-panel-left {
    display: none;
  }

  .s2-mobile-strip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--white);
    border-radius: 12px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  .s2-strip-route {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 70px;
  }

  .s2-strip-meta {
    font-size: 12px;
    color: var(--text-muted);
  }

  .s2-mobile-strip .btn-edit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
  }

  .booking-panel-left {
    width: 100%;
  }

  .vehicle-card {
    flex-direction: column;
  }

  .vehicle-card-image {
    min-width: unset;
    width: 100%;
    min-height: 200px;
  }

  .step3-left {
    width: 100%;
  }

  .contact-row {
    flex-direction: column;
    gap: 60px;
  }
}

/* ─── LUCIDE ICONS ────────────────────────────────────── */
.btn-pill-sm .lucide,
.btn-pill-lg .lucide {
  width: 16px; height: 16px; flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-pill-sm:hover .lucide-arrow-right,
.btn-pill-lg:hover .lucide-arrow-right {
  transform: translateX(3px);
}

.btn-pill-sm:hover .lucide-arrow-left {
  transform: translateX(-3px);
}

.footer-link-item .lucide {
  width: 14px; height: 14px; flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-link-item:hover .lucide-arrow-right {
  transform: translateX(3px);
}

/* Phone button icon */
.btn-phone .lucide {
  transition: transform 0.2s ease;
}
.btn-phone:hover .lucide-phone {
  transform: rotate(-12deg) scale(1.1);
}

/* Location group header icons */
.location-group-header .lucide {
  transition: transform 0.25s ease;
}
.location-group-header:hover .lucide-plane {
  transform: translateX(5px) translateY(-4px);
}
.location-group-header:hover .lucide-train-front {
  transform: translateX(5px);
}

@media (max-width: 767px) {
  :root {
    --page-pad: 16px;
    --section-gap: 80px;
  }

  /* ── Hero mobile ─────────────────────────────────────────── */
  .hero-section {
    aspect-ratio: 370 / 665;
    border-radius: 12px;
  }

  .hero-text {
    top: 0;
    bottom: 0;
    left: 16px;
    right: 16px;
    transform: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 56px;
    gap: 0;
  }

  .site-header {
    padding: 16px var(--page-pad);
    height: auto;
  }

  .btn-phone {
    padding: 0;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .btn-phone-label {
    display: none;
  }

  .icon-phone {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
  }

  .header-logo .logo-svg {
    height: 22px;
  }

  .header-nav {
    gap: 8px;
  }

  .btn-reservar {
    padding: 10px 14px;
    font-size: 14px;
    height: 42px;
  }

  .step1-panel {
    width: 100%;
    padding: 20px;
    gap: 16px;
  }

  .booking-card {
    gap: 20px;
    padding: 20px;
  }

  .hero-headline,
  .hero-tagline {
    font-size: 30px;
    line-height: 1em;
    letter-spacing: -0.04em;
    max-width: 100%;
    text-align: center;
    font-weight: 600;
  }

  .section-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.21em;
  }

  .meet-body {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.21em;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-card {
    padding: 24px;
    border-radius: 12px;
    height: 120px;
    min-height: unset;
    gap: 24px;
  }

  .service-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.21em;
  }

  .service-card-body {
    font-size: 12px;
    line-height: 1.21em;
  }

  .locations-description {
    font-size: 16px;
    line-height: 1.21em;
    max-width: none;
  }

  .locations-map {
    min-height: 261px;
    max-height: 261px;
    border-radius: 12px;
  }

  .locations-panel {
    border-radius: 12px;
    padding: 24px;
    gap: 24px;
  }

  .location-group {
    gap: 12px;
  }

  .location-group-header {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.21em;
  }

  .location-list li {
    font-size: 12px;
    line-height: 1.33em;
  }

  .fleet-description {
    font-size: 16px;
    line-height: 1.21em;
  }

  .fleet-image {
    border-radius: 12px;
    aspect-ratio: unset;
    height: 439px;
  }

  /* Section inner gaps — Figma layout_HG7LL5: gap 40px */
  .meet-section,
  .services-section,
  .locations-section,
  .fleet-section {
    gap: 40px;
  }

  /* Locations inner — layout_HO5SZR: gap 24px, map+panel: gap 12px */
  .locations-content {
    gap: 24px;
  }

  .locations-row {
    gap: 12px;
  }

  .footer-tagline {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.21em;
    letter-spacing: -0.02em;
  }

  .footer-link-category {
    font-size: 18px;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 28px;
  }

  .footer-link-col {
    flex: none;
  }

  .footer-link-item .lucide {
    display: none;
  }

  .footer-copyright {
    text-align: center;
  }

  .booking-overlay {
    padding: 16px;
    gap: 12px;
  }

  .vehicle-card-image {
    min-height: 160px;
    max-height: 160px;
    min-width: unset;
    width: 100%;
  }

  .vehicle-type,
  .vehicle-model {
    font-size: 22px;
  }

  .step3-left {
    width: 100%;
  }

  .selected-vehicle-mini {
    gap: 20px;
  }

  .form-row {
    gap: 12px;
  }

  .form-row .form-field {
    min-width: 0;
  }

  .contact-item-title,
  .contact-item-link,
  .contact-group-label {
    font-size: 22px;
  }
}
