/* ============================================================================
   Xelabus — styles.css
   Web-muestra premium · Hecho por AutomatizaIA.app (firma rastreable Regla 24, capa CSS)
   Self-contained · sin CDNs · sin fuentes externas (system-ui premium stack)
   ============================================================================ */

/* ---- Tokens ---- */
:root {
  --navy-950: #061428;
  --navy-900: #0B1E3F;
  --navy-800: #112a52;
  --navy-700: #1a3a6b;
  --cyan:     #1BC6F0;
  --cyan-400: #5AD8FF;
  --amber:    #FFB43A;
  --ink:      #0B1E3F;
  --slate:    #52627a;
  --slate-2:  #74839a;
  --line:     #e6ebf2;
  --surface:  #ffffff;
  --surface-2:#f4f7fb;
  --cream:    #F5F8FC;
  --ok:       #10B981;

  --radius:   18px;
  --radius-sm:12px;
  --radius-lg:26px;
  --shadow-sm: 0 2px 8px rgba(11,30,63,.06);
  --shadow:    0 14px 40px -14px rgba(11,30,63,.18);
  --shadow-lg: 0 30px 70px -24px rgba(11,30,63,.30);
  --maxw: 1180px;

  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* panel firma */
  --auto-accent: #1BC6F0;
  --auto-cream:  #F5F8FC;
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 800px; }
.grad { background: linear-gradient(100deg, var(--cyan) 0%, var(--cyan-400) 50%, var(--amber) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  --_bg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--wa { background: #25D366; color: #06331c; box-shadow: 0 10px 26px -10px rgba(37,211,102,.65); }
.btn--wa:hover { background: #21bd5b; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(37,211,102,.7); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.hero .btn--ghost { color: #eaf3ff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 2px;
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(27,198,240,.35)); }
.brand__name { font-size: 21px; letter-spacing: -0.03em; color: var(--navy-900); }
.brand__name span { color: var(--cyan); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--slate); transition: color .15s; }
.nav__links a:hover { color: var(--navy-900); }
.nav__cta { margin-left: 6px; }
@media (max-width: 860px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #eaf3ff; padding: 92px 0 84px; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(90,216,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(90,216,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 15%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 15%, #000 40%, transparent 80%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero__glow--1 { width: 540px; height: 540px; top: -180px; right: -120px; background: radial-gradient(circle, var(--cyan) 0%, transparent 70%); }
.hero__glow--2 { width: 460px; height: 460px; bottom: -220px; left: -140px; background: radial-gradient(circle, #2a6bd6 0%, transparent 70%); opacity: .5; }
.hero__road { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--amber) 70%, transparent); opacity: .5; }
.hero__inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: #d6f4ff; background: rgba(27,198,240,.1); border: 1px solid rgba(27,198,240,.3);
  margin-bottom: 26px;
}
.hero__title { font-size: clamp(2.1rem, 6vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
.hero__sub { margin: 22px auto 0; max-width: 620px; font-size: clamp(1rem, 2.2vw, 1.18rem); color: #b9cbe4; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 52px; }
.hero__stats li {
  display: flex; flex-direction: column; align-items: center;
  min-width: 118px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
}
.hero__stats strong { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.hero__stats span { font-size: 12.5px; color: #9fb4d1; text-transform: uppercase; letter-spacing: .05em; }

/* live dot (verde 24/7) */
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-flex; flex-shrink: 0; }
.live-dot--sm { width: 7px; height: 7px; }
.live-dot__ping { position: absolute; inset: 0; border-radius: 50%; background: var(--ok); opacity: .65; animation: ping 2s ease-in-out infinite; }
@keyframes ping { 0%,100% { transform: scale(1); opacity: .65; } 50% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot__ping { animation: none; } }

/* ---- Sections ---- */
.section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.sec-head--left { text-align: left; margin: 0; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); background: rgba(27,198,240,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--navy-900); }
.sec-head p { margin-top: 14px; color: var(--slate); font-size: 1.05rem; }

/* ---- Finder ---- */
.finder { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.finder__card {
  max-width: 780px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px;
}
.finder__controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 9px; }
.field--swap { padding-bottom: 4px; }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg__btn {
  flex: 1; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14.5px;
  color: var(--slate); padding: 10px 10px; border-radius: 9px; cursor: pointer; transition: all .18s ease;
}
.seg__btn.is-active { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.swap {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--cyan); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .3s ease, box-shadow .18s ease;
}
.swap:hover { box-shadow: var(--shadow-sm); transform: rotate(180deg); }
.finder__route { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 8px; font-weight: 700; font-size: 1.15rem; color: var(--navy-900); }
.finder__route svg { color: var(--cyan); }
.finder__clock { text-align: center; font-size: 13.5px; color: var(--slate-2); margin-bottom: 20px; }
.departures { display: flex; flex-direction: column; gap: 10px; }
.dep {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color .2s ease, background .2s ease;
}
.dep__time { font-size: 1.15rem; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; min-width: 96px; }
.dep__meta { font-size: 13.5px; color: var(--slate); flex: 1; }
.dep__tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--slate); border: 1px solid var(--line); }
.dep.is-next {
  border-color: var(--cyan); background: linear-gradient(100deg, rgba(27,198,240,.09), rgba(90,216,255,.04));
  box-shadow: 0 0 0 1px var(--cyan), 0 14px 30px -14px rgba(27,198,240,.55);
}
.dep.is-next .dep__tag { background: var(--cyan); color: #04283a; border-color: transparent; }
.dep.is-past { opacity: .45; }
.dep.is-past .dep__time { color: var(--slate-2); }
.dep__glow { position: relative; }

.microcopy { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12.5px; color: var(--slate-2); }
.microcopy svg { color: var(--cyan); flex-shrink: 0; }
.microcopy--center { justify-content: center; margin-top: 24px; }

/* ---- Rutas tables ---- */
.rutas { background: var(--surface); }
.rutas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface); }
.table-card__head { padding: 20px 22px; background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: #fff; }
.table-card__head h3 { font-size: 1.2rem; }
.table-card__head span { font-size: 13px; color: #a9c0e0; }
.table-scroll { overflow-x: auto; }
.table-card table { width: 100%; border-collapse: collapse; min-width: 300px; }
.table-card th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); padding: 14px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 700; }
.table-card td { padding: 13px 22px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy-900); font-size: 15px; }
.table-card tr:last-child td { border-bottom: 0; }
.table-card tbody tr:hover { background: rgba(27,198,240,.04); }

