/* ========== INDEX - ESTILOS ESPECÍFICOS ========== */

/* Hero Video */
.hero-video {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}

#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(2,2,2,0.7) 0%, rgba(69,69,71,0.5) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}

.hero-content .red-text {
  color: #face07;
  text-shadow: 0 0 20px rgba(250,206,7,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #ec859a;
}

.btn-danger {
  background: linear-gradient(135deg, #c01010, #ec859a);
  border: none;
  font-weight: 700;
  padding: 12px 35px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(192,16,16,0.4);
  background: linear-gradient(135deg, #ec859a, #c01010);
}

/* Search Box */
.search-box {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-container {
  background: rgba(69,69,71,0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  border: 1px solid rgba(250,206,7,0.3);
}

.nav-tabs .nav-link {
  color: #ffffff !important;
  background: transparent;
  border: none;
  font-weight: 600;
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #c01010, #ec859a);
  color: white !important;
  border-radius: 10px;
}

.form-control-moderno {
  background: #020202;
  border: 1px solid #454547;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 15px;
}

.form-control-moderno:focus {
  border-color: #face07;
  box-shadow: 0 0 10px rgba(250,206,7,0.3);
  background: #020202;
  color: #ffffff;
}

.btn-search-red {
  background: linear-gradient(135deg, #c01010, #ec859a);
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  color: white;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-search-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192,16,16,0.4);
}

/* Estilos para las tarjetas de categorías de vehículos */
.vehicle-category-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.vehicle-category-inner {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vehicle-category-card:hover .vehicle-category-inner {
  transform: translateY(-8px);
  border-color: #face07;
  box-shadow: 0 15px 30px rgba(192,16,16,0.3);
}

.vehicle-category-card.selected .vehicle-category-inner {
  border-color: #c01010;
  background: linear-gradient(135deg, #2a1a1a, #1a0a0a);
  box-shadow: 0 0 20px rgba(192,16,16,0.5);
}

.vehicle-category-img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.vehicle-category-card:hover .vehicle-category-img {
  transform: scale(1.05);
}

.vehicle-category-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #face07;
  margin-bottom: 5px;
}

.vehicle-category-desc {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
}

.vehicle-category-check {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vehicle-category-card.selected .vehicle-category-check {
  opacity: 1;
}

.vehicle-category-check i {
  font-size: 24px;
  color: #25D366;
}

.medidas-resultados {
  background: rgba(0,0,0,0.5);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(250,206,7,0.2);
}

.medida-item {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #333;
}

.medida-item:hover {
  transform: translateX(5px);
  border-color: #c01010;
  background: #252525;
}

.medida-item .medida-texto {
  font-size: 1rem;
  font-weight: 600;
  color: #face07;
}

.medida-item .medida-desc {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 400;
}

/* Brands Slider */
.brands-slider-section {
  background: linear-gradient(90deg, #ffffff, #ffffff);
  padding: 40px 0;
  margin: 40px 0;
}

.brand-slider {
  margin: 0 auto;
}

.brand-slider .logo-item {
  text-align: center;
  padding: 10px;
  filter: brightness(0.8);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.brand-slider .logo-item:hover {
  filter: brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

.brand-slider .logo-item img {
  max-height: 45px;
  width: auto;
  max-width: 100%;
  display: inline-block;
}

/* Slick arrows personalizados */
.brand-slider .slick-prev, 
.brand-slider .slick-next {
  background: #c01010;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  z-index: 10;
}

.brand-slider .slick-prev:hover, 
.brand-slider .slick-next:hover {
  background: #face07;
}

.brand-slider .slick-prev:before, 
.brand-slider .slick-next:before {
  font-size: 18px;
}

.brand-slider .slick-prev {
  left: -15px;
}

.brand-slider .slick-next {
  right: -15px;
}

/* Section Titles */
.section-title {
  color: #face07;
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #c01010, #ec859a);
}

/* Cards */
.card-tire, .offer-card {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  border: none;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
}

.card-tire::before, .offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #c01010, #face07, #ec859a);
  transition: left 0.5s ease;
}

.card-tire:hover::before, .offer-card:hover::before {
  left: 0;
}

.card-tire:hover, .offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 40px rgba(192,16,16,0.2);
}

.card-img-top {
  border-radius: 20px 20px 0 0;
  height: 220px;
  object-fit: cover;
}

.card-title {
  color: #face07;
  font-weight: 800;
}

.price {
  color: #000;
  font-size: 1.5rem;
  font-weight: 800;
}

.btn-add-cart, .btn-add-cart-offer {
  background: linear-gradient(135deg, #c01010, #ec859a);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-add-cart:hover, .btn-add-cart-offer:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192,16,16,0.4);
}

.btn-view-details {
  background: transparent;
  border: 2px solid #face07;
  color: #face07;
  border-radius: 40px;
  font-weight: 700;
  padding: 6px 15px;
  margin-top: 10px;
  width: 100%;
  transition: 0.2s;
}

.btn-view-details:hover {
  background: #face07;
  color: #020202;
}

/* Distributors Section */
.distributors-section {
  background: linear-gradient(135deg, #020202, #1a1a1a);
  padding: 80px 0;
  margin: 50px 0;
}

.badge-distributor {
  background: linear-gradient(135deg, #c01010, #ec859a);
  padding: 8px 20px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 20px;
}

.distributors-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.distributors-title .red-text {
  color: #face07;
}

.distributor-stat {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(69,69,71,0.3);
  padding: 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.distributor-stat:hover {
  background: rgba(192,16,16,0.2);
  transform: translateX(10px);
}

.distributor-stat i {
  font-size: 2rem;
  color: #face07;
}

/* Offers Section */
.offers-section {
  padding: 60px 0;
}

.offers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.badge-offer {
  background: linear-gradient(135deg, #c01010, #face07);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
}

.offers-title {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 10px;
}

.offers-title .red-text {
  color: #face07;
}

.offer-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #c01010;
  padding: 8px 12px;
  border-radius: 50px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.old-price {
  text-decoration: line-through;
  color: #454547;
  margin-right: 10px;
}

.offer-price {
  color: #ec859a;
  font-size: 1.3rem;
  font-weight: bold;
}

/* Responsive Index */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .brand-slider .slick-prev {
    left: -5px;
  }
  .brand-slider .slick-next {
    right: -5px;
  }
  .distributors-title {
    font-size: 1.8rem;
  }
}

/* Animaciones */
@keyframes highlight {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(192,16,16,0.7); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(192,16,16,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(192,16,16,0); }
}