/* ===============================================
   GCLA - Grupo Comercial y Logistico de las Americas
   Main Styles - Refactorizado para Tema Claro Exclusivo
   =============================================== */

/* SISTEMA DE DISEÑO PROFESIONAL B2B - TEMA CLARO EXCLUSIVO */
:root {
  /* Colores Primarios (Verde Corporativo) */
  --primario: #10B981;
  --primario-suave: #ECFDF5;
  --primary: #10B981;
  --primary-light: #34D399;
  --primary-dark: #059669;
  /* Accents faltantes */
  --accent-blue: #0EA5E9;
  --accent-red: #EF4444;
  --accent-gold: #F59E0B;
  
  /* Neutrales (Escala de Grises Moderna) */
  --blanco-principal: #FFFFFF;
  --gris-suave: #F9FAFB;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Estados de Sistema */
  --success: #22C55E;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;

  /* Colores de Texto */
  --texto-principal: #1F2937;
  --texto-secundario: #4B5563;
  --texto-terciario: #6B7280;

  /* Sistema de Tipografía */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  
  /* Sistema de Espaciado (8px grid) */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Sombras y Profundidad */
  --shadow-card: 0px 4px 6px -1px rgba(0, 0, 0, 0.05), 0px 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0px 10px 15px -3px rgba(0, 0, 0, 0.07), 0px 4px 6px -4px rgba(0, 0, 0, 0.07);
  
  /* Bordes y Radio */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transiciones */
  --transition-base: 0.3s ease;
  --transition-fast: 0.15s ease;
  
  /* Legacy Support */
  --white: #FFFFFF;
  --spacing-unit: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* RESET Y BASE - TEMA CLARO OBLIGATORIO */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light !important; /* Manda el navegador */
  overflow-x: hidden; /* Prevenir desbordamiento horizontal */
  max-width: 100%; /* Asegurar que no exceda el viewport */
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--blanco-principal);
  color: var(--texto-secundario);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevenir desbordamiento horizontal */
  max-width: 100%; /* Asegurar que no exceda el viewport */
}

/* REGLAS GLOBALES DE TEMA CLARO */
section, div, header, footer, main, nav {
    background-color: transparent;
    color: inherit;
}

/* ===============================================
   FIN DEL SISTEMA DE DISEÑO - INICIAN COMPONENTES
   =============================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans);
    color: var(--texto-principal);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { 
    font-size: 48px; 
    font-weight: 800; /* Extra Bold */
}
h2 { 
    font-size: 36px; 
    font-weight: 700; /* Bold */
}
h3 { 
    font-size: 20px; 
    font-weight: 600; /* Semi-Bold */
}
h4 { 
    font-size: 18px; 
    font-weight: 600; /* Semi-Bold */
}
h5 { 
    font-size: 16px; 
    font-weight: 600; /* Semi-Bold */
}

p {
    font-size: 16px;
    font-weight: 400; /* Regular */
    line-height: 1.6;
    color: var(--texto-secundario);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500; /* Medium */
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  z-index: 1000;
  background-color: var(--accent-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: 6px;
}

/* BARRA ELEGANTE Y ATRACTIVA */
.sustainability-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); /* Verde vibrante */
  color: var(--white);
  padding: 12px 0; /* Mejor espaciado vertical */
  font-weight: 500; /* Medium for balance */
  font-size: 0.875rem; /* Proportional size */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Sutil border */
  margin-bottom: 0; /* Sin margen adicional */
  overflow-x: hidden; /* Prevenir desbordamiento horizontal */
  max-width: 100%; /* Asegurar que no exceda el viewport */
  transition: all 0.3s ease; /* Animación suave */
  transform: translateY(0); /* Posición inicial */
  opacity: 1; /* Opacidad inicial */
}

/* Texto elegante */
.sustainability-bar strong {
  font-weight: 600; /* Semi-bold for emphasis */
}

