/* TGR México - Custom Premium Stylesheet (Red, White, Black & Gray Theme) */

:root {
  --tgr-dark: #08080c;
  --tgr-dark-card: rgba(18, 18, 22, 0.85);
  --tgr-red: #e50914;
  --tgr-red-hover: #ff1f2a;
  --tgr-red-glow: rgba(229, 9, 20, 0.45);
  --tgr-text: #f9fafb;
  --tgr-text-muted: #9ca3af;
  --tgr-green: #25d366;
  --tgr-blue: #3b82f6;
  --tgr-gray-accent: #374151;
  --tgr-light-gray: #4b5563;
  --tgr-white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Transiciones globales */
a, button, .btn-category, .ref-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subpáginas - Configuración de Fondo y Tipografía */
.tgr-subpage {
  background: var(--tgr-dark);
  color: var(--tgr-text);
  font-family: 'Open Sans', sans-serif;
}

.tgr-title-red {
  color: var(--tgr-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tgr-title-red span {
  color: var(--tgr-red);
  text-shadow: 0 0 12px var(--tgr-red-glow);
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--tgr-dark-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  margin-bottom: 40px;
}

/* Carrusel de Banners (Bootstrap Carousel Overrides) */
#tgr-hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#tgr-hero-carousel .carousel-inner,
#tgr-hero-carousel .carousel-item,
#tgr-hero-carousel .item {
  width: 100%;
}

.hero-carousel-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.carousel-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.carousel-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-caption-custom {
  max-width: 800px;
  text-align: center;
  padding: 20px;
}

.carousel-caption-custom h2 {
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.carousel-caption-custom p {
  font-size: 2rem;
  color: var(--tgr-text-muted);
  margin-bottom: 30px;
}

/* Marquesina en Movimiento (Ticker) */
.ticker-wrap {
  width: 100%;
  background: linear-gradient(90deg, #08080c, var(--tgr-red), #08080c);
  overflow: hidden;
  height: 38px;
  line-height: 38px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 99;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  padding-right: 100%;
  animation: ticker 25s linear infinite;
  color: var(--tgr-white);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker span {
  display: inline-block;
  padding: 0 30px;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Selector de Marcas (Grid 3 filas x 2 columnas) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

/* Ocultar barra de scroll en navegadores */
.brand-grid::-webkit-scrollbar {
  height: 4px;
}
.brand-grid::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
.brand-grid::-webkit-scrollbar-thumb {
  background: var(--tgr-red);
  border-radius: 4px;
}

.brand-card {
  flex: 0 0 125px;
  min-height: 125px;
  scroll-snap-align: start;
  background: #ffffff !important;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: var(--tgr-red);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.25);
  background: #ffffff !important;
}

.brand-card.active {
  transform: translateY(-3px);
  border-color: var(--tgr-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.4), 0 8px 20px rgba(229, 9, 20, 0.3);
  background: #ffffff !important;
}

.brand-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: none !important;
  transition: all 0.3s ease;
}

.brand-card:hover img, .brand-card.active img {
  transform: scale(1.08);
}

.brand-card span {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #111827 !important;
}

/* Tarjetas de Refacciones (Displays y Baterías) */
.ref-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ref-card {
  flex: 1;
  max-width: 200px;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.ref-card i {
  font-size: 32px;
  color: var(--tgr-text-muted);
  margin-bottom: 10px;
}

.ref-card:hover, .ref-card.active {
  transform: translateY(-3px);
  border-color: var(--tgr-red);
  background: rgba(229, 9, 20, 0.06);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.15);
}

.ref-card:hover i, .ref-card.active i {
  color: var(--tgr-red);
  text-shadow: 0 0 10px var(--tgr-red-glow);
}

.ref-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--tgr-text);
  text-transform: uppercase;
}

/* Buscador e Inputs */
.search-container {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--glass-border);
  border-radius: 30px;
  padding: 14px 20px 14px 50px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.search-input:focus {
  border-color: var(--tgr-red);
  box-shadow: 0 0 12px var(--tgr-red-glow);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tgr-red);
  font-size: 18px;
}

/* Línea de Refacción Compacta (Lista de Resultados) */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.product-item-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 18px;
  gap: 15px;
}

.product-item-line:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(229, 9, 20, 0.3);
}

