/* TRAVELINN Bus — "Diamond Class"
   Landing page · SOLO TEMA OSCURO
   Paleta derivada del logo (oro/plata sobre negro). */

:root {
  --bg: #0B0B0C;
  --bg-2: #101115;
  --surface: #17181B;
  --surface-2: #1E2024;
  --text: #F5F4F1;
  --muted: #9EA1A8;
  --silver: #C6C9CE;
  --gold: #C9A24B;
  --gold-light: #E7CE8C;
  --gold-deep: #A6802F;
  --border: rgba(198, 201, 206, .14);
  --border-strong: rgba(198, 201, 206, .24);
  --overlay: rgba(11, 11, 12, .62);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --header-bg: rgba(11, 11, 12, .72);
  --wa: #25D366;

  --serif: 'Didot', 'Bodoni MT', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --script: 'Snell Roundhand', 'Segoe Script', 'Brush Script MT', cursive;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: #0B0B0C; }

img { max-width: 100%; }

/* ============ HELPERS ============ */
.container { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.section { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); scroll-margin-top: 84px; }
.band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { letter-spacing: .32em; font-size: 12px; color: var(--gold); text-transform: uppercase; margin: 0 0 12px; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 5vw, 52px); margin: 0; line-height: 1.05; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.6; }
.gold-gradient {
  background: linear-gradient(112deg, var(--gold-light), var(--gold) 48%, var(--silver) 78%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.diamond { display: inline-block; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }

.placeholder-note {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted);
}

/* WhatsApp button (primary gold) */
.btn-wa {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #0B0B0C; font-weight: 600; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 6px 18px -8px var(--gold); transition: transform .2s, filter .2s;
}
.btn-wa:hover { filter: brightness(1.06); transform: translateY(-1px); color: #0B0B0C; }
.btn-wa .dot { width: 8px; height: 8px; background: var(--wa); border-radius: 50%; box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--text); font-weight: 500;
  border: 1px solid var(--border-strong); border-radius: 999px; transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============ HEADER / NAVBAR ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; line-height: 1; gap: 2px; flex: none; }
.brand__name {
  font-family: var(--serif); font-size: 22px; letter-spacing: .14em; font-weight: 600;
  background: linear-gradient(115deg, var(--gold-light), var(--gold) 45%, var(--silver) 74%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__name .bus {
  font-family: var(--sans); font-size: 12px; letter-spacing: .34em; color: var(--muted);
  -webkit-text-fill-color: var(--muted); margin-left: 6px;
}
.brand__tag { font-family: var(--script); font-size: 15px; color: var(--gold); margin-left: 1px; }

.nav { display: flex; gap: 26px; flex-wrap: wrap; margin-left: auto; font-size: 13.5px; letter-spacing: .03em; align-items: center; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn-wa { font-size: 13.5px; padding: 9px 16px; }

/* Botón hamburguesa — oculto en escritorio, visible en móvil */
.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 15%, rgba(201, 162, 75, .20), transparent 55%),
    radial-gradient(90% 80% at 12% 90%, rgba(198, 201, 206, .08), transparent 60%),
    repeating-linear-gradient(135deg, var(--bg-2) 0 22px, var(--bg) 22px 44px);
}
.hero__tag {
  position: absolute; top: 16px; left: 16px; font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px; letter-spacing: .06em; color: var(--muted);
  border: 1px dashed var(--border-strong); padding: 5px 9px; border-radius: 6px; background: rgba(0, 0, 0, .28);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, .35) 0%, rgba(11, 11, 12, .05) 30%, var(--overlay) 78%, var(--bg) 100%);
}
.hero__inner {
  position: relative; width: 100%;
  padding-top: 0; padding-bottom: clamp(48px, 7vw, 84px);
}
.hero__kicker { font-family: var(--sans); letter-spacing: .34em; font-size: 12px; color: var(--gold); text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 8.2vw, 88px); line-height: 1.02; margin: 0 0 8px; max-width: 14ch; letter-spacing: -.01em; }
.hero__script { font-family: var(--script); font-size: clamp(22px, 4vw, 34px); color: var(--silver); margin: 0 0 22px; }
.hero__text { font-size: clamp(15px, 2vw, 18px); line-height: 1.6; color: var(--muted); max-width: 52ch; margin: 0 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__actions .btn-wa { font-size: 15.5px; padding: 15px 26px; box-shadow: 0 14px 34px -14px var(--gold); }
.hero__actions .btn-wa .dot { width: 9px; height: 9px; box-shadow: none; }
.hero__actions .btn-wa:hover { transform: translateY(-2px); filter: brightness(1.05); }
.hero__actions .btn-outline { font-size: 15.5px; padding: 15px 26px; }

.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--silver);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); padding: 9px 15px; border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* ============ FLOTA ============ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .lead { max-width: 34ch; margin: 0; }