.sustainability-bar .btn-light {
  font-size: 0.75rem;
  padding: var(--spacing-unit) var(--spacing-unit);
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* BANNER RESPONSIVE - MEDIA QUERIES ESPECÍFICAS */
@media (max-width: 767.98px) {
  .sustainability-bar {
    padding: 6px 0; /* Más compacto */
    font-size: 0.7rem; /* Texto más pequeño */
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); /* Verde más sutil */
  }
  
  .sustainability-bar .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .sustainability-bar .row {
    flex-direction: row; /* Mantener horizontal pero compacto */
    gap: 4px;
    align-items: center;
    justify-content: space-between;
  }
  
  .sustainability-bar .col-md-8 {
    flex: 1;
    text-align: left;
  }
  
  .sustainability-bar .col-md-4 {
    flex: 0 0 auto;
    text-align: right;
  }
  
  .sustainability-bar p {
    margin-bottom: 0;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
    font-size: 0.65rem; /* Texto aún más pequeño */
  }
  
  .sustainability-bar .btn-light {
    font-size: 0.6rem;
    padding: 4px 8px;
    margin: 0;
  }
  
  .sustainability-bar .btn-close {
    padding: 2px;
    font-size: 0.5rem;
    margin-left: 4px;
  }
  
  /* Ocultar texto largo en móviles muy pequeños */
  @media (max-width: 480px) {
    .sustainability-bar p {
      display: none; /* Ocultar texto completo en móviles muy pequeños */
    }
    
    .sustainability-bar .col-md-8 {
      display: none;
    }
    
    .sustainability-bar .col-md-4 {
      width: 100%;
      text-align: center;
    }
  }
}

/* TABLET - Banner visible pero compacto */
@media (min-width: 768px) and (max-width: 991.98px) {
  .sustainability-bar {
    padding: 10px 0;
    font-size: 0.8rem;
  }
  
  .sustainability-bar .btn-light {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
}

/* DESKTOP - Banner completo */
@media (min-width: 992px) {
  .sustainability-bar {
    padding: 12px 0;
    font-size: 0.875rem;
  }
}

/* Top Offer Bar - Updated */
.top-offer-bar {
  background: linear-gradient(135deg, #D6FBF0 0%, var(--primary-dark) 100%); /* Soft mint accent */
  color: var(--accent-blue);
  padding: var(--spacing-unit) 0;
  font-weight: 500;
  font-size: 0.875rem;
}

.top-offer-bar .btn-close {
  opacity: 0.7;
}

.top-offer-bar .btn-close:hover {
  opacity: 1;
}

/* HEADER PROFESIONAL SIEMPRE CLARO */
.main-header {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  color-scheme: light !important;
}

.main-header .navbar {
  display: flex;
  align-items: center;
  width: 100%;
}

.main-header .navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* IZQUIERDA: Logo y Nombre de la Empresa */
.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* DERECHA: Navegación y WhatsApp */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

/* GCLA Logo - Modern */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
  font-weight: 900; /* Black for logo */
  font-size: 1.25rem; /* Larger font size */
  text-decoration: none;
  color: var(--gray-800);
}

.navbar-brand:hover {
  color: var(--primary);
}

.logo-img {
  height: 45px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-line-1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-600);
  line-height: 1.1;
}

.brand-line-2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand-line-3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-500);
  line-height: 1.1;
}

/* NAVEGACIÓN PROFESIONAL B2B */
.header-right .navbar-collapse {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-right .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
  margin: 0;
}

.navbar-nav .nav-link {
  font-weight: 500; /* Medium weight for readability */
  color: var(--texto-secundario);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all var(--transition-base);
  font-size: 16px;
  letter-spacing: 0.2px;
  position: relative;
  white-space: nowrap;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 50%;
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
  background-color: transparent; /* No background on hover */
  transform: none; /* No movement */
}

.dropdown-menu {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-unit);
}

.dropdown-item {
  padding: var(--spacing-unit) var(--spacing-unit);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-weight: 500;
  color: var(--gray-700);
}

