/* ==========================================================================
   AUTOPARTES SANTA CLARA - LANDING PAGE PREMIUM
   Estilos CSS Modernos, Variables, Responsive, Parallax y Animaciones
   ========================================================================== */

/* 1. VARIABLES GLOBALES Y RESET */
:root {
  /* Paleta Oficial Santa Clara */
  --primary: #3E4095;
  --primary-dark: #2D2F75;
  --primary-light: #5255B8;
  --primary-glow: rgba(62, 64, 149, 0.4);
  
  --secondary: #FF0000;
  --secondary-dark: #D60000;
  --secondary-light: #FF3333;
  --secondary-glow: rgba(255, 0, 0, 0.4);
  
  /* Colores de Apoyo y Neutros */
  --white: #FFFFFF;
  --light-bg: #F8F9FA;
  --light-border: #E9ECEF;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #64748B;
  --gray-700: #475569;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Fondos Oscuros Premium */
  --dark-bg: #0D1117;
  --dark-surface: #161B22;
  --dark-card: #1C2128;
  --dark-border: #30363D;
  
  /* Botones de Acción / WhatsApp (Paleta Institucional: Azul y Rojo Santa Clara - Sin Verde) */
  --whatsapp: #3E4095;
  --whatsapp-dark: #2D2F75;
  --whatsapp-glow: rgba(62, 64, 149, 0.35);

  /* Tipografías */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sombras y Elevaciones */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.18);
  --shadow-primary: 0 10px 25px rgba(62, 64, 149, 0.28);
  --shadow-secondary: 0 10px 25px rgba(255, 0, 0, 0.3);

  /* Transiciones */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radio de Bordes */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Dimensiones */
  --header-height: 80px;
  --container-max: 1240px;
}

/* Reset y caja */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans-fast);
}

ul, ol {
  list-style: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: transparent;
}

/* Contenedor Común */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   2. REVEAL ON SCROLL & ANIMACIONES
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-down {
  transform: translateY(-40px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger Delays para grids */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* Tipografía de Sección */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(255, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-tag.dark-tag {
  color: #FF6666;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-title.light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.section-subtitle.light {
  color: var(--gray-300);
}

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

.highlight-blue {
  color: var(--primary);
}

.highlight-red {
  color: var(--secondary);
}

/* ==========================================================================
   3. BOTONES MODERNOS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--trans-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn svg {
  width: 19px;
  height: 19px;
  transition: transform var(--trans-fast);
}

.btn:hover svg {
  transform: scale(1.15);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(62, 64, 149, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.45);
}

.btn-whatsapp {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-whatsapp:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--secondary-glow);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--gray-900);
  transform: translateY(-2px);
}

.btn-glow {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.7), 0 0 50px rgba(255, 0, 0, 0.35);
  }
}

/* ==========================================================================
   4. HEADER STICKY & MENÚ MÓVIL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--white);
  z-index: 1000;
  transition: box-shadow var(--trans-normal), height var(--trans-fast);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.site-header.scrolled {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1002;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--trans-fast);
}

.brand-logo:hover img {
  transform: scale(1.04);
}

/* Navegación Desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  position: relative;
  padding: 6px 2px;
  transition: color var(--trans-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width var(--trans-normal), left var(--trans-normal);
  border-radius: 2px;
}

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

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Acciones del Header - Botones Compactos y Proporcionados */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header-call {
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--trans-fast);
}

.btn-header-call svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-header-call:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-header-wa {
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--secondary-glow);
  transition: var(--trans-fast);
}

.btn-header-wa svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-header-wa:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.45);
}

/* Botón Hamburguesa */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  z-index: 1002;
  cursor: pointer;
  border: none;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--gray-900);
  border-radius: 3px;
  transition: var(--trans-normal);
  transform-origin: left center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  background: var(--secondary);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  background: var(--secondary);
}

/* Menú Móvil Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 310px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-link:hover {
  color: var(--primary);
  padding-left: 8px;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   5. HERO SECTION & EFECTO TV ANTIGUA
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark-bg);
  padding: 80px 0 140px;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Altura extra para el efecto parallax */
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Filtros y Efecto TV Antigua - Fondo Aclarado al ~40% */
.hero-tv-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(13, 17, 23, 0.35) 0%,
    rgba(13, 17, 23, 0.40) 60%,
    rgba(13, 17, 23, 0.48) 100%
  );
}