.product-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-item-title {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  margin-bottom: 3px;
}

.product-item-meta {
  font-size: 12px;
  color: var(--tgr-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-item-meta .badge-code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.product-item-meta .price-val {
  color: var(--tgr-red);
  font-weight: 700;
}

.product-item-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 110px;
}

/* Botón Agregar */
.btn-add-item {
  background: var(--tgr-red);
  color: #fff !important;
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(229, 9, 20, 0.2);
}

.btn-add-item:hover {
  background: var(--tgr-red-hover);
  transform: scale(1.05);
}

/* Controles de Cantidad Compactos */
.quantity-control {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--tgr-red);
  border-radius: 20px;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 0 8px var(--tgr-red-glow);
}

.quantity-btn {
  background: none;
  border: none;
  color: var(--tgr-text);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.quantity-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tgr-red);
}

.quantity-input {
  width: 32px;
  background: none;
  border: none;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

/* Controles de Cantidad en Catálogo */
.catalog-qty-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.catalog-qty-box .quantity-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 2px 4px;
  box-shadow: none;
}

.catalog-qty-box .quantity-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.catalog-qty-box .quantity-btn:hover {
  background: var(--tgr-red);
  color: #fff;
}

.catalog-qty-box .quantity-input {
  width: 42px;
  background: none;
  border: none;
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  outline: none;
}

/* Toast de Notificación Flotante */
.tgr-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #101018;
  border: 1px solid var(--tgr-red);
  border-left: 5px solid var(--tgr-red);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 99999999;
  transform: translateY(130%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  max-width: 400px;
}

.tgr-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.tgr-toast-content {
  font-size: 13px;
  line-height: 1.4;
  color: #f3f4f6;
}

.tgr-toast-btn {
  background: var(--tgr-red);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tgr-toast-btn:hover {
  background: var(--tgr-red-hover);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .tgr-toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* Floating Sticky Checkout Bar */
.tgr-floating-checkout-bar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 50px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 9, 20, 0.25);
  padding: 8px 12px 8px 20px;
  z-index: 9999;
  display: none;
  animation: tgrSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tgr-float-bar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tgr-float-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
}

.tgr-float-bar-btn {
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.tgr-float-bar-btn:hover {
  background: #20ba59;
  transform: scale(1.04);
}

@keyframes tgrSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 768px) {
  .tgr-floating-checkout-bar {
    left: 15px;
    right: 15px;
    bottom: 15px;
    transform: none;
    border-radius: 16px;
    padding: 10px 14px;
  }
  .tgr-float-bar-inner {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  .tgr-float-bar-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* Caja de Resumen */
.summary-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--glass-border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
}

.summary-row.total {
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tgr-red);
}

/* Formulario del Pedido */
.form-group label {
  color: var(--tgr-text);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control-tgr {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 15px;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.form-control-tgr:focus {
  border-color: var(--tgr-red);
  box-shadow: 0 0 8px var(--tgr-red-glow);
}

/* Botones Premium */
.btn-red {
  background: linear-gradient(135deg, var(--tgr-red), #a30009);
  color: #fff !important;
  font-weight: 700;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-red:hover {
  background: linear-gradient(135deg, var(--tgr-red-hover), var(--tgr-red));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

/* Botón WhatsApp de Enviar Pedido (Ajuste Perfecto Sin Desfase) */
.btn-whatsapp-submit,
#btnSubmitPedido {
  width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  background: #25d366 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  text-align: center !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.btn-whatsapp-submit:hover,
#btnSubmitPedido:hover {
  background: #20ba59 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55) !important;
}

.btn-whatsapp-submit i,
#btnSubmitPedido i {
  font-size: 20px !important;
  flex-shrink: 0;
}

/* Mantener .btn-gold para compatibilidad */
.btn-gold {
  background: linear-gradient(135deg, var(--tgr-red), #a30009);
  color: #fff !important;
  font-weight: 700;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--tgr-red-hover), var(--tgr-red));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

/* Tarjeta de Garantía */
.policy-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 25px;
  height: 100%;
}

.policy-card i {
  font-size: 35px;
  color: var(--tgr-red);
  margin-bottom: 15px;
  text-shadow: 0 0 10px var(--tgr-red-glow);
}

.policy-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.policy-card p {
  color: var(--tgr-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Tarjeta de Contacto */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tgr-red);
  font-size: 20px;
}

.contact-info-text h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: var(--tgr-text-muted);
  text-transform: uppercase;
}

.contact-info-text p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Menú Estilizado Fijo */
/* Menú Estilizado Fijo (Siempre Fixed para evitar vibraciones) */
#fh5co-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  margin-top: 0 !important;
  z-index: 1000 !important;
  background: rgba(8, 8, 12, 0.96) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0 !important;
}