.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.fleet-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s ease;
}
.fleet-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.fleet-card__media {
  aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 18px, var(--surface) 18px 36px);
  border-bottom: 1px solid var(--border);
}
.fleet-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-icon { font-family: var(--serif); font-size: 44px; color: var(--gold); opacity: .9; }
.fleet-card__badge {
  position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #0B0B0C; background: linear-gradient(120deg, var(--gold-light), var(--gold)); padding: 5px 11px;
  border-radius: 999px; font-weight: 700;
}
.fleet-card__body { padding: 26px 26px 28px; }
.fleet-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fleet-card__head h3 { font-family: var(--serif); font-size: 26px; margin: 0; font-weight: 600; }
.fleet-card__cap { font-size: 13px; color: var(--gold); letter-spacing: .04em; white-space: nowrap; }
.fleet-card__desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 12px 0 20px; }
.amenities { display: flex; gap: 8px; flex-wrap: wrap; }
.amenity { font-size: 12.5px; color: var(--silver); border: 1px solid var(--border-strong); padding: 6px 12px; border-radius: 8px; background: var(--surface-2); }

/* ============ DESTINOS Y TARIFAS ============ */
#destinos .inner { max-width: 1080px; margin: 0 auto; }
.center { text-align: center; }
#destinos .head { margin-bottom: 36px; }
#destinos .head .lead { max-width: 56ch; margin: 0 auto; }
#destinos .h2 { margin-bottom: 14px; }

.tabs-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.tabs {
  display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 4px; flex-wrap: wrap; justify-content: center;
}
.tab {
  border: none; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 999px; background: transparent; color: var(--muted); transition: color .2s;
}
.tab[aria-selected="true"] {
  font-weight: 600; color: #0B0B0C;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
}

.search-wrap { display: flex; justify-content: center; margin-bottom: 22px; }
.search { position: relative; width: min(420px, 100%); }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.search input {
  width: 100%; padding: 13px 16px 13px 40px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; color: var(--text); font-family: var(--sans); font-size: 15px; outline: none; transition: border-color .2s;
}
.search input:focus { border-color: var(--gold); }

.price-list { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.price-list__scroll { max-height: 520px; overflow-y: auto; }
.price-row {
  display: flex; align-items: center; gap: 14px; padding: 15px clamp(16px, 3vw, 26px);
  border-bottom: 1px solid var(--border); transition: background .2s;
}
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--surface-2); }
.price-row .dot { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }
.price-row .name { flex: 1; font-size: 15px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row .price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.price-row .price .from { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.price-row .price .amount { font-family: var(--serif); font-size: 17px; color: var(--gold); font-weight: 600; }
.price-row .cotizar {
  flex: none; font-size: 12.5px; font-weight: 600; color: var(--text); border: 1px solid var(--border-strong);
  padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s;
}
.price-row .cotizar:hover { background: var(--gold); color: #0B0B0C; border-color: var(--gold); }
.no-results { padding: 40px; text-align: center; color: var(--muted); font-size: 15px; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; margin: 18px auto 0; max-width: 60ch; }

/* ============ POR QUÉ ELEGIRNOS ============ */
#porque .head { text-align: center; margin-bottom: 44px; }
.reasons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px;
  background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.reason { background: var(--surface); padding: 32px 28px; transition: background .3s; }
.reason:hover { background: var(--surface-2); }
.reason__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reason__head span {
  width: 14px; height: 14px; background: linear-gradient(120deg, var(--gold-light), var(--gold));
  transform: rotate(45deg); flex: none; box-shadow: 0 0 0 4px rgba(201, 162, 75, .12);
}
.reason__head h3 { font-family: var(--serif); font-size: 20px; margin: 0; font-weight: 600; }
.reason p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ============ GALERÍA / CARRUSEL ============ */
#galeria .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 18px; cursor: pointer; transition: border-color .2s, color .2s;
}
.carousel-nav button:hover { border-color: var(--gold); color: var(--gold); }

.carousel { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.carousel__track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide {
  flex: 0 0 100%; aspect-ratio: 16/9; position: relative; overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
/* Copia difuminada de la misma foto: rellena los costados de las verticales
   sin recortar la imagen real. Se pinta desde JS (ver paintBackdrops). */
.slide__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(34px) saturate(1.15) brightness(.55);
  transform: scale(1.2);
}
/* contain, no cover: la foto completa siempre visible, sin recorte. */
.slide img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.slide__inner { text-align: center; padding: 20px; }
.slide__inner .media-icon { font-size: 56px; opacity: .85; }
.slide__note { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--silver); margin-top: 10px; }
.slide__ratio { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--muted); margin-top: 4px; }

.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 20px; }
.dots button {
  width: 9px; height: 9px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
  background: var(--border-strong); transition: width .3s, background .3s;
}
.dots button[aria-current="true"] { width: 26px; background: var(--gold); }