/* ---- Tarifa ---- */
.tarifa { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.tarifa__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.ticks { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--slate); font-size: 1.02rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(16,185,129,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.price-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff; border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.price-card__glow { position: absolute; width: 320px; height: 320px; top: -140px; right: -120px; background: radial-gradient(circle, rgba(27,198,240,.55), transparent 70%); filter: blur(30px); }
.price-card__tag { position: relative; display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-400); background: rgba(27,198,240,.14); padding: 6px 14px; border-radius: 999px; }
.price-card__amount { position: relative; font-size: clamp(3.4rem, 12vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; margin: 14px 0 4px; line-height: 1; }
.price-card__amount .cur { font-size: .45em; vertical-align: super; color: var(--cyan-400); margin-right: 4px; }
.price-card__amount .per { font-size: .24em; font-weight: 600; color: #a9c0e0; letter-spacing: 0; }
.price-card__note { position: relative; font-size: 13px; color: #a9c0e0; margin-bottom: 24px; }
.price-card .btn { position: relative; margin-top: 10px; }
.price-card .btn--ghost { color: #eaf3ff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.price-card .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---- Amenities ---- */
.abordo { background: var(--surface); }
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amenity { text-align: center; padding: 30px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.amenity:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.amenity__ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; margin-bottom: 16px; color: var(--cyan); background: linear-gradient(150deg, rgba(27,198,240,.14), rgba(255,180,58,.1)); }
.amenity h3 { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 8px; }
.amenity p { font-size: 14px; color: var(--slate); }

/* ---- Terminales ---- */
.terminales { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.terminals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.terminal { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.terminal__pin { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--navy-900); color: var(--cyan); margin-bottom: 16px; }
.terminal h3 { font-size: 1.25rem; color: var(--navy-900); margin-bottom: 10px; }
.terminal address { font-style: normal; color: var(--slate); font-size: 15px; line-height: 1.6; }
.terminal__rows { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.terminal__rows a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy-900); transition: all .18s ease; }
.terminal__rows a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.terminal__rows .map-link { background: rgba(27,198,240,.08); border-color: rgba(27,198,240,.28); color: var(--cyan); }

/* ---- Steps ---- */
.reservar { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 32px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(140deg, var(--cyan), #2a6bd6); box-shadow: 0 10px 24px -10px rgba(27,198,240,.7); margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; color: var(--navy-900); margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 15px; }
.reservar__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }

/* ---- FAQ ---- */
.faq { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy-900); font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231BC6F0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .25s ease; }
.qa[open] summary::after { transform: rotate(180deg); }
.qa__body { padding: 0 22px 20px; color: var(--slate); font-size: 15px; }
.qa__body p { line-height: 1.65; }

/* ---- Footer ---- */
.footer { background: var(--navy-950); color: #c3d4ec; padding: 66px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1.7fr; gap: 44px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand .brand__name { font-size: 26px; color: #fff; }
.footer__brand p { margin: 14px 0 20px; font-size: 15px; color: #9fb4d1; max-width: 340px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer__cols a { display: block; text-decoration: none; color: #9fb4d1; font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer__cols a:hover { color: var(--cyan); }
.footer__legal { text-align: center; font-size: 12.5px; color: #6f83a1; margin-top: 22px; }

/* Panel firma AutomatizaIA (canónico, adaptado a cyan) */
.automatiza-panel {
  max-width: var(--maxw); margin: 28px auto 0; padding: 18px 22px;
  border-top: 1px solid color-mix(in srgb, var(--auto-cream) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--auto-cream) 10%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--auto-accent) 6%, transparent) 0%, color-mix(in srgb, var(--auto-cream) 2%, transparent) 100%);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: color-mix(in srgb, var(--auto-cream) 78%, transparent);
}
.automatiza-panel__mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--auto-accent) 15%, transparent); color: var(--auto-accent); flex-shrink: 0; }
.automatiza-panel__text { flex: 1; min-width: 240px; line-height: 1.5; }
.automatiza-panel__text strong { color: var(--auto-cream); font-weight: 600; }
.automatiza-panel__text a { color: var(--auto-accent); text-decoration: none; font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--auto-accent) 40%, transparent); transition: color .2s ease, border-color .2s ease; }
.automatiza-panel__text a:hover { color: color-mix(in srgb, var(--auto-accent) 80%, white 20%); border-bottom-color: var(--auto-accent); }
.automatiza-panel__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--auto-accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--auto-accent) 28%, transparent); color: var(--auto-accent); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.automatiza-panel__live { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--ok); }
.automatiza-panel__dot { position: relative; display: inline-flex; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.automatiza-panel__dot-ping { position: absolute; inset: 0; border-radius: 50%; background: var(--ok); opacity: .6; animation: ping 2s ease-in-out infinite; }
.automatiza-panel__live-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---- Reveal on scroll ---- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================================
   Asistente IA on-site (Regla 38)
   ============================================================================ */
.assist { position: fixed; right: 20px; bottom: 20px; z-index: 150; font-family: var(--sans); }
.assist__launcher {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-800));
  box-shadow: 0 16px 40px -12px rgba(11,30,63,.6); display: grid; place-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.assist__launcher:hover { transform: translateY(-3px) scale(1.04); }