/* Estado scrolled del Menú */
.scrolled #fh5co-menu {
  background: rgba(8, 8, 12, 0.96) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--glass-border);
}

/* En subpáginas forzar fondo oscuro inmediato en la barra */
.tgr-subpage #fh5co-menu {
  background: rgba(8, 8, 12, 0.96) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

/* Ajuste de espaciado superior del contenedor para evitar solapamiento */
#fh5co-page {
  margin-top: 70px !important;
}

/* Menú de Escritorio (Desktop Navigation Links) */
.tgr-nav-desktop {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
  align-items: center;
}

.tgr-nav-desktop li {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.tgr-nav-desktop li a {
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  position: relative;
  padding: 8px 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.tgr-nav-desktop li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  width: 0;
  height: 2px;
  background-color: var(--tgr-red);
  transition: width 0.3s ease;
}

.tgr-nav-desktop li a:hover {
  color: var(--tgr-red) !important;
}

.tgr-nav-desktop li a:hover::after {
  width: calc(100% - 8px);
}

.tgr-nav-desktop li.active a {
  color: var(--tgr-red) !important;
}

.tgr-nav-desktop li.active a::after {
  width: calc(100% - 8px);
}

.tgr-nav-desktop li.no-hover-line a::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
}
.tgr-nav-desktop li.no-hover-line a:hover {
  text-decoration: none !important;
}

.tgr-nav-desktop li a.btn-red,
.tgr-nav-desktop li.nav-item-pedido a {
  background: var(--tgr-red) !important;
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 !important;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3) !important;
}

.tgr-nav-desktop li a.btn-red:hover,
.tgr-nav-desktop li.nav-item-pedido a:hover {
  background: #ff1f2a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45) !important;
}

#fh5co-offcanvass ul li.no-hover-line a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--tgr-red) !important;
}

/* Ocultamiento dinámico del botón hamburguesa y menú de escritorio */
@media (min-width: 992px) {
  .fh5co-nav-toggle {
    display: none !important;
  }
  .tgr-nav-desktop {
    display: flex !important;
  }
  #fh5co-offcanvass {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
  }
  body.fh5co-overflow {
    overflow: auto !important;
  }
}

@media (max-width: 991px) {
  .fh5co-nav-toggle {
    display: block !important;
  }
  .tgr-nav-desktop {
    display: none !important;
  }
  #fh5co-offcanvass {
    display: block !important;
    visibility: visible !important;
  }
}

/* Hover de botón Hamburguesa */
.fh5co-nav-toggle:hover i,
.fh5co-nav-toggle:hover i::before,
.fh5co-nav-toggle:hover i::after {
  background: var(--tgr-red) !important;
}
.fh5co-nav-toggle:hover span {
  color: var(--tgr-red) !important;
}

/* Rediseño Menú Offcanvas Lateral (Estilo Premium Oscuro) */
#fh5co-offcanvass {
  background: rgba(12, 12, 18, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  color: var(--tgr-text) !important;
}

#fh5co-offcanvass ul li a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 16px 8px !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

#fh5co-offcanvass ul li a:hover, 
#fh5co-offcanvass ul li a:focus, 
#fh5co-offcanvass ul li a:active {
  color: var(--tgr-red) !important;
  border-bottom-color: var(--tgr-red) !important;
  padding-left: 15px !important;
}