.dropdown-item:hover {
  background-color: var(--gray-50);
  color: var(--primary);
}

/* Search Form - Modern Style */
.search-form {
  width: 100%;
  max-width: 350px;
}

.search-form .form-control {
  border: 1px solid var(--gray-300);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  font-weight: 500;
}

.search-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 224, 161, 0.25);
}

.search-form .btn {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.search-form .btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* WhatsApp Section - DERECHA */
.whatsapp-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991.98px) {
  .header-right {
    gap: var(--spacing-md);
  }
  
  .header-right .navbar-collapse {
    gap: var(--spacing-md);
  }
  
  .header-right .navbar-nav {
    gap: var(--spacing-sm);
  }
}

@media (max-width: 767.98px) {
  .main-header .navbar .container {
    flex-direction: row; /* Cambiar a horizontal ya que no hay WhatsApp */
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: space-between;
  }
  
  .header-right {
    width: auto; /* Ya no necesita 100% */
    justify-content: flex-end;
  }
  
  /* CORREGIR: Permitir que el texto de navegación se ajuste en móviles */
  .navbar-nav .nav-link {
    white-space: normal !important;
    word-break: break-word;
    text-align: center;
    padding: 8px 12px;
  }
  
  /* Optimizar el logo en móviles */
  .header-left {
    flex: 1;
  }
  
  .navbar-brand {
    font-size: 1rem; /* Más pequeño en móviles */
  }
}

.user-actions .nav-link {
  font-size: 1.125rem; /* Larger font size */
  position: relative;
  color: var(--accent-blue);
}

.user-actions .btn-outline-primary {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.875rem;
  padding: var(--spacing-unit) var(--spacing-unit);
}

.user-actions .btn-primary {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.875rem;
  padding: var(--spacing-unit) var(--spacing-unit);
}

.cart-count {
  font-size: 0.75rem;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  background-color: var(--accent-red);
}

/* HERO SECTION SIEMPRE CLARO */
.hero-section {
  position: relative;
  min-height: 90vh; /* Ligeramente más bajo para mejor encuadre */
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--white);
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.hero-slide.active {
  opacity: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--gray-800) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: var(--spacing-sm) 0;
}

/* BADGE VIBRANTE Y ATRACTIVO */
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: var(--spacing-unit) var(--spacing-unit);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-unit);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  color: var(--gray-900) !important;
  text-shadow: none;
}

.hero-title .text-primary {
  color: var(--primary-light) !important;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-unit);
  text-shadow: none; /* No shadow */
  opacity: 1;
  font-weight: 400; /* Normal weight */
  line-height: 1.6; /* Comfortable spacing */
  color: var(--gray-700) !important; /* Dark text for visibility */
}

/* NEW: Hero Actions */
.hero-actions {
  display: flex;
  gap: var(--spacing-unit);
  margin-bottom: var(--spacing-unit);
  flex-wrap: wrap;
}

.hero-cta {
  font-size: 1rem; /* Compact for hero */
  font-weight: 600;
  padding: 0.5rem 1rem; /* compacto para hero */
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-transform: none;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-unit);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

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

/* NEW: Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--spacing-unit);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-item strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* PROMOTIONAL CARDS - COMPACTAS Y ATRACTIVAS */
.promo-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 2;
  color-scheme: light only !important;
  margin-left: auto;
  max-width: 320px;
}

.promo-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 3px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: var(--spacing-lg);
  position: relative;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(16, 185, 129, 0.2);
  cursor: pointer;
  height: 120px;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  transform: translateX(0);
}

.promo-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.promo-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
  animation: badgePulse 2s infinite;
}

.urgent-offer .promo-badge {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
  color: var(--white);
  animation: urgentPulse 1.5s infinite;
}

.new-arrival .promo-badge {
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  color: var(--white);
}

.roi-guarantee .promo-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--gray-800);
}

.promo-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding-right: 40px;
}

