/* CONTENEDOR PRINCIPAL */
#producto-page-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0.5rem;
  padding: 0rem 0.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* COLUMNAS */
.producto-column {
  border: solid 1px #2b2b2b;
  flex: 1 1 300px;
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-radius: 10px;
}

#producto-image-container {
  /* position: relative; */
  overflow: hidden;
  border-radius: 8px;
  width: 500px;
  height: 1000px; /* ALTURA FIJA - corregido el error tipográfico */
  background: white;
  /* display: flex; */
  align-items: center;
  justify-content: center;
}

.imagen-cargando {
  position: relative;
}
.imagen-cargando::after {
  content: '🔄 Cargando imagen...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .miniaturas {
    gap: 0.3rem;
    max-height: 80px;
  }
  
  .miniaturas img {
    width: 45px;
    height: 45px;
  }
  
  .zoom-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  #zoom-btn-anterior {
    left: 10px;
  }
  
  #zoom-btn-siguiente {
    right: 10px;
  }
  
  .zoom-indicator {
    bottom: 15px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .zoom-close-btn {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  #zoom-fullscreen-overlay {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .miniaturas img {
    width: 40px;
    height: 40px;
  }
  
  .zoom-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
  
  #zoom-btn-anterior {
    left: 5px;
  }
  
  #zoom-btn-siguiente {
    right: 5px;
  }
}
.multiples-imagenes-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 5;
  backdrop-filter: blur(5px);
}

/* ===== ACCESSIBILITY ===== */
.zoom-nav-btn:focus-visible,
.zoom-close-btn:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}



/* ===== LOADING STATES ===== */
.imagen-loading {
  position: relative;
  background: #2a2a2a;
  border-radius: 6px;
}

.imagen-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #2a2a2a, #3a3a3a, #2a2a2a);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes loading-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
/* ===== ANIMACIONES ===== */
@keyframes imagenFadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}
.sin-imagenes-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
  border: 2px dashed #444;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.1rem;
  gap: 10px;
}

.sin-imagenes-placeholder::before {
  content: '📷';
  font-size: 3rem;
  opacity: 0.5;
}

.sin-imagenes-placeholder::after {
  content: 'Imagen no disponible';
  font-weight: 500;
}

/* ===== BADGES E INDICADORES ===== */
.imagen-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 60, 60, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 6;
  backdrop-filter: blur(5px);
}

.imagen-badge.multiple {
  background: rgba(0, 150, 255, 0.9);
}

/* ===== TOOLTIPS PARA NAVEGACIÓN ===== */
.zoom-nav-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 20;
}

/* ===== EFECTOS DE TRANSICIÓN SUAVES ===== */
.imagen-transicion {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.imagen-transicion.cargando {
  opacity: 0.5;
  transform: scale(0.98);
}

/* ===== OVERLAY PARA MÚLTIPLES IMÁGENES ===== */
.overlay-multiples-imagenes {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 6;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== PRELOADER PARA IMÁGENES ===== */
.imagen-preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 60, 60, 0.3);
  border-top: 3px solid #ff3c3c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 7;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== MEJORAS PARA TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
  .zoom-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  
  .miniaturas img {
    width: 50px;
    height: 50px;
  }
  
  /* Hacer más fácil tocar las miniaturas en móvil */
  .miniaturas {
    gap: 0.6rem;
    padding: 10px 0;
  }
  
  /* Área de toque más grande para navegación */
  .zoom-nav-btn::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  #producto-imagen-principal {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  
  .sin-imagenes-placeholder {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-color: #333;
    color: #666;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  #zoom-fullscreen-overlay,
  .zoom-navigation,
  .zoom-nav-btn,
  .zoom-close-btn,
  .zoom-indicator {
    display: none !important;
  }
  
  .miniaturas {
    display: none !important;
  }
  
  #producto-imagen-principal {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
.miniaturas img {
  animation: imagenFadeIn 0.3s ease-out;
}

#zoom-fullscreen-img {
  animation: imagenFadeIn 0.2s ease-out;
}

/* Hover en contenedor de imagen principal */
#producto-image-container:hover #producto-imagen-principal {
  box-shadow: 0 4px 20px rgba(255, 60, 60, 0.3);
}

#producto-imagen-principal {
  background-color: white;
  width: 500px;
  height: 500px;
  max-width: 500px;
  max-height: 500px;
  object-fit: contain; /* CLAVE: mantiene proporciones sin distorsión */
  display: block;
  transition: opacity 0.3s ease;
  cursor: zoom-in;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}


#zoom-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: -20px;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.zoom-image-container {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#zoom-fullscreen-img {
  max-width: 100%;
  max-height: 100%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  object-fit: contain;
  cursor: zoom-out;
  transform: none !important;
}

/* Navegación con flechas */
.zoom-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.zoom-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-weight: bold;
  line-height: 1;
}

.zoom-nav-btn:hover {
  background: rgba(255, 60, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.zoom-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

#zoom-btn-anterior {
  left: 25px;
}

#zoom-btn-siguiente {
  right: 50px;
}