.assist__launcher-ping { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--navy-900); }
.assist__launcher-ping::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--ok); opacity: .6; animation: ping 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .assist__launcher-ping::after { animation: none; } }

.assist__bubble-teaser {
  position: absolute; right: 74px; bottom: 12px; width: max-content; max-width: 220px;
  background: #fff; color: var(--navy-900); font-size: 13.5px; font-weight: 500; line-height: 1.4;
  padding: 11px 15px; border-radius: 16px 16px 4px 16px; border: 1px solid var(--line);
  box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; transform: translateX(10px) scale(.9); transform-origin: bottom right; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.assist__bubble-teaser.show { opacity: 1; transform: none; pointer-events: auto; }

.assist__panel {
  position: absolute; right: 0; bottom: 76px; width: min(360px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 120px));
  background: #fff; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; animation: assistIn .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes assistIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.assist__panel[hidden] { display: none; }
.assist__head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: #fff; }
.assist__head-av { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.12); }
.assist__head-txt { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.assist__head-txt strong { font-size: 15px; }
.assist__head-txt span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #c8f9e5; }
.assist__close { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.assist__close:hover { background: rgba(255,255,255,.22); }
.assist__log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 15px; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.msg--bot { align-self: flex-start; background: #fff; color: var(--navy-900); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.msg--user { align-self: flex-end; background: var(--navy-900); color: #fff; border-bottom-right-radius: 5px; }
.msg strong { font-weight: 700; }
.msg a { color: var(--cyan); font-weight: 600; }
.msg--bot a { color: #0e8fb3; }
.msg .wa-inline { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 14px; background: #25D366; color: #06331c; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 15px; border-bottom-left-radius: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-2); animation: typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.assist__chips { display: flex; gap: 8px; padding: 10px 14px 4px; flex-wrap: wrap; background: var(--surface-2); }
.chip { border: 1px solid var(--line); background: #fff; color: var(--navy-900); font: inherit; font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.assist__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.assist__input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 14px; outline: none; transition: border-color .15s; }
.assist__input:focus { border-color: var(--cyan); }
.assist__send { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--navy-900); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s; }
.assist__send:hover { background: var(--cyan); transform: scale(1.05); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .rutas__grid, .terminals, .tarifa__inner { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .tarifa__inner { gap: 30px; }
}
@media (max-width: 620px) {
  .section { padding: 62px 0; }
  .hero { padding: 70px 0 64px; }
  .finder__card { padding: 22px 18px; }
  .finder__controls { grid-template-columns: 1fr; gap: 14px; }
  .field--swap { display: none; }
  .amenities { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .hero__stats li { min-width: 92px; padding: 13px 14px; }
  .automatiza-panel { justify-content: center; text-align: center; }
}
