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

:root {
  --navy: #111827;           /* Negro / Carbón oscuro principal */
  --dark-navy: #0B0F19;      /* Fondo ultra oscuro */
  --nav-bar: #0F172A;        /* Barra secundaria oscura */
  --blue: #DC2626;           /* Rojo principal de ferretería / matafuegos */
  --bright-blue: #EF4444;    /* Rojo brillante para degradados */
  --cyan: #F87171;           /* Acento rojo claro / coral */
  --white: #FFFFFF;
  --light-bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --success: #00A650;
  --success-bg: #ECFDF5;
  --discount: #DC2626;
  --border: #E5E7EB;
  --gold: #F59E0B;
  --tag-fondo-1: #DC2626;    /* Fondo 1 de etiquetas / Más vendido */
  --tag-fondo-2: #EF4444;    /* Fondo 2 (degradé) de etiquetas */
  --tag-texto: #FFFFFF;      /* Color de texto de etiquetas */
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-hero: 18px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow-card: 0 8px 25px rgba(17, 24, 39, 0.06);
  --shadow-hover: 0 14px 35px rgba(220, 38, 38, 0.12);
  --shadow-btn: 0 4px 14px rgba(220, 38, 38, 0.35); /* Resplandor rojo en botones */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--light-bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: 70px; /* Para no tapar la bottom navigation en móvil */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
  .desktop-only-hidden,
  .mobile-bottom-nav {
    display: none !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1F2937 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  height: auto;
  padding: 10px 0;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.header-logo img,
.site-header-logo-img {
  height: var(--logo-height-pc, 58px);
  max-height: var(--logo-height-pc, 58px);
  max-width: var(--logo-max-width-pc, 270px);
  width: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-logo:hover img,
.header-logo:hover .site-header-logo-img {
  opacity: 0.95;
  transform: scale(1.015);
}

.header-search {
  flex: 1;
  max-width: 680px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form:focus-within {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35);
}

.search-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  padding: 8px 0;
}

.search-form input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: linear-gradient(135deg, var(--blue) 0%, var(--bright-blue) 100%);
  border: none;
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #E2E8F0;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 10px;
  border-radius: 8px;
}

.action-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.action-link i {
  width: 19px;
  height: 19px;
  color: var(--cyan);
}

.cart-button-action {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.cart-button-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--cyan);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 0 5px;
}

/* ==========================================================================
   NAVBAR DE CATEGORÍAS (Barra oscura secundaria)
   ========================================================================== */
.category-navbar {
  background: var(--nav-bar);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-left::-webkit-scrollbar {
  display: none;
}

.all-categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.all-categories-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.category-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.category-links a {
  font-size: 13px;
  color: #CBD5E1;
  font-weight: 400;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-links a:hover {
  color: var(--cyan);
}

.nav-shipping-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94A3B8;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-shipping-badge i {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

/* ==========================================================================
   HERO BANNER CAROUSEL
   ========================================================================== */
.hero-section {
  padding: 24px 0 16px;
}

.hero-slider-wrapper {
  position: relative;
  border-radius: var(--radius-hero);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(7, 27, 49, 0.15);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  background: #0B0F19;
}

.hero-slide {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  position: relative;
  overflow: hidden;
  line-height: 0;
  border-radius: var(--radius-hero);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.hero-slide-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-hero);
  aspect-ratio: 1440 / 360;
  max-height: 380px;
  transform: scale(1.02);
  transition: transform 1.2s ease-out;
}

.hero-slide.active .hero-slide-img {
  transform: scale(1);
}

.hero-slide:hover .hero-slide-img {
  transform: scale(1.015);
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.active {
  width: 26px;
  border-radius: 12px;
  background: var(--cyan);
}

/* ==========================================================================
   CATEGORÍAS DE ACCESO RÁPIDO (Icon Grid)
   ========================================================================== */
.quick-categories-section {
  padding: 14px 0 24px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--bright-blue);
}

.category-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FEF2F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  overflow: hidden;
  padding: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-card:hover .category-icon-box {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
}

.category-icon-box i {
  width: 22px;
  height: 22px;
}

.category-custom-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.category-card:hover .category-custom-img {
  transform: scale(1.08);
}

.category-card-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
}

/* ==========================================================================
   SECCIONES DE PRODUCTOS Y CARDS
   ========================================================================== */
.products-section {
  padding: 8px 0 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title-wrap {
  position: relative;
  padding-left: 14px;
}

.section-title-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--blue);
  border-radius: 4px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #1E293B;
  letter-spacing: -0.2px;
}

