/* ============================================
   MOBILE-FIRST CSS - OPTIMIZADO PARA 90% TRÁFICO MÓVIL
   ============================================ */

/* Reset y optimización de rendimiento */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================
   OPTIMIZACIONES MÓVILES AVANZADAS
   ============================================ */

/* Mejoras de scroll y rendimiento en móvil */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  /* GPU acceleration para scroll suave */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Optimización de gestos táctiles */
*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Área táctil mínima para todos los elementos clickeables */
button,
a,
input[type='submit'],
input[type='button'],
.clickable {
  min-height: 44px;
  min-width: 44px;
}

/* Mejoras de accesibilidad móvil */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimización para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .product-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Safe area para dispositivos con notch */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  header {
    padding-top: env(safe-area-inset-top);
  }
}

/* ============================================
   LAZY LOADING Y OPTIMIZACIONES DE IMÁGENES
   ============================================ */

/* Imágenes con lazy loading */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded,
.lazy:not([data-src]) {
  opacity: 1;
}

/* Imágenes con lazy loading y optimización */
.product-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
}

.product-image.loaded {
  animation: none;
  background: none;
}

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

/* Optimización para dispositivos móviles de gama baja */
@media (max-width: 375px) and (max-height: 667px) {
  .product-image {
    max-height: 150px;
    object-fit: cover;
  }

  /* Reducir animaciones para mejor rendimiento */
  .product-card {
    transition: transform 0.2s ease;
  }

  .btn-primary::before {
    display: none; /* Desactivar efectos complejos en móviles básicos */
  }
}

/* Clase para elementos visibles solo para lectores de pantalla (SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Prevenir zoom en inputs para iOS */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='search'],
select,
textarea {
  font-size: 16px !important;
  /* Mejoras adicionales para móvil */
  border-radius: 8px;
  min-height: 44px; /* Tamaño mínimo táctil iOS/Android */
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Estados de enfoque mejorados para móvil */
input:focus,
select:focus,
textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Contenedor principal optimizado */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* Mejoras de rendering de texto */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Mejora el scroll en iOS */
  -webkit-overflow-scrolling: touch;
  /* Evita el rebote en iOS */
  overscroll-behavior-y: contain;
  /* Mejoras adicionales para móvil */
  -webkit-tap-highlight-color: transparent;
  user-select: none; /* Evita selección accidental en móvil */
  -webkit-user-select: none;
  -moz-user-select: none;
  /* Optimiza el rendering en dispositivos móviles */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Permitir selección solo en elementos de texto */
p,
span,
a,
input,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
}

.container {
  width: 100%;
  padding: 0 12px;
  margin: 0 auto;
  /* Optimización para pantallas muy pequeñas */
}

@media (min-width: 375px) {
  .container {
    padding: 0 16px;
  }
}

/* ============================================
   PALETA ACCESIBLE (WCAG AA)
   ============================================ */
:root {
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-650: #4338ca;
  --indigo-700: #3730a3;
  --indigo-800: #312e81;
  --danger-500: #b91c1c;
  --danger-600: #991b1b;
  --accent-gradient-start: var(--indigo-600);
  --accent-gradient-end: var(--indigo-650);
  --accent-gradient-dark-start: var(--indigo-650);
  --accent-gradient-dark-end: var(--indigo-800);
  --accent-text-on-dark: #ffffff;
  --accent-text-on-light: #1e293b;
  --surface-light: #ffffff;
  --surface-muted: #f8fafc;
  --surface-alt: #f1f5f9;
}

/* ============================================
   HEADER - STICKY MÓVIL
   ============================================ */
header {
  background: linear-gradient(135deg, var(--accent-gradient-dark-start) 0%, var(--accent-gradient-dark-end) 100%);
  color: var(--accent-text-on-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  /* Mejora el rendimiento en móvil */
  will-change: transform;
  backface-visibility: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  min-height: 56px;
  gap: 8px;
}

.logo h1 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Título principal del sitio (H1 visible) */
.site-main-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  background: linear-gradient(90deg, #ffffff, #e3e8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  text-wrap: balance;
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 4px 24px rgba(102, 126, 234, 0.3);
}

.site-subtitle {
  margin: 4px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--indigo-100);
  text-transform: uppercase;
  opacity: 0.9;
  display: block;
}

