/* ===================================================================
   AUTOFRENOS - TEMA PROFESIONAL CORPORATIVO
   Diseño empresarial moderno y elegante
   =================================================================== */

/* === TIPOGRAFÍA PROFESIONAL === */
body {
  font-family: 'Segoe UI', 'Segoe UI Symbol' !important;
  color: #1e293b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #1e293b;
}

/* === BOTONES PROFESIONALES === */
.btn-primary,
.btn-search,
.add-to-cart {
  background: #1e40af !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.75rem !important;
  border-radius: 0.5rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
  font-size: 0.9375rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.btn-primary:hover,
.btn-search:hover,
.add-to-cart:hover {
  background: #2563eb !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px) scale(1) !important;
}

.btn-primary:active,
.btn-search:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.btn-primary::before,
.btn-search::before {
  display: none !important;
}

/* === BOTONES SECUNDARIOS === */
.btn-category,
.compat-btn {
  background: white !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  transition: all 0.2s ease !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.btn-category:hover,
.compat-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
  transform: scale(1) !important;
}

/* === SELECTORES PROFESIONALES === */
.control-select,
select {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.625rem 1rem !important;
  font-size: 0.9375rem !important;
  color: #1e293b !important;
  background: white !important;
  transition: all 0.2s ease !important;
  font-weight: 500 !important;
}

.control-select:hover,
select:hover {
  border-color: #3b82f6 !important;
}

.control-select:focus,
select:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* === CARDS PROFESIONALES === */
.offer-card,
.brand-tile,
.category-card {
  background: white !important;
  border-radius: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

/* === STYLES ESPECÍFICOS PARA TARJETAS DE PRODUCTO (mejora visual) === */
.offer-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important; /* permitir que la tarjeta ocupe toda la columna del grid */
  max-width: none !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.offer-card:hover { transform: translateY(-6px) !important; box-shadow: 0 12px 30px rgba(16,24,40,0.12) !important; }

.offer-media {
  padding: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(180deg,#fbfdff 0%, #f7f9ff 100%) !important;
  height: 210px !important;
}

.offer-media img,
.offer-media .offer-img {
  max-width: 100% !important;
  max-height: 160px !important;
  object-fit: contain !important;
  display: block !important;
}

.offer-badges {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  display: flex !important;
  gap: 8px !important;
  z-index: 4 !important;
}

.offer-brand {
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.offer-info {
  padding: 14px 16px 12px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.offer-name {
  color: #0b1220 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1.15 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.offer-desc {
  color: #64748b !important;
  font-size: 0.86rem !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-top: 2px !important;
}

.offer-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  border-top: 1px solid #f1f5f9 !important;
  gap: 8px !important;
}

.offer-pricing { display:flex; flex-direction:column; gap:2px; }
.offer-price { color: #1e40af !important; font-weight:800 !important; font-size:1.05rem !important; }
.offer-old-price { color:#94a3b8 !important; font-size:0.9rem !important; text-decoration:line-through !important; }

.offer-actions { display:flex; gap:8px; align-items:center; }
.add-to-cart { padding: 0.5rem 0.9rem !important; border-radius: 999px !important; font-weight:700 !important; font-size:0.9rem !important; }
.compat-btn { padding: 0.38rem 0.75rem !important; border-radius: 0.5rem !important; font-size:0.8rem !important; }

/* Carousel track */
.carousel-track { display:flex !important; gap: 20px !important; align-items: stretch !important; padding: 8px 6px !important; overflow: auto hidden !important; }

/* Media queries removidas - las tarjetas ahora ocupan 100% del espacio del grid */

/* === TÍTULOS DE SECCIÓN === */
.heading,
.offers-title,
.brands-title {
  color: #1e293b !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

/* === BADGES Y ETIQUETAS === */
.offer-badge {
  border-radius: 0.375rem !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  padding: 0.25rem 0.625rem !important;
}

.offer-badge.discount {
  background: #ef4444 !important;
  color: white !important;
}

.offer-badge.featured {
  background: #10b981 !important;
  color: white !important;
}

/* === BOTONES DE CAROUSEL === */
.carousel-btn {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%) !important;
  color: #0041C2 !important;
  box-shadow: 0 10px 26px rgba(2,6,23,0.12) !important;
  transition: background 180ms ease, box-shadow 180ms ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: none !important;
  font-size: 20px !important;
}

.carousel-btn:hover {
  /* Evitar que el botón se vuelva totalmente azul y el ícono blanco; mantener estilo consistente */
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf4ff 100%) !important;
  color: #0041C2 !important;
  box-shadow: 0 14px 30px rgba(2,6,23,0.12) !important;
}

/* === INPUTS Y CONTROLES === */
input[type="text"],
input[type="search"],
textarea {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.625rem 1rem !important;
  font-size: 0.9375rem !important;
  color: #1e293b !important;
  background: white !important;
  transition: all 0.2s ease !important;
}

input:focus,
textarea:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* === PRECIOS === */
.offer-price {
  color: #1e40af !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
}

.offer-old-price {
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-size: 1rem !important;
}

/* === SEPARADORES === */
.diagonal-separator {
  opacity: 0.6 !important;
}

/* === FILTROS === */
.filter-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.filter-item {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem !important;
  transition: all 0.2s ease !important;
}

.filter-item:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

.ctrl-icon svg {
  stroke: #64748b !important;
}

/* === HERO SLIDER === */
.hero-controls button {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
}

.hero-controls button:hover {
  background: white !important;
  transform: translateY(-2px) scale(1) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.hero-indicators button {
  background: rgba(148, 163, 184, 0.4) !important;
}

.hero-indicators button.active {
  background: #1e40af !important;
}

/* === ELIMINAR ANIMACIONES LLAMATIVAS === */
@keyframes scanline {
  0%, 100% { opacity: 0; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0; }
}

/* === LINKS PROFESIONALES === */
a {
  color: #2563eb !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

a:hover {
  color: #1e40af !important;
}

/* === MARCA === */
.brand-name-fallback {
  color: #1e293b !important;
  font-weight: 700 !important;
}

/* === CATEGORÍAS === */
.category-label {
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* === CANTIDADES === */
.qty-controls {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.25rem !important;
}

.qty-btn {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 0.375rem !important;
  transition: all 0.2s ease !important;
}

.qty-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

/* === RESPONSIVIDAD === */
@media (max-width: 768px) {
  .btn-primary,
  .btn-search {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
}

/* === ELIMINAR EFECTOS NEÓN === */
* {
  text-shadow: none !important;
}

.btn-search,
.btn-primary,
button {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.btn-search:hover,
.btn-primary:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}