/* Indicador de imagen actual */
.zoom-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* Botón cerrar */
.zoom-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.zoom-close-btn:hover {
  background: rgba(255, 60, 60, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

body.no-scroll {
  overflow: hidden;
}

.miniaturas {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
  max-height: 120px;
  overflow-y: auto;
}

.miniaturas img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid #444;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

/* /* .miniaturas img:hover {
  border-color: #ff3c3c;
  opacity: 1;
  transform: scale(1.05);
} */

.miniaturas img.activa {
  border-color: #ff3c3c;
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.5);
} 

/* TITULOS Y METADATOS */
.producto-nombre {
  font-size: 2rem;
  color: #ff3c3c;
  margin-bottom: 1rem;
}

.producto-meta p,
.producto-precio-section p {
  margin: 0.5rem 0;
}
/* ===== STOCK SIMPLE EN PÁGINA DE PRODUCTO ===== */

/* Contenedor del stock (mismo estilo que código y marca) */
.producto-stock-info {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #fff;
}

.producto-stock-info strong {
  color: #fff;
  font-weight: 600;
}

/* Contenedor del valor del stock */
.stock-valor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

/* Indicador circular de stock */
.stock-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Texto del estado de stock */
.stock-text {
  font-weight: 500;
  font-size: 1rem;
}

/* ===== COLORES PARA DIFERENTES ESTADOS (IGUALES AL CATÁLOGO) ===== */

/* Stock Alto */
.stock-alto {
  color: #22c55e !important;
}

.stock-alto .stock-indicator {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3), 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Stock Medio */
.stock-medio {
  color: #eab308 !important;
}

.stock-medio .stock-indicator {
  background: #eab308;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.3), 0 0 8px rgba(234, 179, 8, 0.4);
}

/* Stock Bajo */
.stock-bajo {
  color: #f59e0b !important;
}

.stock-bajo .stock-indicator {
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Sin Stock / Agotado */
.stock-agotado {
  color: #ef4444 !important;
}

.stock-agotado .stock-indicator {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3), 0 0 8px rgba(239, 68, 68, 0.4);
}



/* ===== SISTEMA DE PRECIOS MAYORISTA/MINORISTA ===== */
.producto-precio-detalle {
  position: relative;
  background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
  border: 1px solid #ff3c3c;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(255, 60, 60, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
}

/* Líneas de precio */
#linea-precio-lista,
#linea-descuento,
#linea-precio-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
  
}
#linea-precio-final {
  border-bottom: none;
  margin-bottom: 0;
  font-size: 1.1em;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Precios específicos */
.label-precio {
  color: #ffffff;
  font-size: 1.1em;
  font-weight: bold;
}

#producto-precio-lista {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
}

#producto-precio-lista.precio-tachado {
  text-decoration: line-through !important;
  color: #999 !important;
  font-size: 1.2rem !important;
}

#producto-precio-final {
  font-size: 1.8rem;
  color: #ffffff !important;
  font-weight: bold !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#producto-descuento {
  color: hsl(0, 0%, 0%) !important;
  font-weight: bold !important;
  background: linear-gradient(135deg, #00e676, #00c853);
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 0.9em !important;
  box-shadow: 0 2px 8px rgba(0, 230, 118, 0.3);
  text-shadow: none;
}

/* Indicador de tipo de cliente */
#indicador-tipo-cliente {
  position: absolute !important;
  top: -12px !important;
  right: 15px !important;
  padding: 8px 15px !important;
  border-radius: 25px !important;
  font-size: 0.8em !important;
  font-weight: bold !important;
  z-index: 100 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #ff3c3c;
}

#indicador-tipo-cliente.mayorista {
  background: linear-gradient(135deg, #00e676, #00c853) !important;
  color: #000 !important;
  border-color: #00e676;
}

#indicador-tipo-cliente.minorista {
  background: linear-gradient(135deg, #2196f3, #1976d2) !important;
  color: white !important;
  border-color: #2196f3;
}

/* Ahorro destacado para mayoristas */
.ahorro-destacado {
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #000;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 3px 8px rgba(0, 230, 118, 0.4);
  text-align: center;
}

/* Comparación de precios */
.comparacion-precios {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid #00e676;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}

.precio-antes {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
}

.precio-ahora {
  color: #ff3c3c;
  font-weight: bold;
  font-size: 1.3rem;
}

.ahorro-cantidad {
  background: #00e676;
  color: #000;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
}

/* BOTONES MEJORADOS */
.btn-primario,
.btn-secundario {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  margin-top: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primario {
  background: linear-gradient(135deg, #ff3c3c, #d32f2f);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 60, 60, 0.3);
}

.btn-primario:hover {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 60, 60, 0.4);
}

.btn-primario.mayorista {
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #000;
}

.btn-primario.mayorista:hover {
  background: linear-gradient(135deg, #00c853, #00a152);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.btn-primario.minorista {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
}

.btn-primario.minorista:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-secundario {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.btn-secundario:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Disclaimer mejorado */
.disclaimer-precio {
  font-size: 0.8rem;
  color: #999;
  margin-top: 15px;
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-style: italic;
}

/* DETALLES TÉCNICOS, APLICACIONES, EQUIVALENCIAS */
#producto-detalles-container,
#producto-aplicaciones-container,
#producto-equivalencias-container {
  margin-top: 1rem;
}

#producto-detalles-container h3,
#producto-aplicaciones-container h3,
#producto-equivalencias-container h3 {
  position: relative;
  display: inline-block;
  color: #ff3c3c;
  padding-bottom: 0.4rem;
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
}

#producto-meta {
  padding-top: 1rem;
}

#producto-precio-section {
  margin-top: 3rem;
}