#fh5co-offcanvass ul li.active a {
  color: var(--tgr-red) !important;
  border-bottom-color: var(--tgr-red) !important;
}

#fh5co-offcanvass .fh5co-offcanvass-close {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

#fh5co-offcanvass .fh5co-offcanvass-close i {
  color: var(--tgr-red) !important;
}

/* Estilos de Legibilidad en Tema Oscuro (Alto Contraste) */
body, .tgr-subpage, #fh5co-wrap {
  background: var(--tgr-dark) !important;
  color: var(--tgr-text) !important;
}

/* Garantizar que todos los encabezados y párrafos tengan color correcto */
h1, h2, h3, h4, h5, h6, .fh5co-lead, .fh5co-uppercase-sm {
  color: #ffffff !important;
}
p, span:not(.badge-code):not(.price-val), .fh5co-subM, .fh5co-sub {
  color: var(--tgr-text-muted) !important;
}

/* Acentos en títulos */
.tgr-title-red span, .fh5co-lead span {
  color: var(--tgr-red) !important;
  text-shadow: 0 0 10px var(--tgr-red-glow) !important;
}

/* Oscurecer Secciones del Home */
#fh5co-features,
#fh5co-features-2,
#fh5co-products,
#fh5co-best-sellers {
  background: var(--tgr-dark) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  border-top: 1px solid var(--glass-border) !important;
}

/* ── Sección Los Más Vendidos - Grid Responsivo ───────── */
#fh5co-best-sellers {
  padding: 6em 0;
  position: relative;
}

#fh5co-best-sellers .fh5co-section-heading h2 {
  font-size: clamp(2.6rem, 5vw, 4rem) !important;
  margin-bottom: 15px;
}

#fh5co-best-sellers .fh5co-section-heading p {
  font-size: clamp(1.4rem, 2vw, 1.8rem) !important;
  line-height: 1.6;
}

.best-sellers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  width: 100%;
  margin-bottom: 30px;
}

/* ── Carrusel Responsivo de Más Vendidos ───────── */
.best-sellers-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 45px;
  margin-bottom: 30px;
}

.tgr-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 20, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 25;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  outline: none;
}

.tgr-carousel-arrow:hover {
  background: var(--tgr-red, #e50914);
  border-color: var(--tgr-red, #e50914);
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.55);
}

.tgr-arrow-left {
  left: -8px;
}

.tgr-arrow-right {
  right: -8px;
}

#bestSellersCarousel .owl-stage {
  display: flex !important;
}

#bestSellersCarousel .owl-item {
  display: flex !important;
  flex: 1 0 auto;
  height: auto;
}

#bestSellersCarousel .item {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#bestSellersCarousel .best-sellers-card {
  width: 100%;
  height: 100%;
}

/* Dots del Carrusel (ocultos) */
#bestSellersCarousel .owl-dots {
  display: none !important;
}

@media (max-width: 768px) {
  .best-sellers-carousel-wrapper {
    padding: 0 25px;
  }
  .tgr-carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .tgr-arrow-left {
    left: -10px;
  }
  .tgr-arrow-right {
    right: -10px;
  }
}

.best-sellers-card {
  background: var(--glass-bg, rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.best-sellers-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.45) !important;
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.2) !important;
}

.best-sellers-card .product-img-white-card {
  margin-bottom: 16px;
  height: 200px;
  background: #ffffff !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.best-sellers-card .product-img-white-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.best-sellers-card:hover .product-img-white-card img {
  transform: scale(1.08);
}

.best-sellers-card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.best-sellers-card p {
  color: var(--tgr-text-muted, #888);
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 18px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
}

/* Tablet (max 991px) */
@media (max-width: 991px) {
  #fh5co-best-sellers {
    padding: 4.5em 0 !important;
  }
  .best-sellers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Móvil (max 650px) */
@media (max-width: 650px) {
  #fh5co-best-sellers {
    padding: 3.5em 0 !important;
  }
  .best-sellers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .best-sellers-card {
    padding: 18px;
  }
  .best-sellers-card .product-img-white-card {
    height: 180px;
    padding: 12px;
  }
  .best-sellers-card h3 {
    font-size: 17px;
  }
}

