/* Flota: una fotografía completa y una tira de selección que comparte sus recursos. */
#flota { background: radial-gradient(ellipse at 62% 32%, #282729, #141416 56%, #0c0c0e); }
#rutas { background: #121516; }
:is(#flota, #rutas) .section-inner { width: min(100%, 1440px); }
:is(#flota, #rutas) .section-head {
  padding: 0;
  border: 0;
  background: transparent;
  gap: clamp(24px, 5vw, 86px);
  margin-bottom: clamp(24px, 3vw, 52px);
}
:is(#flota, #rutas) .section-head > p {
  max-width: 30ch;
  margin-bottom: .2em;
  color: #cdcac5;
  font-size: clamp(.97rem, 1.15vw, 1.1rem);
  line-height: 1.58;
}
:is(#flota, #rutas) .section-head h2 {
  max-width: 17ch;
  margin-top: .22em;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(2.8rem, 5.8vw, 6.6rem);
  line-height: .97;
  letter-spacing: -.035em;
  text-wrap: balance;
}
#flota .fleet-showcase {
  display: grid;
  grid-template: "picture strip" auto "copy strip" auto / minmax(0, 1fr) clamp(110px, 11vw, 174px);
  min-height: 0;
  border: 0;
  background: #0b0b0d;
  box-shadow: none;
}
#flota .fleet-media { grid-area: picture; height: auto; min-height: 0; aspect-ratio: 1672 / 941; }
#flota .fleet-media::after { display: none; }
#flota .fleet-slide {
  display: block;
  transform: none;
  clip-path: inset(0 0 0 100%);
  opacity: 1;
  visibility: hidden;
  transition: none;
}
#flota .fleet-showcase[data-direction="previous"] .fleet-slide:not(.is-active):not(.is-departing) {
  clip-path: inset(0 100% 0 0);
}
#flota .fleet-slide.is-departing {
  z-index: 1;
  visibility: visible;
  clip-path: inset(0);
}
#flota .fleet-slide.is-active {
  z-index: 2;
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 1050ms var(--motion-ease);
}
#flota .fleet-slide img { height: 100%; object-fit: contain; transform: none; }
#flota .fleet-slide.is-departing img {
  transform: scale(1.025);
  transition: transform 1200ms var(--motion-ease);
}
#flota .fleet-slide figcaption {
  font-size: .72rem;
  letter-spacing: .09em;
  left: 1rem;
  bottom: 1rem;
}
#flota .fleet-pagination {
  grid-area: strip;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: clamp(12px, 1.4vw, 22px);
  border-left: 1px solid #424145;
  background: #1c1b1e;
}
#flota .fleet-dot {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  width: 100%;
  height: auto;
  padding: 4px 0 9px;
  border-bottom: 2px solid transparent;
  color: #c0bfc0;
  text-align: left;
}
#flota .fleet-dot img { width: 100%; height: auto; opacity: .68; transition: opacity .45s; }
#flota .fleet-dot span { justify-self: start; font-size: .8rem; font-weight: 700; }
#flota .fleet-dot::before { content: none; }
#flota .fleet-dot[aria-pressed="true"] { color: white; border-bottom-color: var(--red); }
#flota .fleet-dot:is(:hover, :focus-visible, [aria-pressed="true"]) img { opacity: 1; }
#flota .fleet-copy {
  grid-area: copy;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 44px);
  padding: clamp(20px, 2.7vw, 44px);
  border: none;
  background: #0b0b0d;
}
#flota .fleet-counter { align-self: start; align-items: baseline; font-variant-numeric: tabular-nums; }
#flota .fleet-counter span:first-child {
  font: 700 clamp(2rem, 3.5vw, 4rem)/1 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  letter-spacing: -.045em;
  color: #ff5353;
}
#flota .fleet-copy h3 { max-width: 20ch; font-size: clamp(2rem, 3.7vw, 4.5rem); }
#flota .fleet-description { max-width: 48ch; margin: .6em 0 0; font-size: 1rem; line-height: 1.5; }
#flota .fleet-controls { margin: 0; }
#flota .fleet-progress { position: absolute; inset: 0 0 auto; height: 2px; margin: 0; }
:is(#flota, #rutas) :is(.fleet-arrow,.route-rail-arrow) { width: 46px; height: 46px; border-radius: 50%; }
:is(#flota, #rutas) button:focus-visible, #rutas .route:focus-visible { outline: 2px solid white; outline-offset: -3px; }

/* Rutas: un índice de destinos junto a la fotografía, navegable también por arrastre. */
#rutas .section-head { align-items: center; }
#rutas .section-head h2 { margin: 0; }
#rutas .section-head p { max-width: 46ch; }
#rutas .section-head strong { display: block; color: #fff; margin-bottom: .2em; }
#rutas .route-rail {
  display: grid;
  grid-template: "meter meter" 2px "navigation landscape" auto "places landscape" 1fr / clamp(190px, 20vw, 288px) minmax(0,1fr);
  gap: 0;
  margin: 0;
  background: #202525;
}
#rutas .route-progress { grid-area: meter; height: 2px; margin: 0; }
#rutas .route-rail-top {
  grid-area: navigation;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: transparent;
  margin: 0;
  padding: 25px clamp(16px, 2vw, 32px) 16px;
}
#rutas .route-current { margin: 0; font-variant-numeric: tabular-nums; }
#rutas #route-current { font-size: clamp(1.9rem, 3vw, 3.3rem); font-weight: 500; }
#rutas #route-current-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#rutas .route-pagination {
  grid-area: places;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 8px clamp(16px, 2vw, 32px) 24px;
}
#rutas .route-dot {
  display: flex;
  align-items: center;
  gap: .72em;
  width: auto;
  height: auto;
  min-height: 46px;
  padding: 8px 0;
  border-bottom: 1px solid #494b49;
  color: #cbc9c4;
  font-size: clamp(.9rem, 1.2vw, 1.15rem);
  font-weight: 600;
  text-align: left;
}
#rutas .route-dot::before { flex: none; width: 8px; height: 2px; border: 0; border-radius: 0; background: #898b88; box-shadow: none; }
#rutas .route-dot.is-active { color: #fff; }
#rutas .route-dot.is-active::before { width: 23px; background: var(--red); }
#rutas .route-grid { grid-area: landscape; min-width: 0; padding: 0; scroll-padding: 0; }
#rutas .route-grid .route {
  flex: 0 0 100%;
  height: clamp(400px, 37vw, 600px);
  align-items: flex-end;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