.section-see-all {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.section-see-all:hover {
  gap: 7px;
}

/* GRILLA DE PRODUCTOS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* TARJETA DE PRODUCTO */
.product-card {
  background: var(--card-background, #FFFFFF);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.badge-discount {
  background: linear-gradient(135deg, var(--blue) 0%, var(--bright-blue) 100%);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(8, 124, 240, 0.25);
  pointer-events: auto;
}

.badge-tag-special {
  background: linear-gradient(135deg, var(--tag-fondo-1), var(--tag-fondo-2));
  color: var(--tag-texto);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-favorite {
  background: var(--white);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: color 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

.btn-favorite:hover {
  color: #EF4444;
  transform: scale(1.1);
}

.btn-favorite.active {
  color: #EF4444;
  fill: #EF4444;
}

.product-card-image {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
}

.product-card-image img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-name {
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-card-name a {
  color: #333333;
}

.product-card-name a:hover {
  color: var(--blue);
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 1px;
}

.star-icon {
  width: 13px;
  height: 13px;
}

.star-icon.filled {
  color: var(--gold);
  fill: var(--gold);
}

.star-icon.half {
  color: var(--gold);
}

.star-icon.empty {
  color: #CBD5E1;
}

.rating-score {
  font-weight: 500;
  color: #64748B;
}

.reviews-count {
  color: var(--text-secondary);
}

/* Pricing */
.product-pricing {
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 22px;
  font-weight: 400;
  color: #333333;
  letter-spacing: -0.2px;
}

.old-price {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
}

.installments-text {
  font-size: 12.5px;
  font-weight: 400;
  color: #00A650;
  margin-bottom: 8px;
}

.shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  align-self: flex-start;
}

.shipping-badge i {
  width: 14px;
  height: 14px;
}

.card-actions-row {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-buy-card {
  flex: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--bright-blue) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(8, 124, 240, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-buy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 124, 240, 0.35);
}

.btn-add-cart-icon {
  background: #F0F6FF;
  color: var(--blue);
  border: 1px solid rgba(8, 124, 240, 0.2);
  border-radius: var(--radius-btn);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-cart-icon:hover {
  background: var(--blue);
  color: var(--white);
}

/* ==========================================================================
   CARRUSEL MÁS VENDIDOS
   ========================================================================== */
.bestsellers-wrapper {
  position: relative;
}

.carousel-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(7, 27, 49, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.carousel-nav-btn.prev {
  left: -18px;
}

.carousel-nav-btn.next {
  right: -18px;
}

.bestsellers-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 4px 10px;
}

.bestsellers-slider::-webkit-scrollbar {
  display: none;
}

.bestsellers-slider .product-card {
  min-width: 250px;
  flex: 0 0 calc(20% - 13px);
}

/* ==========================================================================
   BANNER PROMOCIONAL INFERIOR (Multi-dispositivo PC y Celular)
   ========================================================================== */
.promo-banner-section {
  padding: 16px 0 36px;
}

.promo-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-hero);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.16);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  background: #0B0F19;
}

.promo-slide {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  position: relative;
  overflow: hidden;
  line-height: 0;
  border-radius: var(--radius-hero);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  z-index: 1;
}

.promo-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.promo-slide-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
}

.promo-slide-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-hero);
  aspect-ratio: 1200 / 180;
  max-height: 220px;
  transform: scale(1.015);
  transition: transform 0.8s ease;
}

.promo-slide.active .promo-slide-img {
  transform: scale(1);
}

.promo-slide:hover .promo-slide-img {
  transform: scale(1.008);
}

.promo-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-dot.active {
  width: 24px;
  border-radius: 9999px;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  .header-top {
    min-height: 68px;
    height: auto;
    padding: 8px 0;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    min-width: 0;
  }
  .header-logo img,
  .site-header-logo-img {
    height: var(--logo-height-mob, 72px);
    max-height: var(--logo-height-mob, 72px);
    max-width: var(--logo-max-width-mob, 280px);
    width: auto;
    object-fit: contain;
    object-position: center;
  }
  .promo-banner-section {
    padding: 12px 0 24px;
  }
  .promo-slide-img {
    aspect-ratio: 600 / 200;
    max-height: none;
    border-radius: 12px;
  }
  .promo-slider-wrapper {
    border-radius: 12px;
  }
}

.promo-banner {
  background: linear-gradient(110deg, #111827 0%, #1F2937 50%, var(--blue) 100%);
  border-radius: var(--radius-hero);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.25);
  position: relative;
  overflow: hidden;
  gap: 20px;
}

.promo-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.promo-badge-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.promo-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--cyan);
  text-transform: uppercase;
}

.promo-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
}

.promo-subtitle {
  font-size: 13.5px;
  font-weight: 400;
  color: #CBD5E1;
}

.promo-center-visual {
  flex: 1;
  max-width: 320px;
  display: flex;
  justify-content: center;
}

.promo-center-visual img {
  max-height: 90px;
  width: auto;
}