/* Móviles muy compactos (max 380px) */
@media (max-width: 380px) {
  .best-sellers-card {
    padding: 14px;
  }
  .best-sellers-card .product-img-white-card {
    height: 160px;
  }
}

#fh5co-features-2 {
  background: #0c0c12 !important; /* Ligeramente más claro para separar */
}

/* Tarjetas de Marcas en el Home (Fondo Blanco) */
.fh5co-feature {
  background: #ffffff !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  padding: 30px 15px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
  float: none !important;
  width: auto !important;
}

.fh5co-feature:hover {
  transform: translateY(-5px) !important;
  border-color: var(--tgr-red) !important;
  background: #fff5f5 !important;
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.2) !important;
}

.fh5co-feature img {
  transition: all 0.3s ease !important;
}

.fh5co-feature:hover img {
  transform: scale(1.05) !important;
}

/* Estilos de Características en Calidad Insuperable */
.fh5co-text-wrap .fh5co-icon {
  background: rgba(229, 9, 20, 0.1) !important;
  border: 1px solid rgba(229, 9, 20, 0.3) !important;
  width: 70px !important;
  height: 70px !important;
  line-height: 70px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: var(--tgr-red) !important;
  margin-bottom: 20px !important;
  float: none !important;
}

.fh5co-text-wrap .fh5co-icon i {
  color: var(--tgr-red) !important;
  text-shadow: 0 0 10px var(--tgr-red-glow);
}

/* Estilos para el nuevo catálogo de productos */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-filter {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
  background: var(--tgr-red);
  border-color: var(--tgr-red);
  box-shadow: 0 0 12px var(--tgr-red-glow);
}

.brand-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .brand-filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.brand-filter-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brand-filter-card:hover, .brand-filter-card.active {
  border-color: var(--tgr-red);
  background: rgba(229, 9, 20, 0.05);
}

.brand-filter-card img {
  height: 35px;
  object-fit: contain;
  filter: grayscale(0.5);
  transition: all 0.3s ease;
}

.brand-filter-card:hover img, .brand-filter-card.active img {
  filter: grayscale(0);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsividad general */
@media (max-width: 768px) {
  .carousel-caption-custom h2 {
    font-size: 2.8rem;
  }
  .carousel-caption-custom p {
    font-size: 1.4rem;
  }
  #tgr-hero-carousel {
    height: auto;
  }

  /* Ajuste de contenedores del pedido en móviles */
  .glass-panel {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 12px;
  }

  .brand-card {
    flex: 0 0 100px;
    padding: 12px 5px;
    border-radius: 12px;
  }

  .brand-card img {
    width: 42px;
    height: 42px;
  }

  .brand-card span {
    font-size: 11px;
  }

  .ref-grid {
    gap: 15px;
  }

  .ref-card {
    padding: 20px 10px;
    border-radius: 12px;
  }

  .ref-card i {
    font-size: 30px;
  }

  .ref-card h4 {
    font-size: 14px;
  }

  /* Línea de productos en móviles */
  .product-item-line {
    padding: 10px 12px;
    gap: 10px;
  }

  .product-item-title {
    font-size: 13.5px;
  }

  .product-item-meta {
    font-size: 11px;
    gap: 5px;
  }

  .product-item-action {
    min-width: 90px;
  }

  .btn-add-item {
    padding: 5px 12px;
    font-size: 10.5px;
  }

  .quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .quantity-input {
    width: 26px;
    font-size: 13px;
  }
}

/* Instagram Section styles */
.instagram-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-card:hover {
  transform: translateY(-5px);
  border-color: var(--tgr-red);
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.25);
}

