/* Micrositios de modelos (vehiculos/*.html): banner, carrusel de versiones y galería.
   Diseño tomado del micrositio de la Ranger. Lo arma includes/micrositio.js. */

/* ── Banner principal ── */
.hero-section { position: relative; width: 100%; overflow: hidden; background: #111; max-height: 600px; }
.hero-section img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 600px; }
.hero-title {
  position: absolute; top: 15%; left: 2.5%; margin: 0;
  color: #fff !important; font-size: clamp(20px, 3vw, 42px); font-weight: 700 !important;
  letter-spacing: 1px; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); line-height: 1.1; font-family: inherit !important;
}
.hero-cta {
  position: absolute; top: calc(15% + clamp(40px, 5vw, 70px)); left: 2.5%;
  background: #0276B3 !important; color: #fff !important; padding: 10px 26px; border-radius: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: 1px; text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-cta:hover { background: #025a8a !important; }
@media (max-width: 767px) {
  .hero-title { top: 10%; left: 4%; font-size: clamp(22px, 7vw, 36px); }
  .hero-cta { top: calc(10% + 52px); left: 4%; padding: 8px 20px; font-size: 13px; }
}

/* ── Carrusel de versiones ── */
.vehicles-section { background: #fff; padding: 2rem 1rem; }
.vehicles-title { font-size: 26px; font-weight: 700; color: #333; margin-bottom: 1.5rem; padding-left: 0.5rem; }
.vehicle-card { text-align: center; padding: 1rem; }
.vehicle-card img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 6px; }
.vehicle-name { font-size: 14px; color: #0276B3; font-weight: 600; margin: 0.75rem 0 0.5rem; }
.vehicle-btn { display: block; width: 100%; background: #0276B3 !important; color: #fff !important; border: none; padding: 9px 0; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: 1px; cursor: pointer; text-decoration: none !important; text-align: center; font-family: inherit; }
.vehicle-btn:hover { background: #025a8a !important; color: #fff !important; }

.vehicles-carousel-outer { padding: 0 48px 40px; position: relative; }
.vehicles-carousel { overflow: hidden; width: 100%; }
.vehicles-slides { display: flex; transition: transform 0.35s ease; width: 100%; }
.vehicles-slide { flex: 0 0 100%; min-width: 100%; box-sizing: border-box; }
.vehicles-slide-inner { display: flex; justify-content: center; gap: 0; width: 100%; }
.vehicles-slide-inner .vehicle-col { flex: 0 0 25%; max-width: 25%; min-width: 0; box-sizing: border-box; padding: 0 6px; }
@media (max-width: 767px) {
  .vehicles-slide-inner .vehicle-col { flex: 0 0 100%; max-width: 100%; padding: 0; }
}
.vehicles-arrow { position: absolute; top: 40%; transform: translateY(-50%); background: none; border: 1.5px solid #aaa; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; cursor: pointer; color: #333; display: flex; align-items: center; justify-content: center; }
.vehicles-arrow:hover { background: #f0f0f0; }
.vehicles-arrow.prev { left: 4px; }
.vehicles-arrow.next { right: 4px; }
.vehicles-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.25rem; }
.vehicles-dot { width: 8px; height: 8px; border-radius: 50%; background: #aaa; border: none; cursor: pointer; padding: 0; }
.vehicles-dot.active { background: #0276B3; }
.vehicles-unico .vehicles-arrow, .vehicles-unico .vehicles-dots { display: none; }

/* ── Galería + lightbox ── */
.gallery-section { background: #fff; padding: 2rem 0; }
.gallery-title { font-size: 26px; font-weight: 700; color: #333; text-align: center; margin-bottom: 1.5rem; letter-spacing: 1px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery-item { overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; }
.gallery-lightbox.active { display: flex; }
.gallery-lb-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.gallery-lb-img { max-width: 90vw; max-height: 80vh; object-fit: contain; display: block; border-radius: 4px; }
.gallery-lb-counter { color: #ccc; font-size: 13px; margin-top: 10px; }
.gallery-lb-close { position: fixed; top: 20px; right: 28px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; z-index: 10000; }
.gallery-lb-close:hover { color: #ccc; }
.gallery-lb-arrow { position: fixed; top: 50%; transform: translateY(-50%); background: none; border: 1.5px solid #fff; border-radius: 50%; width: 44px; height: 44px; color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery-lb-arrow:hover { background: rgba(255,255,255,0.15); }
.gallery-lb-arrow.prev { left: 16px; }
.gallery-lb-arrow.next { right: 16px; }
@media (max-width: 767px) {
  .gallery-lb-arrow.prev { left: 4px; }
  .gallery-lb-arrow.next { right: 4px; }
}

/* ── Características (3 tarjetas: en compu se ven las 3, en celu carrusel deslizable) ── */
.features-section { background: #f4f4f4; padding: 2.5rem 1rem; }
.features-title { font-size: 26px; font-weight: 700; color: #333; text-align: center; margin: 0 0 1.5rem; letter-spacing: 1px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1140px; margin: 0 auto; }
.feature-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.12); display: flex; flex-direction: column; }
.feature-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.feature-body { padding: 22px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.feature-name { color: #00095B; font-size: 20px; font-weight: 500; margin: 0 0 14px; }
.feature-text { color: #00095B; font-size: 14px; line-height: 1.9; margin: 0 0 22px; flex: 1; }
.feature-line { border: 0; border-top: 1px solid #999; margin: 0 0 26px; }
.feature-btn { align-self: center; background: #00095B !important; color: #fff !important; padding: 11px 26px; border-radius: 24px; font-size: 14px; font-weight: 500; text-decoration: none !important; box-shadow: 0 4px 10px rgba(0,9,91,0.3); }
.feature-btn:hover { background: #1a2a8c !important; }
.features-dots { display: none; justify-content: center; gap: 8px; margin-top: 1rem; }
.features-dot { width: 8px; height: 8px; border-radius: 50%; background: #aaa; border: none; padding: 0; }
.features-dot.active { background: #00095B; }
@media (max-width: 767px) {
  .features-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 8% 12px; margin: 0 -1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .features-grid::-webkit-scrollbar { display: none; }
  .feature-card { flex: 0 0 84%; scroll-snap-align: center; }
  .features-dots { display: flex; }
}