.promo-card h4 {
  color: var(--primary) !important;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1;
  text-shadow: 0 3px 6px rgba(16, 185, 129, 0.2);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.promo-card p {
  color: var(--gray-600) !important;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

.promo-timer {
  margin-top: 2px;
}

.timer-count {
  font-size: 1rem;
  font-weight: 900;
  color: #FF6B6B;
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.promo-benefit {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.benefit-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

.benefit-dot.gold {
  background: #FFD700;
}

.promo-benefit span:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

@keyframes urgentPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
  }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Hero Navigation */
.hero-navigation {
  position: absolute;
  bottom: var(--spacing-unit);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-dots {
  display: flex;
  gap: var(--spacing-unit);
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  transition: all var(--transition-base);
  cursor: pointer;
}

.hero-dot.active,
.hero-dot:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

/* SECCIONES PROFESIONALES CON FONDOS ALTERNADOS */
.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--texto-principal);
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: var(--texto-secundario);
  margin-bottom: var(--spacing-2xl);
  font-weight: 400;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Section dividers */
.section-divider {
    border: 0;
    height: 1px;
    background-color: var(--gray-200);
    margin: var(--spacing-unit) auto;
    width: 90%;
}

.bg-light-gray {
    background-color: var(--gris-suave);
}

/* Fondos de secciones alternados */
section {
    background-color: var(--blanco-principal);
}

section:nth-child(even) {
    background-color: var(--gris-suave);
}

/* ===============================================
   CATEGORÍAS - MOVIDO A css/sections/categories.css
   =============================================== */

/* TARJETAS PROFESIONALES MODERNAS - COMPACTAS */
.product-card, .lot-card {
  background: var(--blanco-principal) !important;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: var(--shadow-card);
  color-scheme: light only !important;
  padding: var(--spacing-md);
  max-width: 280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Carrusel Compacto */
.compact-carousel {
  max-width: 1200px;
  margin: 0 auto;
}

.compact-carousel .product-card,
.compact-carousel .lot-card {
  max-width: 250px;
  margin: 0 var(--spacing-sm);
}

/* ESTILOS ESPECÍFICOS PARA PRODUCTOS AL DETAL */
.featured-product {
  background: var(--blanco-principal) !important;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0;
}

.featured-product .product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray-50);
}

.featured-product .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-product:hover .product-img {
  transform: scale(1.05);
}

.featured-product .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-product .product-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-500);
}

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