/* Scanlines de TV Antigua */
.hero-tv-overlay::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  ), 
  linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.04),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.04)
  );
  z-index: 3;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  animation: scanlinesFlicker 0.15s infinite;
}

/* Viñeta analógica y tubo CRT */
.hero-tv-overlay::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(
    circle at center,
    transparent 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 4;
}

@keyframes scanlinesFlicker {
  0% { opacity: 0.85; }
  50% { opacity: 0.95; }
  100% { opacity: 0.9; }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  background: linear-gradient(135deg, #FF4D4D 0%, #FF0000 50%, #FF8080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #E2E8F0;
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   6. BUSCADOR INTEGRADO (GLASSMORPHIC)
   ========================================================================== */
.search-container-wrap {
  position: relative;
  z-index: 30;
  margin-top: -70px;
  padding-bottom: 40px;
}

.search-box-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(13, 17, 23, 0.18),
              0 0 0 1px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(62, 64, 149, 0.15);
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 14px;
}

.search-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-tip {
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--gray-600);
  pointer-events: none;
}

.search-input, .search-select {
  width: 100%;
  height: 48px;
  padding: 10px 14px 10px 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--light-bg);
  color: var(--gray-900);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--trans-fast);
}

.search-input:focus, .search-select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-search {
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--trans-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-secondary);
}

.btn-search:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   7. INDICADORES DE CONFIANZA
   ========================================================================== */
.trust-section {
  padding: 70px 0;
  background-color: var(--light-bg);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

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

.trust-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--trans-normal);
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.trust-icon-box {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: var(--radius-sm);
  background: rgba(62, 64, 149, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-normal);
}

.trust-card:hover .trust-icon-box {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08) rotate(5deg);
}

.trust-icon-box.red-box {
  background: rgba(255, 0, 0, 0.08);
  color: var(--secondary);
}

.trust-card:hover .trust-icon-box.red-box {
  background: var(--secondary);
  color: var(--white);
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.trust-label {
  font-size: 0.92rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 4px;
}

.trust-stars {
  color: #F59E0B;
  display: inline-flex;
  gap: 2px;
  font-size: 0.95rem;
}

/* ==========================================================================
   8. CATEGORÍAS PRINCIPALES (16 TARJETAS CON 3D HOVER)
/* ==========================================================================
   8. CATEGORÍAS PRINCIPALES (ALFABÉTICO - FONDO ROJO INSTITUCIONAL)
   ========================================================================== */
.categories-section {
  padding: 100px 0;
  background-color: #D60000;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.categories-parallax-bg {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  background-image: url('imagenes/fondo1.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 1;
}

.categories-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.2) 40%,
    rgba(15, 23, 42, 0.55) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.categories-section::before {
  display: none;
}

.categories-section .container {
  position: relative;
  z-index: 3;
}

.categories-section .section-title {
  color: var(--white);
}

.categories-section .section-subtitle {
  color: rgba(255, 255, 255, 0.92);
}

.categories-section .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Barra de Filtro Rápido Alfabético */
.categories-alpha-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-bottom: 20px;
}

.alpha-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--trans-fast);
}

.alpha-pill:hover,
.alpha-pill.active {
  background: var(--white);
  color: var(--secondary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Directorio de Franjas Interactivas (Nuevo Layout Diferente) */
.categories-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.category-strip-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: var(--trans-normal);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.category-strip-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--primary);
  transition: width var(--trans-fast);
}

.category-strip-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  border-color: rgba(62, 64, 149, 0.3);
}

.category-strip-item:hover::before {
  width: 8px;
}

.category-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-index-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(62, 64, 149, 0.08);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
}

.category-strip-item:hover .category-index-badge {
  background: var(--primary);
  color: var(--white);
}

.category-strip-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.category-strip-info span {
  font-size: 0.76rem;
  color: var(--gray-600);
  display: block;
  margin-top: 2px;
  font-weight: 500;
}

.category-strip-arrow {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
}

.category-strip-item:hover .category-strip-arrow {
  background: var(--secondary);
  color: var(--white);
  transform: translateX(3px);
}
  gap: 4px;
  z-index: 1;
  transition: color var(--trans-fast);
}

.category-card:hover .category-action-link {
  color: var(--secondary);
}

/* ==========================================================================
   9. BUSCA TU AUTOPARTE EN 3 PASOS
   ========================================================================== */
.steps-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

