/* ========================================
   🎨 JPEMERALD - ESTILOS PRINCIPALES
   ======================================== */

/* ========================================
   📱 FUENTES PERSONALIZADAS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ========================================
   🎯 VARIABLES CSS PERSONALIZADAS
   ======================================== */
:root {
  /* Colores principales */
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-200: #a7f3d0;
  --color-emerald-300: #6ee7b7;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  --color-emerald-800: #065f46;
  --color-emerald-900: #064e3b;

  /* Colores secundarios */
  --color-orange-400: #fb923c;
  --color-orange-500: #f97316;
  
  /* Colores de redes sociales */
  --color-facebook: #1877f2;
  --color-instagram-start: #833ab4;
  --color-instagram-end: #fd1d1d;
  --color-whatsapp: #25d366;
  --color-email: #ea4335;
  
  /* Tipografías */
  --font-playfair: 'Playfair Display', serif;
  --font-inter: 'Inter', sans-serif;
  
  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transiciones */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ========================================
   🎨 CLASES DE UTILIDAD PERSONALIZADAS
   ======================================== */

/* Tipografías */
.font-playfair {
  font-family: var(--font-playfair);
}

.font-inter {
  font-family: var(--font-inter);
}

/* Colores personalizados */
.text-emerald-custom {
  color: var(--color-emerald-600);
}

.bg-emerald-custom {
  background-color: var(--color-emerald-600);
}

.text-orange-custom {
  color: var(--color-orange-400);
}

/* ========================================
   🎯 COMPONENTES REUTILIZABLES
   ======================================== */

/* Botones principales */
.btn-primary {
  @apply bg-emerald-600 hover:bg-emerald-700 text-white px-10 py-4 rounded-full font-semibold transition-all duration-300 hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-secondary {
  @apply border-2 border-white hover:bg-white hover:text-emerald-800 text-white px-10 py-4 rounded-full font-semibold transition-all duration-300 hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-dark {
  @apply bg-gray-900 hover:bg-gray-800 text-white px-10 py-4 rounded-full font-semibold transition-all duration-300 hover:scale-105 shadow-lg hover:shadow-xl;
}

/* Botones específicos para hero */
.btn-primary-hero {
  @apply bg-emerald-600 hover:bg-emerald-700 text-white px-8 py-4 rounded-full font-semibold transition-all duration-300 hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-secondary-hero {
  @apply border-2 border-white hover:bg-white hover:text-emerald-800 text-white px-8 py-4 rounded-full font-semibold transition-all duration-300 hover:scale-105 shadow-lg hover:shadow-xl;
}

/* Botones de redes sociales - Estilo inspirado en jpemeraldmuzo.com */
.social-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: none;
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo removido para mejor visibilidad */

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-btn i {
  font-size: 1.1rem;
  color: white;
  z-index: 1;
  position: relative;
}

/* Facebook - Azul limpio */
.social-btn-facebook {
  background: #1877f2;
}

.social-btn-facebook:hover {
  background: #166fe5;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

/* Instagram - Gradiente clásico */
.social-btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn-instagram:hover {
  background: linear-gradient(45deg, #e6683c, #dc2743, #cc2366, #bc1888, #8a3ab9);
  box-shadow: 0 6px 20px rgba(188, 24, 136, 0.3);
}

/* WhatsApp - Verde limpio */
.social-btn-whatsapp {
  background: #25d366;
}

.social-btn-whatsapp:hover {
  background: #22c55e;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Email - Rojo limpio */
.social-btn-email {
  background: #ea4335;
}

.social-btn-email:hover {
  background: #d33b2c;
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.3);
}

/* TikTok - Gradiente vibrante con borde brillante */
.social-btn-tiktok {
  background: linear-gradient(135deg, #ff0050, #00f2ea, #ff0050);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.social-btn-tiktok::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;
}

.social-btn-tiktok:hover {
  background: linear-gradient(135deg, #00f2ea, #ff0050, #00f2ea);
  box-shadow: 0 6px 25px rgba(255, 0, 80, 0.5);
  transform: translateY(-2px);
}

.social-btn-tiktok:hover::before {
  left: 100%;
}

.social-btn-tiktok i {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Cards de productos */
.product-card {
  @apply bg-white rounded-2xl shadow-lg overflow-hidden transition-all duration-300 hover:scale-105 hover:shadow-xl;
  border: 1px solid rgba(5, 150, 105, 0.1);
  border-radius: 20px;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.25);
  border-color: rgba(5, 150, 105, 0.2);
}

/* Botón de WhatsApp mejorado */
.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 200px;
  margin: 0 auto;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #128c7e, #25d366);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.whatsapp-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

/* ========================================
   🎨 LAYOUTS Y SECCIONES
   ======================================== */

/* Header con fondo para evitar encuadrado - Mejor contraste */
.header-bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero section */
.hero-bg {
  background-image: url('../images/banner_principal.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Hero content wrapper con fondo semi-transparente */
.hero-content-wrapper {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive para móvil */
@media (max-width: 640px) {
  .hero-content-wrapper {
    padding: 1.5rem 1rem;
    margin: 0 1rem;
    border-radius: 15px;
  }
  
  .hero-content {
    bottom: 100px !important;
    padding: 0 0.5rem !important;
    max-width: 100% !important;
  }
  
  .hero-content .flex {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .hero-content .btn-emerald,
  .hero-content .bg-transparent {
    min-width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
  }
  
  /* Fondo semi-transparente para el botón Historia de Muzo */
  .hero-content .bg-transparent {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(245, 158, 11, 0.8) !important;
  }
}

/* Gradientes personalizados */
.gradient-bg {
  background: linear-gradient(135deg, var(--color-emerald-700) 0%, var(--color-emerald-900) 100%);
}

/* ========================================
   🎯 ANIMACIONES PERSONALIZADAS
   ======================================== */

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Clases de animación */
.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

/* ========================================
   📱 RESPONSIVE DESIGN
   ======================================== */

/* Mobile first approach */
@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary,
  .btn-dark {
    @apply px-6 py-3 text-sm;
  }
  
  .social-btn {
    @apply w-10 h-10;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .product-card {
    @apply hover:scale-102;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .product-card:hover {
    transform: translateY(-8px) scale(1.03);
  }
}

/* ========================================
   🎨 ESTADOS DE HOVER Y FOCUS
   ======================================== */

/* Hover effects para enlaces */
.link-hover {
  @apply transition-colors duration-300 hover:text-emerald-400;
}

/* Focus states para accesibilidad */
.focus-visible {
  @apply focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2;
}

/* ========================================
   🎯 UTILIDADES ESPECÍFICAS
   ======================================== */

/* Texto truncado */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* WhatsApp flotante - Estilo completamente limpio */
.whatsapp-float {
  position: fixed !important;
  bottom: 1rem !important;
  right: 1rem !important;
  z-index: 9999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.whatsapp-float a {
  background: #25d366;
  color: white;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  position: relative;
  outline: none;
  box-sizing: border-box;
  visibility: visible !important;
  opacity: 1 !important;
}

.whatsapp-float a:hover {
  background: #22c55e;
  transform: translateY(-3px) scale(1.1);
}

.whatsapp-float a i {
  font-size: 1.5rem;
  position: relative;
}

/* ========================================
   🎨 MODAL DE DETALLES DE PRODUCTO
   ======================================== */

/* Overlay del modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Contenedor del modal */
.modal-container {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

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

/* Header del modal */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Contenido del modal */
.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Panel izquierdo - Imagen */
.modal-image-panel {
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.modal-main-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.modal-main-image:hover {
  transform: scale(1.02);
}

/* Galería de thumbnails */
.modal-gallery {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
}

.modal-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.modal-thumbnail:hover {
  border-color: #059669;
  transform: scale(1.1);
  opacity: 1;
}

.modal-thumbnail.active {
  border-color: #059669;
  opacity: 1;
  transform: scale(1.05);
}

/* Indicador de más imágenes */
.modal-more-images {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Panel derecho - Información */
.modal-info-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.modal-category {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.modal-price {
  font-size: 2rem;
  font-weight: 800;
  color: #059669;
  margin: 0.5rem 0 1rem 0;
  font-family: 'Playfair Display', serif;
}

.modal-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-characteristics {
  margin-bottom: 1.5rem;
}

.modal-characteristics h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.modal-characteristics ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-characteristics li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.modal-characteristics li i {
  color: #059669;
  margin-right: 0.75rem;
  font-size: 0.875rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.modal-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.modal-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.modal-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0.25rem;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .modal-container {
    max-height: 98vh;
    width: 100%;
    border-radius: 15px;
    margin-bottom: 0.5rem;
  }
  
  .modal-content {
    grid-template-columns: 1fr;
    max-height: calc(98vh - 120px);
    overflow-y: auto;
  }
  
  .modal-image-panel {
    padding: 1.5rem;
    max-height: none; /* Permitir que crezca según el contenido */
    min-height: 500px; /* Mucho más espacio para la imagen principal */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .modal-main-image {
    height: 400px; /* Imagen principal mucho más grande y prominente */
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .modal-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  }
  
  /* Galería de thumbnails elegante para móvil */
  .modal-gallery {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #059669 #f1f5f9;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
  
  /* Estilos para scrollbar horizontal en WebKit (Chrome, Safari) */
  .modal-gallery::-webkit-scrollbar {
    height: 3px;
  }
  
  .modal-gallery::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
  }
  
  .modal-gallery::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 2px;
  }
  
  .modal-gallery::-webkit-scrollbar-thumb:hover {
    background: #047857;
  }
  
  .modal-thumbnail {
    width: 50px; /* Miniaturas un poco más grandes para mejor visibilidad */
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .modal-thumbnail:hover {
    border-color: #059669;
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
  }
  
  .modal-thumbnail.active {
    border-color: #059669;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
  }
  
  /* Indicador de más imágenes en móvil */
  .modal-more-images {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
  }
  
  .modal-info-panel {
    padding: 1.5rem;
    overflow-y: auto;
    padding-bottom: 2rem;
  }
  
  .modal-actions {
    flex-direction: column;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin: 0;
  }
  
  .modal-characteristics {
    margin-bottom: 1.5rem;
  }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  .modal-image-panel {
    padding: 1rem;
    min-height: 400px; /* Mucho más espacio para la imagen principal */
  }
  
  .modal-main-image {
    height: 350px; /* Imagen principal muy grande en móviles pequeños */
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }
  
  .modal-gallery {
    gap: 0.3rem;
    margin-top: 0.4rem;
  }
  
  .modal-thumbnail {
    width: 45px; /* Miniaturas elegantes en móviles pequeños */
    height: 45px;
    border-radius: 6px;
  }
  
  .modal-more-images {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.3rem;
    font-size: 0.65rem;
  }
  
  .modal-info-panel {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-price {
    font-size: 1.75rem;
  }
  
  .modal-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
}

/* ========================================
   🎯 ICONOS DE CONTACTO Y ENLACES
   ======================================== */

/* Iconos de información de contacto - Estilo moderno */
.contact-icon {
  color: #059669;
  font-size: 1.1rem;
  margin-right: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Contenedores de iconos de contacto modernos */
.contact-item {
  @apply flex items-start mb-4;
}

.contact-icon-container {
  @apply w-10 h-10 rounded-full flex items-center justify-center mr-4 flex-shrink-0 transition-all duration-300 hover:scale-110;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-icon-container.location {
  @apply bg-gradient-to-br from-emerald-500 to-emerald-600;
}

.contact-icon-container.phone {
  @apply bg-gradient-to-br from-blue-500 to-blue-600;
}

.contact-icon-container.email {
  @apply bg-gradient-to-br from-amber-500 to-orange-500;
}

.contact-icon-container:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.contact-icon-modern {
  @apply text-white text-lg;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Iconos de contacto en línea - Estilo moderno */
.contact-icon-inline {
  @apply text-lg;
  transition: all 0.3s ease;
}

.contact-icon-inline.location {
  color: #10b981;
}

.contact-icon-inline.phone {
  color: #3b82f6;
}

.contact-icon-inline.email {
  color: #f59e0b;
}

.contact-icon-inline:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.contact-icon.location {
  color: #059669;
}

.contact-icon.phone {
  color: #2563eb;
}

.contact-icon.email {
  color: #ea4335;
}

/* Iconos de enlaces rápidos */
.quick-link-icon {
  color: #6b7280;
  font-size: 1rem;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.quick-link-icon:hover {
  color: #059669;
  transform: scale(1.1);
}

/* Iconos de certificaciones */
.cert-icon {
  color: #059669;
  font-size: 1rem;
  margin-right: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Icono de horarios */
.schedule-icon {
  color: #059669;
  font-size: 1.1rem;
  margin-right: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Icono de boletín */
.newsletter-icon {
  color: #059669;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   🎨 ESTILOS PROFESIONALES AVANZADOS
   ======================================== */

/* Gradientes personalizados profesionales */
.gradient-emerald {
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #92400e 100%);
}

/* Botones profesionales */
.btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
  transition: all 0.3s ease;
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

/* Efectos de cristal */
.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animaciones profesionales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Clases de animación */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.hero-content {
  animation: heroFadeIn 1.2s ease-out;
  position: absolute !important;
  bottom: 120px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 600px !important;
  padding: 0 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Fondo semi-transparente para el botón Historia de Muzo en desktop */
.hero-content .bg-transparent {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(245, 158, 11, 0.8) !important;
}

.hero-logo {
  animation: slideInFromLeft 1s ease-out 0.3s both;
}

.hero-whatsapp {
  animation: slideInFromRight 1s ease-out 0.6s both;
}

/* Efectos de hover profesionales */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Efectos de brillo premium */
.premium-glow {
  position: relative;
  overflow: hidden;
}

.premium-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.premium-glow:hover::before {
  animation: shine 0.8s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Efectos de texto profesionales */
.text-enhanced-shadow {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.text-glow {
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Navegación profesional */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

/* ========================================
   🎨 GALERÍA INFINITA PROFESIONAL
   ======================================== */

/* Contenedor principal de la galería */
.gallery-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/* Track que contiene todas las imágenes */
.gallery-track {
  display: flex;
  width: calc(400px * var(--total-images) * 2); /* Ancho dinámico basado en número de imágenes */
  height: 100%;
  animation: infiniteSlide var(--animation-duration) linear infinite;
}

/* Cada slide individual */
.gallery-slide {
  position: relative;
  flex: 0 0 400px; /* Ancho fijo de 400px */
  height: 100%;
  overflow: hidden;
  margin-right: 20px;
}

/* Imagen dentro del slide */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Overlay que aparece al hacer hover */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(5, 150, 105, 0.8) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mostrar overlay al hacer hover en el slide */
.gallery-slide:hover .gallery-overlay {
  opacity: 1;
}

/* Zoom de imagen al hacer hover */
.gallery-slide:hover .gallery-image {
  transform: scale(1.1);
}

/* Contenido del overlay */
.gallery-content {
  text-align: center;
  color: white;
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-slide:hover .gallery-content {
  transform: translateY(0);
}

/* Título en el overlay */
.gallery-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: serif;
}

/* Subtítulo en el overlay */
.gallery-subtitle {
  font-size: 1.1rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* Badge decorativo */
.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

/* Indicadores de progreso */
.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* Cada indicador individual */
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Indicador activo */
.indicator.active {
  background: #059669;
  transform: scale(1.2);
}

/* Animación de progreso en el indicador activo */
.indicator.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: indicatorProgress 9s linear infinite;
}

/* Animación principal de la galería infinita */
@keyframes infiniteSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-400px * var(--total-images))); /* Se mueve exactamente el ancho de todas las imágenes */
  }
}

/* Animación del indicador de progreso */
@keyframes indicatorProgress {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  .gallery-container {
    height: 400px;
  }
  
  .gallery-title {
    font-size: 1.5rem;
  }
  
  .gallery-subtitle {
    font-size: 1rem;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .gallery-container {
    height: 250px;
    margin: 0 -1rem; /* Expandir en móvil para mejor uso del espacio */
    border-radius: 1rem;
  }
  
  .gallery-title {
    font-size: 1rem;
  }
  
  .gallery-subtitle {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  
  .gallery-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
  
  .gallery-indicators {
    margin-top: 15px;
    gap: 6px;
  }
  
  /* Ajustes para el contenido de la galería en móvil */
  .gallery-content {
    padding: 15px;
  }
}

/* Responsive específico para móviles pequeños */
@media (max-width: 480px) {
  .gallery-container {
    height: 200px;
  }
  
  .gallery-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }
  
  .gallery-subtitle {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  
  .gallery-badge {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
  
  .gallery-content {
    padding: 10px;
  }
  
  .indicator {
    width: 6px;
    height: 6px;
  }
}

.infinite-scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.infinite-scroll-wrapper {
  display: flex;
  width: fit-content;
  animation: scroll-left 30s linear infinite;
}

.infinite-scroll-wrapper:hover {
  animation-play-state: paused;
}

.infinite-scroll-item {
  flex-shrink: 0;
  width: 250px;
  height: 200px;
  margin-right: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.infinite-scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.infinite-scroll-item:hover img {
  transform: scale(1.1);
}

.infinite-scroll-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.infinite-scroll-item:hover .infinite-scroll-overlay {
  opacity: 1;
}

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

/* ========================================
   📱 RESPONSIVE GALERÍA
   ======================================== */

@media (max-width: 768px) {
  .infinite-scroll-item {
    width: 180px;
    height: 150px;
  }
  
  .infinite-scroll-wrapper {
    animation-duration: 20s;
  }
}

/* ========================================
   🎯 ESTADOS DE CARGA
   ======================================== */

.loading {
  @apply animate-pulse bg-gray-200 rounded;
}

.skeleton {
  @apply bg-gray-300 animate-pulse rounded;
}

/* ========================================
   🎨 PERSONALIZACIÓN DE SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-emerald-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-emerald-700);
}

/* ========================================
   🎯 PAGINACIÓN DEL CATÁLOGO
   ======================================== */

/* Contenedor de paginación */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

/* Paginación desktop */
.pagination-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Paginación mobile */
.pagination-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
}

/* Botones de paginación */
.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-btn:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.pagination-btn:active {
  transform: translateY(0);
}

/* Botón activo */
.pagination-btn.active {
  background-color: #059669;
  color: white;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.pagination-btn.active:hover {
  background-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

/* Botón deshabilitado */
.pagination-btn.disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  transform: none;
}

.pagination-btn.disabled:hover {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  transform: none;
  box-shadow: none;
}

/* Números de página */
.pagination-number {
  min-width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-number:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.pagination-number.active {
  background-color: #059669;
  color: white;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.pagination-number.active:hover {
  background-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

/* Puntos suspensivos */
.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Botones de navegación mobile */
.pagination-nav-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #059669;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-nav-mobile:hover {
  background-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.pagination-nav-mobile.disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.pagination-nav-mobile.disabled:hover {
  background-color: #e5e7eb;
  transform: none;
  box-shadow: none;
}

/* Indicador de página mobile */
.pagination-info-mobile {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .pagination-desktop {
    display: none;
  }
  
  .pagination-mobile {
    display: flex;
  }
  
  .pagination-btn {
    min-width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8rem;
  }
  
  .pagination-number {
    min-width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8rem;
  }
  
  .pagination-nav-mobile {
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) {
  .pagination-desktop {
    display: flex;
  }
  
  .pagination-mobile {
    display: none;
  }
}

/* Animaciones */
@keyframes paginationFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagination-container {
  animation: paginationFadeIn 0.3s ease-out;
}

/* Estados de hover mejorados */
.pagination-btn:not(.disabled):not(.active):hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-number:not(.active):hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Focus para accesibilidad */
.pagination-btn:focus,
.pagination-number:focus,
.pagination-nav-mobile:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* ========================================
   🎯 MEJORAS DE MARGEN EN MOBILE
   ======================================== */

/* ========================================
   🛍️ ESTILOS DEL CATÁLOGO
   ======================================== */

/* Header del catálogo con filtros */
.catalog-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Filtros desktop mejorados */
.catalog-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: white;
  transition: all 0.2s ease;
  min-width: 140px;
}

.filter-select:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Rango de precios mejorado */
.price-range-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-align: center;
}

.price-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.1);
}

.price-range-display {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* Barra de búsqueda mejorada */
.search-container {
  position: relative;
  margin-top: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.125rem;
}

/* Grid de productos mejorado */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* Información de resultados mejorada */
.catalog-info {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.catalog-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.catalog-subtitle {
  color: #6b7280;
  font-size: 1rem;
}

/* Controles de vista mejorados */
.view-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.view-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.view-btn.active {
  background: white;
  color: #059669;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-btn:hover {
  color: #059669;
  background: rgba(5, 150, 105, 0.05);
}

/* Filtros mobile mejorados */
.filters-mobile {
  background: white;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
}

.filters-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.filters-mobile-content {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.filter-mobile-group {
  margin-bottom: 1.5rem;
}

.filter-mobile-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.filter-mobile-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
}

.filter-mobile-select:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Botones de filtros mobile */
.filters-mobile-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.filter-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn-clear {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.filter-btn-clear:hover {
  background: #e5e7eb;
}

.filter-btn-apply {
  background: #059669;
  color: white;
}

.filter-btn-apply:hover {
  background: #047857;
}

/* Asegurar espacio suficiente en mobile */
@media (max-width: 768px) {
  .catalog-main {
    padding-bottom: 8rem !important; /* 32 * 0.25rem = 8rem */
  }
  
  .catalog-grid {
    margin-bottom: 3rem !important; /* 12 * 0.25rem = 3rem */
  }
  
  .catalog-pagination {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  .catalog-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .price-range-container {
    min-width: auto;
  }
}

/* ========================================
   🖼️ LAZY LOADING DE IMÁGENES
   ======================================== */

/* Imagen con lazy loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

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

/* Placeholder mientras carga */
img[loading="lazy"]:not(.loaded) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Loading states para botones */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   🗺️ SECCIÓN DE UBICACIONES
   ======================================== */

/* Contenedor de tabs de ubicaciones */
.location-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Ajustar el contenedor principal para mejor alineación */
@media (min-width: 1025px) {
  .location-tabs-wrapper {
    align-self: stretch;
    display: flex;
    align-items: center;
  }
}

/* Tab individual de ubicación */
.location-tab {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.location-tab:hover {
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
  transform: translateY(-2px);
}

.location-tab.active {
  border-color: #059669;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.2);
}

.location-tab.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f9fafb;
}

.location-tab.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #e5e7eb;
}

/* Icono del tab */
.tab-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.location-tab.active .tab-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.location-tab:not(.active):not(.disabled) .tab-icon {
  background: #f3f4f6;
  color: #6b7280;
}

.location-tab.disabled .tab-icon {
  background: #e5e7eb;
  color: #9ca3af;
}

.tab-icon i {
  font-size: 1.25rem;
}

/* Contenido del tab */
.tab-content {
  flex: 1;
  min-width: 0;
}

.tab-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-family: 'Playfair Display', serif;
}

.tab-subtitle {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tab-description {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

/* Estado del tab */
.tab-status {
  margin-left: 1rem;
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.status-badge.coming-soon {
  background: #fef3c7;
  color: #92400e;
}

/* Contenido de ubicación */
.location-content {
  position: relative;
  min-height: 500px;
}

.location-details {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.location-details.active {
  display: block;
}

/* Información de ubicación */
.location-info {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
}

.location-header {
  margin-bottom: 2rem;
  text-align: center;
}

.location-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.location-subtitle {
  font-size: 1.125rem;
  color: #059669;
  font-weight: 600;
  margin: 0;
}

/* Información de dirección */
.location-address {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.address-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.address-item i {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.address-item:nth-child(1) i {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.address-item:nth-child(2) i {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.address-item:nth-child(3) i {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.address-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.address-city,
.address-subtext {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Botones de acción */
.location-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.location-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.location-btn.primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.location-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.location-btn.secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.location-btn.secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Mapa de ubicación */
.location-map {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  margin-top: 1.5rem;
  position: relative;
}

.location-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
  filter: grayscale(0%) contrast(1.1) brightness(1.05);
  transition: all 0.3s ease;
}

.location-map:hover iframe {
  filter: grayscale(0%) contrast(1.15) brightness(1.1);
  transform: scale(1.01);
}

/* Overlay para mejorar la apariencia del mapa */
.location-map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.02) 0%, rgba(16, 185, 129, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 20px;
}

/* Indicador de carga para el mapa */
.location-map::after {
  content: 'Cargando mapa...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #059669;
  font-weight: 600;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-map.loading::after {
  opacity: 1;
}

/* Información compacta de ubicación */
.location-info-compact {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.location-header-compact {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.location-title-compact {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.125rem;
  font-family: 'Playfair Display', serif;
}

.location-subtitle-compact {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 600;
  margin: 0;
}

/* Grid de detalles compacto */
.location-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.detail-item i {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.detail-item:nth-child(1) i {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.detail-item:nth-child(2) i {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.detail-item:nth-child(3) i {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.detail-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.125rem;
}

.detail-subtext {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

/* Botones compactos */
.location-actions-compact {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.location-btn-compact {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 110px;
  justify-content: center;
  font-size: 0.85rem;
}

.location-btn-compact.primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.3);
}

.location-btn-compact.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(5, 150, 105, 0.4);
}

.location-btn-compact.secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.location-btn-compact.secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Contenido "Próximamente" */
.location-coming-soon {
  text-align: center;
  padding: 3rem 2rem;
}

.coming-soon-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #6b7280;
}

.coming-soon-icon i {
  font-size: 1.5rem;
}

.coming-soon-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.coming-soon-text {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.coming-soon-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 12px;
  color: #374151;
  font-weight: 500;
}

.feature-item i {
  color: #059669;
  font-size: 1rem;
}

/* Centrar tabs verticalmente en desktop */
@media (min-width: 1025px) {
  .location-tabs-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: 100%;
    min-height: 400px;
    gap: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .location-tabs-container {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    height: auto;
    min-height: auto;
  }
  
  .location-tab {
    min-width: 280px;
    flex-shrink: 0;
  }
  
  .location-actions {
    flex-direction: column;
  }
  
  .location-btn {
    flex: none;
  }
}

@media (max-width: 768px) {
  .location-tab {
    padding: 1rem;
    min-width: 250px;
  }
  
  .tab-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
  }
  
  .tab-title {
    font-size: 1rem;
  }
  
  .tab-subtitle {
    font-size: 0.8rem;
  }
  
  .tab-description {
    font-size: 0.75rem;
  }
  
  .location-info {
    padding: 1.5rem;
  }
  
  .location-title {
    font-size: 1.5rem;
  }
  
  .location-map iframe {
    height: 250px;
  }
  
  .location-details-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .location-actions-compact {
    flex-direction: column;
  }
  
  .location-btn-compact {
    flex: none;
  }
  
  .coming-soon-features {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .location-tab {
    min-width: 220px;
    padding: 0.75rem;
  }
  
  .tab-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
  }
  
  .tab-icon i {
    font-size: 1rem;
  }
  
  .location-info {
    padding: 1rem;
  }
  
  .location-map iframe {
    height: 200px;
  }
  
  .location-info-compact {
    padding: 0.75rem;
  }
  
  .location-title-compact {
    font-size: 1.125rem;
  }
  
  .location-subtitle-compact {
    font-size: 0.8rem;
  }
  
  .location-details-grid {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .detail-item {
    padding: 0.375rem;
  }
  
  .detail-item i {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
  
  .detail-text {
    font-size: 0.8rem;
  }
  
  .detail-subtext {
    font-size: 0.7rem;
  }
  
  .location-actions-compact {
    gap: 0.375rem;
  }
  
  .location-btn-compact {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    min-width: 100px;
  }
}

/* ========================================
   🎨 MEJORAS DE ANIMACIONES HOVER
   ======================================== */

/* Animaciones mejoradas para cards */
.product-card {
  transform-origin: center;
  will-change: transform, box-shadow;
}

.product-card:hover {
  z-index: 10;
}

/* Animación de entrada escalonada */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUpFade 0.6s ease-out forwards;
}

/* Mejoras en transiciones */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efectos de hover mejorados */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:-translate-y-2 {
  transform: translateY(-0.5rem);
}