.featured-product .discount-badge {
  position: absolute;
  top: 12px;
  right: 60px;
  background: var(--accent-red);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.featured-product .product-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured-product .product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--texto-principal);
  margin: 0;
  line-height: 1.3;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-product .product-details {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.featured-product .product-brand {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.featured-product .product-model {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.featured-product .product-description {
  margin: 8px 0;
}

.featured-product .product-description p {
  font-size: 13px;
  color: var(--texto-secundario);
  line-height: 1.4;
  margin: 0;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-product .product-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}

.featured-product .spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.featured-product .spec-label {
  color: var(--texto-terciario);
  font-weight: 500;
}

.featured-product .spec-value {
  color: var(--texto-principal);
  font-weight: 600;
}

.featured-product .product-price {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-product .price-current {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.featured-product .price-original {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: line-through;
}

.featured-product .product-actions {
  margin-top: auto;
  padding-top: 12px;
}

.featured-product .product-actions .btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.featured-product .product-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* RESPONSIVE PARA PRODUCTOS AL DETAL */
@media (max-width: 1200px) {
  .featured-product {
    max-width: 280px;
    min-height: 480px;
  }
}

@media (max-width: 992px) {
  .featured-product {
    max-width: 260px;
    min-height: 460px;
  }
  
  .featured-product .product-image {
    height: 180px;
  }
  
  .featured-product .product-name {
    font-size: 15px;
    height: 40px;
  }
  
  .featured-product .product-description p {
    font-size: 12px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .featured-product {
    max-width: 240px;
    min-height: 440px;
  }
  
  .featured-product .product-image {
    height: 160px;
  }
  
  .featured-product .product-content {
    padding: 12px;
  }
  
  .featured-product .product-name {
    font-size: 14px;
    height: 36px;
  }
  
  .featured-product .price-current {
    font-size: 16px;
  }
  
  .featured-product .price-original {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .featured-product {
    max-width: 100%;
    min-height: 400px;
  }
  
  .featured-product .product-image {
    height: 140px;
  }
  
  .featured-product .product-content {
    padding: 10px;
  }
  
  .featured-product .product-name {
    font-size: 13px;
    height: 32px;
  }
  
  .featured-product .product-description p {
    font-size: 11px;
    height: 28px;
  }
  
  .featured-product .spec-item {
    font-size: 11px;
  }
}

/* Carrusel Horizontal */
#lotsGrid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--spacing-sm) 0;
  gap: var(--spacing-md);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#lotsGrid::-webkit-scrollbar {
  height: 6px;
}

#lotsGrid::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 3px;
}

#lotsGrid::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

#lotsGrid::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

#lotsGrid .col-auto {
  flex: 0 0 auto;
  width: auto;
  min-width: 280px;
}

/* ===============================================
   SECCIÓN DE SUBASTAS - VER auctions.css
   Los estilos de la sección de subastas han sido
   movidos a un archivo separado para mejor organización
   =============================================== */

.product-card:hover, .lot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.product-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--gray-50);
  padding: var(--spacing-sm);
}

.product-info {
  padding: var(--spacing-sm);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.product-description {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  flex-grow: 1;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.product-title {
  font-size: 1.125rem; /* Balanced size */
  font-weight: 600; /* Moderate weight */
  margin-bottom: var(--spacing-unit);
  color: var(--gray-600); /* Soft gray */
  line-height: 1.4; /* Comfortable spacing */
}

.product-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.product-price .old-price {
  font-size: 0.875rem;
  color: var(--gray-300);
  text-decoration: line-through;
  margin-right: var(--spacing-unit);
}

.product-rating {
  margin-bottom: var(--spacing-unit);
}

.star {
  color: var(--primary);
  font-size: 0.875rem;
}

.star.empty {
  color: var(--gray-300);
}

/* Newsletter Section - Siempre Clara */
.newsletter-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%) !important;
  border: 1px solid var(--gray-200);
  color: var(--gray-600) !important;
  color-scheme: light only !important;
}

.newsletter-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: var(--spacing-unit);
}

.newsletter-description {
  margin-bottom: var(--spacing-unit);
  font-weight: 500;
}

.newsletter-form .form-control {
  border: 1px solid var(--gray-300);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  font-weight: 500;
}

.newsletter-form .btn {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  color: var(--white);
}

/* Web Awesome-inspired Button Utilities */
.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-unit);
  border-radius: var(--radius-lg);
  padding: 0.625rem 1rem; /* md default */
  border: 2px solid transparent;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.wa-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.wa-btn:disabled,
.wa-btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Sizes */
.wa-btn--sm { padding: 0.45rem 0.75rem; font-size: 0.875rem; border-radius: var(--radius-md); }
.wa-btn--md { padding: 0.625rem 1rem; font-size: 1rem; }
.wa-btn--lg { padding: 0.85rem 1.25rem; font-size: 1.125rem; border-radius: var(--radius-lg); }
.wa-btn--pill { border-radius: 9999px; }
.wa-btn--block { width: 100%; }
.wa-btn--icon-only { padding: 0.5rem; width: 2.5rem; height: 2.5rem; }