#producto-precio-section h3 {
  margin-top: 5rem;
  position: relative;
  display: inline-block;
  color: #ff3c3c;
  padding-bottom: 0.4rem;
  font-size: 1.2rem;
  text-align: left;
  width: 100%;
}

#producto-nombre {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
}

#producto-nombre::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ff493cb0;
  border-radius: 2px;
}

#producto-detalles-container h3::after,
#producto-aplicaciones-container h3::after,
#producto-equivalencias-container h3::after,
#producto-precio-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ff493cb0;
  border-radius: 2px;
}

/* TABLAS */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  background-color: #2d2d2d;
}

th, td {
  border: 1px solid #444;
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: #3c3c3c;
  color: #fd4f4f;
}

.detalle-clave {
  color: #ffffff;
  font-weight: bold;
  width: 40%;
}

.detalle-valor {
  color: #ffffff79;
}

.equivalencia-marca {
  color: #ffffff;
  font-weight: bold;
}

.equivalencia-codigo {
  color: #ffffff79;
}

#producto-aplicaciones th,
#producto-aplicaciones td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #2a2a2a;
}

/* PRODUCTOS SIMILARES */
#productos-similares-section {
  margin-top: 40px;
  padding: 20px;
  background-color: #1a1a1a;
  border-radius: 10px;
}

#productos-similares {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.tarjeta-similar {
  border: 1px solid #ffffff;
  border-radius: 10px;
  overflow: hidden;
  background-color: #111;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-similar:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
  background-color: #181818;
}

.tarjeta-similar a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 10px;
}

.tarjeta-similar img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

.tarjeta-similar h4 {
  font-size: 0.95rem;
  color: #f2f2f2;
  margin-top: 10px;
  height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tarjeta-similar .codigo {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 4px;
}

.texto-copiable {
  user-select: text;
  cursor: text;
}

.tarjeta-textos {
  padding: 10px;
}

.tarjeta-link:hover + .tarjeta-textos h4 {
  text-decoration: underline;
  color: #ff3c3c;
}

/* ANIMACIONES Y EFECTOS */
@keyframes slideInRight {
  from { 
    transform: translateX(100%); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

@keyframes slideOutRight {
  from { 
    transform: translateX(0); 
    opacity: 1; 
  }
  to { 
    transform: translateX(100%); 
    opacity: 0; 
  }
}

@keyframes descuentoBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#producto-descuento:hover {
  animation: descuentoBounce 0.6s ease-in-out;
}

/* Efecto hover para contenedor de precios */
.producto-precio-detalle:hover {
  box-shadow: 0 6px 25px rgba(255, 60, 60, 0.3);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Estado de carga */
.precios-cargando {
  position: relative;
  opacity: 0.7;
}

.precios-cargando::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 30, 30, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
}

.precios-cargando::before {
  content: '🔄 Actualizando precios...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2a2a2a;
  color: #fff;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #ff3c3c;
  font-size: 0.9em;
  z-index: 11;
}

.btn-primario:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #zoom-fullscreen-img{
    max-width: 100%;
    max-height: 90vh;
  }
  #zoom-fullscreen-img{
    margin: 0 auto;
    max-width: 100%;
    max-height: 90vh;
  }
  #producto-imagen-principal {
    width: 100%;
    height: 320px;
    max-height: 400px;
    object-fit: contain;
  }
  #producto-image-container {
    width: 100%;
    height: auto;
    max-height: 400px;
  }
  .producto-page-wrapper {
    /* flex-direction: column; */
    padding: 1rem;
  }

  .producto-column {
    padding: 1rem;
  }

  .producto-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .producto-precio-detalle {
    padding: 15px;
    margin: 15px 0;
  }
  
  #indicador-tipo-cliente {
    top: -8px !important;
    right: 10px !important;
    font-size: 0.75em !important;
    padding: 6px 10px !important;
  }
  
  #linea-precio-lista,
  #linea-descuento,
  #linea-precio-final {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  #producto-precio-final {
    font-size: 1.5rem !important;
  }
  
  .btn-primario,
  .btn-secundario {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  #indicador-tipo-cliente,
  .btn-primario,
  .producto-precio-detalle,
  .tarjeta-similar {
    animation: none !important;
    transition: none !important;
  }
}