:root {
  --orange: #f4751c;
  --orange-dark: #d4630f;
  --orange-light: #fff3ea;
  --black: #1a1a1a;
  --gray-900: #222;
  --gray-700: #4a4a4a;
  --gray-500: #8a8a8a;
  --gray-300: #d8d8d8;
  --gray-100: #f4f4f4;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: clip; }
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
input, textarea, select, button { font-family: inherit; }
input, textarea, select { font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* Top banner */
.top-banner {
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
  letter-spacing: .3px;
}
.top-banner strong { color: var(--orange); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--gray-300);
  background: var(--white);
}
.header-row {
  display: grid;
  grid-template-columns: auto minmax(260px, 480px) auto;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.header-left { display: flex; align-items: center; gap: 32px; min-width: 0; }
.logo { display: flex; align-items: center; line-height: 1; flex-shrink: 0; }
.logo img { height: 150px; width: auto; display: block; }
.logo .brand { font-size: 26px; font-weight: 800; letter-spacing: .5px; color: var(--black); }
.logo .brand span { color: var(--orange); }
.logo .tagline { font-size: 10px; letter-spacing: 3px; color: var(--gray-500); margin-top: 2px; }

.header-divider { width: 1px; height: 30px; background: var(--gray-300); flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-item {
  color: var(--gray-700);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-item:hover { color: var(--orange); }
.nav-item.active { color: var(--orange); border-bottom-color: var(--orange); }

.nav-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-bar { display: flex; width: 100%; justify-self: stretch; }
.search-bar input {
  flex: 1;
  border: 1px solid var(--gray-300);
  border-right: none;
  border-radius: 9px 0 0 9px;
  padding: 16px 20px;
  font-size: 16px;
  outline: none;
}
.search-bar input:focus { border-color: var(--orange); }
.search-bar button {
  background: var(--orange);
  border: none;
  color: var(--white);
  padding: 0 26px;
  border-radius: 0 9px 9px 0;
  font-size: 19px;
}
.search-bar button:hover { background: var(--orange-dark); }

.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; justify-self: end; }
.header-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}
.header-action .icon-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-900);
  display: flex; align-items: center; justify-content: center;
}
.cart-label { display: flex; align-items: center; gap: 8px; }
.cart-count {
  position: absolute;
  top: -6px; right: 18px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2px;
}

/* Category nav strip */
.category-nav {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 50;
}
.category-nav-inner {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 12px 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.category-nav-inner a { flex-shrink: 0; }
.category-nav-inner a { color: var(--gray-700); transition: color .15s ease; }
.category-nav-inner a:hover { color: var(--orange); }

/* Hero */
.hero {
  background: var(--gray-100);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 70px 24px;
}
.hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 6px; font-weight: 800; }
.hero h1 .accent { color: var(--orange); display: block; }
.hero .hero-slogan { font-size: 20px; font-weight: 700; color: var(--gray-900); margin: 0 0 14px; }
.hero p { color: var(--gray-700); font-size: 16px; max-width: 420px; margin-bottom: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 15px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: background .15s ease;
}
.btn:hover { background: var(--orange-dark); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-900);
  color: var(--gray-900);
}
.btn-outline:hover { background: var(--gray-900); color: var(--white); }
.hero-img { display: flex; justify-content: center; align-items: center; position: relative; min-height: 360px; }
.hero-img img { max-width: 100%; }
.hero-stripes {
  position: absolute;
  inset: -20px;
  border-radius: 24px;
  overflow: hidden;
  z-index: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(244, 117, 28, 0.16) 0px,
      rgba(244, 117, 28, 0.16) 18px,
      transparent 18px,
      transparent 36px
    ),
    repeating-linear-gradient(
      135deg,
      rgba(26, 26, 26, 0.10) 36px,
      rgba(26, 26, 26, 0.10) 54px,
      transparent 54px,
      transparent 72px
    );
}
.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Hero carousel (banner grande) */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.hero-track { display: flex; transition: transform .5s ease; }
.hero-slide-banner {
  flex: 0 0 100%;
  display: block;
  line-height: 0;
}
.hero-slide-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background .15s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .15s ease;
}
.hero-dots .dot.active { background: var(--orange); }

