/* ========== CARROCERIAS PAGE - IMAGE-FOCUSED DESIGN ========== */

.carrocerias-hero-compact {
  background: linear-gradient(135deg, #02122d 0%, #0b3e78 42%, #0f69c1 92%, #142f69 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.carrocerias-hero-compact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14), transparent 20%), radial-gradient(circle at 85% 78%, rgba(255, 255, 255, 0.08), transparent 14%);
  pointer-events: none;
}

.carrocerias-hero-compact::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(70px);
  top: 10%;
  right: -150px;
  pointer-events: none;
}

.hero-compact-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-compact-content h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-compact-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.hero-cta-compact {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ========== GALLERY SECTIONS ========== */

.gallery-section {
  padding: 80px 0;
}

.gallery-section.bg-light {
  background: #f7faff;
}

.gallery-header {
  margin-bottom: 4rem;
}

.gallery-header h2 {
  font-size: 2.8rem;
  color: #012b7e;
  margin-bottom: 1rem;
}

.gallery-header p {
  color: #5f6686;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.gallery-image-large {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  height: 520px;
  background: linear-gradient(180deg, #eef4ff 0%, #d8e6ff 55%, #bfd8f5 100%);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.34), transparent 12%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.24), transparent 10%),
    radial-gradient(circle at 28% 74%, rgba(255, 255, 255, 0.18), transparent 10%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 22px);
  background-blend-mode: screen, normal;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 90px rgba(2, 35, 70, 0.18);
}

.gallery-image-large::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 12%),
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.14), transparent 10%),
    radial-gradient(circle at 45% 72%, rgba(255, 255, 255, 0.10), transparent 14%);
  pointer-events: none;
}

.gallery-image-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f7fbff;
  padding: 1rem;
}

.carousel-item {
  height: 100%;
}

.carousel-item img {
  height: 100%;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 35, 70, 0.78) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.gallery-overlay h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin: 0;
}

.gallery-specs {
  padding: 2rem;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(11, 102, 240, 0.12);
  box-shadow: 0 20px 60px rgba(2, 35, 70, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-specs h3 {
  color: #012b7e;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.specs-list li {
  padding: 0.8rem 0 0.8rem 2.4rem;
  position: relative;
  color: #4f5874;
  line-height: 1.8;
  font-size: 1rem;
}

.specs-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.6rem;
  color: #0b66f0;
  font-weight: bold;
  font-size: 1.2rem;
}

.spec-note {
  background: #f0f4ff;
  border-left: 4px solid #0b66f0;
  padding: 1rem;
  border-radius: 8px;
  color: #3d4a6b;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* ========== GALLERY SHOWCASE ========== */

.gallery-showcase {
  padding: 80px 0;
}

.showcase-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 350px;
  background: #ffffff;
  border: 1px solid rgba(11, 102, 240, 0.14);
  box-shadow: 0 18px 50px rgba(2, 35, 70, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(2, 35, 70, 0.14);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== CTA SECTION ========== */

.section-cta {
  background: linear-gradient(135deg, #041a49 0%, #0c4ea3 50%, #0b6ad1 100%);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12), transparent 25%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 20%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-buttons a {
  min-width: 200px;
}

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

@media (max-width: 991px) {
  .gallery-image-large {
    height: 380px;
    margin-bottom: 2rem;
  }
  
  .gallery-section .row {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .carrocerias-hero-compact {
    padding: 80px 0;
  }
  
  .hero-compact-content h1 {
    font-size: 2rem;
  }
  
  .gallery-header h2 {
    font-size: 2rem;
  }
  
  .gallery-image-large {
    height: 300px;
  }
  
  .gallery-specs {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .showcase-card {
    height: 280px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-buttons a {
    min-width: 100%;
  }
}