/* Variants */
.wa-btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.wa-btn--primary:hover { 
  background-position: right center;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px); 
}
.wa-btn--primary:active { 
  transform: translateY(-1px); 
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.wa-btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.wa-btn--outline:hover { 
  background: #E0F2FE; /* Lighter, more contrasting background */
  transform: translateY(-2px); 
  box-shadow: var(--shadow-sm); 
}

.wa-btn--soft {
  background: #E0F2FE; /* Lighter, more contrasting background */
  color: #0C4A6E; /* Darker text for better contrast */
  border-color: #0C4A6E;
}
.wa-btn--soft:hover { background: #BAE6FD; border-color: #0C4A6E; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.wa-btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}
.wa-btn--ghost:hover { background: var(--gray-100); color: var(--gray-600); }

.wa-btn--light {
  background: var(--white);
  color: var(--gray-600);
  border-color: var(--gray-200);
}
.wa-btn--light:hover { background: var(--gray-50); border-color: var(--gray-300); }

/* Icon spacing */
.wa-btn i { font-size: 1em; }
.wa-btn i:first-child { margin-right: 0.375rem; }
.wa-btn i:last-child { margin-left: 0.375rem; }

/* Integration with forms */
.search-form .wa-btn,
.newsletter-form .wa-btn {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* FOOTER PROFESIONAL ORGANIZADO */
.main-footer {
  background: var(--gris-suave);
  color-scheme: light !important;
  border-top: 1px solid var(--gray-200);
  padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
}

/* ==============================
   CART (Carrito de Compras) UI
   ============================== */
/* Botón flotante del carrito */
.cart-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(16,185,129,0.35);
  border: 0;
}

.cart-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16,185,129,0.45);
}

.cart-fab .cart-fab-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--accent-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(239,68,68,0.35);
}

/* Offcanvas del carrito (Bootstrap) */
.offcanvas.cart-offcanvas {
  width: 360px;
  background: #fff;
  color-scheme: light !important;
  border-left: 1px solid var(--gray-200);
}

@media (max-width: 480px) {
  .offcanvas.cart-offcanvas { width: 92vw; }
}

/* ===============================================
   RESPONSIVE DESIGN MODERNO - MOBILE FIRST 2024
   Breakpoints optimizados para dispositivos actuales
   =============================================== */

/* TOUCH TARGETS - Mínimo 44px para elementos interactivos */
@media (max-width: 767.98px) {
  .btn, .navbar-toggler, .product-favorite, .wishlist-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .btn-sm {
    min-height: 40px;
    padding: 8px 16px;
  }
}

/* CONTENEDORES BOOTSTRAP OPTIMIZADOS */
.container, .container-fluid {
  overflow-x: hidden;
  max-width: 100%;
}

.row {
  margin-left: 0;
  margin-right: 0;
  overflow-x: hidden;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
  overflow-x: hidden;
  word-wrap: break-word;
}

/* SMALL MOBILE OPTIMIZATION (320px - 479px) */
@media (max-width: 479.98px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .section-title {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
  }
  
  .promo-cards {
    max-width: 100%;
    margin-left: 0;
    gap: 16px;
  }
  
  .promo-card {
    padding: 16px;
  }
  
  .promo-card h4 {
    font-size: 1.5rem;
  }
  
  .promo-card p {
    font-size: 0.85rem;
  }
  
  /* Hero section mobile optimization */
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 16px;
    font-size: 16px;
  }
}