/* Promo carousel */
.promo-carousel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
}
.promo-track {
  display: flex;
  transition: transform .5s ease;
}
.promo-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  padding: 18px 24px;
  color: var(--white);
  font-size: 15px;
}
.promo-slide strong { font-size: 17px; }
.promo-slide span:not(.promo-tag) { color: #ccc; }
.promo-tag {
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 20px;
}
.promo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 12px;
}
.promo-dots .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .15s ease;
}
.promo-dots .dot.active { background: var(--orange); }

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
  border-right: 1px solid var(--gray-300);
}
.benefit:last-child { border-right: none; }
.benefit .icon { color: var(--orange); flex-shrink: 0; }
.benefit strong { display: block; font-size: 15px; }
.benefit span { color: var(--gray-500); font-size: 13px; }

/* Section heading */
.section { padding: 60px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: 28px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--orange);
}
.section-head a { color: var(--orange); font-weight: 700; font-size: 14px; }

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cat-card img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; }
.cat-card .name { font-weight: 700; font-size: 14px; }
.cat-card .count { color: var(--gray-500); font-size: 12px; margin-top: 4px; }

/* Brand strip */
.brand-strip-section { padding: 10px 0 50px; }
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.brand-chip {
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: .3px;
}

/* Promo banner */
.promo {
  background: var(--orange-light);
  border: 1px solid #ffd9b8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  margin: 0 24px;
  max-width: 1272px;
  margin: 0 auto;
  gap: 24px;
}
.promo-left { display: flex; align-items: center; gap: 20px; }
.promo-pct { font-size: 56px; font-weight: 800; color: var(--orange); }
.promo-pct sup { font-size: 22px; }
.promo-text strong { display: block; font-size: 20px; }
.promo-text code {
  background: var(--white);
  border: 1px dashed var(--orange);
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--orange-dark);
  font-weight: 700;
}
.promo-img img { max-height: 110px; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 50px 0;
}
.stats .num { font-size: 32px; font-weight: 800; color: var(--orange); }
.stats .label { color: var(--gray-700); font-size: 14px; }

/* Footer */
.site-footer { background: var(--black); color: #ccc; padding: 50px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--white); margin: 0 0 14px; font-size: 15px; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #333; padding-top: 18px; font-size: 12px; text-align: center; color: #777; }

/* ===== Catalogo ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0 60px;
  align-items: start;
}
.sidebar {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sidebar h3 { font-size: 15px; margin: 0; }
.sidebar-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sidebar-close {
  border: none;
  background: var(--gray-100);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.filter-toggle-btn {
  display: none;
  border: 1px solid var(--gray-300);
  background: #fff;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 299;
}
.sidebar-backdrop.show { display: block; }
.sidebar .dept-item {
  display: flex;
  justify-content: space-between;
  padding: 9px 8px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.sidebar .dept-item:hover { background: var(--gray-100); }
.sidebar .dept-item.active { background: var(--orange-light); color: var(--orange-dark); font-weight: 700; }
.sidebar .dept-item .count { color: var(--gray-500); font-size: 12px; }
.sidebar .group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-500);
  margin: 16px 0 4px;
  padding: 0 8px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-toolbar .results-count { font-size: 14px; color: var(--gray-700); }
.catalog-toolbar select {
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 8px 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
  background: var(--white);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card .thumb {
  aspect-ratio: 1/1;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .dept-tag { font-size: 11px; color: var(--orange-dark); font-weight: 700; text-transform: uppercase; }
.product-card .name { font-size: 13.5px; font-weight: 600; min-height: 36px; }
.product-card .price { font-size: 18px; font-weight: 800; margin-top: auto; }
.product-card .add-btn {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}
.product-card .add-btn:hover { background: var(--orange); }
.product-card .add-btn:disabled { background: var(--gray-300); color: var(--gray-500); cursor: not-allowed; }

/* Carrusel de productos destacados */
.featured-carousel { position: relative; padding: 0 44px; }
.featured-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: none;
}
.featured-track::-webkit-scrollbar { display: none; }
.oferta-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  background: var(--white);
  transition: box-shadow .15s ease, transform .15s ease;
}
.oferta-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.oferta-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }

.feat-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-900);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
}
.feat-arrow:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.feat-arrow-prev { left: 0; }
.feat-arrow-next { right: 0; }