/* Línea conectora entre pasos */
.steps-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0,
    var(--primary) 12px,
    transparent 12px,
    transparent 22px
  );
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.step-number-bubble {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  transition: var(--trans-normal);
  position: relative;
}

.step-item:hover .step-number-bubble {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.12);
  box-shadow: 0 12px 28px rgba(62, 64, 149, 0.35);
}

.step-icon-svg {
  width: 32px;
  height: 32px;
}

.step-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--trans-normal);
}

.step-item:hover .step-card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ==========================================================================
   10. PRODUCTOS DESTACADOS (SLIDER DINÁMICO)
   ========================================================================== */
.products-section {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
}

.slider-controls-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 24px;
}

.slider-nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.slider-track-container {
  overflow: hidden;
  padding: 15px 5px 30px;
}

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.product-card {
  min-width: calc(25% - 18px);
  max-width: calc(25% - 18px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--trans-normal);
  flex-shrink: 0;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

.product-image-box {
  position: relative;
  width: 100%;
  height: 220px;
  background: #FAFAFA;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-box img {
  transform: scale(1.08);
}

.product-badge-status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-compat {
  font-size: 0.85rem;
  color: var(--gray-600);
  background: var(--light-bg);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: inline-block;
  font-weight: 500;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 18px;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price-tag {
  font-size: 0.78rem;
  color: var(--gray-600);
  text-transform: uppercase;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-actions .btn {
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   11. MARCAS QUE MANEJAMOS (TICKER INFINITO)
   ========================================================================== */
.brands-section {
  padding: 60px 0;
  background-color: var(--light-bg);
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.brands-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brands-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: scrollMarquee 30s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.brands-marquee:hover .brands-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-fast);
}

.brand-badge:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.brand-logo-svg {
  width: 28px;
  height: 28px;
  color: var(--gray-700);
  transition: color var(--trans-fast);
}

.brand-badge:hover .brand-logo-svg {
  color: var(--primary);
}

/* ==========================================================================
   11. MARCAS QUE MANEJAMOS (SUV PARALLAX & SÓLO NOMBRES)
   ========================================================================== */
.brands-section {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background-color: #F8F9FA;
}

/* Fondo SUV Mazda en Parallax (Grises y Blancos) */
.brands-suv-bg {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  background-image: url('imagenes/mazda-suv-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  filter: grayscale(100%) brightness(1.15) contrast(0.95);
  opacity: 0.24;
  pointer-events: none;
  will-change: transform;
}

.brands-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 249, 250, 0.88) 0%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(248, 249, 250, 0.88) 100%
  );
  pointer-events: none;
}

.brands-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  user-select: none;
  z-index: 2;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.brands-track {
  display: flex;
  gap: 36px;
  align-items: center;
  animation: scrollMarquee 26s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.brands-marquee:hover .brands-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Insignia de Marca - Sólo Nombre Tipográfico Limpio */
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 34px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(62, 64, 149, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: var(--trans-fast);
}

.brand-badge:hover {
  border-color: var(--secondary);
  background: var(--white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(255, 0, 0, 0.22);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary);
  text-transform: uppercase;
  transition: color var(--trans-fast);
}

.brand-badge:hover .brand-name {
  color: var(--secondary);
}

/* ==========================================================================
   12. ¿POR QUÉ COMPRAR CON NOSOTROS? (ALFABÉTICO - FONDO ROJO & TARJETAS BLANCAS)
   ========================================================================== */
.benefits-section {
  padding: 100px 0;
  background-color: #D60000;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.benefits-parallax-bg {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  background-image: url('imagenes/fondo2.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 1;
}

.benefits-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.2) 40%,
    rgba(15, 23, 42, 0.55) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.benefits-section .container {
  position: relative;
  z-index: 3;
}

.benefits-section .section-title {
  color: var(--white);
}

.benefits-section .section-subtitle {
  color: rgba(255, 255, 255, 0.92);
}

.benefits-section .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  position: relative;
  transition: var(--trans-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--trans-normal);
}

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

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon-wrap {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: var(--radius-sm);
  background: rgba(62, 64, 149, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: var(--trans-normal);
}

.benefit-card:hover .benefit-icon-wrap {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.benefit-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ==========================================================================
   13. COTIZADOR RÁPIDO
   ========================================================================== */
.quote-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #F8F9FA 0%, #EDF2F7 100%);
  position: relative;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.quote-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.quote-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.quote-check-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.quote-info-text strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--gray-900);
  font-size: 1.05rem;
}

