* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body {
  background: #f5f8fc;
  color: #0f172a;
}



.header {
  background: linear-gradient(135deg, #061224, #0b2a4a);
  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 40px; /* espacio interno */

  width: calc(100% - 70px); /* 👈 se achica */
  max-width: 2000px;        /* 👈 límite */
  margin: 0 auto;           /* 👈 centrado */

  border-radius: 18px 18px 0 0;
}
.logo-box h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.search-box {
  width: 480px;
  height: 48px;

  border-radius: 12px;
  background: white;

  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.logo-mark {
  width: 75px;   /* 👈 tamaño real */
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img {
  width: 100%;   /* 👈 sin trucos */
  height: auto;
  object-fit: contain;
  transform: none;
}
.logo-mark .hex {
  fill: #0d6efd;
}

.logo-mark .node {
  fill: white;
}

.logo-mark .line {
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-box h1 {
  font-size: 28px;
  line-height: 1;
  color: #1e88ff; /* _repuesto azul */
}

.logo-box h1 span {
  color: white; /* Pixen blanco */
}

.logo-box p {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 5px;
}

.search-box {
  width: 520px;
  height: 54px;
  background: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  padding: 0 0 0 18px;
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  overflow: visible;
  z-index: 9999;
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  height: 100%;
  font-size: 14px;
  color: #334155;
}

.search-btn {
  width: 56px;
  height: 54px;
  border: none;
  background: #0d6efd;
  color: white;
  border-radius: 0 9px 9px 0;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: white;
  border: none;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  padding: 8px 4px;
}

.cart-btn:hover {
  color: #dbeafe;
}

.cart-btn .cart-icon {
  font-size: 23px;
  line-height: 1;
}

#cart-count {
  position: absolute;
  top: 1px;
  left: 18px;
  background: #0d6efd;
  color: white;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.nav {
  background: white;

  display: flex;
  align-items: center; /* centra vertical */
  gap: 25px;

  height: auto; /* 👈 CLAVE */
  padding: 14px 35px; /* 👈 espacio arriba y abajo */

  box-shadow: 0 5px 25px rgba(15,23,42,.08);
}
.category-btn {
  padding: 12px 24px; /* 👈 un poco menos alto */
}
.nav a {
  color: #0f172a;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  transition: .2s;
}

.nav a:hover {
  background: #eef5ff;
  color: #0d6efd;
}

.nav .active {
  background: #eef5ff;
  color: #0d6efd;
}

.category-menu {
  position: relative;
}

.category-btn {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 15px 26px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(13,110,253,.25);
}

.category-dropdown {
  position: absolute;
  top: 58px;
  left: 0;
  width: 240px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  overflow: hidden;
  display: none;
  z-index: 3000;
}

.category-dropdown.active {
  display: block;
}

.category-dropdown button {
  width: 100%;
  padding: 15px 18px;
  background: white;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: bold;
  color: #0f172a;
}

.category-dropdown button:hover {
  background: #eef5ff;
  color: #0d6efd;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  padding: 10px 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: 0.2s;
}

.whatsapp-btn:hover {
  background: rgba(255,255,255,0.12);
}

.wpp-svg {
  width: 22px;
  height: 22px;
  fill: #25D366;
}

.wpp-text {
  display: flex;
  flex-direction: column;
}

.wpp-text span {
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.wpp-text small {
  color: #22c55e;
  font-size: 12px;
}

.dot-wpp {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
}

.hero {
  width: 100%;
  max-width: 1400px;
  margin: 24px auto; /* centra perfecto */
  
  height: 420px;
  border-radius: 18px;
  overflow: hidden;

  background:
    linear-gradient(90deg, rgba(5, 30, 75, .98) 0%, rgba(5, 30, 75, .85) 36%, rgba(5, 30, 75, .12) 75%),
    url("https://images.unsplash.com/photo-1603732551658-5fabbafa84eb?q=80&w=1600&auto=format&fit=crop");

  background-size: cover;
  background-position: center;

  color: white;
  padding: 58px 55px;
  position: relative;
}

.hero h2 {
  font-size: 42px;
  max-width: 390px;
  line-height: 1.15;
  font-weight: 900;
}

.hero h2 span {
  color: white;
}

.hero p {
  margin-top: 18px;
  font-size: 17px;
  max-width: 390px;
  line-height: 1.45;
  color: #dbeafe;
}

.badges {
  margin-top: 35px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badges span {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 50%;
}

.dot.active {
  width: 28px;
  border-radius: 30px;
  background: #0d6efd;
}

.categories,
.products-section,
.product-detail {
  margin: 28px 35px;
  padding: 28px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,.07);
}

.categories h2,
.section-head h2 {
  font-size: 24px;
}

.category-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-card {
  height: 130px;
  background: #f7faff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  font-size: 36px;
}

.cat-card p {
  font-size: 14px;
  font-weight: bold;
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: #0d6efd;
  box-shadow: 0 12px 25px rgba(13,110,253,.12);
}

.benefits {
  margin: -60px 35px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 10;
}

.benefit-card {
  background: white;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(15,23,42,.12);
  border: 1px solid #e2e8f0;
  transition: 0.2s;
}

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

.icon-box {
  width: 48px;
  height: 48px;
  background: #0d6efd;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(13,110,253,.35);
}

.benefit-card h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.benefit-card p {
  font-size: 13px;
  color: #64748b;
}

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

.section-head a {
  color: #0d6efd;
  font-weight: bold;
  cursor: pointer;
}

.products-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 25px;
  align-items: start;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}

.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(15,23,42,.12);
}

.product-img {
  height: 125px;
  background: #f7faff;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 55px;
  margin-bottom: 14px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 🔥 clave */
}
.product-card h3 {
  font-size: 15px;
  min-height: 42px;
}

.price {
  color: #0d6efd;
  font-size: 17px;
  font-weight: 800;
  margin: 12px 0;
}

.add-btn {
  width: 100%;
  background: #0d6efd;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
}

.tools-banner {
  background: linear-gradient(160deg, #061224, #0d3b78);
  color: white;
  border-radius: 20px;
  padding: 30px;
  min-height: 360px;
}

.tools-banner h2 {
  font-size: 28px;
}

.tools-banner p {
  margin: 20px 0;
  color: #dbeafe;
}

.tools-banner button {
  background: white;
  color: #0d6efd;
  border: none;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: bold;
}

.tools-img {
  text-align: center;
  font-size: 65px;
  margin-top: 70px;
}

.cart-panel {
  position: fixed;
  right: -380px;
  top: 0;
  width: 360px;
  height: 100vh;
  background: white;
  color: #0f172a;
  padding: 25px;
  z-index: 1000;
  transition: .3s ease;
  overflow-y: auto;
  box-shadow: -15px 0 40px rgba(0,0,0,.18);
}

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

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.cart-head button {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr 28px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.cart-img {
  width: 58px;
  height: 58px;
  background: #f1f5f9;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.cart-item p {
  color: #64748b;
  font-size: 13px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-controls button {
  width: 25px;
  height: 25px;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

.delete {
  border: none;
  background: none;
  color: #ef4444;
  cursor: pointer;
}

.subtotal {
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.checkout {
  margin-top: 20px;
  width: 100%;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-weight: bold;
  cursor: pointer;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.suggestions-box {
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: white;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  display: none;
  overflow: hidden;
  z-index: 3000;
}

.suggestions-box.active {
  display: block;
}

.suggestion-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
}

.suggestion-item:hover {
  background: #f7faff;
}

.suggestion-icon {
  font-size: 26px;
}

.suggestion-name {
  font-weight: bold;
}

.suggestion-price {
  color: #0d6efd;
  margin-top: 4px;
  font-size: 13px;
}

.results-hero {
  margin: 28px 35px;
  background: linear-gradient(135deg, #061224, #0d3b78);
  color: white;
  padding: 45px;
  border-radius: 22px;
}

.results-hero h2 {
  font-size: 34px;
}

.results-hero p {
  color: #dbeafe;
  margin-top: 10px;
}

.detail-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 45px;
  background: white;
}

.detail-image {
  height: 420px;
  background: #f7faff;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 130px;
}

.detail-category {
  background: #eef5ff;
  color: #0d6efd;
  padding: 8px 13px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 15px;
}

.detail-info h2 {
  font-size: 38px;
}

.detail-price {
  font-size: 34px;
  color: #0d6efd;
  font-weight: 900;
  margin: 18px 0;
}

.detail-description {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 25px;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.detail-specs div {
  background: #f7faff;
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 14px;
}

.detail-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.buy-wpp {
  background: #22c55e;
  color: white;
  border: none;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
}

.floating-wpp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: .2s;
  z-index: 5000;
}

.floating-wpp:hover {
  transform: scale(1.08);
}

.floating-wpp svg {
  width: 28px;
  height: 28px;
}

.footer {
  margin-top: 35px;
  background: #061224;
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 35px 80px;
  gap: 40px;
}

.footer p {
  color: #cbd5e1;
  margin-top: 5px;
}

.no-results,
.empty-cart {
  color: #64748b;
}

@media (max-width: 900px) {
  .top-bar {
    display: none;
  }

  .header {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .logo-box {
    justify-content: center;
  }

  .search-box {
    width: 100%;
  }

  .header-actions {
    justify-content: center;
  }

  .nav {
    height: auto;
    padding: 14px;
    gap: 10px;
    overflow-x: auto;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero {
    margin: 16px;
    height: auto;
    min-height: 330px;
    padding: 35px 25px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .badges {
    gap: 10px;
  }

  .categories,
  .products-section,
  .product-detail,
  .benefits,
  .results-hero {
    margin: 16px;
    padding: 20px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .tools-banner {
    display: none;
  }

  .product-img {
    height: 105px;
    font-size: 42px;
  }

  .product-card {
    padding: 12px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .price {
    font-size: 15px;
  }

  .add-btn {
    font-size: 12px;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-image {
    height: 260px;
    font-size: 85px;
  }

  .detail-info h2 {
    font-size: 28px;
  }

  .detail-specs {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    flex-direction: column;
  }

  .cart-panel {
    width: 88%;
    right: -100%;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 25px;
  }
}


.hero h2 {
  font-size: 42px;
  max-width: 390px;
  line-height: 1.15;
  font-weight: 900;
}

.hero h2 span {
  color: white;
}

.hero p {
  margin-top: 18px;
  font-size: 17px;
  max-width: 390px;
  line-height: 1.45;
  color: #dbeafe;
}

.hero-btn {
  margin-top: 12px;
  background: white;
  color: #0f2f66;
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  font-size: 15px;
    text-decoration: none;

  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-btn:hover {
  transform: translateY(-2px);
}

.badges,
.hero-dots {
  display: none !important;
}
.icon-box svg {
  width: 22px;
  height: 22px;
}
.hero-btn svg {
  width: 18px;
  height: 18px;
}
.whatsapp-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  padding: 10px 16px;
  border-radius: 16px;
  text-decoration: none;

  backdrop-filter: blur(8px);
  transition: 0.2s;
}

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

.wpp-icon {
  width: 38px;
  height: 38px;
  background: #25D366;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.wpp-icon svg {
  width: 20px;
  height: 20px;
}

.wpp-text {
  display: flex;
  flex-direction: column;
}

.wpp-text span {
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.wpp-text small {
  color: #22c55e;
  font-size: 12px;
}
.search-btn svg {
  width: 22px;
  height: 22px;
}
.search-box {
  position: relative;
}

.suggestions-box {
  position: absolute;
  top: 62px;
  left: 0;
  width: 100%;
  background: white;
  color: #0f172a;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  display: none;
  overflow: hidden;
  z-index: 9999;
}

.suggestions-box.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
}

.suggestion-item:hover {
  background: #f7faff;
}

.suggestion-icon {
  font-size: 25px;
}

.suggestion-name {
  font-weight: 800;
  font-size: 14px;
}

.suggestion-price {
  color: #0d6efd;
  font-size: 13px;
  margin-top: 4px;
}
.header {
  overflow: visible;
}

.suggestions-box {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  background: white;
  color: #0f172a;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  display: none;
  overflow: hidden;
  z-index: 99999;
}

.suggestions-box.active {
  display: block;
}
.cart-panel {
  z-index: 10000;
}

.overlay {
  z-index: 9998;
}

.search-box,
.header,
.nav {
  z-index: auto;
}
.logo-box {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0px;
}

.product-card {
  position: relative;
}

.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #22c55e;
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  z-index: 5;
}
.discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef233c;
  color: white;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
/* HEADER FINAL LIMPIO */
.header {
  width: calc(100% - 70px);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 !important;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: block;
  background: transparent;
}

.header .top-bar {
  width: 100%;
  height: 26px;
  padding: 6px 70px;
  background: #061224;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.header-main {
  width: 100%;
  background: linear-gradient(135deg, #061224, #0b2a4a);
  display: grid;
  grid-template-columns: 1fr 520px 1fr;
  align-items: center;
  gap: 30px;
  padding: 18px 70px;
}

.header-main .logo-box {
  justify-self: start;
}

.header-main .search-box {
  justify-self: center;
  width: 520px;
}

.header-main .header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav {
  width: calc(100% - 70px);
  max-width: 1600px;
  margin: 0 auto 18px;
  border-radius: 0 0 20px 20px;
  height: 58px;
  padding: 0 70px;
}

.hero,
.benefits,
.categories,
.products-section,
.product-detail,
.results-hero,
.contact-section,
.offers-hero,
.news-hero {
  width: calc(100% - 70px);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* ACHICAR BLOQUE COMPLETO DEL HEADER */
.header {
  width: 78% !important;      /* 👈 esto sí achica el bloque */
  max-width: 1400px !important;
  margin: 0 auto !important;
}
/* HEADER + NAV MISMO ANCHO */
.header,
.nav {
  width: 78% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.header {
  border-radius: 20px 20px 0 0 !important;
}

.nav {
  border-radius: 0 0 20px 20px !important;
}
.hero,
.benefits,
.categories,
.products-section,
.offers-hero,
.news-hero {
  width: 78% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ALINEAR DETALLE CON HEADER */
.product-detail {
  width: 78% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* HACER MÁS COMPACTAS LAS CAJAS */
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, auto); /* 👈 ya no ocupa todo */
  gap: 10px;
}

.detail-specs div {
  padding: 10px 14px !important;
  width: fit-content !important; /* 👈 clave */
  min-width: 220px;
}

/* BOTONES MÁS COMPACTOS */
.detail-actions {
  display: flex;
  flex-direction: column; /* 👈 uno debajo del otro */
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}

/* BOTÓN AZUL MÁS CORTO */
.detail-actions .add-btn {
  width: 320px !important;
}

/* BOTÓN WHATSAPP DEBAJO */
.buy-wpp {
  width: 220px !important;
}
/* ACERCAR LAS DOS COLUMNAS */
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, max-content); /* 👈 clave */
  gap: 10px 40px; /* menos espacio entre columnas */
}

/* HEADER FIJO */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* NAV TAMBIÉN FIJO (opcional pero recomendado) */
.nav {
  position: sticky;
  top: 80px; /* 👈 ajusta según altura del header */
  z-index: 999;
}

/* HEADER FIJO */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* NAV PEGADO DEBAJO DEL HEADER */
.nav {
  position: sticky;
  top: 80px; /* 👈 altura del header */
  z-index: 999;
}

/* HEADER Y NAV FIJOS AL HACER SCROLL */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
}

.nav {
  position: fixed !important;
  top: 136px !important; /* altura del header */
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9998 !important;
}

/* espacio para que el contenido no quede debajo del header */
body {
  padding-top: 175px !important;
}
.nav {
  padding-bottom: 12px;
}
/* ARREGLO FINAL NAV CENTRADO */
.nav {
  height: 72px !important;
  padding: 12px 70px 18px 70px !important;
  display: flex !important;
  align-items: center !important;
}

.category-btn {
  height: 46px !important;
  padding: 0 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hero,
.categories, 
.products-section,
.offers-hero,
.news-hero,
.product-detail,
.buy-pill,
.results-hero{
  margin-top: 50px !important;
}

/* CARRITO POR ENCIMA DEL HEADER */
.overlay {
  z-index: 20000 !important;
}

.cart-panel {
  z-index: 20001 !important;
}

.header,
.nav {
  z-index: 9999 !important;
}
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 30000; /* MÁS alto que todo */
}
/* ARREGLAR SUGERENCIAS DEL BUSCADOR */
.header,
.header-main,
.search-box {
  overflow: visible !important;
}

.search-box {
  position: relative !important;
  z-index: 50000 !important;
}

.suggestions-box {
  position: absolute !important;
  top: 54px !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 60000 !important;

  background: white !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.22) !important;
}

.nav {
  z-index: 1000 !important;
}
/* CARRITO DISEÑO PRO */
.cart-panel {
  width: 420px !important;
  padding: 28px !important;
  border-radius: 24px 0 0 24px;
  background: #ffffff !important;
}

.cart-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.cart-head h2 {
  font-size: 26px;
  font-weight: 900;
}

.cart-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  grid-template-columns: 62px 1fr 28px !important;
}

.cart-img {
  width: 62px !important;
  height: 62px !important;
  border-radius: 16px !important;
  background: white !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
}

.qty-controls button {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-weight: 900;
}

.subtotal {
  font-size: 18px;
  border-top: 1px solid #e5e7eb;
}

.checkout {
  height: 52px;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #0d6efd, #0057d9) !important;
  font-size: 15px;
}

.secure-box {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
}
/* CERRAR BIEN EL CARRITO */
.cart-panel {
  right: -460px !important;
}

.cart-panel.active {
  right: 0 !important;
}
.footer {
  margin-top: 70px;
  background: linear-gradient(135deg, #061224, #0d3b78);
  color: white;
  border-radius: 28px 28px 0 0;
  padding: 50px 70px 20px;
}

.footer-content {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
}

.footer-brand img {
  width: 70px;
  margin-bottom: 12px;
}

.footer h3 {
  font-size: 26px;
  margin: 0 0 8px;
}

.footer h4 {
  font-size: 17px;
  margin-bottom: 16px;
}

.footer p,
.footer a {
  color: #dbeafe;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}

.footer a:hover {
  color: white;
}

.footer-whatsapp,
.footer-email {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
}

.footer-whatsapp {
  background: #22c55e;
  color: white !important;
}

.footer-email {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
}

.footer-bottom {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
}

@media (max-width: 900px) {
  .footer {
    padding: 40px 24px 18px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
html, body {
  min-height: 100%;
}

body {
  margin: 0;
  padding-top: 175px !important;
  background: #f5f8fc;
}

main {
  flex: 1;
}

.footer {
  margin-bottom: 0 !important;
}
/* FOOTER SIEMPRE ABAJO */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-top: 175px !important;
  background: #f5f8fc;

  display: flex !important;
  flex-direction: column !important;
}

/* hace que el contenido empuje el footer */
main,
.contact-section,
.product-detail,
.products-section,
.results-page {
  flex-shrink: 0;
}

/* footer pegado abajo si la página tiene poco contenido */
.footer {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 20px;
}
.results-hero {
  max-width: 1400px;
  margin: 20px auto;   /* 👈 centra */
  padding: 30px 40px;
  border-radius: 20px;
}
/* FOOTER ORDENADO */
.footer {
  width: 100% !important;
  margin-top: 70px !important;
  background: linear-gradient(135deg, #061224, #0d3b78) !important;
  color: white !important;
  border-radius: 28px 28px 0 0 !important;
  padding: 45px 0 22px !important;
  display: block !important;
}

.footer-content {
  width: 78% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr !important;
  gap: 45px !important;
  align-items: start !important;
}

.footer-brand img {
  width: 90px;     /* 👈 más grande */
  height: 70px;
  object-fit: contain; /* 👈 evita que se deforme */
  margin-bottom: 6px;
}

.footer-brand h3 {
  font-size: 24px;
  margin: 0;           /* 👈 elimina espacio */
  margin-top: 6px;     /* 👈 opcional: ajustás fino */
}
.footer-brand p {
  max-width: 230px !important;
}

.footer h4 {
  font-size: 16px !important;
  font-weight: 900 !important;
  margin-bottom: 16px !important;
}

.footer p,
.footer a {
  color: #dbeafe !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  margin-bottom: 9px !important;
}

.footer-links a:hover {
  color: white !important;
  transform: translateX(3px);
}

.footer-contact {
  max-width: 180px !important;
}

.footer-whatsapp,
.footer-email {
  width: 100% !important;
  display: block !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  text-align: center !important;
  font-weight: 900 !important;
}

.footer-whatsapp {
  background: #22c55e !important;
  color: white !important;
}

.footer-email {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: white !important;
}

.footer-bottom {
  width: 78% !important;
  max-width: 1400px !important;
  margin: 35px auto 0 !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255,255,255,.16) !important;
  text-align: center !important;
}

.footer-bottom p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #cbd5e1 !important;
}
.brand-top {
  display: flex;
  align-items: center;
  gap: 12px; /* espacio entre logo y texto */
}

.brand-top img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 centra todo */
  text-align: center;
}

.brand-top {
  display: flex;
  align-items: center;
  justify-content: center; /* 👈 centra logo + título */
  gap: 12px;
}

.footer-brand p {
  text-align: center;
  margin-top: 10px;
  max-width: 260px;
}
.footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important; /* 👈 CAMBIO CLAVE */
  text-align: left !important;        /* 👈 CAMBIO CLAVE */

  margin-top: -10px !important; /* 👈 ESTE ES EL QUE SUBE TODO */
}

.brand-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.brand-top img {
  width: 70px !important;
  height:60px !important;
  object-fit: contain !important;
  margin: 0 !important;
}

.brand-top h3 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.footer-brand p {
  margin-top: 12px !important;
  max-width: 260px !important;
  text-align: center !important;
}
.footer-brand p {
  margin-top: 2px !important; /* 👈 casi sin espacio */
  max-width: 260px !important;
  text-align: center !important;

  transform: translateX(15px);
}
.brand-top {
  gap: 0 !important;
}

.brand-top img {
  width: 55px !important;
  height: 55px !important;
  object-fit: contain !important;
  margin-right: 5px !important; /* 👈 elimina el espacio visual */
  transform: translateX(8px) !important;
}

.brand-top h3 {
  margin-left: 0 !important;
}
/* TOOLS BANNER FINAL */
.tools-banner {
  position: relative !important;
  background: linear-gradient(180deg, #061224, #0d3b78) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 30px 26px !important;
  min-height: 560px !important;
  overflow: hidden !important;
}

.tools-banner h2,
.tools-banner p,
.tools-banner button {
  position: relative !important;
  z-index: 2 !important;
}

.tools-img {
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;

  width: 95% !important;
  max-width: 310px !important;
  height: auto !important;

  margin: 0 !important;
  font-size: 0 !important;
  z-index: 1 !important;
}
.tools-banner {
  position: relative !important;
  background: linear-gradient(180deg, #061224, #0d3b78) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 28px !important;
  min-height: 640px !important;
  overflow: hidden !important;
}

.tools-content {
  position: relative !important;
  z-index: 2 !important;
}

.tools-banner h2 {
  font-size: 26px !important;
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
}

.tools-banner p {
  color: #dbeafe !important;
  margin-bottom: 18px !important;
}

.tools-banner button {
  background: white !important;
  color: #0d6efd !important;
  border: none !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

.tools-kit-img {
  position: absolute !important;
  left: 50% !important;
  bottom: -35px !important;
  transform: translateX(-50%) !important;
  width: 92% !important;
  max-width: 300px !important;
  height: auto !important;
  z-index: 1 !important;
}
.tools-content {
  position: relative !important;
  z-index: 3 !important;
}

.tools-banner h2 {
  font-size: 28px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -0.8px !important;
  margin-bottom: 18px !important;
}

.tools-banner p {
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: #dbeafe !important;
  max-width: 250px !important;
  margin-bottom: 24px !important;
}

.tools-banner .btn-tools {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0d6efd !important;
  color: white !important;
  text-decoration: none !important;
  padding: 13px 20px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.35) !important;
  transition: 0.2s !important;
}

.tools-banner .btn-tools:hover {
  transform: translateY(-3px) !important;
  background: #1e88ff !important;
}
/* Evita espacio blanco abajo cuando hay pocos productos */
body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.products-section {
  flex: 1 !important;
}

.footer {
  margin-top: 0 !important;
}
.buy-wpp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.buy-wpp-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.buy-wpp {
  width: 220px !important;
  height: 44px !important;
  padding: 0 16px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  white-space: nowrap !important;
  line-height: 1 !important;
}

.buy-wpp-icon {
  width: 70px !important;
  height: 50px !important;
  object-fit: contain !important;

  flex-shrink: 0 !important; /* 👈 evita que se encoja */
}
.buy-wpp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important; /* 👈 controla espacio */
}

.buy-wpp-icon {
  margin: 0 !important;      /* ❌ elimina margen raro */
  padding: 0 !important;     /* ❌ elimina padding */
  display: block !important; /* evita espacios inline */
}
.buy-wpp {
  display: inline-flex !important;
  align-items: center !important;

  justify-content: flex-start !important; /* 👈 CLAVE */
  padding-left: 12px !important; /* opcional */
  gap: 6px !important;
}

.buy-wpp-icon {
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  flex-shrink: 0 !important; /* 👈 evita que se deforme */
}
/* BOTÓN WHATSAPP DETALLE - FINAL */
.buy-wpp {
  width: 240px !important;
  height: 50px !important;
  padding: 0 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 0 !important;
  overflow: hidden !important;
}

.buy-wpp-icon {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;

  margin: 0 -8px 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.floating-wpp {
  overflow: hidden !important;
}

.floating-wpp img {
  width: 74px !important;
  height: 74px !important;
  object-fit: contain !important;
}
.floating-wpp {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 60px !important;
  height: 60px !important;

  border-radius: 50%;
  background: #25D366;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999;
}

.floating-wpp {
  width: 70px !important;
  height: 70px !important;
}

.floating-wpp img {
  width: 74px !important;
  height: 74px !important;
  object-fit: contain !important;
}
/* =========================
   RESPONSIVE FINAL
========================= */

html, body {
  width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  body {
    padding-top: 0 !important;
  }

  .header,
  .nav,
  .hero,
  .benefits,
  .categories,
  .products-section,
  .product-detail,
  .results-hero,
  .offers-hero,
  .news-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .header,
  .nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    border-radius: 0 !important;
  }

  .header-main {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 14px !important;
  }

  .header-main .logo-box,
  .header-main .search-box,
  .header-main .header-actions {
    justify-self: stretch !important;
    width: 100% !important;
  }

  .logo-box {
    justify-content: center !important;
  }

  .logo-mark {
    width: 90px !important;
    height: 90px !important;
  }

  .logo-box h1 {
    font-size: 22px !important;
  }

  .logo-box p {
    font-size: 11px !important;
  }

  .search-box {
    width: 100% !important;
    height: 48px !important;
  }

  .search-btn {
    height: 48px !important;
  }

  .header-actions {
    justify-content: space-between !important;
  }

  .whatsapp-btn {
    margin-left: 0 !important;
  }

  .nav {
    height: auto !important;
    padding: 10px 12px !important;
    overflow-x: auto !important;
    gap: 8px !important;
    white-space: nowrap;
  }

  .nav a,
  .category-btn {
    flex: 0 0 auto;
  }

  .hero {
    margin-top: 0 !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: 330px !important;
    padding: 36px 22px !important;
  }

  .hero h2 {
    font-size: 32px !important;
  }

  .benefits,
  .categories,
  .products-section,
  .product-detail,
  .results-hero,
  .offers-hero,
  .news-hero {
    margin-top: 18px !important;
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .benefits {
    grid-template-columns: 1fr !important;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .detail-card {
    grid-template-columns: 1fr !important;
  }

  .detail-image {
    height: 260px !important;
  }

  .detail-specs {
    grid-template-columns: 1fr !important;
  }

  .detail-specs div {
    width: 100% !important;
    min-width: 0 !important;
  }

  .detail-actions .add-btn,
  .buy-wpp {
    width: 100% !important;
  }

  .cart-panel {
    width: 92% !important;
    right: -100% !important;
    border-radius: 20px 0 0 20px !important;
  }

  .cart-panel.active {
    right: 0 !important;
  }

  .footer-content,
  .footer-bottom {
    width: 92% !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

@media (max-width: 480px) {
  .products-grid,
  .category-grid {
    grid-template-columns: 1fr !important;
  }

  .header-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .cart-btn,
  .whatsapp-btn {
    justify-content: center !important;
  }

  .hero h2 {
    font-size: 28px !important;
  }

  .hero p {
    font-size: 15px !important;
  }

  .product-card h3 {
    min-height: auto !important;
  }

  .floating-wpp {
    width: 56px !important;
    height: 56px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}
/* =========================
   FIX RESPONSIVE MOBILE PRO
========================= */

@media (max-width: 768px) {

  body {
    padding-top: 0 !important;
    overflow-x: hidden !important;
  }

  .header,
  .nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
  }

  .header-main {
    display: flex !important;
    flex-direction: column !important;
    padding: 22px 18px 16px !important;
    gap: 18px !important;
  }

  .logo-box {
    width: 100% !important;
    justify-content: center !important;
  }

  .search-box {
    width: 100% !important;
    height: 50px !important;
  }

  .search-btn {
    height: 50px !important;
    min-width: 58px !important;
  }

  /* CARRITO Y WHATSAPP MÁS BONITO */
  .header-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .cart-btn,
  .whatsapp-btn {
    width: 100% !important;
    height: 52px !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.08) !important;
  }

  .cart-btn {
    position: relative !important;
  }

  #cart-count {
    top: 6px !important;
    right: 18px !important;
    left: auto !important;
    position: absolute !important;
  }

  .cart-btn .cart-icon {
    font-size: 24px !important;
  }

  /* MENÚ MOBILE */
  .nav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: auto !important;
    padding: 10px 12px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 18px rgba(15,23,42,.08) !important;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .category-menu {
    flex: 0 0 auto !important;
  }

  .category-btn {
    height: 44px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  .nav a {
    flex: 0 0 auto !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  .hero,
  .benefits,
  .categories,
  .products-section,
  .offers-hero,
  .news-hero,
  .product-detail,
  .results-hero,
  .contact-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .hero {
    min-height: 330px !important;
    padding: 42px 22px !important;
  }

  .hero h2 {
    font-size: 30px !important;
    line-height: 1.08 !important;
  }

  /* PRODUCTOS EN 2 COLUMNAS EN CELULAR */
  .products-layout {
    display: block !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .product-card {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .product-img {
    height: 115px !important;
    font-size: 44px !important;
  }

  .product-card h3 {
    font-size: 13px !important;
    min-height: 38px !important;
  }

  .price {
    font-size: 15px !important;
  }

  .add-btn {
    padding: 10px !important;
    font-size: 13px !important;
  }

  /* CARRITO LATERAL */
  .cart-panel {
    width: 92% !important;
    right: -100% !important;
    padding: 22px !important;
    border-radius: 22px 0 0 22px !important;
  }

  .cart-panel.active {
    right: 0 !important;
  }
}
.category-menu {
  position: relative;
}

.category-dropdown {
  display: none;
  position: absolute;
  top: 58px;
  left: 0;
  width: 240px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 3000;
}

.category-dropdown.active {
  display: block;
}

.category-dropdown button {
  display: block;
  width: 100%;
}
/* TEST: FORZAR CATEGORÍAS ARRIBA DE TODO */
.category-menu {
  position: relative !important;
  overflow: visible !important;
  z-index: 999999 !important;
}

.category-dropdown {
  position: absolute !important;
  top: 58px !important;
  left: 0 !important;
  display: none;
  z-index: 999999 !important;
}

.category-dropdown.active {
  display: block !important;
}

.nav {
  overflow: visible !important;
  z-index: 2000!important;
}

.header {
  overflow: visible !important;
}
/* BUSCADOR SIEMPRE ARRIBA */
.header {
  overflow: visible !important;
  z-index: 3000 !important;
}

.header-main {
  overflow: visible !important;
}

.search-box {
  position: relative !important;
  overflow: visible !important;
  z-index: 4000 !important;
}

.suggestions-box {
  position: absolute !important;
  top: 58px !important;
  left: 0 !important;
  width: 100% !important;

  display: none;
  background: white !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.18) !important;

  z-index: 5000 !important;
}

.suggestions-box.active {
  display: block !important;
}
/* NAV MOBILE TIPO APP */
@media (max-width: 768px) {
  .nav {
    width: 100% !important;
    max-width: none !important;

    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 10px 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;

    white-space: nowrap !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;

    border-radius: 0 !important;
  }

  .nav::-webkit-scrollbar {
    display: none !important;
  }

  .category-menu {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }

  .category-btn {
    height: 42px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  .nav a {
    flex: 0 0 auto !important;
    height: 42px !important;
    padding: 0 16px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 14px !important;
    border-radius: 12px !important;
    scroll-snap-align: start !important;
  }
}
/* MENÚ PRINCIPAL MOBILE */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .nav {
    overflow: visible !important;
    display: flex !important;
    gap: 10px !important;
  }

  .nav > a {
    display: none !important;
  }

  .mobile-menu {
    display: block !important;
    position: relative !important;
  }

  .menu-btn {
    height: 42px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: #eef5ff;
    color: #0d6efd;
    font-weight: 900;
    cursor: pointer;
  }

  .menu-dropdown {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    width: 220px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    overflow: hidden;
    z-index: 5000;
  }

  .menu-dropdown.active {
    display: block !important;
  }

  .menu-dropdown button {
    width: 100%;
    padding: 15px 18px;
    border: none;
    background: white;
    text-align: left;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
  }

  .menu-dropdown button:hover {
    background: #eef5ff;
    color: #0d6efd;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}
/* FIX MENÚ MOBILE VERTICAL */
@media (max-width: 768px) {
  .mobile-menu {
    display: block !important;
    position: relative !important;
    flex: 0 0 auto !important;
  }

  .menu-dropdown {
    display: none !important;
    position: absolute !important;
    top: 54px !important;
    left: 0 !important;

    width: 230px !important;
    height: auto !important;
    max-height: none !important;

    background: white !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.18) !important;

    overflow: visible !important;
    z-index: 999999 !important;
  }

  .menu-dropdown.active {
    display: flex !important;
    flex-direction: column !important;
  }

  .menu-dropdown button {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 14px 18px !important;

    background: white !important;
    border: none !important;
    border-bottom: 1px solid #eef2f7 !important;

    text-align: left !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .menu-dropdown button:last-child {
    border-bottom: none !important;
  }

  .nav {
    overflow: visible !important;
    z-index: 99999 !important;
  }
}
/* ALINEAR BOTONES CATEGORÍAS + MENÚ EN MOBILE */
@media (max-width: 768px) {
  .nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    padding: 12px 14px !important;
    height: auto !important;
  }

  .category-menu,
  .mobile-menu {
    flex: 1 1 0 !important;
    max-width: 170px !important;
  }

  .category-btn,
  .menu-btn {
    width: 100% !important;
    height: 46px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 14px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  .menu-dropdown,
  .category-dropdown {
    top: 56px !important;
  }
}
/* FOOTER MOBILE PRO */
@media (max-width: 768px) {
  .footer {
    padding: 34px 18px 22px !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .footer-content {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    text-align: center !important;
  }

  .footer-brand {
    align-items: center !important;
    text-align: center !important;
    margin-top: 0 !important;
  }

  .brand-top {
    justify-content: center !important;
  }

  .brand-top img {
    width: 52px !important;
    height: 52px !important;
    transform: none !important;
    margin-right: 6px !important;
  }

  .footer-brand p {
    transform: none !important;
    margin: 10px auto 0 !important;
    max-width: 270px !important;
    text-align: center !important;
  }

  .footer-links,
  .footer-info,
  .footer-contact {
    max-width: 100% !important;
    text-align: center !important;
  }

  .footer h4 {
    margin-bottom: 12px !important;
  }

  .footer a,
  .footer p {
    text-align: center !important;
  }

  .footer-whatsapp,
  .footer-email {
    width: 100% !important;
    max-width: 260px !important;
    margin: 10px auto !important;
  }

  .footer-bottom {
    width: 100% !important;
    margin-top: 28px !important;
    text-align: center !important;
  }
}
/* FIX SUGERENCIAS BUSCADOR SOBRE NAV */
.header {
  overflow: visible !important;
  z-index: 9000 !important;
}

.header-main {
  overflow: visible !important;
}

.search-box {
  position: relative !important;
  overflow: visible !important;
  z-index: 9500 !important;
}

.suggestions-box {
  position: absolute !important;
  top: 58px !important;
  left: 0 !important;
  width: 100% !important;

  display: none !important;
  background: white !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.18) !important;

  z-index: 99999 !important;
}

.suggestions-box.active {
  display: block !important;
}

.nav {
  z-index: 5000 !important;
}
/* SOLO EN CELULAR */
@media (max-width: 768px) {
  .buy-wpp {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: -5px !important;
    text-align: center !important;
  }

  .buy-wpp svg {
    margin: 0 !important;
  }
}
/* AJUSTAR LOGO + TEXTO EN MOBILE */
@media (max-width: 768px) {
  .logo-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important; /* 👈 controla la separación horizontal */
  }

  .logo-mark {
    margin: 0 !important;
  }

  .logo-box h1 {
    margin: 0 !important;
    line-height: 1.1 !important;
  }

  .logo-box p {
    margin: 2px 0 0 !important; /* 👈 acerca el texto */
    font-size: 12px !important;
  }
}
/* LOGO MOBILE MÁS JUNTO */
@media (max-width: 768px) {
  .logo-box {
    width: fit-content !important;
    margin: 0 auto !important;
    gap: 0 !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .logo-mark {
    width: 42px !important;
    height: 42px !important;
    margin-right: -2px !important;
    overflow: visible !important;
  }

  .logo-mark img {
    width: 52px !important;
    max-width: none !important;
    transform: translateX(0) !important;
  }

  .logo-box h1 {
    font-size: 22px !important;
    margin: 0 !important;
  }

  .logo-box p {
    margin-top: 1px !important;
  }
}
/* LOGO MOBILE FINAL - NO AFECTA PC */
@media (max-width: 768px) {
  .header-main .logo-box {
    width: auto !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .header-main .logo-mark {
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
    overflow: visible !important;
    margin-right: -8px !important;
  }

  .header-main .logo-mark img {
    width: 95px !important;
    height: 95px !important;
    max-width: none !important;
    object-fit: contain !important;
    transform: translateX(-8px) !important;
  }

  .logo-box h1 {
    font-size: 23px !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .logo-box p {
    margin-top: 3px !important;
    font-size: 11px !important;
  }
}
/* AJUSTE FINO LOGO MOBILE */
@media (max-width: 768px) {
  .header-main .logo-box {
    gap: 6px !important; /* 👈 separa un poquito */
  }

  .header-main .logo-mark {
    margin-right: 0px !important; /* 👈 elimina el empuje raro */
  }

  .header-main .logo-mark img {
    transform: translateX(-4px) !important; /* 👈 ajusta fino */
  }
}
/* FIX LOGO PC */
.logo-box {
  gap: 12px !important; /* 👈 separación normal en PC */
}

.logo-mark {
  margin-right: 0 !important;
}

.logo-mark img {
  transform: none !important;
}
/* FIX LOGO SOLO PC - NO AFECTA CELULAR */
@media (min-width: 769px) {
  .header-main .logo-box {
    gap: 8px !important;
  }

  .header-main .logo-mark {
    width: 60px !important;
    height: 60px !important;
    overflow: visible !important;
    margin-right: 0 !important;
  }

  .header-main .logo-mark img {
    width: 64px !important;
    height: 64px !important;
    max-width: none !important;
    object-fit: contain !important;
    transform: none !important;
  }
}
/* LOGO GRANDE Y PEGADO (SOLO PC) */
@media (min-width: 769px) {
  .header-main .logo-box {
    gap: 6px !important; /* 👈 espacio real pequeño */
  }

  .header-main .logo-mark {
    width: 80px !important;
    height: 80px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-main .logo-mark img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
  }
}
/* FIX FINAL LOGO PC - GRANDE Y PEGADO */
@media (min-width: 769px) {
  .header-main .logo-box {
    gap: 0 !important;
  }

  .header-main .logo-mark {
    width: 55px !important;
    height: 75px !important;
    overflow: visible !important;
    margin-right: -2px !important;
  }

  .header-main .logo-mark img {
    width: 75px !important;
    height: 75px !important;
    max-width: none !important;
    object-fit: contain !important;
    transform: translateX(-10px) !important;
  }
}
/* LOGO FINAL SEPARADO PC / MOBILE */

/* PC */
@media (min-width: 769px) {
  .header-main .logo-box {
    gap: 0 !important;
  }

  .header-main .logo-mark {
    width: 55px !important;
    height: 75px !important;
    overflow: visible !important;
  }

  .header-main .logo-mark img {
    width: 75px !important;
    height: 75px !important;
    max-width: none !important;
    transform: translateX(-10px) !important;
  }
}

/* LOGO MOBILE GRANDE Y PEGADO */
@media (max-width: 768px) {
  .header-main .logo-box {
    width: auto !important;
    margin: 0 auto !important;
    gap: 0 !important;
  }

  .header-main .logo-mark {
    width: 62px !important;
    height: 76px !important;
    flex: 0 0 62px !important;
    overflow: visible !important;
    margin-right: -10px !important;
  }

  .header-main .logo-mark img {
    width: 82px !important;
    height: 82px !important;
    max-width: none !important;
    object-fit: contain !important;
    transform: translateX(-10px) !important;
  }

  .header-main .logo-box h1 {
    margin-left: 0 !important;
  }
}
/* BUSCADOR MOBILE MÁS LIMPIO */
@media (max-width: 768px) {
  .search-box {
    padding-left: 14px !important;
  }

  .search-box input {
    font-size: 13px !important;
  }

  .search-btn {
    min-width: 48px !important;
    width: 48px !important;
  }
}
/* PEGAR NAV AL HEADER EN PC */
@media (min-width: 769px) {
  .header {
    margin-bottom: 0 !important;
  }

  .nav {
    margin-top: 0 !important;
    top: 110px !important; /* ajusta si al hacer scroll no baja pegado */
  }
}
/* FIX FINAL IMÁGENES PRODUCTOS */
.product-card .product-img {
  width: 100% !important;
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;
  background: #f7faff !important;
  border-radius: 15px !important;
  margin-bottom: 18px !important;
}

.product-card .product-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 95% !important;
  max-height: 95% !important;
  object-fit: contain !important;
  display: block !important;
}

.product-card h3 {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 8px !important;
  line-height: 1.25 !important;
}

.btn-disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  opacity: 0.8;
}
.cat-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
}
.cat-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 10px;
}
.product-card {
  position: relative !important;
  overflow: visible !important;
}

.offer-badge {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: #ef4444 !important;
  color: white !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25) !important;
  z-index: 20 !important;
}

.old-price {
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-weight: 700 !important;
  margin-top: 10px !important;
}
.detail-info {
  position: relative;
}

.detail-old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 4px;
}

.detail-offer-badge {
  position: static !important;
  display: inline-flex !important;
  margin-top: 8px;
}
.detail-img {
  position: relative;
}

.detail-badge {
  position: absolute !important;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: white;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.3);
  z-index: 10;
}
.related-btn-box {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.related-btn-box button {
  border: 1px solid #dbe5f2;
  background: white;
  color: #0d6efd;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}
.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.related-header button {
  border: 1px solid #dbe5f2;
  background: white;
  color: #0d6efd;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .related-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .related-header button {
    width: 100%;
  }
}
.related-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-header button {
  margin-left: auto;
}
@media (max-width: 768px) {

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

  .related-header h2 {
    font-size: 18px;
    font-weight: 800;
  }

  .related-header button {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0d6efd;
    border: none;
    font-weight: 700;
  }

  /* 👇 caja de no productos */
  #relatedProducts .no-results {
    width: 100%;
    text-align: center;
    padding: 20px 15px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #dbe5f2;
    color: #64748b;
    font-size: 14px;
  }

}
.related-header {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 22px !important;
}

.related-header h2 {
  margin: 0 !important;
}

.related-header button {
  background: #0d6efd !important;
  color: white !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.related-grid {
  width: 100% !important;
}

#relatedProducts .no-results {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  background: #f8fafc !important;
  border: 1px dashed #dbe5f2 !important;
  border-radius: 16px !important;
  padding: 22px !important;
  text-align: center !important;
  color: #64748b !important;
}

/* móvil */
@media (max-width: 768px) {
  .related-header {
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  .related-header h2 {
    font-size: 20px !important;
  }

  .related-header button {
    padding: 9px 15px !important;
    font-size: 13px !important;
  }

  #relatedProducts .no-results {
    padding: 18px !important;
    font-size: 14px !important;
  }
}
/* CONTENEDOR RELACIONADOS */
#relatedProducts {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

/* MENSAJE */
#relatedProducts .no-results {
  order: 1;
}

/* BOTÓN */
#verTodoRelacionados {
  order: 2;
  margin-top: 14px;
}

/* MOBILE BONITO */
@media (max-width: 768px) {
  #verTodoRelacionados {
    width: 100%;
    border-radius: 999px;
    padding: 12px;
    font-weight: 900;
  }
}
.related-ver-todo {
  width: fit-content;
  margin: 18px auto 0;
  display: block;
  background: #0d6efd;
  color: white;
  border: none;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 768px) {
  .related-header {
    justify-content: center !important;
    text-align: center !important;
  }

  .related-ver-todo {
    width: 100%;
    margin-top: 14px;
  }
}
/* ARREGLO MENÚ MÓVIL */
.menu-dropdown a,
.menu-dropdown button {
  display: block;
  width: 100%;
  padding: 15px 18px;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu-dropdown a:hover,
.menu-dropdown button:hover {
  background: #f1f5f9;
  color: #0d6efd;
}

.menu-dropdown {
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}
/* ALINEAR TEXTO DEL MENÚ A LA IZQUIERDA */
.menu-dropdown a,
.menu-dropdown button {
  text-align: left !important;
  justify-content: flex-start !important;
  padding-left: 20px;
}