/* MOBILE LANDSCAPE (480px - 767px) */
@media (min-width: 480px) and (max-width: 767.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .promo-cards {
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* TABLET PORTRAIT (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .promo-cards {
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

/* TABLET LANDSCAPE (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* DESKTOP LARGE (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
}

/* HIGH DPI DISPLAYS */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .product-img,
  .auction-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* BOTÓN FLOTANTE DE WHATSAPP - DEBAJO DEL CARRITO */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999; /* Un nivel menos que el carrito */
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  color: white;
  font-size: 24px;
  margin-bottom: 80px; /* Espacio para el botón del carrito */
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab:active {
  transform: scale(0.95);
}

/* Animación de pulso para llamar la atención */
.whatsapp-fab::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Badge de notificación (opcional) */
.whatsapp-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
}

/* RESPONSIVE PARA BOTONES FLOTANTES */
@media (max-width: 767.98px) {
  .whatsapp-fab {
    width: 55px;
    height: 55px;
    font-size: 22px;
    margin-bottom: 75px; /* Ajustar espacio para carrito en móviles */
  }
  
  .whatsapp-badge {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .whatsapp-fab {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 70px; /* Menos espacio en móviles pequeños */
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-badge {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

/* RESPONSIVE IMAGES - Optimización para móviles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-image img,
.product-img,
.auction-image img,
.category-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Lazy loading optimization */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* MOBILE IMAGE OPTIMIZATION */
@media (max-width: 767.98px) {
  .hero-image {
    height: 250px;
    overflow: hidden;
  }
  
  .hero-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .product-image,
  .auction-image {
    height: 160px;
  }
  
  .category-image {
    height: 120px;
  }
}

/* DARK MODE SUPPORT (si se implementa en el futuro) */
@media (prefers-color-scheme: dark) {
  /* Preparado para modo oscuro futuro */
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.cart-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--gray-200);
}

.cart-title {
  font-weight: 800;
  color: var(--gray-800);
}

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

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: var(--gray-50);
  border-radius: 8px;
}

.cart-item-name {
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-input {
  width: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  overflow: hidden;
}

.qty-input button {
  width: 28px;
  height: 32px;
  border: 0;
  background: var(--gray-100);
  color: var(--gray-700);
}

.qty-input input {
  width: 20px;
  text-align: center;
  border: 0;
  outline: 0;
  font-weight: 700;
}

.cart-footer {
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--gray-700);
}

.cart-summary .total {
  font-weight: 900;
  color: var(--primary);
}

.btn-quote {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: 0;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--texto-principal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-description {
  color: var(--texto-secundario);
  margin-bottom: var(--spacing-lg);
  font-size: 14px;
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-unit);
}

.footer-links a {
  color: var(--texto-secundario);
  text-decoration: none;
  transition: color var(--transition-base);
  font-weight: 400;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  color: var(--gray-600); /* Soft gray */
  margin-bottom: var(--spacing-unit);
  font-weight: 400;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.footer-contact li i {
    margin-right: var(--spacing-unit);
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.social-links {
  display: flex;
  gap: var(--spacing-unit);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--gray-100);
  color: var(--gray-600);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-base);
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: var(--gray-200);
  margin: var(--spacing-unit) 0 var(--spacing-unit);
}

.copyright {
  color: var(--gray-500);
  font-weight: 400;
  font-size: 0.875rem;
}

.payment-methods {
  display: flex;
  gap: var(--spacing-unit);
  font-size: 1.125rem; /* Larger font size */
  color: var(--gray-400);
  align-items: center;
}

/* NEW B2B Components */

/* Manifesto Card */
.manifesto-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-unit);
  margin-top: var(--spacing-unit);
}

.manifesto-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-unit);
}

/* TEMPORIZADOR ELEGANTE */
.auction-timer {
  position: absolute;
  top: var(--spacing-unit);
  right: var(--spacing-unit);
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--primary-dark) 100%); /* Vibrant red */
  color: var(--white);
  padding: var(--spacing-unit) var(--spacing-unit);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.direct-sale-badge {
  position: absolute;
  top: var(--spacing-unit);
  right: var(--spacing-unit);
  background: var(--primary);
  color: var(--white);
  padding: var(--spacing-unit) var(--spacing-unit);
  border-radius: var(--radius-lg);
  font-weight: 900;
  font-size: 0.875rem;
  text-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.wishlist-btn {
  position: absolute;
  top: var(--spacing-unit);
  left: var(--spacing-unit);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--gray-600);
  z-index: 10;
}

.wishlist-btn:hover {
  background: var(--white);
  transform: scale(1.1);
  color: var(--primary);
  border-color: var(--primary);
}

.wishlist-btn.wishlisted {
  color: #C62828;
  background: rgba(255, 255, 255, 1);
}


/* UTILIDADES ELEGANTES */
.text-primary {
  color: var(--primary) !important;
  font-weight: 500 !important;
}

.text-blue {
  color: var(--accent-blue) !important;
  font-weight: 500 !important;
}