.quote-info-text span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.quote-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-700);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--light-bg);
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: var(--trans-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit-quote {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: var(--trans-normal);
  box-shadow: var(--shadow-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-quote:hover {
  background: var(--secondary);
  box-shadow: var(--shadow-secondary);
  transform: translateY(-2px);
}

/* ==========================================================================
   14. PORTAL PARA TALLERES Y DISTRIBUIDORES (B2B)
   ========================================================================== */
.b2b-section {
  padding: 100px 0;
  background: #3E4095;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.b2b-bg-glow {
  display: none;
}

.b2b-card-banner {
  position: relative;
  z-index: 2;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.b2b-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 36px;
}

.b2b-perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-card);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.b2b-perk-item svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: #38BDF8;
}

.b2b-perk-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F1F5F9;
}

.b2b-card-visual {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  position: relative;
}

.b2b-badge-discount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FF6666, #FF0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.b2b-discount-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

/* ==========================================================================
   15. TESTIMONIOS (GOOGLE REVIEWS & TABS)
   ========================================================================== */
.reviews-section {
  padding: 100px 0;
  background-color: var(--white);
}

.google-rating-header {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--light-bg);
  border: 1px solid var(--gray-200);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.google-logo-svg {
  width: 24px;
  height: 24px;
}

.google-score {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
}

.reviews-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--trans-fast);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(62, 64, 149, 0.25);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: var(--trans-normal);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.reviewer-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.reviewer-type {
  font-size: 0.8rem;
  color: var(--gray-600);
  display: block;
}

.review-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
  font-style: italic;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #F59E0B;
}

/* ==========================================================================
   16. BLOG AUTOMOTRIZ
   ========================================================================== */
.blog-section {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--trans-normal);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-thumb-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb-wrap img {
  transform: scale(1.1);
}

.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-excerpt {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 18px;
}

.blog-read-more {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--trans-fast);
}

.blog-read-more:hover {
  color: var(--secondary);
  gap: 10px;
}

/* ==========================================================================
   17. SUCURSALES FÍSICAS EN PUEBLA (SHOWCASE COMPLETO A LO ANCHO)
   ========================================================================== */
.map-section {
  padding: 100px 0;
  background-color: var(--dark-bg);
  color: var(--white);
  position: relative;
}

.branches-full-wrap {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Barra de Navegación de Sucursales */
.branches-tab-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  justify-content: center;
  scrollbar-width: thin;
}

.branch-tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--dark-surface);
  color: var(--gray-300);
  border: 1.5px solid var(--dark-border);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--trans-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.branch-tab-btn:hover {
  color: var(--white);
  border-color: var(--secondary);
  background: var(--dark-card);
  transform: translateY(-2px);
}

.branch-tab-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 6px 20px var(--secondary-glow);
}

/* Panel Principal de Sucursal Destacada (Full-Width) */
.branch-showcase-panel {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.branch-showcase-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.branch-photo-col {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  height: 340px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.branch-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.branch-photo-col:hover img {
  transform: scale(1.06);
}

.branch-status-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.branch-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.branch-details-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branch-title-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.branch-address-box {
  font-size: 0.95rem;
  color: var(--gray-300);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.branch-address-box svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--secondary);
  margin-top: 2px;
}

/* Grid de Información de la Sucursal (Horarios & Contacto) */
.branch-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  background: var(--dark-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dark-border);
}

.branch-info-block h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94A3B8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.branch-info-block p,
.branch-info-block div {
  font-size: 0.92rem;
  color: var(--white);
  line-height: 1.5;
}

.branch-phone-link {
  color: #38BDF8;
  font-weight: 600;
  display: inline-block;
  transition: color var(--trans-fast);
}

.branch-phone-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Métodos de Pago - Chips Visuales */
.branch-payments-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.branch-payments-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.branch-payments-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-chip {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.payment-chip::before {
  content: '✔';
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: bold;
}

/* Botones de Acción de Sucursal */
.branch-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-branch-maps {
  background: var(--primary);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--trans-fast);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-branch-maps:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-branch-wa {
  background: var(--secondary);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--trans-fast);
  box-shadow: 0 4px 14px var(--secondary-glow);
}

.btn-branch-wa:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