@media (max-width: 640px) {
  .featured-carousel { padding: 0 36px; }
  .oferta-card { flex: 0 0 240px; }
  .feat-arrow { width: 32px; height: 32px; font-size: 17px; }
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination button {
  border: 1px solid var(--gray-300);
  background: var(--white);
  width: 36px; height: 36px;
  border-radius: 6px;
  font-size: 13px;
}
.pagination button.active { background: var(--orange); color: var(--white); border-color: var(--orange); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.empty-state { padding: 60px 0; text-align: center; color: var(--gray-500); }

/* ===== Producto ===== */
.breadcrumb { font-size: 13px; color: var(--gray-500); padding: 18px 0; }
.breadcrumb a:hover { color: var(--orange); }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 20px 0 70px;
}
.product-detail .gallery {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}
.product-detail .gallery img { max-height: 90%; object-fit: contain; }
.product-detail .info .dept-tag {
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.product-detail .info h1 { font-size: 28px; margin: 10px 0; }
.product-detail .meta { color: var(--gray-500); font-size: 13px; margin-bottom: 18px; }
.product-detail .price { font-size: 34px; font-weight: 800; color: var(--orange-dark); margin-bottom: 8px; }
.stock-badge { display: inline-block; font-size: 13px; font-weight: 700; margin-bottom: 18px; padding: 5px 12px; border-radius: 6px; }
.stock-badge.stock-ok { background: #e7f7ed; color: #1d8a4a; }
.stock-badge.stock-low { background: #fff3e0; color: #c97400; }
.stock-badge.stock-out { background: #fdecec; color: #c0392b; }
.product-detail .desc { color: var(--gray-700); margin-bottom: 26px; line-height: 1.7; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qty-control { display: flex; border: 1px solid var(--gray-300); border-radius: 8px; overflow: hidden; }
.qty-control button { width: 38px; height: 42px; border: none; background: var(--gray-100); font-size: 16px; }
.qty-control input { width: 50px; border: none; text-align: center; }
.action-row { display: flex; gap: 12px; }
.action-row .btn { flex: 1; justify-content: center; }
.action-row .btn-wa { background: #25D366; }
.action-row .btn-wa:hover { background: #1ebd5a; }

/* ===== Carrito ===== */
.cart-page { padding: 30px 0 70px; }
.cart-page h1 { font-size: 28px; margin-bottom: 24px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; color: var(--gray-500); text-transform: uppercase; padding: 0 10px 12px; border-bottom: 1px solid var(--gray-300); }
.cart-table td { padding: 16px 10px; border-bottom: 1px solid var(--gray-300); vertical-align: middle; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-info img { width: 64px; height: 64px; object-fit: contain; background: var(--gray-100); border-radius: 6px; padding: 4px; }
.cart-item-info .name { font-size: 14px; font-weight: 600; max-width: 280px; }
.cart-remove { color: var(--gray-500); font-size: 12px; text-decoration: underline; }
.cart-remove:hover { color: #d33; }
.cart-summary { max-width: 360px; margin-left: auto; margin-top: 26px; border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 22px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.cart-summary .row.total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--gray-300); padding-top: 12px; }
.cart-summary .btn { width: 100%; justify-content: center; margin-top: 10px; }
.cart-empty { text-align: center; padding: 80px 0; color: var(--gray-500); }

/* ===== Checkout ===== */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 30px 0 70px; }
.checkout-layout h1 { font-size: 26px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  padding: 11px 12px;
  font-family: inherit;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-summary { border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 22px; align-self: start; }
.order-summary h3 { margin-top: 0; font-size: 16px; }
.order-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid #eee; }
.bsale-note {
  background: var(--orange-light);
  border: 1px solid #ffd9b8;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--orange-dark);
  margin-top: 16px;
}

/* ===== WhatsApp float button ===== */
.wa-float {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom));
  right: calc(26px + env(safe-area-inset-right));
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 100;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 380px;
  text-align: center;
}
.modal-box h3 { margin-top: 0; }
.modal-box .btn { margin-top: 16px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-toggle-btn { display: inline-flex; }
  .sidebar-head { display: flex; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    z-index: 300;
    background: #fff;
    border-radius: 0;
    border: none;
    box-shadow: var(--shadow-hover);
    transform: translateX(-100%);
    transition: transform .25s ease;
    padding: 18px;
    padding-top: calc(18px + env(safe-area-inset-top));
  }
  .sidebar.open { transform: translateX(0); }
  .product-detail { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-row { grid-template-columns: 1fr auto; row-gap: 12px; }
  .header-left { grid-column: 1 / -1; }
  .search-bar { grid-column: 1 / 2; max-width: none; }
  .header-actions { grid-column: 2 / 3; }
  .main-nav { gap: 16px; }
  .nav-categories { display: none; }
}

/* Celulares (iOS/Android) */
@media (max-width: 600px) {
  .logo img { height: 56px; }
  .header-row { padding: 10px 16px; gap: 12px; }
  .header-left { gap: 14px; flex-wrap: wrap; }
  .main-nav { font-size: 14px; gap: 12px; }
  .header-actions { gap: 12px; }
  .cart-label .cart-label-text { display: none; }
  .header-action .icon-circle { width: 32px; height: 32px; }
  .search-bar input { padding: 12px 14px; }
  .search-bar button { padding: 0 16px; font-size: 16px; }

  .category-nav-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-nav-inner::-webkit-scrollbar { display: none; }

  .hero h1 { font-size: 30px; }
  .section { padding: 36px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 18px; }
  .section-head h2 { font-size: 22px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit { padding: 18px 14px; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  .promo { flex-direction: column; text-align: center; padding: 24px 20px; margin: 0 16px; }
  .promo-left { flex-direction: column; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .action-row { flex-direction: column; }
  .qty-row { flex-wrap: wrap; gap: 10px; }

  .cart-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .cart-table { min-width: 540px; }
  .cart-item-info .name { max-width: 160px; }
  .cart-summary { max-width: none; margin-left: 0; }

  .product-detail .info h1 { font-size: 22px; }
  .product-detail .price { font-size: 26px; }

  .distribuidores-row, .brands-track { gap: 32px; }
  .wa-float { width: 52px; height: 52px; bottom: calc(18px + env(safe-area-inset-bottom)); right: calc(18px + env(safe-area-inset-right)); }
}

/* Sección Nuestros Servicios (home) */
.services-banner {
  background: linear-gradient(rgba(20,20,20,.88), rgba(20,20,20,.88)), url('../assets/servicios/electricidad.jpg');
  background-size: cover;
  background-position: center;
  padding: 56px 0 50px;
  text-align: center;
  color: var(--white);
}
.services-banner h2 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: .5px;
}
.services-banner h2 span { color: var(--orange); }
.services-banner p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  color: #ddd;
  line-height: 1.6;
}
.services-banner strong { color: var(--orange); }

.services-grid-wrap { background: var(--gray-100); padding: 50px 0 60px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.service-tile {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding-bottom: 22px;
  text-align: center;
  overflow: visible;
}
.service-tile-photo {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.service-tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-tile-icon {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--white);
}
.service-tile-icon svg { width: 24px; height: 24px; }
.service-tile h3 {
  margin: 42px 22px 8px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}
.service-tile p {
  margin: 0 22px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.6;
}
.service-tile::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--orange);
  margin: 14px auto 0;
}

.services-cta { text-align: center; margin-top: 44px; }
.btn-cotizar {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  letter-spacing: .3px;
}
.btn-cotizar:hover { background: var(--orange-dark); }
.services-cta p { margin: 14px 0 0; color: var(--gray-700); font-size: 13.5px; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-banner h2 { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* Carrusel Nuestras Marcas */
.brands-marquee-wrap { overflow: hidden; padding: 4px 0 50px; }
.brands-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.brands-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: brandsScroll 32s linear infinite;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brand-logo-item {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter .2s ease, opacity .2s ease;
  flex-shrink: 0;
}
.brand-logo-item:hover { filter: none; opacity: 1; }
.brand-logo-item img { height: 100%; width: auto; max-width: 160px; object-fit: contain; }
.brand-text-badge {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #6b6b6b;
  letter-spacing: .5px;
  white-space: nowrap;
  text-transform: uppercase;
}

.distribuidores-wrap { padding: 4px 0 50px; }
.distribuidores-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
}
.distribuidores-row .brand-logo-item { height: 50px; }

@keyframes brandsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