/* ============ CONTACTO ============ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; align-items: start; }
#contacto .h2 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 24px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-info > div > div:not(.contact-label) { font-size: 15px; line-height: 1.55; }
.contact-hours { font-size: 15px; line-height: 1.7; color: var(--muted); }
.contact-wa247 { font-size: 13.5px; color: var(--gold); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.contact-wa247 span { width: 7px; height: 7px; background: var(--wa); border-radius: 50%; }
.contact-cols { display: flex; gap: 36px; flex-wrap: wrap; }
.contact-cols a { font-size: 14.5px; color: var(--text); }
.contact-cols a:hover { color: var(--gold); }
.contact-phone { font-size: 14.5px; font-family: ui-monospace, Menlo, monospace; color: var(--muted); }
.contact-info .btn-wa { justify-content: center; font-weight: 700; font-size: 16px; padding: 16px 24px; border-radius: 14px; margin-top: 6px; box-shadow: 0 14px 34px -14px var(--gold); }
.contact-info .btn-wa .dot { width: 10px; height: 10px; box-shadow: none; }
.contact-info .btn-wa:hover { transform: translateY(-2px); }

.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; aspect-ratio: 4/3; min-height: 340px; border: 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); }
.site-footer .container { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; align-items: start; margin-bottom: 40px; }
.footer-brand .brand__name { font-size: 22px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 16px 0 0; max-width: 34ch; }
.footer-col .contact-label { margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-col .btn-wa { font-size: 14px; padding: 12px 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

/* ============ FLOATING WHATSAPP ============ */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); animation: waPulse 2.6s infinite; transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa span { font-family: var(--serif); font-size: 26px; color: #fff; font-weight: 700; }

/* ============ SCROLL REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============ ANIMATIONS ============ */
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ RESPONSIVE ============ */

/* --- Navegación móvil: menú hamburguesa (≤860px) --- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 9px; cursor: pointer;
    background: transparent; border: 1px solid var(--border-strong); border-radius: 10px;
  }
  .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* El botón WhatsApp del header se oculta en móvil (ya está el flotante) */
  .header-cta .btn-wa { display: none; }
  .header-cta { margin-left: auto; }

  /* El menú se convierte en panel desplegable bajo el header */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 4px clamp(16px, 4vw, 40px) 14px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 15.5px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }

  .hero__kicker { letter-spacing: .18em; }

  /* En móvil el hero no necesita casi pantalla completa: menos hueco arriba.
     El padding-top da aire entre el header y el kicker: como el contenido
     va alineado abajo (align-items: flex-end), sin esto el texto queda
     pegado al header en cuanto crece y llena la pantalla. */
  .hero { min-height: 82vh; padding-top: clamp(32px, 8vw, 48px); }
}

/* --- Lista de precios en pantallas chicas (≤560px): 2 líneas por renglón --- */
@media (max-width: 560px) {
  .price-row { flex-wrap: wrap; row-gap: 8px; }
  .price-row .dot { order: 0; align-self: center; }
  .price-row .name { order: 1; flex: 1 1 auto; white-space: normal; overflow: visible; text-overflow: clip; }
  .price-row .cotizar { order: 2; margin-left: auto; }
  .price-row .price { order: 3; flex: 1 1 100%; margin-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
