/* ===== CSS OPTIMIZADO ANMAGO STORE - VERSIÓN PREMIUM ===== */
/* 🎨 Paleta premium: Colores elegantes y sofisticados */
/* 🔥 Optimizado para Core Web Vitals: LCP, CLS, FCP | Versión: 2025.2 */

/* === RESET Y VARIABLES CRÍTICAS === */

/* Estilos para el menú hamburguesa */
.categoria-menu-item {
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.categoria-menu-item:hover {
    background: #1B4557 !important;
    color: white !important;
    border-color: #1B4557;
    transform: translateX(5px);
}

.categoria-menu-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

:root {
  --primary-color: #1B4557; 
  --secondary-color: #0A8D8C; /* Cambiado a verde azulado elegante */
  --accent-color: #3a5d75;
  --premium-gold: #C9A96E; /* Dorado premium */
  --premium-bronze: #B8860B; /* Bronce para acentos */
  --text-dark: #2C3E50; 
  --text-light: #7F8C8D; 
  --white: #ffffff;
  --gray-light: #f5f7fa; 
  --gray-medium: #e8edf2;
  --border-radius: 10px; 
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0,0,0,0.08); 
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-premium: 0 4px 20px rgba(201, 169, 110, 0.15);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
}

html, body {
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa; 
  scroll-behavior: smooth;
  color: var(--text-dark);
}

/* === LAYOUT PRINCIPAL CON ALTURAS FIJAS === */
body { 
  padding-top: 70px; 
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f4f8 100%);
}

/* === HEADER CON DIMENSIONES FIJAS === */
.header-sticky {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  background: var(--primary-color); 
  color: var(--white); 
  z-index: 1020;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img { 
  height: 40px; 
  width: 40px;
  object-fit: contain; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Buscador en header - DIMENSIONES FIJAS */
.buscador-header {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  transition: var(--transition);
  width: 100%;
  height: 44px;
  color: white;
}

.buscador-header::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.buscador-header:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.5);
  outline: none;
  border-color: var(--premium-gold);
}

/* === MAIN CONTENT CON DIMENSIONES ESTABLES === */
main {
  min-height: 500px;
  background: transparent;
}

/* === SUGERENCIAS DEL BUSCADOR - VERSIÓN PREMIUM === */
.sugerencias-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--gray-medium);
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  max-height: 400px;
  overflow-y: auto;
  z-index: 9999;
  margin-top: 8px;
  display: none;
  backdrop-filter: blur(10px);
}

.sugerencias-container.mostrar {
  display: block;
}

.sugerencia-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px;
  border-bottom: 1px solid var(--gray-light);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sugerencia-item:hover {
  background-color: var(--gray-light);
  transform: translateX(4px);
}

.sugerencia-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 4px;
  border: 1px solid var(--gray-medium);
}

.sugerencia-info {
  flex: 1;
}

.sugerencia-nombre {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.sugerencia-categoria {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.sugerencia-precio {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
}

.sugerencia-precio::before {
  content: '$';
  font-size: 0.8em;
  margin-right: 2px;
}

/* === SISTEMA DE VISTAS - OPTIMIZADO === */
.vista { 
  display: none; 
  min-height: 400px;
}
.vista-activa { 
  display: block; 
  animation: fadeIn 0.4s ease-in;
}

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

/* === ESTILOS PARA TARJETAS DE PRODUCTOS (VERSIÓN PREMIUM) === */
.card-producto-ml {
    border: 1px solid var(--gray-medium);
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    height: 100%;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card-producto-ml:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--premium-gold);
}

.card-producto-ml::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--premium-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-producto-ml:hover::after {
    opacity: 1;
}

/* Enlace que cubre toda la tarjeta */
.card-producto-ml .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Contenedor de imagen */
.card-image-container {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    overflow: hidden;
}

.card-img-ml {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.card-producto-ml:hover .card-img-ml {
    transform: scale(1.05);
}

/* Badges de promoción y stock - VERSIÓN ELEGANTE */
.badge-promo {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--premium-gold), var(--premium-bronze));
    color: #2C3E50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
    letter-spacing: 0.5px;
}

.badge-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid var(--secondary-color);
    backdrop-filter: blur(4px);
}

/* Contenido de la tarjeta */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
    background: white;
}