.btn-promo-more {
  background: var(--blue);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-promo-more:hover {
  background: var(--bright-blue);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #94A3B8;
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  margin-bottom: 36px;
  align-items: start;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 400;
}

.footer-contact-item i {
  color: var(--cyan);
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  font-weight: 400;
}

/* ==========================================================================
   CART DRAWER & MODAL
   ========================================================================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 20, 38, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--white);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #FAFCFF;
}

.cart-header h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.cart-close-btn:hover {
  color: var(--text-primary);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.cart-item-img {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-img img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 400;
  color: #333333;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-number {
  font-size: 13px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: #FAFCFF;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
}

.cart-total-row.grand-total {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  margin-bottom: 18px;
}

.btn-whatsapp-checkout {
  width: 100%;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-whatsapp-checkout:hover {
  background: #20BA59;
  transform: translateY(-2px);
}

.empty-cart-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

.empty-cart-state i {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  color: #CBD5E1;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   SECCIÓN DE RESEÑAS DE CLIENTES (TESTIMONIALS)
   ========================================================================== */
.reviews-section {
  padding: 40px 0 20px;
}

.reviews-header-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.reviews-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.reviews-title {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.reviews-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  color: #92400E;
  font-weight: 600;
}

/* CARRUSEL DE RESEÑAS & TESTIMONIOS */
.reviews-carousel-wrapper {
  position: relative;
  width: 100%;
}

.reviews-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.reviews-track .review-card {
  flex: 0 0 calc((100% - 48px) / 4);
  max-width: calc((100% - 48px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.reviews-nav-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(7, 27, 49, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.reviews-nav-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.reviews-nav-btn.prev {
  left: -18px;
}

.reviews-nav-btn.next {
  right: -18px;
}

.reviews-nav-btn.disabled {
  opacity: 0.25;
  pointer-events: none;
  box-shadow: none;
}

/* Indicadores / Dots interactivos */
.reviews-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 24px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reviews-dot:hover {
  background: #94A3B8;
}

.reviews-dot.active {
  width: 22px;
  border-radius: 6px;
  background: var(--blue);
}

/* Tarjeta individual de reseña (más compacta, sobria y alineada) */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 220px;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.review-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #F1F5F9;
}

.review-user-info {
  flex: 1;
  min-width: 0;
}

.review-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.review-author-role {
  font-size: 11.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.review-stars-row {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #F59E0B;
  margin-bottom: 6px;
}

.review-stars-row svg {
  width: 13px;
  height: 13px;
  fill: #F59E0B;
}

.review-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #15803D;
  background: #DCFCE7;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 8px;
  width: fit-content;
}

.review-quote-text {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 12px;
  font-style: normal;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card-footer {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviews-trust-banner {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.trust-item i {
  color: var(--blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   SECCIÓN QUIÉNES SOMOS (TRAYECTORIA Y COMPROMISO)
   ========================================================================== */
.about-section {
  padding: 30px 0 50px;
}

.about-card-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.about-title {
  font-size: 26px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.about-lead-p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
}

.about-features-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature-text strong {
  display: block;
  font-size: 13.5px;
  color: #1E293B;
  margin-bottom: 2px;
}

.about-feature-text span {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
}

.about-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Columna Derecha: Tarjetas de Estadísticas */
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.about-stat-card {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-stat-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.about-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.about-stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 2px;
}

.about-stat-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.about-cert-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}

.about-cert-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.about-cert-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.about-cert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.about-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  color: #E2E8F0;
}

/* ==========================================================================
   SECCIÓN DE REELS & VIDEOS DEMOSTRATIVOS
   ========================================================================== */
.reels-section {
  padding: 32px 0 24px;
}

.reels-header-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.reels-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.reels-title {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.reels-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.reels-carousel-wrapper {
  position: relative;
  width: 100%;
}

.reels-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 18px;
}

.reels-track::-webkit-scrollbar {
  display: none;
}

.reels-track .reel-card {
  flex: 0 0 calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
  scroll-snap-align: start;
  box-sizing: border-box;
}

.reel-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
}

.reels-nav-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(7, 27, 49, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0F172A;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.reels-nav-btn:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.reels-nav-btn.prev {
  left: -20px;
}

.reels-nav-btn.next {
  right: -20px;
}

.reels-nav-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

.reel-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0F172A;
  overflow: hidden;
}

.reel-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.reel-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.reel-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #DC2626;
  background: #FEE2E2;
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

.reel-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin: 0;
}

.reel-card-desc {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   BOTONES DE REDES SOCIALES EN FOOTER
   ========================================================================== */
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.footer-social-btn:hover {
  transform: translateY(-2px) scale(1.08);
}

.footer-social-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.35);
}

.footer-social-fb {
  background: #1877F2;
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.35);
}

.footer-social-tt {
  background: #000000;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.footer-social-yt {
  background: #FF0000;
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.35);
}

.footer-social-wa {
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   CATÁLOGO GENERAL HOME - PESTAÑAS Y BOTÓN CARGAR MÁS
   ========================================================================== */
.catalogo-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.btn-filter-tab {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn-filter-tab:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

.btn-filter-tab.active {
  background: linear-gradient(135deg, var(--blue, #087CF0) 0%, var(--bright-blue, #00A8D8) 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(8, 124, 240, 0.25);
}

.btn-cargar-mas-catalogo {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  color: #1E293B;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-cargar-mas-catalogo:hover {
  background: #F8FAFC;
  border-color: var(--blue, #087CF0);
  color: var(--blue, #087CF0);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 124, 240, 0.15);
}