/* Mini Cuadrícula de Resumen de Todas las Sucursales */
.branches-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.branch-mini-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  cursor: pointer;
  transition: var(--trans-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.branch-mini-card:hover,
.branch-mini-card.active {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.branch-mini-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.branch-mini-phone {
  font-size: 0.8rem;
  color: #38BDF8;
}

.branch-mini-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   18. CALL TO ACTION FINAL (PARALLAX TALLER)
   ========================================================================== */
.final-cta-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark-bg);
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

.cta-parallax-bg {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  background-image: url('imagenes/taller-bg.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 1;
}

.cta-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 17, 23, 0.85) 0%,
    rgba(13, 17, 23, 0.92) 100%
  );
  z-index: 2;
}

.final-cta-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.cta-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #E2E8F0;
  margin-bottom: 36px;
  line-height: 1.5;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   19. FOOTER COMPLETO
   ========================================================================== */
.site-footer {
  background-color: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  color: var(--gray-300);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-col p {
  font-size: 0.92rem;
  color: var(--gray-300);
  margin-top: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
}

.social-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 0.92rem;
  color: var(--gray-300);
  transition: var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-list a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-300);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--secondary);
  margin-top: 2px;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-600);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--gray-300);
}

/* ==========================================================================
   20. BOTONES FLOTANTES — Solo Superchat (único widget flotante)
   ========================================================================== */

/* Superchat Widget: color azul institucional Santa Clara */
#superchat-widget-widget-button {
  transition: transform var(--trans-fast);
}

#superchat-widget-widget-button:hover {
  transform: scale(1.08);
}

#superchat-widget-root,
#superchat-widget {
  --sc-color-primary: #3E4095 !important;
  --sc-color-whatsapp: #3E4095 !important;
}