/* Categorías */
.categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.categoria-tipo {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.categoria-subtipo {
    background: var(--gray-medium);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Nombre del producto */
.producto-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.4;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 44px;
    font-family: 'Inter', sans-serif;
}

/* Footer con precio y botón */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.precios {
    display: flex;
    flex-direction: column;
}

.precio-actual {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
}

.precio-actual::before {
    content: '$';
    font-size: 0.9em;
    font-weight: 600;
}

.precio-anterior {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

/* Botón VER - VERSIÓN PREMIUM */
.btn-ver-producto {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(27, 69, 87, 0.25);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    min-width: 42px;
    min-height: 42px;
}

.btn-ver-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-ver-producto:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(27, 69, 87, 0.4);
}

.btn-ver-producto:hover::before {
    left: 100%;
}

.grid-productos-ml {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Reducir a 220px */
    gap: 20px;
    padding: 15px 0;
    min-height: 300px;
}

/* Tablet (≥ 768px) */
@media (min-width: 768px) {
    .grid-productos-ml {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Escritorio (≥ 1024px) */
@media (min-width: 1024px) {
    .grid-productos-ml {
        grid-template-columns: repeat(5, 1fr); /* ← ¡5 COLUMNAS FIJO! */
        gap: 20px;
    }
}

/* Pantallas grandes (≥ 1200px) */
@media (min-width: 1200px) {
    .grid-productos-ml {
        gap: 25px;
    }
}

/* Pantallas muy grandes (≥ 1400px) */
@media (min-width: 1400px) {
    .grid-productos-ml {
        gap: 30px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .grid-productos-ml {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Móvil - SIEMPRE 2 COLUMNAS */
@media (max-width: 768px) {
    .grid-productos-ml {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        padding: 10px 0;
    }
    
    .card-image-container {
        height: 180px;
        padding: 20px;
    }
    
    .producto-nombre {
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .precio-actual {
        font-size: 1.15rem;
    }
}

/* Móvil pequeño - SIEMPRE 2 COLUMNAS */
@media (max-width: 480px) {
    .grid-productos-ml {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
        padding: 8px 0;
    }
    
    .card-image-container {
        height: 160px;
        padding: 15px;
    }
    
    .card-content {
        padding: 15px;
    }
}

/* === BOTÓN CARRITO FLOTANTE PREMIUM === */
.btn-carrito-flotante {
    position: fixed;
    top: 90px;
    right: 25px;
    z-index: 1020;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
    border: 2px solid white;
}

.btn-carrito-flotante::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--premium-gold), var(--premium-bronze));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-carrito-flotante:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 30px rgba(27, 69, 87, 0.3);
}

.btn-carrito-flotante:hover::before {
    opacity: 1;
}

/* Contador del carrito flotante */
.contador-carrito {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    border: 3px solid white;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .btn-carrito-flotante {
        display: none !important;
    }
}
/* === CATEGORÍAS RÁPIDAS ELEGANTES === */
.categorias-rapidas {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem 0.75rem 0.5rem 0.75rem;
  margin-bottom: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-medium) var(--gray-light);
  height: 75px;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
}

/* Scrollbar styling */
.categorias-rapidas::-webkit-scrollbar {
  height: 6px;
}

.categorias-rapidas::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 10px;
  margin: 0 20px;
}

.categorias-rapidas::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 10px;
}

.categorias-rapidas::-webkit-scrollbar-thumb:hover {
  background: var(--text-dark);
}

.categoria-rapida {
  flex: 0 0 auto; 
  text-align: center; 
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--gray-medium); 
  border-radius: 30px; 
  text-decoration: none;
  color: var(--text-dark); 
  font-size: 0.85rem; 
  background: white;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  height: 50px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.categoria-rapida:hover {
  border-color: var(--premium-gold); 
  color: var(--primary-color); 
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.2);
  background: linear-gradient(135deg, white, #f8f9fa);
}

/* === BANNER PROMOCIONAL ELEGANTE === */
.banner-promocional {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.5rem !important;
  padding: 0.75rem 0;
  margin-bottom: 0 !important;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(27, 69, 87, 0.15);
}

.banner-envio {
  color: var(--premium-gold);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* === BOTONES PREMIUM === */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white); 
  border: none; 
  border-radius: 30px; 
  font-weight: 700;
  padding: 0.85rem 2rem; 
  text-decoration: none; 
  display: inline-flex;
  align-items: center; 
  justify-content: center; 
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1); 
  box-shadow: var(--shadow);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px); 
  box-shadow: var(--shadow-hover);
  color: var(--white); 
  text-decoration: none;
}

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

.btn-instalar-app {         
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white); 
  border: none; 
  border-radius: 30px; 
  font-weight: 700;
  padding: 0.75rem 1.5rem; 
  text-decoration: none; 
  display: inline-flex;
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem;
  transition: all 0.3s ease; 
  box-shadow: var(--shadow);
  font-family: 'Inter', sans-serif;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color); 
  color: var(--primary-color);
  background: transparent; 
  transition: all 0.3s ease;
  border-radius: 30px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

.btn-outline-primary:hover { 
  background: var(--primary-color); 
  color: var(--white); 
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Alertas pequeñas para scroll infinito */
.alert-sm {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0;
    border-radius: 12px;
    border: 1px solid var(--gray-medium);
    background: white;
}

/* Mejorar visualización del botón */
#btn-ver-mas {
    transition: all 0.3s ease;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    box-shadow: var(--shadow);
}