.instagram-img-container {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.instagram-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instagram-card:hover .instagram-img-container img {
  transform: scale(1.1);
}

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

.instagram-card:hover .instagram-overlay {
  opacity: 1;
}

.instagram-overlay i {
  font-size: 36px;
  color: var(--tgr-red);
  margin-bottom: 8px;
  text-shadow: 0 0 15px var(--tgr-red-glow);
}

.instagram-overlay span {
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ocultar linea hover de boton pedido */
.tgr-nav-desktop li.no-hover-line a::after {
  display: none !important;
}

/* ── WhatsApp Nav Button ───────────────────────────── */
.btn-whatsapp-nav {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #25D366 !important;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
  margin: 0 !important;
}
.btn-whatsapp-nav:hover {
  background: #1ebc57 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
  color: #fff !important;
}
.btn-whatsapp-nav i {
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-block;
}

/* ── Global Site Fade In ───────────────────────────── */
body {
  animation: siteFadeIn 0.6s ease-out forwards;
}

@keyframes siteFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Hero Banners con Difuminado y Parallax ────────── */
#fh5co-hero {
  position: relative;
  overflow: hidden;
}

#fh5co-hero::after,
.about-hero::after,
.tgr-hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent 0%, rgba(8, 8, 12, 0.6) 50%, #08080c 100%);
  pointer-events: none;
  z-index: 5;
}

.about-hero {
  background-attachment: fixed !important;
  background-position: center center !important;
  background-size: cover !important;
}

/* ── Hero Carousel Fade Smooth Transition ─────────── */
.carousel-fade .carousel-inner .item {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  left: 0 !important;
  transform: translate3d(0, 0, 0) !important;
}

.carousel-fade .carousel-inner .active {
  opacity: 1;
}

.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  left: 0 !important;
  opacity: 0;
  z-index: 1;
}

.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}

/* ── Texto Hero a la Izquierda Limpio (Sin Recuadro) ─ */
.tgr-hero-caption-left {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 15;
  text-align: left;
  max-width: 780px;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-logo-tag {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95));
  animation: heroLogoFade 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroLogoFade {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-clean-title {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  text-transform: none;
  margin: 0;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85);
  animation: heroTextParallax 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-clean-title span {
  color: var(--tgr-red);
  text-shadow: 0 0 35px rgba(229, 9, 20, 0.65), 0 4px 25px rgba(0, 0, 0, 0.95);
}

@keyframes heroTextParallax {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.carousel-fade .carousel-inner .item .hero-logo-tag {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.carousel-fade .carousel-inner .item.active .hero-logo-tag {
  opacity: 1;
  transform: translateY(0);
}

.carousel-fade .carousel-inner .item .hero-clean-title {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.carousel-fade .carousel-inner .item.active .hero-clean-title {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero-logo-tag {
    height: 50px;
    margin-bottom: 15px;
  }
  .hero-clean-title {
    font-size: 44px;
  }
  .tgr-hero-caption-left {
    left: 6%;
    max-width: 650px;
  }
}

@media (max-width: 992px) {
  .hero-logo-tag {
    height: 44px;
    margin-bottom: 12px;
  }
  .tgr-hero-caption-left {
    left: 5%;
    max-width: 85%;
  }
  .hero-clean-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  #fh5co-hero::after,
  .about-hero::after,
  .tgr-hero-banner::after {
    height: 55px;
  }
  .hero-logo-tag {
    height: 32px;
    margin-bottom: 8px;
  }
  .tgr-hero-caption-left {
    left: 4%;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 92%;
  }
  .hero-clean-title {
    font-size: 20px;
    line-height: 1.18;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95);
  }
  #tgr-hero-carousel .carousel-indicators {
    bottom: 5px !important;
    margin-bottom: 0 !important;
  }
  #tgr-hero-carousel .carousel-indicators li {
    width: 8px !important;
    height: 8px !important;
    margin: 1px 3px !important;
  }
}

@media (max-width: 480px) {
  #fh5co-hero::after {
    height: 35px;
  }
  .hero-logo-tag {
    height: 24px;
    margin-bottom: 5px;
  }
  .hero-clean-title {
    font-size: 15px;
    line-height: 1.15;
    letter-spacing: -0.3px;
  }
  .tgr-hero-caption-left {
    left: 4%;
    right: 4%;
    max-width: 92%;
  }
}

@media (max-width: 360px) {
  .hero-logo-tag {
    height: 20px;
    margin-bottom: 3px;
  }
  .hero-clean-title {
    font-size: 13px;
    line-height: 1.12;
  }
}

