   /* Verificación de carga */
.test-css-check {
  background-color: #e31e24;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,600;14..32,700;14..32,800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f4f7fc;
  overflow-x: hidden;
}

/* ----- NAVBAR ----- */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 100%);
  backdrop-filter: blur(6px);
  padding: 0.8rem 2rem;
  transition: all 0.3s;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  color: white !important;
}

.navbar-brand span {
  color: #e31e24;
}

.nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  margin: 0 4px;
  transition: 0.2s;
}

.nav-link:hover {
  color: #e31e24 !important;
}

.btn-account {
  background: #e31e24;
  border-radius: 40px;
  padding: 6px 20px;
  color: white !important;
  font-weight: 600;
  transition: 0.2s;
}

.btn-account:hover {
  background: #b1161b;
  transform: scale(1.02);
}

/* ----- HERO VIDEO ----- */
.hero-video {
  position: relative;
  height: 100vh;
  min-height: 650px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bgVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 90%;
  margin-top: 60px;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.5);
}

.hero-content h1 .red-text {
  color: #e31e24;
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ----- BUSCADOR ----- */
.search-box {
  position: relative;
  z-index: 10;
  margin-top: -70px;
  margin-bottom: 40px;
}

.search-container {
  background: #212529;
  border-radius: 28px;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.2);
  padding: 20px 25px;
  transition: all 0.2s;
}

.nav-tabs .nav-link {
  border: none;
  font-weight: 700;
  color: #cbd5e1;
  background: transparent;
  padding: 10px 18px;
  border-radius: 40px;
  transition: 0.2s;
}

.nav-tabs .nav-link.active {
  background: #e31e24;
  color: white;
  box-shadow: 0 5px 12px rgba(227,30,36,0.3);
}

.form-control-moderno {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 60px;
  padding: 12px 20px;
  font-weight: 500;
}

.form-control-moderno:focus {
  border-color: #e31e24;
  box-shadow: 0 0 0 3px rgba(227,30,36,0.2);
}

.btn-search-red {
  background: #e31e24;
  border-radius: 60px;
  padding: 12px 20px;
  font-weight: 700;
  color: white;
  width: 100%;
  transition: 0.2s;
  border: none;
}

.btn-search-red:hover {
  background: #b1161b;
  transform: translateY(-2px);
}

/* ----- SECCIÓN REFERENCIAS LLANTAS ----- */
.section-title {
  font-weight: 800;
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 35px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 4px;
  background: #e31e24;
  border-radius: 4px;
}

.card-tire {
  border: none;
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  background: white;
}

.card-tire:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px rgba(0,0,0,0.15);
}

.card-tire img {
  height: 200px;
  object-fit: contain;
  background: #f9fafb;
  padding: 20px;
  transition: 0.3s;
}

.card-tire .card-body {
  padding: 1.5rem;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
}

.btn-add-cart {
  background: #111;
  color: white;
  border-radius: 40px;
  font-weight: 600;
  padding: 8px 20px;
  width: 100%;
  transition: 0.2s;
  border: none;
}

.btn-add-cart:hover {
  background: #e31e24;
  transform: scale(0.98);
}

/* ----- SLIDER DE MARCAS ----- */
.brands-slider-section {
  background: #ffffff;
  padding: 50px 0;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.slider-logos {
  padding: 0 30px;
}

.slider-logos .logo-item {
  text-align: center;
  opacity: 0.8;
  transition: 0.3s;
  cursor: default;
}

.slider-logos .logo-item:hover {
  opacity: 1;
  transform: scale(1.03);
}

.slider-logos img {
  max-height: 70px;
  width: auto;
  margin: 0 auto;
  filter: grayscale(0%);
  transition: 0.2s;
}

.slick-dots li button:before {
  font-size: 10px;
  color: #aaa;
}

.slick-dots li.slick-active button:before {
  color: #e31e24;
}

/* ----- SECCIÓN DISTRIBUIDORES NACIONALES ----- */
.distributors-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

.distributors-content {
  padding-right: 30px;
}

.badge-distributor {
  display: inline-block;
  background: rgba(227,30,36,0.15);
  color: #e31e24;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(227,30,36,0.3);
}

.distributors-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.distributors-title .red-text {
  color: #e31e24;
}

.distributors-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.distributor-stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.distributor-stat i {
  font-size: 2rem;
  color: #e31e24;
}

.stat-info h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.stat-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.btn-distributor {
  display: inline-block;
  background: #e31e24;
  color: white;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  margin-top: 15px;
}

.btn-distributor:hover {
  background: #b1161b;
  color: white;
  transform: translateX(5px);
  text-decoration: none;
}

.distributors-map {
  position: relative;
  text-align: center;
}

.distributors-map img {
  max-height: 400px;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.2));
}