#btn-ver-mas:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Contador de productos */
#contador-todos {
    font-size: 0.95rem;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-medium);
    font-weight: 600;
    color: var(--text-dark);
}

/* === CARRITO OFFCANVAS PREMIUM === */
.offcanvas-end { 
  border-left: 1px solid var(--gray-medium); 
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.offcanvas-header { 
  border-bottom: 1px solid var(--gray-medium); 
  padding: 1.25rem 1.5rem; 
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}
.offcanvas-title { 
  font-weight: 800; 
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
}
.offcanvas-body { 
  padding: 1.25rem 1.5rem; 
  background: var(--gray-light);
}
.offcanvas-footer { 
  border-top: 1px solid var(--gray-medium); 
  padding: 1.25rem 1.5rem; 
  background: white; 
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* === FOOTER PREMIUM === */
.footer {
  background: linear-gradient(135deg, var(--primary-color), #153a4a); 
  color: var(--white); 
  padding: 2rem 1rem 1rem; 
  margin-top: 2rem;
  min-height: 220px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container { 
  max-width: 1400px; 
  margin: 0 auto; 
}

.footer-main {
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2rem;
  padding-bottom: 1.5rem; 
  border-bottom: 1px solid rgba(255,255,255,0.15); 
  margin-bottom: 1.5rem;
}

.footer-section h4, 
.footer-section h5, 
.footer-section h6 {
  color: var(--premium-gold); 
  margin-bottom: 1rem; 
  font-size: 1.1rem; 
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

.footer-links { 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem; 
}
.footer-links a { 
  color: rgba(255, 255, 255, 0.8); 
  text-decoration: none; 
  transition: all 0.3s ease; 
  font-size: 0.85rem; 
  font-weight: 500;
}
.footer-links a:hover { 
  color: var(--premium-gold); 
  text-decoration: none; 
  transform: translateX(3px);
}

.redes-sociales-compactas { 
  display: flex; 
  gap: 0.75rem; 
  flex-wrap: wrap; 
}
.redes-sociales-compactas a { 
  display: inline-flex; 
  transition: all 0.3s ease; 
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 8px;
}
.redes-sociales-compactas a:hover { 
  transform: translateY(-3px) scale(1.1); 
  background: rgba(201, 169, 110, 0.2);
}
.redes-sociales-compactas img { 
  width: 28px; 
  height: 28px; 
  object-fit: contain; 
  border-radius: 50%; 
}

.footer-secondary { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  align-items: center; 
}

.copyright { 
  color: rgba(255, 255, 255, 0.6); 
  font-size: 0.8rem; 
  text-align: center; 
  font-weight: 500;
}

/* === BARRA INFERIOR MOBILE PREMIUM === */
.navbar.fixed-bottom {
  background: white;
  border-top: 1px solid var(--gray-medium); 
  height: 75px;
  display: flex;
  align-items: center;
  z-index: 1030;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.navbar.fixed-bottom .container-fluid {
  height: 100%;
}

.navbar.fixed-bottom .d-flex {
  height: 100%;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 0 10px;
}

.navbar.fixed-bottom a {
  text-decoration: none; 
  color: var(--text-dark); 
  text-align: center;
  flex: 1; 
  padding: 0.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar.fixed-bottom a.active {
  color: var(--primary-color);
  background: rgba(27, 69, 87, 0.05);
}

.navbar.fixed-bottom a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--premium-gold));
  border-radius: 2px;
}

.navbar.fixed-bottom .text-primary { 
  color: var(--primary-color) !important; 
}
.navbar.fixed-bottom .text-success { 
  color: var(--secondary-color) !important; 
}

.navbar.fixed-bottom i { 
  font-size: 1.3rem; 
  display: block; 
  margin-bottom: 0.25rem; 
  transition: transform 0.3s ease;
}
.navbar.fixed-bottom a:hover i {
  transform: translateY(-2px);
}
.navbar.fixed-bottom .small { 
  font-size: 0.75rem; 
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* === SKELETON LOADERS PREMIUM === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8edf2 50%, #f0f0f0 75%);
  background-size: 200% 100%; 
  animation: loading 1.5s infinite; 
  border-radius: 12px;
}

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

/* Skeleton para cards */
.card-producto-ml.skeleton {
  border: none;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.card-producto-ml.skeleton .card-img-ml {
  height: 180px;
  background: #e8edf2;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card-producto-ml.skeleton .nombre-producto-ml {
  height: 20px;
  background: #e8edf2;
  border-radius: 4px;
  margin-bottom: 8px;
}

.card-producto-ml.skeleton .precio-ml {
  height: 24px;
  width: 80px;
  background: #e8edf2;
  border-radius: 4px;
}

/* === IMÁGENES CON ASPECT RATIO === */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* === RESPONSIVE DESIGN PREMIUM === */
@media (max-width: 767px) {
  body { 
    padding-top: 60px;
  }
  
  .header-sticky { 
    height: 60px;
    padding: 0.5rem;
  }
  
  .buscador-header {
    height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .card-producto-ml {
    height: 270px;
  }
  
  .card-img-ml { 
    height: 450px;
  }
  
  .categorias-rapidas {
    height: 65px;
  }
  
  .categoria-rapida {
    height: 45px;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
  }
  
  .carousel-promos-home .carousel-item {
    height: 280px;
  }
  
  .producto-carrusel-card {
    height: 260px;
  }
  
  .producto-carrusel-img {
    height: 140px;
  }
  
  .banner-promocional {
    height: 40px;
    font-size: 0.85rem;
    padding: 0.65rem 0;
  }
  
  .navbar.fixed-bottom {
    height: 70px;
  }
  
  .footer { 
    padding: 1.5rem 0.75rem 0.75rem; 
  }
  .footer-section h4 { 
    font-size: 1rem; 
  }
  .footer-links a, .contacto-compacto p { 
    font-size: 0.8rem; 
  }
  .redes-sociales-compactas img { 
    width: 26px; 
    height: 26px; 
  }
}

@media (min-width: 768px) {
  .navbar.fixed-bottom { 
    display: none; 
  }
  
  .card-img-ml { 
    height: 200px;
  }
  
  .categorias-rapidas { 
    padding: 1.25rem 1.5rem 0.5rem;
    height: 85px;
  }
  
  .categoria-rapida { 
    font-size: 0.9rem; 
    padding: 1rem 1.75rem;
    height: 55px;
  }
  
  .carousel-promos-home .carousel-item {
    height: 340px;
  }
  
  .producto-carrusel-img { 
    height: 190px;
  }
  
  .banner-promocional {
    height: 50px;
    font-size: 1rem;
    padding: 0.85rem 0;
  }
  
  .footer { 
    padding: 2.5rem 1.5rem 1.5rem; 
  }
  .footer-main { 
    grid-template-columns: 2fr 1.5fr 1fr; 
    gap: 2.5rem; 
  }
  .footer-secondary { 
    flex-direction: row; 
    justify-content: space-between; 
    align-items: center; 
  }
}

@media (min-width: 1024px) {
  .card-img-ml { 
    height: 400px;
  }
  
  .carousel-promos-home .carousel-item {
    height: 360px;
  }
  
  .producto-carrusel-img { 
    height: 210px;
  }
  
  .footer-main {
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
  }
}

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

/* Optimización para impresión */
@media print {
  .btn-carrito-flotante, 
  .navbar.fixed-bottom, 
  .categorias-rapidas,
  .banner-promocional,
  .carousel-promos-home {
    display: none !important;
  }
  
  .card-producto-ml {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* === UTILIDADES PREMIUM === */
.min-h-300 { min-height: 300px !important; }
.min-h-400 { min-height: 400px !important; }
.min-h-500 { min-height: 500px !important; }
.h-fixed-70 { height: 70px !important; }
.h-fixed-60 { height: 60px !important; }
.h-fixed-280 { height: 280px !important; }
.h-fixed-250 { height: 250px !important; }

/* Gradientes premium */
.bg-gradient-premium {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-bronze)) !important;
}

.text-premium-gold {
  color: var(--premium-gold) !important;
}

/* Sombras premium */
.shadow-premium {
  box-shadow: var(--shadow-premium) !important;
}

/* Bordes premium */
.border-premium {
  border: 1px solid var(--premium-gold) !important;
}

/* === EFECTOS DE HOVER ESPECIALES === */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.2);
}

/* === TIPOGRAFÍA MEJORADA === */
.font-inter {
  font-family: 'Inter', sans-serif;
}

.font-weight-semibold {
  font-weight: 600;
}

.letter-spacing-wide {
  letter-spacing: 0.5px;
}

/* === EFECTO DE BRILLO EN ELEMENTOS PREMIUM === */
.premium-shine {
  position: relative;
  overflow: hidden;
}

.premium-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.6s;
  opacity: 0;
}

.premium-shine:hover::before {
  transform: rotate(30deg) translate(20%, 20%);
  opacity: 1;
}
/* === BANNER PROMOCIONAL - VERSIÓN CORREGIDA === */
.banner-promocional {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 !important;
  padding: 0.65rem 1rem;
  height: auto;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(27, 69, 87, 0.15);
}

/* Contenedor interno del banner */
.banner-contenido {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Texto principal del banner */
.banner-texto {
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
}

/* Texto con asteriscos - alineación específica */
.banner-nota {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Resaltar palabras importantes */
.banner-envio {
  color: var(--premium-gold);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Separador visual */
.banner-separador {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  padding: 0 0.5rem;
}

/* Para dispositivos móviles - ajuste de alineación */
@media (max-width: 768px) {
  .banner-promocional {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-height: 40px;
    text-align: center;
    line-height: 1.3;
  }
  
  .banner-contenido {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .banner-texto {
    font-size: 0.8rem;
    text-align: center;
  }
  
  .banner-nota {
    font-size: 0.7rem;
    text-align: center;
    display: block;
  }
  
  .banner-separador {
    display: none;
  }
  
  /* Para pantallas muy pequeñas */
  @media (max-width: 480px) {
    .banner-promocional {
      font-size: 0.7rem;
      padding: 0.4rem 0.5rem;
    }
    
    .banner-texto {
      font-size: 0.75rem;
    }
    
    .banner-nota {
      font-size: 0.65rem;
    }
  }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .banner-promocional {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}
/* ============================================= */
/* CORRECCIÓN PARA TARJETAS EN INDEX.HTML - MÓVIL */
/* ============================================= */

/* 📱 AJUSTES ESPECÍFICOS PARA MÓVIL EN INDEX.HTML */
@media (max-width: 768px) {
  
  /* === TARJETAS DE PRODUCTOS EN INDEX.HTML === */
  .grid-productos-ml .card-producto-ml {
    height: auto !important; /* Altura automática */
    min-height: 280px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }
  
  /* Contenedor de imagen en móvil */
  .grid-productos-ml .card-producto-ml .card-image-container {
    height: 160px !important;
    min-height: 160px;
    padding: 15px;
  }
  
  /* Imagen dentro del contenedor */
  .grid-productos-ml .card-producto-ml .card-img-ml {
    max-height: 130px !important;
    max-width: 85% !important;
    height: auto !important;
  }
  
  /* Contenido de la tarjeta en móvil */
  .grid-productos-ml .card-producto-ml .card-content {
    padding: 15px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 160px) !important;
  }
  
  /* Nombre del producto en móvil */
  .grid-producto-ml .card-producto-ml .producto-nombre {
    font-size: 0.9rem !important;
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 36px;
    max-height: 46px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  /* Footer de la tarjeta (precios y botón) */
  .grid-productos-ml .card-producto-ml .card-footer {
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid #e9ecef;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 50px;
  }
  
  /* Contenedor de precios en móvil */
  .grid-productos-ml .card-producto-ml .precios {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-height: 42px;
  }
  
  /* Precio actual (principal) en móvil */
  .grid-productos-ml .card-producto-ml .precio-actual {
    font-size: 1.1rem !important;
    font-weight: 800;
    color: #1B4557;
    margin-bottom: 2px;
    display: block !important;
  }
  
  /* Precio anterior (tachado) en móvil */
  .grid-productos-ml .card-producto-ml .precio-anterior {
    font-size: 0.85rem !important;
    color: #6c757d;
    display: block !important;
    margin-bottom: 0;
  }
  
  /* Botón "Ver" en móvil */
  .grid-productos-ml .card-producto-ml .btn-ver-producto {
    width: 42px !important;
    height: 42px !important;
    font-size: 1rem !important;
    flex-shrink: 0;
  }
  
  /* === CATEGORÍAS EN TARJETAS (móvil) === */
  .grid-productos-ml .card-producto-ml .categorias {
    margin-bottom: 8px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .grid-productos-ml .card-producto-ml .categoria-tipo,
  .grid-productos-ml .card-producto-ml .categoria-subtipo {
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
  }
  
  /* === BADGES DE PROMOCIÓN Y STOCK EN MÓVIL === */
  .grid-productos-ml .card-producto-ml .badge-promo {
    top: 8px !important;
    left: 8px !important;
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
  }
  
  .grid-productos-ml .card-producto-ml .badge-stock {
    top: 8px !important;
    right: 8px !important;
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
  }
}

/* ============================================= */
/* CORRECCIÓN ESPECÍFICA PARA PANTALLAS MUY PEQUEÑAS (< 480px) */
/* ============================================= */
@media (max-width: 480px) {
  .grid-productos-ml .card-producto-ml .card-image-container {
    height: 150px !important;
  }
  
  .grid-productos-ml .card-producto-ml .card-content {
    height: calc(100% - 150px) !important;
    padding: 12px !important;
  }
  
  .grid-productos-ml .card-producto-ml .producto-nombre {
    font-size: 0.85rem !important;
    min-height: 34px;
  }
  
  .grid-productos-ml .card-producto-ml .precio-actual {
    font-size: 1rem !important;
  }
  
  .grid-productos-ml .card-producto-ml .precio-anterior {
    font-size: 0.8rem !important;
  }
  
  .grid-productos-ml .card-producto-ml .btn-ver-producto {
    width: 38px !important;
    height: 38px !important;
  }
  
  /* Ajustar grid para móviles muy pequeños */
  .grid-productos-ml {
    gap: 12px !important;
  }
}

/* ============================================= */
/* MEJORAS PARA TABLETS (481px - 768px) */
/* ============================================= */
@media (min-width: 481px) and (max-width: 768px) {
  .grid-productos-ml .card-producto-ml .card-image-container {
    height: 170px !important;
  }
  
  .grid-productos-ml .card-producto-ml .card-content {
    height: calc(100% - 170px) !important;
  }
  
  .grid-productos-ml .card-producto-ml .producto-nombre {
    font-size: 0.95rem !important;
  }
  
  .grid-productos-ml .card-producto-ml .precio-actual {
    font-size: 1.15rem !important;
  }
}

/* ============================================= */
/* FORZAR VISIBILIDAD DE ELEMENTOS CRÍTICOS */
/* ============================================= */

/* Asegurar que los precios sean visibles */
.precio-actual,
.precio-anterior,
.precio-ml {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Asegurar que el contenedor de precios funcione */
.precios {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

/* Contrarrestar cualquier display:none que pueda estar ocultando precios */
@media (max-width: 768px) {
  .grid-productos-ml .card-producto-ml * {
    display: block !important;
    visibility: visible !important;
  }
  
  /* Específicamente para el footer */
  .grid-productos-ml .card-producto-ml .card-footer {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Forzar que los precios se muestren */
  .grid-productos-ml .card-producto-ml .precios > * {
    display: block !important;
    opacity: 1 !important;
  }
}

/* ============================================= */
/* DEBUG - Para identificar problemas */
/* ============================================= */
.debug-tarjetas {
  border: 2px solid red !important;
}

.debug-precios {
  border: 2px solid blue !important;
}

.debug-boton {
  border: 2px solid green !important;
}
/* También necesitas actualizar el HTML del banner. Aquí tienes la estructura sugerida: */
/*
<div class="banner-promocional">
  <div class="banner-contenido">
    <span class="banner-texto">NUESTROS PRECIOS INCLUYEN <span class="banner-envio">ENVÍO ESTÁNDAR</span> EN LA MAYORÍA DE CIUDADES.</span>
    <span class="banner-separador">|</span>
    <span class="banner-nota">SI TU ZONA TIENE TARIFA ESPECIAL, TE LO INFORMAMOS ANTES DE PAGAR.</span>
  </div>
</div>
*/

    /* ... (tus estilos actuales) ... */

    /* 3. RESERVAR ESPACIO PARA CONTENIDO DINÁMICO - EVITA CLS */
    /* Banner Institucional */
    .banner-promocional {
        min-height: 60px; /* Ajusta según el contenido real */
        overflow: hidden;
    }
    
    /* Contenedor de Categorías Rápidas */
    #categorias-rapidas {
        min-height: 120px;
        position: relative;
    }
    
    /* Carrusel - cards internas */
    .carousel-promos-home .card {
        min-height: 300px; /* Altura aproximada de una card */
        overflow: hidden;
    }
    
    /* Grid de últimos productos (skeleton) */
    #grid-ultimos {
        min-height: 300px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    /* Menú lateral - categorías */
    #menu-categorias-dinamico {
        min-height: 200px;
    }

    /* 4. MEJORAR SKELETON LOADING */
    .skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        border-radius: 8px;
       animation: loading 1.5s infinite;
    }
    
    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

/* ============================================= */
/* ESTILOS ESPECÍFICOS PARA PRODUCTO.HTML */
/* ============================================= */

/* Galería de miniaturas */
.galeria-miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.miniatura {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.miniatura.active {
    border-color: #007bff;
    transform: scale(1.05);
}

.miniatura:hover {
    border-color: #007bff;
}

/* Badges en detalle de producto */
.badge-oferta {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Selectores de variante y talla */
.selector-variable, .selector-talla {
    max-width: 250px;
    font-size: 1rem;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.selector-variable:focus, .selector-talla:focus {
    border-color: #1B4557;
    box-shadow: 0 0 0 3px rgba(27, 69, 87, 0.1);
}

/* Botón agregar al carrito */
.btn-agregar-carrito {
    background: linear-gradient(135deg, #1B4557, #0A8D8C);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-agregar-carrito:hover:not(:disabled) {
    background: linear-gradient(135deg, #0A8D8C, #1B4557);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 69, 87, 0.3);
}

.btn-agregar-carrito:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Breadcrumb personalizado */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: #1B4557;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Input cantidad */
#input-cantidad {
    width: 80px;
    text-align: center;
    font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

#input-cantidad:focus {
    border-color: #1B4557;
    box-shadow: 0 0 0 3px rgba(27, 69, 87, 0.1);
}

/* Variante actual seleccionada */
#variante-actual-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

/* Productos relacionados */
#productos-relacionados .card-producto-ml {
    height: 280px;
}

/* Responsive para producto.html */
@media (max-width: 768px) {
    .galeria-miniaturas {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .miniatura {
        width: 70px;
        height: 70px;
    }
    
    .btn-agregar-carrito, .btn-gradient {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    #productos-relacionados .card-producto-ml {
        height: 250px;
    }
}

/* Modal zoom mejorado */
#modalZoom .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#modal-miniaturas .img-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

#modal-miniaturas .img-thumbnail:hover {
    transform: scale(1.05);
}

#modal-miniaturas .img-thumbnail.border-primary {
    border-width: 3px !important;
}

/* Alerta temporal */
.alerta-temporal {
    z-index: 9999;
}
/* ============================================= */
/* ESTILOS ESPECÍFICOS PARA PRODUCTOS RELACIONADOS */
/* ============================================= */

#productos-relacionados .card-producto-ml {
    height: 320px; /* Un poco más alto que en index */
    margin-bottom: 0;
}

#productos-relacionados .card-image-container {
    height: 180px; /* Un poco más bajo que en index */
}

#productos-relacionados .card-content {
    padding: 15px !important;
    height: calc(100% - 180px) !important;
}

#productos-relacionados .producto-nombre {
    font-size: 0.9rem;
    min-height: 40px;
    max-height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#productos-relacionados .card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

#productos-relacionados .precio-actual {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B4557;
}

#productos-relacionados .envio-gratis {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
    margin-top: 2px;
}

/* Responsive para productos relacionados */
@media (max-width: 768px) {
    #productos-relacionados .card-producto-ml {
        height: 280px;
    }
    
    #productos-relacionados .card-image-container {
        height: 150px;
    }
    
    #productos-relacionados .card-content {
        height: calc(100% - 150px) !important;
        padding: 12px !important;
    }
    
    #productos-relacionados .producto-nombre {
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    #productos-relacionados .precio-actual {
        font-size: 1rem;
    }
}
/* ============================================= */
/* CORRECCIÓN DE COLORES INSTITUCIONALES ANMAGO */
/* Para añadir al final de ESTILO.CSS */
/* ============================================= */

/* === CORRECCIÓN DE COLOR PRIMARIO (#1B4557) EN TODOS LOS ELEMENTOS === */

/* Botones primarios */
.btn-primary,
.btn-gradient,
#btn-ver-mas {
    background: linear-gradient(135deg, #1B4557, #2A6A8F) !important;
    border-color: #1B4557 !important;
    color: white !important;
}

.btn-primary:hover,
.btn-gradient:hover,
#btn-ver-mas:hover {
    background: linear-gradient(135deg, #153a4a, #1B4557) !important;
    border-color: #153a4a !important;
}

/* Botones outline */
.btn-outline-primary {
    border-color: #1B4557 !important;
    color: #1B4557 !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #1B4557 !important;
    color: white !important;
}

/* Badges y etiquetas */
.badge.bg-primary,
#contador-todos,
#contador-productos {
    background-color: #1B4557 !important;
    color: white !important;
}

/* Enlaces y texto */
.text-primary,
a.text-primary,
a:hover.text-primary {
    color: #1B4557 !important;
}

/* Header y footer */
.header-sticky,
.footer {
    background: linear-gradient(135deg, #1B4557, #2A6A8F) !important;
}

/* Carrito flotante */
.btn-carrito-flotante {
    background: linear-gradient(135deg, #1B4557, #2A6A8F) !important;
}

/* === CORRECCIÓN ESPECÍFICA PARA EL HERO SECTION === */

/* Título principal */
.hero-title,
.display-5,
.display-6 {
    color: #1B4557 !important;
}

/* Subtítulo con gradiente */
.text-gradient-primary {
    background: linear-gradient(135deg, #1B4557, #2A6A8F) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Badge en hero */
.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(27, 69, 87, 0.1) !important;
    color: #1B4557 !important;
    border: 1px solid rgba(27, 69, 87, 0.2) !important;
}

/* === CORRECCIÓN PARA BANNERS INSTITUCIONALES === */

/* Banner principal */
.banner-institucional {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-bottom: 1px solid rgba(27, 69, 87, 0.1) !important;
}

/* Badges en banner */
.banner-institucional .badge {
    background: white !important;
    color: #1B4557 !important;
    border: 1px solid rgba(27, 69, 87, 0.2) !important;
}

.banner-institucional .badge.border-primary {
    border-color: #1B4557 !important;
}

/* === CORRECCIÓN PARA SECCIÓN DE REDES SOCIALES === */

/* Fondo azul institucional */
.bg-institucional {
    background-color: #1B4557 !important;
}

/* === CORRECCIÓN PARA TARJETAS DE PRODUCTO === */

/* Precios en tarjetas */
.precio-actual,
.text-primary.fw-bold {
    color: #1B4557 !important;
}

/* Botón "Ver" en tarjetas */
.btn-ver-producto {
    background: linear-gradient(135deg, #1B4557, #2A6A8F) !important;
}

/* Borde hover en tarjetas */
.card-producto-ml:hover {
    border-color: rgba(27, 69, 87, 0.3) !important;
}

/* === CORRECCIÓN PARA OFFCANVAS Y MODALES === */

/* Header de offcanvas */
.offcanvas-header.bg-primary {
    background: linear-gradient(135deg, #1B4557, #2A6A8F) !important;
}

/* === CORRECCIÓN PARA BARRA INFERIOR MOBILE === */

/* Iconos activos en barra inferior */
.navbar.fixed-bottom a.active {
    color: #1B4557 !important;
}

.navbar.fixed-bottom a.active::after {
    background: linear-gradient(90deg, #1B4557, #2A6A8F) !important;
}

/* === UTILIDADES DE COLOR RÁPIDAS === */

/* Clases de utilidad para usar en HTML */
.text-institucional { color: #1B4557 !important; }
.bg-institucional { background-color: #1B4557 !important; }
.border-institucional { border-color: #1B4557 !important; }

/* Gradiente institucional */
.bg-gradient-institucional {
    background: linear-gradient(135deg, #1B4557, #2A6A8F) !important;
}

/* === RESPONSIVE ADJUSTMENTS === */

@media (max-width: 768px) {
    /* Ajustes específicos para móvil */
    .btn-primary,
    .btn-gradient {
        background: linear-gradient(135deg, #1B4557, #2A6A8F) !important;
    }
    
    .navbar.fixed-bottom a.active {
        color: #1B4557 !important;
    }
}

/* === CORRECCIÓN PARA PLACEHOLDERS Y ESTADOS === */

/* Placeholder con color institucional */
::placeholder {
    color: rgba(27, 69, 87, 0.6) !important;
}

/* Estados focus */
.form-control:focus,
.buscador-header:focus {
    border-color: #1B4557 !important;
    box-shadow: 0 0 0 0.25rem rgba(27, 69, 87, 0.25) !important;
}

/* === CORRECCIÓN PARA SPINNERS Y LOADERS === */

/* Spinners con color institucional */
.spinner-border.text-primary {
    color: #1B4557 !important;
}

/* Skeletons con tono institucional */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(27, 69, 87, 0.05) 25%, 
        rgba(27, 69, 87, 0.1) 50%, 
        rgba(27, 69, 87, 0.05) 75%) !important;
}

/* === CORRECCIÓN FINAL - SOBREESCRIBIR COLORES POR DEFECTO === */

/* Esta regla es importante para asegurar que se use tu color */
:root {
    --bs-primary: #1B4557 !important;
    --bs-primary-rgb: 27, 69, 87 !important;
}

/* Forzar color en elementos de Bootstrap */
.bg-primary {
    background-color: #1B4557 !important;
}

.text-bg-primary {
    background-color: #1B4557 !important;
    color: white !important;
}
.categorias-menu-lista {
    max-height: 400px;
    overflow-y: auto;
}

.categoria-menu-item {
    transition: all 0.2s;
}

.categoria-menu-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}
/* PROTECCIÓN CONTRA REDIRECCIONES */
a[href*="PRODUCTO.HTML"] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.card-producto-ml a {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

.card-producto-ml a:hover {
    text-decoration: none !important;
    opacity: 0.9;
}

/* Deshabilitar cualquier JS interno en las cards */
.card-producto-ml a[onclick] {
    pointer-events: none !important;
}

/* Solo permitir el enlace principal */
.card-producto-ml > a {
    pointer-events: auto !important;
}
/* === AÑADIR ESTAS CLASES AL HTML SI ES NECESARIO === */
/*
En el Hero Section:
- Cambiar: <span class="text-primary"> por <span class="text-institucional">
- Cambiar: class="btn btn-primary" por class="btn btn-primary bg-gradient-institucional"

En Banners:
- Añadir: class="banner-institucional" al contenedor principal

En Sección de Redes:
- Cambiar: style="background-color: #1b4557;" por class="bg-institucional"
*/
/* === CORREGIR SUPERPOSICIÓN DE CONTROLES DE CARRUSEL (BOOTSTRAP) === */

/* Reducir área de clic y bajar z-index */
.carousel-control-prev,
.carousel-control-next {
    width: 40px !important;
    height: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(27, 69, 87, 0.6) !important;
    border-radius: 50% !important;
    margin: 0 10px !important;
    z-index: 5 !important; /* Menor que el botón ver */
}

/* Asegurar que el botón ver esté por encima */
.btn-ver-producto {
    position: relative;
    z-index: 20 !important;
}

/* El enlace de la tarjeta también debe estar por encima */
.card-producto-ml .card-link {
    position: relative;
    z-index: 15 !important;
}