/* ==========================================================================
   21. SISTEMA DE MODALES RÁPIDOS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header.b2b-header {
  background: linear-gradient(135deg, #0D1117, var(--primary-dark));
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Toast de notificación rápida */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-900);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   22. RESPONSIVE BREAKPOINTS (TABLETS Y MÓVILES)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }

  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-search {
    grid-column: span 2;
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card {
    min-width: calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .b2b-card-banner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header-actions .btn-header-call {
    display: none;
  }

  .search-box-card {
    padding: 20px;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .btn-search {
    grid-column: span 1;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 18px 12px;
  }

  .category-icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .category-icon-wrapper svg {
    width: 26px;
    height: 26px;
  }

  .category-name {
    font-size: 1rem;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .steps-timeline::before {
    display: none;
  }

  .product-card {
    min-width: 85%;
    max-width: 85%;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .quote-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .form-full-width {
    grid-column: span 1;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* ==========================================================================
   23. ESTILOS ADICIONALES Y MEJORAS DE UX
   ========================================================================== */

/* Nav link activo (sección visible en viewport) */
.nav-link.nav-link-active {
  color: var(--primary) !important;
}

.nav-link.nav-link-active::after {
  width: 100% !important;
}

/* Animación de rutas del mapa SVG (stroke draw-on) */
@keyframes drawRoute {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  30%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Placeholder de imágenes faltantes */
.img-fallback,
.branch-placeholder {
  border-radius: var(--radius-md);
  min-height: 160px;
}

/* Mejoras mobile para botones del mapa de sucursales */
@media (max-width: 480px) {
  .branch-actions-row {
    flex-direction: column;
    gap: 10px;
  }

  .branch-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  .branches-tab-bar {
    gap: 6px;
  }

  .branch-tab-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .cta-btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-btn-group .btn {
    justify-content: center;
    text-align: center;
  }
}

/* Accesibilidad: focus visible claro */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   24. FUNCIONALIDADES PREMIUM (FASE 2)
   ========================================================================== */

/* Botón de Favoritos en el Header */
.btn-header-fav {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  position: relative;
  transition: var(--trans-fast);
}

.btn-header-fav:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-1px);
}

.fav-badge-count {
  background: var(--secondary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón Favorito en Tarjeta de Producto */
.btn-fav-product {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--trans-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-fav-product:hover,
.btn-fav-product.active {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: scale(1.1);
}

/* Items dentro del Drawer / Modal de Favoritos */
.wishlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  gap: 12px;
}

.wishlist-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wishlist-item-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}

.wishlist-item-sub {
  font-size: 0.78rem;
  color: var(--gray-600);
}

.wishlist-item-price {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--secondary);
}

.wishlist-item-remove {
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
}

.wishlist-item-remove:hover {
  color: var(--secondary);
  background: rgba(255, 0, 0, 0.08);
}

.wishlist-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--gray-600);
  font-size: 0.92rem;
}

/* Botón de Búsqueda por Foto en el Hero Search */
.btn-photo-search {
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--trans-fast);
  white-space: nowrap;
}

.btn-photo-search:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* Modal de Búsqueda por Foto */
.photo-dropzone {
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  background: var(--gray-100);
  cursor: pointer;
  transition: var(--trans-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
  background: rgba(62, 64, 149, 0.06);
  border-color: var(--primary);
}

.photo-preview-wrap {
  position: relative;
  width: 100%;
  max-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
  border: 1px solid var(--gray-200);
  margin-top: 14px;
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
}

.photo-ai-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(13, 17, 23, 0.85);
  color: #38BDF8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}


/* ==========================================================================
   26. COMPARADOR DE CALIDADES (OEM VS AFTERMARKET)
   ========================================================================== */
.comparator-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.88rem;
}

.comparator-modal-table th,
.comparator-modal-table td {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.comparator-modal-table th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}

.comparator-modal-table tr:nth-child(even) {
  background: var(--gray-100);
}

/* Responsive Overrides para Nuevos Elementos */
@media (max-width: 1024px) {
  .categories-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .branch-showcase-panel {
    grid-template-columns: 1fr;
  }

  .branch-photo-col {
    height: 240px;
  }

  .branches-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-directory-grid {
    grid-template-columns: 1fr;
  }

  .branches-quick-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SUPERCHAT WIDGET — COLOR OVERRIDE (Azul Santa Clara #3E4095)
   ========================================================================== */
/* El widget de Superchat renderiza un iframe; forzamos su color de fondo
   en el botón flotante a través de la variable CSS que expone el widget. */
[data-superchat],
superchat-widget,
#superchat-widget-btn,
.sc-widget-launcher,
.sc-launcher-button,
[class*="launcher"],
[id*="superchat"] button {
  --sc-color-primary: #3E4095 !important;
  background-color: #3E4095 !important;
}

/* Hack de color para el iframe del widget de Superchat */
iframe[src*="superchat"] {
  color-scheme: normal;
}

/* ==========================================================================
   PESTAÑA PROMOCIÓN DEL MES
   ========================================================================== */

/* Contenedor que envuelve pestaña + banner, pegado al header (sticky) */
.promo-tab-wrapper {
  position: sticky;
  top: 70px; /* justo debajo del header sticky */
  z-index: 900;
  width: 100%;
  background: transparent;
  pointer-events: none; /* el wrapper no captura clics, solo sus hijos */
}

/* --- Botón Pestaña Roja --- */
.promo-tab-btn {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--secondary, #FF0000);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 0 0 10px 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.35);
  transition: background var(--trans-fast), box-shadow var(--trans-fast), transform var(--trans-fast);
  margin-left: 24px; /* sangría desde la izquierda, elegante */
  position: relative;
  z-index: 2;
  user-select: none;
}

.promo-tab-btn:hover {
  background: var(--secondary-dark, #D60000);
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.5);
  transform: translateY(2px);
}

.promo-tab-btn:active {
  transform: translateY(4px);
}

/* Chevron que rota al abrir */
.promo-tab-chevron {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.promo-tab-wrapper.is-open .promo-tab-chevron {
  transform: rotate(180deg);
}

/* --- Panel Banner Colapsable --- */
.promo-banner-panel {
  pointer-events: all;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
  width: 100%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 3px solid var(--secondary, #FF0000);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.promo-tab-wrapper.is-open .promo-banner-panel {
  max-height: 900px;
  opacity: 1;
}

/* Contenido interno del banner centrado */
.promo-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  gap: 16px;
  position: relative;
}

/* Imagen de la promoción */
.promo-banner-img {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.promo-banner-img:hover {
  transform: scale(1.012);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.6);
}

/* Botón cerrar dentro del banner */
.promo-banner-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.promo-banner-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: scale(1.04);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .promo-tab-btn {
    margin-left: 12px;
    font-size: 0.78rem;
    padding: 9px 14px;
    gap: 6px;
  }

  .promo-banner-inner {
    padding: 20px 12px 18px;
  }

  .promo-banner-img {
    border-radius: 8px;
  }
}