#rutas .route::after {
  background: linear-gradient(0deg, rgba(5,9,10,.97), rgba(4,8,9,.66) 36%, transparent 72%);
}
#rutas .route-content { padding: clamp(22px, 3.3vw, 52px); }
#rutas .route-content > span { color: #ffb3a8; font-size: .77rem; }
#rutas .route-content h3 { font-size: clamp(3.2rem, 6.4vw, 7.6rem); letter-spacing: -.035em; }
#rutas .route-content p { max-width: 49ch; font-size: clamp(.98rem, 1.15vw, 1.15rem); line-height: 1.48; }
#rutas .route-illustration-note { font-size: .8rem; }
#rutas .route-image { object-position: center; }
#rutas .route-content::after {
  content: 'Ver destino  ↗';
  display: inline-block;
  padding-bottom: 3px;
  margin-top: 14px;
  border-bottom: 1px solid #ed5353;
  font-size: .82rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  :is(#flota, #rutas) .section-head { display: grid; gap: 12px; }
  :is(#flota, #rutas) .section-head > p { max-width: 52ch; margin: 0; }
  #flota .fleet-showcase { grid-template: "picture" auto "copy" auto "strip" auto / minmax(0, 1fr); }
  #flota .fleet-media { aspect-ratio: 1672 / 941; }
  #flota .fleet-pagination {
    flex-direction: row;
    gap: 14px;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid #333;
  }
  #flota .fleet-dot { min-width: 0; gap: 5px; }
  #flota .fleet-slide figcaption { bottom: .6rem; left: .6rem; padding: 5px 8px; font-size: .69rem; }
  #flota .fleet-copy { grid-template: "count controls" auto "caption caption" auto / 1fr auto; padding: 16px 20px 22px; gap: 12px; }
  #flota .fleet-counter { grid-area: count; align-self: center; }
  #flota .fleet-caption { grid-area: caption; }
  #flota .fleet-controls { grid-area: controls; }
  #rutas .route-rail { grid-template: "meter" 2px "navigation" auto "landscape" auto "places" auto / minmax(0,1fr); }
  #rutas .route-rail-top { flex-direction: row; align-items: center; padding: 10px 16px; }
  #rutas .route-grid .route { height: clamp(380px, 65svh, 480px); }
  #rutas .route-pagination {
    display: flex;
    flex-flow: row wrap;
    gap: 0 18px;
    padding: 8px 16px 12px;
  }
  #rutas .route-dot { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  #flota .fleet-slide, #flota .fleet-dot img { transition: none; }
  #flota .fleet-slide.is-departing { visibility: hidden; }
}
