/* ============================================================
   FLOTA — flota.css
   Page Hero · Specs · Galería asimétrica · GPS · CTA
   ============================================================ */

/* --- Page Hero ------------------------------------------------------------ */
.page-hero {
  position: relative;
  min-height: 55vh;
  padding-top: calc(72px + var(--sp-24));
  padding-bottom: var(--sp-20);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,34,64,0.78) 0%, rgba(10,34,64,0.50) 100%);
  z-index: 1;
}
.page-hero__bg-image {
  position: absolute; inset: 0;
  background-color: var(--ad-navy);
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__breadcrumb {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); color: rgba(232,243,251,0.5); margin-bottom: var(--sp-5);
}
.page-hero__breadcrumb a { color: rgba(232,243,251,0.5); text-decoration: none; transition: color var(--dur-fast); }
.page-hero__breadcrumb a:hover { color: var(--ad-white); }
.page-hero__breadcrumb span { color: rgba(232,243,251,0.9); }
.page-hero__title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.03em;
  color: var(--ad-white); text-wrap: balance;
}


/* --- Composición de flota v2 — fc-grid ------------------------------------ */
.flota-composicion {
  padding: var(--sp-20) 0;
  background: var(--ad-white);
}

.section-sub {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ad-slate);
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-10);
}

.fc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid rgba(26,79,138,.18);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: var(--sp-8);
}

.fc-card {
  padding: 28px 24px 24px;
  border-right: 0.5px solid rgba(26,79,138,.18);
  background: var(--ad-white);
}

.fc-card:last-child { border-right: none; }

.fc-accent {
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 0;
}
.fc-accent--sky   { background: var(--ad-sky); }
.fc-accent--amber { background: var(--ad-amber); }
.fc-accent--gray  { background: #9CA3AF; }

.fc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin: 0 0 6px;
}

.fc-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ad-navy);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 2px;
}

.fc-count {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 20px;
}
.fc-count strong { color: #374151; font-weight: 500; }

.fc-divider {
  height: 0.5px;
  background: rgba(26,79,138,.12);
  margin-bottom: 18px;
}

.fc-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.fc-row:last-of-type { margin-bottom: 0; }

.fc-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #9CA3AF;
}
.fc-icon--sky   { color: var(--ad-sky); }
.fc-icon--amber { color: var(--ad-amber); }

.fc-spec-key {
  font-size: 11px;
  color: #9CA3AF;
  margin: 0 0 2px;
  line-height: 1.3;
}
.fc-spec-val {
  font-size: 13px;
  color: #374151;
  line-height: 1.45;
  margin: 0;
}

.fc-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  margin-top: 16px;
  letter-spacing: .02em;
}
.fc-badge--sky   { background: var(--ad-ice); color: var(--ad-blue); }
.fc-badge--amber { background: #FFF3E0; color: #8C4E0A; }
.fc-badge--gray  { background: #F4F5F7; color: #374151; }

@media (max-width: 900px) {
  .fc-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: var(--sp-4);
    border-radius: 0;
  }
  .fc-card {
    border-right: none;
    border-bottom: none;
    border: 0.5px solid rgba(26,79,138,.18);
    border-radius: var(--r-lg);
    padding: 24px 20px 20px;
  }
  .fc-card:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .fc-grid {
    gap: var(--sp-3);
  }
  .fc-card {
    padding: 20px 16px 16px;
  }
  .fc-title {
    font-size: 24px;
  }
}


/* --- Galería asimétrica -------------------------------------------------- */
.galeria-section { }

.flota-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
  margin-bottom: var(--sp-6);
}

.flota-gallery__item {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ad-ice);
  position: relative;
}

/* Base aspect-ratio on .foto-item — prevents collapse if image fails */
.foto-item {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

/* Foto grande — 7 cols de 12 */
.foto-hero {
  grid-column: 1 / 8;
  aspect-ratio: 16 / 9;
}

/* Foto secundaria — 5 cols de 12, misma fila que hero */
.foto-secondary {
  grid-column: 8 / 13;
  aspect-ratio: 16 / 9;
}

/* 3 fotos iguales en segunda fila */
.foto-sq {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.foto-overlay {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  pointer-events: none;
}

.foto-overlay__tag {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ad-white);
  background: rgba(10,34,64,0.65);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.flota-gallery__item img {
  transition: transform 400ms var(--ease-out);
}
.flota-gallery__item:hover img {
  transform: scale(1.03);
}

/* Fallback — .foto-item when image is missing or fails to load */
.foto-item:not(:has(img)),
.foto-item:has(img[style*="display:none"]),
.foto-item:has(img[style*="display: none"]) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ad-ice) 0%, #dceef9 100%);
  border: 1px dashed rgba(42,128,200,0.25);
}

.foto-item:not(:has(img))::after,
.foto-item:has(img[style*="display:none"])::after,
.foto-item:has(img[style*="display: none"])::after {
  content: 'Foto no disponible';
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--ad-slate);
  opacity: 0.6;
  text-align: center;
  padding: var(--sp-4);
}

/* --- Gallery responsive: mobile 2 cols, desktop 3 cols ------------------- */
@media (max-width: 767px) {
  .flota-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .foto-hero {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 9;
  }
  .foto-secondary {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 9;
  }
  .foto-sq {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .flota-gallery {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .foto-hero,
  .foto-secondary,
  .foto-sq {
    grid-column: 1;
    aspect-ratio: 16 / 9;
  }
}


/* --- GPS y tecnología ----------------------------------------------------- */
.gps-section {
  position: relative;
  overflow: hidden;
}
.gps-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(42,128,200,0.1) 0%, transparent 55%);
  pointer-events: none;
}

.gps-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-16);
  align-items: center;
}

.gps-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ad-white);
  margin-bottom: var(--sp-6);
}

.gps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.gps-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  color: rgba(232,243,251,0.8);
  line-height: 1.55;
}

.gps-list__item svg {
  color: var(--ad-sky-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* El número grande 24/7 */
.gps-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.gps-numero {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(64px, 10vw, 96px);
  font-weight: 700;
  color: var(--ad-amber);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}

.gps-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,243,251,0.5);
  text-align: center;
  max-width: 14ch;
}

@media (max-width: 768px) {
  .gps-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .gps-number {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-5);
    justify-content: flex-start;
  }
  .gps-label { max-width: none; text-align: left; }
}


/* --- CTA Banner ----------------------------------------------------------- */
.cta-banner {
  padding-block: var(--sp-16);
  background: linear-gradient(135deg, var(--ad-ice) 0%, #dceef9 100%);
  border-top: 1px solid var(--ad-ice-dark);
}
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); flex-wrap: wrap; }
.cta-banner__title { font-family: var(--font-display); font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl)); font-weight: 700; color: var(--ad-navy); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--sp-3); }
.cta-banner__subtitle { font-family: var(--font-body); font-size: var(--fs-base); color: var(--ad-slate); max-width: 52ch; line-height: 1.6; }
.cta-banner__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 768px) {
  .cta-banner__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-6); }
  .cta-banner__actions { flex-direction: column; width: 100%; }
  .cta-banner__actions .btn { width: 100%; justify-content: center; }
}
