/* ================================================
   MEJORAS DE ACCESIBILIDAD Y UX
   ================================================ */

/* Tamaños de botones táctiles óptimos (mínimo 44x44px) */
.luxury-icon-btn,
.luxury-search-btn,
.btn,
.product-card-action-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mejora del contraste de texto */
.luxury-footer-text,
.category-desc,
.product-card-meta {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

/* Focus visible mejorado para navegación por teclado */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #d4af37;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Skip to main content para accesibilidad */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #d4af37;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  font-weight: bold;
}

.skip-to-main:focus {
  top: 0;
}

/* Mejoras responsive - Mobile First */
@media (max-width: 768px) {
  /* Aumentar tamaño de texto en móvil */
  body {
    font-size: 16px;
  }
  
  /* Mejorar espaciado en móvil */
  .product-card {
    margin-bottom: 1.5rem;
  }
  
  /* Botones más grandes en móvil */
  .btn-luxury,
  .btn-gold {
    padding: 14px 24px;
    font-size: 1.1rem;
  }
  
  /* Simplificar hero en móvil */
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 1rem !important;
  }
  
  /* Trust badges en columna en móvil */
  .hero-trust-badges {
    flex-direction: column !important;
    align-items: center;
    gap: 1rem !important;
  }
  
  .trust-badge-item {
    font-size: 0.95rem;
  }
}

/* Optimización para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .container-lg {
    max-width: 95%;
  }
  
  .product-card-title {
    font-size: 1rem;
  }
}

/* Mejora de categorías de navegación */
.nav-category-header {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid #d4af37;
  margin: 0.5rem 0;
}

.nav-category-header small {
  color: #666;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Badges mejorados */
.badge {
  padding: 0.4em 0.8em;
  font-weight: 600;
  font-size: 0.85em;
}

/* Trust badges del hero */
.hero-trust-badges {
  margin-top: 2rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.trust-badge-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.trust-badge-item i {
  font-size: 1.2rem;
}

/* Mejorar legibilidad de precios */
.price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4af37;
}

.price-original {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: #999;
  margin-right: 0.5rem;
}

/* Loading states más accesibles */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

/* Mejorar filtros en productos */
.filter-panel {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.filter-option:hover {
  color: #d4af37;
}

.filter-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  cursor: pointer;
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .float-animation,
  .shimmer-effect,
  .hover-lift {
    animation: none !important;
  }
}

/* Optimización de imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.product-card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

/* Mejorar breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item {
  font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #d4af37;
  font-size: 1.2rem;
}

/* Mejora de tooltips */
[title] {
  position: relative;
}

/* Estados de hover más claros */
.luxury-footer-link:hover,
.nav-link:hover {
  color: #d4af37 !important;
  text-decoration: underline;
  text-decoration-color: #d4af37;
  text-underline-offset: 4px;
}

/* Mejora de formularios */
.form-control,
.form-select,
.luxury-search-input {
  min-height: 44px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus,
.luxury-search-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Mejora de spacing general */
section {
  padding: 3rem 0;
}

@media (min-width: 992px) {
  section {
    padding: 4rem 0;
  }
}

/* Clean design - reducir cluttering */
.top-info-bar {
  font-size: 0.9rem;
  padding: 0.75rem 0;
}

.top-info-bar small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mejorar comparación bar */
.comparison-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Dark mode support (opcional para futuro) */
@media (prefers-color-scheme: dark) {
  /* Preparado para implementación futura */
}