.text-eco {
  color: var(--primary) !important;
  font-weight: 500 !important;
}

/* ESTILOS ESPECÍFICOS PARA LOTES Y SUBASTAS - SIEMPRE CLARO */
.lot-info {
  padding: var(--spacing-unit);
  background: var(--white) !important;
  color-scheme: light only !important;
}

.lot-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
  margin: var(--spacing-unit) 0;
}

.lot-quantity, .lot-condition {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-500);
}

.lot-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: var(--spacing-unit) 0;
  flex-wrap: wrap;
  gap: var(--spacing-unit);
}

.current-bid .label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-600);
}

.current-bid .price, .direct-price .price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.auction-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-unit);
}

.bidders {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-600);
}

/* ===============================================
   ESTILOS DE CATEGORÍAS MOVIDOS A categories.css
   =============================================== */

.sustainability-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: var(--spacing-unit);
}

.manifesto-preview {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-top: var(--spacing-unit);
  padding: var(--spacing-unit);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.manifesto-preview:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-blue {
  background-color: var(--gris-suave) !important;
}

.bg-eco {
  background-color: var(--primario-suave) !important;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

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

/* Override Bootstrap warning button to brand soft accent */
.btn-warning {
  background-color: #E0F2FE !important; /* Soft mint accent */
  border-color: #E0F2FE !important; /* Soft mint accent */
  color: var(--primary-dark) !important; /* Dark text for contrast */
  font-weight: 600;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #F5D7DA !important;
  border-color: #F5D7DA !important;
  color: var(--primary-dark) !important;
}

.btn-blue {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--white);
  font-weight: 600;
}

.btn-blue:hover {
  background-color: var(--accent-blue); /* No change, already blue */
  border-color: var(--accent-blue); /* No change, already blue */
  color: var(--white);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-50) 25%, var(--gray-300) 50%, var(--gray-50) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Focus States for Accessibility - Modern */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.form-control:focus,
.search-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 224, 161, 0.25);
  outline: 2px solid transparent;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .sustainability-bar {
    background: var(--primary) !important;
    border: 2px solid var(--white);
  }
  
  .hero-overlay {
    background: rgba(255, 255, 255, 0.8) !important;
  }
  
  .navbar-nav .nav-link {
    color: var(--gray-800) !important;
    font-weight: 700 !important;
  }
  
  .cert-card,
  .lot-card {
    border-width: 2px;
    border-color: var(--primary);
  }
}


/* Testimonial Cards - Siempre Claras */
.testimonial-card {
  background: var(--white) !important;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-unit);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  height: 100%;
  color-scheme: light only !important;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-unit);
  gap: var(--spacing-unit);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.testimonial-info h5 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: var(--spacing-unit);
}

.testimonial-company {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: var(--spacing-unit);
}

.testimonial-rating {
  color: var(--primary);
  font-size: 1.125rem;
}

.testimonial-content {
  margin-bottom: var(--spacing-unit);
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 0;
}

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

/* Print Styles */
@media print {
  .sustainability-bar,
  .top-offer-bar,
  .main-header,
  .hero-section,
  .newsletter-section,
  .main-footer {
    display: none !important;
  }
}

/* ===============================================
   SECCIONES DE CONTENIDO - SIEMPRE CLARAS
   =============================================== */

/* ===============================================
   SECCIONES MODULARIZADAS - Referencias eliminadas
   Los estilos están en css/sections/
   =============================================== */

.categories-section, .products-section, .how-to-buy-section, .newsletter-section {
    background-color: var(--white);
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

.how-to-buy-section.bg-light-gray {
    background-color: var(--gray-50);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-800);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-500);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-2xl) auto;
}

/* ===============================================
   TARJETAS DE CATEGORÍA MOVIDAS A categories.css
   SOLO SE MANTIENEN ESTILOS DE LOTES GENERALES
   =============================================== */

.lot-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
    height: 100%;
}

.lot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.lot-info {
    padding: var(--spacing-lg);
}

.lot-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}