.map-markers {
  position: relative;
}

.marker {
  position: absolute;
  color: #e31e24;
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.2s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.marker:hover {
  transform: scale(1.2);
  color: #ff4444;
}

.marker-1 { top: 35%; left: 48%; }
.marker-2 { top: 42%; left: 52%; }
.marker-3 { top: 55%; left: 45%; }
.marker-4 { top: 28%; left: 58%; }

/* ----- SECCIÓN LLANTAS EN OFERTA ----- */
.offers-section {
  padding: 80px 0;
  background: #f8fafc;
}

.offers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.badge-offer {
  display: inline-block;
  background: linear-gradient(135deg, #e31e24, #ff4444);
  color: white;
  padding: 5px 15px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.offers-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}

.offers-title .red-text {
  color: #e31e24;
}

.offers-subtitle {
  color: #64748b;
  font-size: 1rem;
}

.view-all-offers {
  color: #e31e24;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.view-all-offers:hover {
  color: #b1161b;
  text-decoration: none;
  transform: translateX(5px);
  display: inline-block;
}

.offer-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.offer-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e31e24;
  color: white;
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.offer-card img {
  height: 180px;
  object-fit: contain;
  padding: 20px;
  background: #f1f5f9;
}

.offer-card .card-body {
  padding: 1.2rem;
}

.offer-card .card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.offer-card .card-text {
  font-size: 0.85rem;
  color: #64748b;
}

.prices {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.9rem;
}

.offer-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #e31e24;
}

.btn-add-cart-offer {
  background: #0f172a;
  color: white;
  border-radius: 40px;
  font-weight: 600;
  padding: 8px 15px;
  width: 100%;
  transition: 0.2s;
  border: none;
  font-size: 0.9rem;
}

.btn-add-cart-offer:hover {
  background: #e31e24;
  transform: scale(0.98);
}

/* ----- CARRITO FLOTANTE ----- */
.cart-fixed {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
}

.cart-icon-btn {
  background: #111;
  width: 62px;
  height: 62px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: 0.2s;
  color: white;
  font-size: 28px;
  position: relative;
}

.cart-icon-btn:hover {
  background: #e31e24;
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e31e24;
  color: white;
  border-radius: 50px;
  width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: white;
  z-index: 1060;
  box-shadow: -8px 0 32px rgba(0,0,0,0.2);
  transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 20px;
  background: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h5 {
  margin: 0;
  font-weight: 700;
}

.close-cart {
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 15px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 16px;
  margin-right: 15px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
}

.cart-item-price {
  color: #e31e24;
  font-weight: 800;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.cart-qty button {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 30px;
  font-weight: bold;
}

.cart-footer {
  padding: 20px;
  border-top: 2px solid #eef2f6;
  background: #fefefe;
}

.btn-checkout {
  background: #e31e24;
  color: white;
  border-radius: 60px;
  font-weight: bold;
  width: 100%;
  padding: 12px;
  border: none;
}

/* ----- WHATSAPP FLOTANTE ----- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1050;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: 0.2s;
  color: white;
  font-size: 32px;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: #128C7E;
  color: white;
}

/* ----- FOOTER ----- */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 30px 0;
  margin-top: 0;
  text-align: center;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
  .distributors-title {
    font-size: 2.2rem;
  }
  .offers-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .navbar-brand {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .distributors-section {
    padding: 50px 0;
  }
  .distributors-title {
    font-size: 1.8rem;
  }
  .offers-section {
    padding: 50px 0;
  }
  .offers-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .marker {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .slider-logos img {
    max-height: 50px;
  }
  .distributor-stat {
    gap: 10px;
  }
  .distributor-stat i {
    font-size: 1.5rem;
  }
  .stat-info h4 {
    font-size: 1rem;
  }
}

/* Tooltip para el mapa */
.map-tooltip {
  position: fixed;
  background: #e31e24;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
  display: none;
}