/* Hero reutilizable - Diseño premium */
.site-hero {
  padding: 24px 0 20px;
  background: linear-gradient(135deg, var(--accent-gradient-dark-start) 0%, var(--accent-gradient-dark-end) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Capa de overlay con gradiente mejorado */
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(67, 56, 202, 0.85) 0%,
    rgba(55, 48, 163, 0.85) 60%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Efectos decorativos con formas geométricas */
.site-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.site-hero .container {
  position: relative;
  z-index: 3;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tagline entre título y subtítulo */
.site-hero-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 8px auto 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
  text-wrap: balance;
  animation: fadeInUp 0.8s ease-out 0.1s both;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* Subtítulo del hero - Diseño mejorado */
.site-hero-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 10px auto 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.4px;
  text-wrap: balance;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 600px) {
  .site-hero {
    padding: 28px 0 24px;
  }
  .site-hero-tagline {
    font-size: 1.15rem;
  }
  .site-hero-subtitle {
    font-size: 0.95rem;
  }
  .site-main-title {
    font-size: 1.6rem;
  }
}

@media (min-width: 968px) {
  .site-hero {
    padding: 32px 0 28px;
  }
  .site-hero-tagline {
    font-size: 1.25rem;
  }
  .site-hero-subtitle {
    font-size: 1.02rem;
    letter-spacing: 0.5px;
  }
  .site-main-title {
    font-size: 2rem;
    letter-spacing: 0.8px;
  }
}

@media (min-width: 1200px) {
  .site-hero {
    padding: 36px 0 32px;
  }
  .site-hero-tagline {
    font-size: 1.35rem;
  }
  .site-main-title {
    font-size: 2.2rem;
  }
}

.logo span {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.logo a {
  display: block;
  transition: opacity 0.2s ease;
}

.logo a:hover {
  opacity: 0.9;
}

.logo a:active {
  opacity: 0.8;
  transform: scale(0.98);
}

@media (min-width: 375px) {
  .logo h1,
  .logo span {
    font-size: 1.25rem;
  }
}

/* Cart Icon - Área táctil grande (mínimo 44x44px) */
.cart-icon {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  min-width: 60px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.cart-icon:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3);
}

.cart-emoji {
  font-size: 1.3rem;
}

.cart-badge {
  background: #be123c;
  color: var(--accent-text-on-dark);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* ============================================
   FILTROS - COLAPSABLES EN MÓVIL
   ============================================ */
.filters {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  position: sticky;
  top: 56px;
  z-index: 999;
  /* Mejora el rendimiento */
  will-change: transform;
}

/* Título oculto en móvil */
.filters h3 {
  display: none;
}

.filter-toggle {
  width: 100%;
  background: white;
  border: none;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4f46e5;
  cursor: pointer;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.filter-toggle:active {
  background: #f8f9fa;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.filter-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-content.active {
  max-height: 1000px;
  padding: 12px 16px 16px;
  border-top: 1px solid #e1e8ed;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group:last-of-type {
  margin-bottom: 16px;
}

.filter-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

/* Inputs optimizados para móvil - Área táctil grande */
.filter-group select,
.filter-group input[type='search'],
.filter-group input[type='text'],
.filter-group input[type='number'] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 16px; /* Evita zoom en iOS */
  transition: all 0.3s ease;
  min-height: 46px;
  background: white;
  -webkit-appearance: none;
  appearance: none;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Estilo mejorado para el select en móvil */
.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667eea' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.btn-clear-filters {
  width: 100%;
  padding: 12px;
  background: #f8f9fa;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  min-height: 44px;
}

.btn-clear-filters:active {
  background: #e9ecef;
}

/* ============================================
   PRODUCTOS - GRID OPTIMIZADO MÓVIL
   ============================================ */
.products {
  padding: 12px 0 80px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.products-header h2 {
  font-size: 1.2rem;
  color: #333;
  font-weight: 700;
}

.products-count {
  color: #999;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Grid de 1 columna en móvil */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

/* Tarjeta de producto - Optimizada para touch */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, box-shadow;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  z-index: 10;
  position: relative;
}

.product-card:active {
  transform: scale(0.98);
}

/* Contenedor de imagen */
.product-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.btn-overlay-view {
  background: var(--indigo-650);
  color: var(--accent-text-on-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-overlay-view:hover {
  background: var(--indigo-700);
  transform: scale(1.05);
}

.btn-overlay-view:active {
  transform: scale(0.95);
}

/* Contenido de la tarjeta */
.product-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.product-type {
  background: var(--indigo-650);
  color: var(--accent-text-on-dark);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* eliminado bloque duplicado de .product-actions-top; ver definición completa más abajo */

.btn-icon-small {
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-icon-small:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

.btn-icon-small.active {
  background: #ffe0e6;
}

.product-name {
  color: #333;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.product-marca {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.marca-link {
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.marca-link:hover {
  color: #764ba2;
  border-bottom: 2px solid #667eea;
}

.product-codigo {
  color: #999;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.product-description {
  color: #666;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-section {
  margin: 4px 0;
}

.product-price {
  color: #2ecc71;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.product-financing {
  background: var(--indigo-100);
  border: 1px solid var(--indigo-300);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--indigo-700);
  text-align: center;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
}

.product-stock.low-stock {
  color: #f39c12;
}

.product-stock.out-of-stock {
  color: var(--danger-600);
}

/* Botón agregar - Diseño mejorado y atractivo */
.btn-add-cart {
  background: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
  color: var(--accent-text-on-dark);
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Efecto shine al hover */
.btn-add-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-add-cart:hover::before {
  left: 100%;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.5);
  background: linear-gradient(135deg, var(--indigo-700) 0%, var(--indigo-650) 100%);
}

.btn-add-cart:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(55, 48, 163, 0.45);
}

.btn-add-cart:disabled {
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn-add-cart:disabled::before {
  display: none;
}

/* Icono del carrito en el botón */
.btn-add-cart::after {
  content: '🛒';
  font-size: 1.1rem;
  margin-left: 4px;
}

/* Animación de pulso cuando se agrega producto */
@keyframes pulse-add {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-add-cart.added {
  animation: pulse-add 0.4s ease;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* Versión móvil pequeña */
@media (max-width: 374px) {
  .btn-add-cart {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .btn-add-cart::after {
    font-size: 1rem;
  }

  .product-image-container {
    padding-bottom: 50%;
  }
}

/* Móviles medianos (375px - 599px) */
@media (min-width: 375px) and (max-width: 599px) {
  .product-image-container {
    padding-bottom: 55%;
  }
}

/* Contenedor de botones en tarjeta de producto */
.product-buttons {
  display: flex;
  gap: 8px;
  width: 100%;
}

.product-buttons .btn-add-cart {
  flex: 1;
}

/* Botón Ver Producto */
.btn-ver-producto {
  background: white;
  color: #4f46e5;
  border: 2px solid #4f46e5;
  padding: 14px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  min-width: 52px;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-ver-producto:hover {
  background: #4338ca;
  color: var(--accent-text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-ver-producto:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 374px) {
  .btn-ver-producto {
    min-width: 48px;
    font-size: 1.1rem;
    padding: 12px;
  }
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.no-results p {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* Botones de acción en tarjetas de productos */

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
  color: var(--accent-text-on-dark);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
  position: relative;
  overflow: hidden;
  /* Optimización táctil móvil */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Feedback táctil mejorado */
.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  transition: all 0.1s ease;
}

/* Efecto de ondulación para feedback visual */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

/* Efecto shine al hover - Mobile optimizado */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .btn-primary:hover::after {
    left: 100%;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
  }
}

/* definición consolidada de :active ya presente arriba */

.btn-primary:disabled {
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.btn-primary:disabled::before {
  display: none;
}

.btn-secondary {
  width: 100%;
  background: white;
  color: #4f46e5;
  border: 2px solid #4f46e5;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: #3730a3;
  color: var(--accent-text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 374px) {
  .btn-primary,
  .btn-secondary {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
}

/* ============================================
   FOOTER - COMPACTO MÓVIL
   ============================================ */
footer {
  background: #1f2937;
  color: var(--accent-text-on-dark);
  padding: 20px 0;
  text-align: center;
}

footer p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.whatsapp-link {
  display: inline-block;
  background: #128c7e;
  color: var(--accent-text-on-dark);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  margin: 8px 0;
  min-height: 44px;
  line-height: 20px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:active {
  background: #20ba5a;
  transform: scale(0.98);
}

.footer-small {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 8px;
  line-height: 1.4;
}

.footer-horarios {
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.footer-horarios p {
  margin: 3px 0;
  font-size: 0.9rem;
}

.btn-consulta {
  width: 100%;
  max-width: 280px;
  padding: 13px 20px;
  background: var(--indigo-650);
  color: var(--accent-text-on-dark);
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 auto 16px;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-consulta:active {
  background: #5568d3;
  transform: scale(0.98);
}

/* ============================================
   PÁGINA DE DETALLE DE PRODUCTO - MÓVIL
   ============================================ */

.breadcrumb {
  background: white;
  padding: 12px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
}

.breadcrumb span {
  color: #666;
}

.back-button {
  margin-bottom: 16px;
}

.back-button button {
  background: white;
  border: 2px solid #e1e8ed;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #333;
  font-weight: 600;
  min-height: 44px;
}

.back-button button:active {
  background: var(--indigo-650);
  color: var(--accent-text-on-dark);
  border-color: #667eea;
}

.product-detail {
  padding: 16px 0 60px;
}

.product-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-image-section {
  width: 100%;
}

.product-image-placeholder {
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  border: 3px dashed #dee2e6;
  margin-bottom: 16px;
}

.image-icon {
  font-size: 4rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.product-image-placeholder p {
  color: #999;
  font-size: 1rem;
}

.product-badges-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge-type,
.badge-stock {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

.badge-type {
  background: var(--indigo-650);
  color: var(--accent-text-on-dark);
}

.badge-stock {
  background: #1b9e53;
  color: var(--accent-text-on-dark);
}

.badge-stock.low {
  background: #f39c12;
}

.badge-stock.out {
  background: #e74c3c;
}

.product-info-section h1 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-meta {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e1e8ed;
  font-size: 0.95rem;
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-item strong {
  color: #666;
  font-weight: 600;
}

.brand-highlight {
  color: #4f46e5;
  font-weight: 700;
}

.product-price-box {
  background: linear-gradient(135deg, var(--accent-gradient-dark-start) 0%, var(--accent-gradient-dark-end) 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.price-label {
  color: var(--indigo-100);
  font-size: 0.95rem;
  margin-bottom: 6px;
  opacity: 0.9;
}

.price-amount {
  color: var(--surface-light);
  font-size: 2.5rem;
  font-weight: 700;
}

.product-stock-info {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 16px;
  border: 2px solid #c3e6cb;
}

.product-stock-info.low-stock {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.product-stock-info.out-of-stock {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.product-description-detail {
  margin-bottom: 20px;
}

.product-description-detail h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.product-description-detail p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.quantity-selector {
  margin-bottom: 20px;
}

.quantity-selector label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.qty-btn-detail {
  background: var(--indigo-650);
  color: var(--accent-text-on-dark);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  min-width: 48px;
  min-height: 48px;
}

.qty-btn-detail:active {
  background: #5568d3;
  transform: scale(0.95);
}

#quantity-input {
  width: 80px;
  height: 50px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  background: white;
}

.btn-add-to-cart-detail {
  background: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
  color: var(--accent-text-on-dark);
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 52px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-add-to-cart-detail:active {
  transform: scale(0.98);
}

.btn-add-to-cart-detail:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-buy-now {
  background: #128c7e;
  color: var(--accent-text-on-dark);
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 52px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-buy-now:active {
  background: #20ba5a;
  transform: scale(0.98);
}

.product-features {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.product-features h3 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.product-features ul {
  list-style: none;
  padding: 0;
}

.product-features li {
  padding: 8px 0;
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: start;
  line-height: 1.4;
}

.product-features li:before {
  content: '✓';
  color: #2ecc71;
  font-weight: 700;
  margin-right: 10px;
  font-size: 1.1rem;
}

.related-products {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 3px solid #e1e8ed;
}

.related-products h2 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ============================================
   MEDIA QUERIES - TABLET Y DESKTOP
   ============================================ */

/* Tablets (600px+) */
@media (min-width: 600px) {
  .container {
    padding: 0 24px;
  }

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

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

  .cart-sidebar {
    width: 420px;
    right: -420px;
  }

  .logo h1,
  .logo span {
    font-size: 1.4rem;
  }

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

  .mas-vendidos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

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

/* Desktop (968px+) */
@media (min-width: 968px) {
  .container {
    max-width: 1200px;
    padding: 0 32px;
  }

  .header-content {
    padding: 16px 0;
  }

  .logo h1,
  .logo span {
    font-size: 1.8rem;
  }

  .ofertas-banner {
    margin-top: 16px;
  }

  /* Filtros en desktop - Mostrar como overlay cuando se activan */
  .filters {
    display: block;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
  }

  /* Botón toggle visible en desktop para contraer/expandir */
  .filters .filter-toggle {
    display: flex;
    margin-bottom: 20px;
    background: white;
    color: var(--color-indigo-700);
    border: 2px solid var(--color-indigo-200);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    width: 100%;
  }

  .filters .filter-toggle:hover {
    background: var(--color-indigo-50);
    border-color: var(--color-indigo-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  }

  .filters .filter-toggle .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--color-indigo-600);
  }

  /* Rotar icono cuando está colapsado */
  .filters .filter-toggle:not(.active) .toggle-icon {
    transform: rotate(180deg);
  }

  .filters .filter-toggle .toggle-text {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Contenido de filtros colapsable en desktop */
  .filters .filter-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr 2fr !important;
    gap: 20px !important;
    align-items: end !important;
    opacity: 1 !important;
    max-height: 500px !important;
    padding: 20px 0 0 0 !important;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  /* Estado colapsado del contenido */
  .filters .filter-content:not(.active) {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
  }

  /* Botón limpiar en desktop */
  .filters .btn-clear-filters {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 20px auto 0;
    justify-self: center;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
  }

  .products {
    margin-top: 0;
  }

  .product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .related-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }

  .mas-vendidos-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  /* FAQ en dos columnas para desktop */
  .faq-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 16px;
    align-items: start;
  }

  .btn-favorito:hover,
  .btn-comparar:hover {
    transform: scale(1.1);
  }

  .whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  }

  .btn-consulta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
  }
}

/* Desktop grande (1200px+) */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   MEJORAS ESPECÍFICAS PARA DISPOSITIVOS MÓVILES
   ============================================ */

/* Optimización para pantallas muy pequeñas (320px-374px) */
@media (max-width: 374px) {
  .logo h1,
  .logo span {
    font-size: 1rem;
  }

  .product-card {
    padding: 12px;
  }

  .product-price {
    font-size: 1.4rem;
  }

  .btn-add-cart {
    font-size: 0.9rem;
    padding: 12px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .icon-emoji {
    font-size: 1.3rem;
  }
}

/* Mejoras para iPhone SE y similares (375px) */
@media (min-width: 375px) and (max-width: 413px) {
  .ofertas-banner {
    padding: 22px 16px;
  }

  .oferta-content h2 {
    font-size: 1.4rem;
  }
}

/* Mejoras para dispositivos medianos (414px+) */
@media (min-width: 414px) and (max-width: 599px) {
  .products-grid {
    gap: 16px;
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.7rem;
  }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .cart-sidebar {
    width: 60%;
    right: -60%;
  }

  .modal-content {
    max-height: 95vh;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 12px;
    right: 12px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  header {
    position: relative;
  }

  .filters {
    position: relative;
    top: 0;
  }
}

/* Mejoras para el modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  /* Por ahora mantenemos el tema claro, pero preparado para futuro */
}

/* Mejoras de contraste para accesibilidad */
@media (prefers-contrast: high) {
  .product-card {
    border: 2px solid #ddd;
  }

  .btn-add-cart,
  .btn-primary {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

/* Optimización para conexiones lentas */
@media (prefers-reduced-data: reduce) {
  .ofertas-banner {
    background: #ff6b35;
  }

  header {
    background: #667eea;
  }

  .btn-add-cart,
  .btn-primary {
    background: #667eea;
  }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  /* Aumentar áreas táctiles mínimas */
  button,
  a,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  /* Remover efectos hover que no funcionan en táctil */
  .product-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* Mejorar feedback táctil */
  button:active,
  .product-card:active {
    opacity: 0.8;
  }
}

/* Safe area para dispositivos con notch (iPhone X+) */
@supports (padding: max(0px)) {
  header,
  .cart-sidebar,
  .modal {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
    right: max(16px, calc(16px + env(safe-area-inset-right)));
  }

  .btn-ver-comparador {
    bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
  }
}

/* Mejoras de legibilidad */
@media screen and (max-width: 767px) {
  p,
  li,
  td,
  span {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Evitar texto muy largo sin espacios */
  h1,
  h2,
  h3,
  h4 {
    word-break: break-word;
  }
}

/* Optimización para carga inicial */
.products-grid,
.mas-vendidos-grid,
.testimonios-grid {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Skeleton loading para mejorar percepción de velocidad */
.product-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* ============================================
   OPTIMIZACIONES DE RENDIMIENTO
   ============================================ */

/* Hardware acceleration para elementos animados */
.cart-sidebar,
.overlay,
.product-card,
.modal,
.whatsapp-float,
.btn-ver-comparador {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Optimizar animaciones */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimizar imágenes futuras */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mejoras de rendimiento para scroll */
.cart-items,
.modal-content,
.filter-content {
  -webkit-overflow-scrolling: touch;
}

/* Prevenir selección no deseada en elementos interactivos */
button,
.product-card,
.cart-icon,
.icon-btn {
  -webkit-user-select: none;
  user-select: none;
}

/* Botón lupa para expandir filtros (solo escritorio) */
.search-expand-btn {
  display: none;
}

@media (min-width: 968px) {
  .search-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    width: auto;
    height: 40px;
  }

  .search-expand-btn .search-label {
    display: inline-block;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.65rem;
    opacity: 0.9;
  }

  .search-expand-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.22) 100%);
    border-color: #ffffff65;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .search-expand-btn[aria-expanded='true'] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.28) 100%);
    border-color: #ffffff90;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  }

  /* Ajustes específicos para evitar circunferencia heredada */
  .search-expand-btn.icon-btn {
    border-radius: 10px !important;
    width: auto !important;
    height: 40px !important;
  }
  .search-expand-btn.icon-btn .icon-emoji {
    font-size: 1.1rem;
    margin-top: 1px;
  }
}

/* Optimización de fuentes */
@media screen and (max-width: 767px) {
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============================================
   NUEVAS FUNCIONALIDADES
   ============================================ */

/* ============================================
   BANNER OFERTAS - OPTIMIZADO MÓVIL
   ============================================ */
.ofertas-banner {
  background: linear-gradient(135deg, #c2410c, #b45309);
  padding: 20px 16px;
  text-align: center;
  color: var(--accent-text-on-dark);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.3);
}

.oferta-content h2 {
  font-size: 1.3rem;
  margin: 6px 0;
  font-weight: 700;
  line-height: 1.3;
}

.oferta-content p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 4px 0;
}

.oferta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   MÁS VENDIDOS - OPTIMIZADO
   ============================================ */
.mas-vendidos {
  padding: 20px 0;
  background: white;
}

/* Secciones de contenido personalizable */
.content-section {
  padding: 24px 0;
  background: white;
}

.content-section .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-section h2 {
  font-size: 1.4rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0 12px;
  text-align: center;
}

.intro-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 0 12px;
  text-align: center;
}

.intro-text strong {
  color: #667eea;
  font-weight: 700;
}

.why-us-header {
  margin-bottom: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.why-us-header h2 {
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
}

.header-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
  border-radius: 2px;
}

.header-divider.left {
  width: 60px;
}

.header-divider.right {
  width: 60px;
}

/* Grid de características */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 12px;
  margin-bottom: 20px;
}

.feature-item {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.feature-item:active {
  transform: scale(0.98);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.feature-item h3 {
  color: #333;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.feature-item p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Badges de confianza */
.why-us-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 12px;
}

.trust-badge {
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.trust-badge:active {
  transform: scale(0.98);
}

.badge-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.badge-content h4 {
  color: #333;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.badge-content p {
  color: #666;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* Grid de categorías */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 12px;
}

.category-card {
  background: linear-gradient(135deg, var(--accent-gradient-dark-start) 0%, var(--accent-gradient-dark-end) 100%);
  color: var(--accent-text-on-dark);
  padding: 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.category-card:active {
  transform: scale(0.98);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--indigo-50);
}

.category-card p {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}

.category-link {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.category-link:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-link:active {
  transform: translateY(0) scale(0.98);
  background: rgba(255, 255, 255, 0.25);
}

/* Media queries para secciones */
@media (min-width: 375px) {
  .content-section h2 {
    padding: 0;
    font-size: 1.6rem;
  }

  .intro-text {
    padding: 0 16px;
    font-size: 0.98rem;
  }

  .why-us-header h2 {
    font-size: 1.6rem;
  }

  .header-divider {
    width: 80px;
  }

  .features-grid,
  .categories-grid,
  .why-us-extra {
    padding: 0 16px;
  }
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .why-us-extra {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 968px) {
  .content-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .why-us-header {
    margin-bottom: 32px;
    gap: 16px;
  }

  .why-us-header h2 {
    font-size: 2rem;
  }

  .header-divider {
    width: 120px;
    height: 4px;
  }

  .intro-text {
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
  }

  .feature-item {
    padding: 20px;
    cursor: pointer;
  }

  .feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  }

  .why-us-extra {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .trust-badge {
    padding: 16px;
    cursor: pointer;
  }

  .trust-badge:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
  }

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

  .category-card {
    padding: 20px;
    cursor: pointer;
  }

  .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  }
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: #333;
  font-weight: 700;
  padding: 0 12px;
  text-align: center;
}

@media (min-width: 375px) {
  .section-title {
    padding: 0 16px;
  }
}

.mas-vendidos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 12px;
}

@media (min-width: 375px) {
  .mas-vendidos-grid {
    padding: 0 16px;
  }
}

/* Badges en productos - NO TAPA EL TÍTULO */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #c53030;
  color: var(--accent-text-on-dark);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
  pointer-events: none; /* No interfiere con clics */
}

.product-badge.descuento {
  background: #c2410c;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.4);
}

.product-badge.nuevo {
  background: #1d6fa5;
  box-shadow: 0 2px 8px rgba(29, 111, 165, 0.4);
}

.product-badge.oferta {
  background: #f39c12;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

/* Botones favoritos y comparador */
.product-actions-top {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.btn-favorito,
.btn-comparar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo-650) 0%, var(--indigo-700) 100%);
  color: var(--accent-text-on-dark);
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.5);
}

.btn-favorito:active,
.btn-comparar:active {
  transform: scale(0.9);
}

.btn-favorito.active {
  background: #fee2e2;
  color: var(--danger-600);
}

.btn-comparar.active {
  background: #e0f0ff;
  color: #4f46e5;
}

/* Filtro de precio */
.price-filter {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-filter input {
  flex: 1;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}

.price-filter span {
  font-weight: 600;
  color: #666;
}

/* Historial de búsquedas */
.search-history {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.search-history.active {
  display: block;
}

.search-history-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.search-history-item:hover {
  background: #f9f9f9;
}

.search-history-item:last-child {
  border-bottom: none;
}

.search-history-clear {
  color: var(--danger-600);
  font-size: 0.9rem;
  cursor: pointer;
}

/* WhatsApp Flotante - Más visible y accesible en móvil */
.whatsapp-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: #128c7e;
  color: var(--accent-text-on-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  z-index: 900;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
  text-decoration: none;
  /* Mejora el rendimiento */
  will-change: transform;
}

.whatsapp-float:active {
  transform: scale(1.15);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.7);
    transform: scale(1.05);
  }
}

@media (min-width: 375px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   MODALES - OPTIMIZADOS PARA MÓVIL
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2500;
  overflow-y: auto;
  padding: 12px;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.3s ease;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-content.modal-wide {
  max-width: 90vw;
}

@media (min-width: 768px) {
  .modal-content.modal-wide {
    max-width: 900px;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 16px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  border-radius: 14px 14px 0 0;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.modal-header .close-btn {
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-header .close-btn:active {
  background: #e0e0e0;
  transform: scale(0.9);
}

/* Formulario Consulta Técnica */
#consulta-form {
  padding: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* estado :active consolidado en sección de botones principales */

/* Comparador */
.comparador-content {
  padding: 20px;
  overflow-x: auto;
}

.comparador-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparador-table th,
.comparador-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.comparador-table th {
  background: #f9f9f9;
  font-weight: 700;
}

.comparador-table .btn-remove {
  padding: 6px 12px;
  background: #c53030;
  color: var(--accent-text-on-dark);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.comparador-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

/* ============================================
   TESTIMONIOS - OPTIMIZADO MÓVIL
   ============================================ */
.testimonios {
  padding: 24px 0;
  background: white;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 12px;
}

@media (min-width: 375px) {
  .testimonios-grid {
    padding: 0 16px;
  }
}

.testimonio-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.testimonio-rating {
  color: #ffc107;
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonio-card p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}

.testimonio-autor {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonio-autor strong {
  color: #333;
  font-size: 0.9rem;
}

.testimonio-autor span {
  color: #999;
  font-size: 0.8rem;
}

/* ============================================
   FAQ - OPTIMIZADO MÓVIL
   ============================================ */
.faq {
  padding: 24px 0;
  background: #f9f9f9;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px;
}

@media (min-width: 375px) {
  .faq-list {
    padding: 0 16px;
  }
}

.faq-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
  transition: z-index 0.3s ease;
}

.faq-item:has(.faq-question.active) {
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-question {
  width: 100%;
  padding: 14px 16px;
  background: white;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:active {
  background: #f9f9f9;
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 16px 14px;
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Breadcrumbs - Mejorado */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.9rem;
  color: #666;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 56px;
  z-index: 998;
}

.breadcrumbs a {
  color: #667eea;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-block;
}

.breadcrumbs a:hover {
  color: #5568d3;
  text-decoration: underline;
}

.breadcrumbs a:active {
  transform: scale(0.98);
}

.breadcrumbs span {
  margin: 0 4px;
  color: #999;
}

.breadcrumbs span:last-child {
  font-weight: 600;
  color: #333;
}

@media (min-width: 968px) {
  .breadcrumbs {
    font-size: 0.95rem;
  }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 768px) {
  .ofertas-banner {
    padding: 32px 0;
  }

  .oferta-content h2 {
    font-size: 2rem;
  }

  .mas-vendidos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .whatsapp-float {
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
  }

  .whatsapp-float svg {
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
  .mas-vendidos-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .btn-favorito:hover,
  .btn-comparar:hover {
    transform: scale(1.1);
  }

  .whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
  }

  .btn-consulta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }
}

/* Header Actions - Favoritos + Carrito */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.icon-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3);
}

.icon-emoji {
  font-size: 1.5rem;
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #c53030;
  color: var(--accent-text-on-dark);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modal Favoritos */
.favoritos-content {
  padding: 20px;
  min-height: 200px;
}

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

.favorito-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.3s ease;
}

.favorito-item:hover {
  background: #f0f0f0;
  transform: translateX(4px);
}

.favorito-info {
  flex: 1;
}

.favorito-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #333;
}

.favorito-info .marca {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.favorito-info .precio {
  color: #667eea;
  font-size: 1.25rem;
  font-weight: 700;
}

.favorito-actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.favoritos-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.favoritos-empty p {
  font-size: 1.1rem;
  margin: 16px 0;
}

/* Bot�n Ver Comparador Flotante */
.btn-ver-comparador {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo-650) 0%, var(--indigo-700) 100%);
  color: var(--accent-text-on-dark);
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
  z-index: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideUp 0.3s ease;
  white-space: nowrap;
  display: none;
}

.btn-ver-comparador.active {
  display: block;
}

.btn-ver-comparador:active {
  transform: translateX(-50%) scale(0.95);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (min-width: 768px) {
  .btn-ver-comparador {
    font-size: 1rem;
    padding: 14px 24px;
  }

  .btn-ver-comparador:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 48, 163, 0.6);
  }
}
