/* ==========================================
   HERO SECTION
========================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
              url('../images/index/hero.png') center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f8f9fa;
  text-align: center;
  position: relative;
  padding: 140px 40px 100px;
  gap: 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 45px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #f8f9fa;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
  font-weight: 600;
}

/* HERO SEARCH - BIEN ESPACÉE */
.hero-search {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 60px;
  padding: 10px;
  display: flex;
  gap: 0;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.search-field {
  flex: 1;
  padding: 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
}

.search-field:last-of-type {
  border-right: none;
}

.search-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #f8f9fa;
  cursor: pointer;
  outline: none;
  font-weight: 500;
}

.search-field select option {
  background: #2c3e50;
  color: #f8f9fa;
}

.btn-search {
  border-radius: 50px;
  white-space: nowrap;
  padding: 18px 36px;
  font-weight: 600;
}

/* ==========================================
   BROWSE BY TYPE
========================================== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 22px;
}

.type-card {
  text-align: center;
  padding: 32px 18px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(255, 71, 87, 0.15);
}

.type-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--primary);
  stroke-width: 2;
}

.type-card h4 {
  font-size: 15px;
  color: var(--dark);
  font-weight: 600;
}

/* ==========================================
   SELL CAR / RENT SECTION
========================================== */
.sell-car-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.sell-car-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sell-car-image {
  border-radius: 18px;
  overflow: hidden;
  height: 220px;
}

.sell-car-image.large {
  grid-column: 1 / -1;
  height: 320px;
}

.sell-car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sell-car-image:hover img {
  transform: scale(1.08);
}

.sell-car-content h2 {
  font-size: 38px;
  margin-bottom: 22px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--dark);
}

.sell-car-content p {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 32px;
  line-height: 1.7;
}

.features-list {
  list-style: none;
  margin-bottom: 38px;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
}

.features-list li::before {
  content: '✓';
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================
   STATS SECTION
========================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  padding: 70px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff4757, #ff6348);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 15px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ==========================================
   CTA BOXES
========================================== */
.cta-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.cta-box {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 22px;
  padding: 65px 50px;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.cta-box.pink {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.cta-box h2 {
  font-size: 30px;
  margin-bottom: 16px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--dark);
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta-box .btn {
  position: relative;
  z-index: 1;
}

/* ==========================================
   VEHICLES SECTION
========================================== */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.vehicle-tabs {
  display: flex;
  gap: 35px;
  margin-bottom: 45px;
  border-bottom: 2px solid #e9ecef;
}

.vehicle-tab {
  background: transparent;
  border: none;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.vehicle-tab.active {
  color: var(--dark);
}

.vehicle-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4757, #ff6348);
}

.card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #ff4757, #ff6348);
  color: white;
  padding: 7px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.card-favorite {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-favorite:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.card-description {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 18px;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.card-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

.card-spec svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #e9ecef;
}

.card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: var(--primary-dark);
}

/* ==========================================
   WHY CHOOSE US
========================================== */
.why-choose-us {
  background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
  color: #f8f9fa;
}

.why-choose-us .section-title {
  color: #f8f9fa;
}

.why-choose-us .section-title::after {
  background: linear-gradient(90deg, #f8f9fa, transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 45px;
}

.feature-item {
  text-align: left;
}

.feature-icon {
  width: 65px;
  height: 65px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: #f8f9fa;
  stroke-width: 2;
}

.feature-item h3 {
  font-size: 19px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #f8f9fa;
}

.feature-item p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.7;
  color: rgba(248, 249, 250, 0.8);
}

/* ==========================================
   TEAM SECTION
========================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.team-member {
  text-align: center;
}

.team-photo {
  border-radius: 18px;
  overflow: hidden;
  height: 320px;
  margin-bottom: 22px;
  position: relative;
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member:hover .team-photo::after {
  opacity: 1;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-member:hover .team-photo img {
  transform: scale(1.08);
}

.team-member h3 {
  font-size: 19px;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--dark);
}

.team-member p {
  font-size: 15px;
  color: #6c757d;
  font-weight: 500;
}

/* ==========================================
   LOAN CALCULATOR
========================================== */
.loan-calculator {
  padding: 160px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
              url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600') center/cover;
  position: relative;
}

.calculator-wrapper {
  background: white;
  border-radius: 22px;
  padding: 55px 45px;
  max-width: 480px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.calculator-wrapper h2 {
  font-size: 34px;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--dark);
}

.calculator-wrapper p {
  font-size: 15px;
  color: #6c757d;
  margin-bottom: 35px;
  line-height: 1.6;
}

.calculator-form {
  display: grid;
  gap: 22px;
}

.form-group {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 16px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1200px) {
  .type-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .vehicles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 120px 30px 80px;
    gap: 60px;
  }
  
  .hero-title {
    font-size: 54px;
  }
  
  .hero-search {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px;
  }
  
  .search-field {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex: 1 1 100%;
    padding: 16px 20px;
  }
  
  .search-field:last-child {
    border-bottom: none;
  }
  
  .btn-search {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }
  
  .type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .sell-car-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .cta-boxes {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 20px 70px;
    gap: 50px;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .sell-car-content h2 {
    font-size: 28px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .cta-box {
    padding: 45px 30px;
  }
  
  .cta-box h2 {
    font-size: 24px;
  }
  
  .vehicles-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .calculator-wrapper {
    padding: 40px 30px;
  }
  
  .calculator-wrapper h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .type-grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}