/* ── Cuadrícula del Catálogo adaptada para la columna de Pedido ─── */
#pedido-app-container .catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

@media (max-width: 1200px) {
  #pedido-app-container .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  #pedido-app-container .catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Contenedor Blanco para Productos en Catálogo ─── */
.product-img-white-card {
  background: #ffffff !important;
  border-radius: 12px;
  padding: 15px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-img-white-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.25);
}

.product-img-white-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-img-white-card:hover img {
  transform: scale(1.08);
}

.expand-photo-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.product-img-white-card:hover .expand-photo-hint {
  opacity: 1;
  background: var(--tgr-red);
}

/* ── Selector de Calidades para Catálogo (Sin repetidos) ── */
.tgr-quality-pills-box {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.tgr-quality-pill {
  background: rgba(255, 255, 255, 0.07);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
}

.tgr-quality-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.tgr-quality-pill.active {
  background: var(--tgr-red, #e50914) !important;
  color: #ffffff !important;
  border-color: var(--tgr-red, #e50914) !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.45);
}

/* ── Counters Section ─────────────────────────────── */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 50px 0;
}
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 35px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tgr-red), transparent);
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.stat-icon {
  font-size: 38px;
  color: var(--tgr-red);
  margin-bottom: 15px;
  display: inline-block;
  text-shadow: 0 0 20px var(--tgr-red-glow);
}
.stat-number {
  font-size: 4.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.stat-label {
  color: var(--tgr-text-muted);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ── Certifications Section ────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 35px;
}
.cert-card {
  background: rgba(18, 18, 24, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
}
.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--tgr-red);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.15);
}
.cert-badge-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: var(--tgr-red);
  font-size: 30px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-card h4 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cert-card p {
  color: var(--tgr-text-muted);
  font-size: 1.35rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Lightbox Modal for Catalog ────────────────────── */
.tgr-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.tgr-modal.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tgr-modal-content {
  position: relative;
  max-width: 620px;
  width: 92%;
  margin: auto !important;
  background: #101018;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.tgr-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  width: 38px;
  height: 38px;
  line-height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.tgr-modal-close:hover {
  background: var(--tgr-red);
  color: #fff;
  transform: rotate(90deg);
}

.tgr-modal-img {
  max-width: 100%;
  width: auto;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  margin: 0 auto 20px auto;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tgr-modal-title {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tgr-modal-desc {
  color: var(--tgr-text-muted);
  font-size: 1.5rem;
  margin-bottom: 22px;
}

/* ── Sucursales y Mapa ────────────────────────────── */
.sucursal-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sucursal-card:hover {
  transform: translateY(-4px);
  border-color: var(--tgr-red);
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.2);
}
.sucursal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.sucursal-badge {
  background: var(--tgr-red);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sucursal-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.sucursal-info {
  margin-bottom: 18px;
}
.sucursal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--tgr-text);
  font-size: 1.45rem;
  line-height: 1.5;
}
.sucursal-info-item i {
  color: var(--tgr-red);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}
.sucursal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-maps {
  flex: 1;
  min-width: 140px;
  background: #1a73e8;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-maps:hover {
  background: #1558b0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 115, 232, 0.4);
}
.btn-sucursal-wa {
  flex: 1;
  min-width: 140px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-sucursal-wa:hover {
  background: #1ebc57;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* ── Unified Footer Social Icons ───────────────────── */
.social-icons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 15px !important;
  margin-top: 20px !important;
}

.social-icons a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  font-size: 18px !important;
  border: 1px solid var(--glass-border) !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.social-icons a:hover {
  background: var(--tgr-red) !important;
  color: #fff !important;
  border-color: var(--tgr-red) !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4) !important;
}

/* ── Interactive Map Box ───────────────────────────── */
.interactive-map-wrapper {
  background: #101018;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.interactive-map-container {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.interactive-map-container iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
  filter: invert(90%) hue-rotate(180deg) contrast(1.1);
  border-radius: 14px;
}
.map-pins-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.map-pin-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.map-pin-btn:hover, .map-pin-btn.active {
  background: var(--tgr-red);
  border-color: var(--tgr-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229,9,20,0.3);
}

