/* ═══════════════════════════════════════════════════════════════
   CORRALÓN MARTINTO — Design System
   Premium construction materials e-commerce
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

:root {
  /* Brand (PedidosYa Red) */
  --orange: #FF0000;
  --orange-dark: #D30000;
  --orange-light: #FF3333;
  --orange-glow: rgba(255, 0, 0, 0.22);

  /* Neutrals */
  --black: #0D0D0D;
  --gray-900: #1A1A1A;
  --gray-800: #2A2A2A;
  --gray-700: #3A3A3A;
  --gray-600: #555;
  --gray-500: #777;
  --gray-400: #999;
  --gray-300: #BBB;
  --gray-200: #DDD;
  --gray-100: #EBEBEB;
  --gray-50: #F5F5F5;
  --white: #FAFAF8;
  --pure-white: #FFFFFF;

  /* Prices */
  --green: #00B341;
  --green-dark: #1B5E20;
  --green-bg: #E8F5E9;
  --green-border: #2E7D32;
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --blue-bg: #E3F2FD;
  --blue-border: #1565C0;
  --card-orange: #E65100;
  --card-orange-bg: #FFF3E0;
  --card-orange-border: #E65100;
  --red: #D32F2F;

  /* Layout */
  --max-w: 1100px;
  --header-h: 64px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-orange: 0 4px 20px rgba(255,90,0,0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
  --duration-md: 0.3s;
  --duration-lg: 0.5s;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input, select { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.text-3xl { font-size: 36px; }
.text-4xl { font-size: 48px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.text-muted { color: var(--gray-400); }
.text-soft { color: var(--gray-600); }
.text-orange { color: var(--orange); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo img {
  height: 46px;
}
.header-logo-text {
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.header-logo-sub {
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 500;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--black);
  background: var(--gray-100);
}

/* Cart button */
.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--orange);
  color: var(--pure-white);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-orange);
}
.header-cart:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.header-cart svg { width: 18px; height: 18px; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  animation: badge-pop 0.3s var(--ease);
}
.cart-badge.hidden { display: none; }

@keyframes badge-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  color: var(--black);
  padding: 8px;
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--pure-white);
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,90,0,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--gray-50));
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,90,0,0.1);
  border: 1px solid rgba(255,90,0,0.2);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s var(--ease) both;
}
.hero h1 {
  text-align: center !important;
  color: var(--black);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  animation: fadeInUp 0.6s 0.1s var(--ease) both;
}
.hero h1 span { color: var(--orange); }
.hero-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
  animation: fadeInUp 0.6s 0.2s var(--ease) both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  animation: fadeInUp 0.6s 0.3s var(--ease) both;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.6s 0.4s var(--ease) both;
}
.hero-stat-value {
  color: var(--black);
  font-size: 28px;
  font-weight: 900;
}
.hero-stat-label {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s 0.3s var(--ease) both;
}
.hero-image {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

/* ── Hero Search Bar (PedidosYa style) ────────────────────── */
.hero-inner-compact {
  grid-template-columns: 1fr;
  text-align: center;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--pure-white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 6px 8px 6px 24px;
  max-width: 560px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: all var(--duration-md) var(--ease);
  animation: fadeInUp 0.6s 0.3s var(--ease) both;
}
.hero-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(255,90,0,0.25);
  transform: scale(1.02);
}
.hero-search svg {
  width: 22px;
  height: 22px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  background: transparent;
  padding: 14px 0;
}
.hero-search input::placeholder {
  color: var(--gray-300);
}

/* ── Quick Tags ───────────────────────────────────────────── */
.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s 0.4s var(--ease) both;
}
.quick-tag {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  backdrop-filter: blur(4px);
}
.quick-tag:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,90,0,0.3);
}

/* ── Quick Order Section ──────────────────────────────────── */
.quick-order-section {
  background: var(--pure-white);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.quick-order-section .section-header,
.quick-order-section .quick-order-grid,
.quick-order-section .quick-budget-result {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.quick-order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.quick-order-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
  cursor: pointer;
  transition: all var(--duration-md) var(--ease);
  display: flex;
  flex-direction: column;
}
.quick-order-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.quick-order-card.active {
  border-color: var(--orange);
  background: linear-gradient(135deg, #FFF5EE, #FFF0E5);
  box-shadow: var(--shadow-orange);
}
.qo-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.qo-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.qo-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
  flex: 1;
}
.qo-items span {
  font-size: 13px;
  color: var(--gray-600);
  padding-left: 14px;
  position: relative;
}
.qo-items span::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}
.qo-cta {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
  transition: color var(--duration) var(--ease);
}
.quick-order-card:hover .qo-cta {
  color: var(--orange-dark);
}

/* ── Quick Budget Result ──────────────────────────────────── */
.quick-budget-result {
  background: var(--pure-white);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(255,90,0,0.15);
}
.quick-budget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--gray-900), #1a0800);
  color: var(--pure-white);
}
.quick-budget-title {
  font-size: 18px;
  font-weight: 800;
}
.quick-budget-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 18px;
  transition: all var(--duration) var(--ease);
}
.quick-budget-close:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.quick-budget-body {
  padding: 16px 24px;
}

/* Budget rows */
.qb-row {
  display: grid;
  grid-template-columns: 40px 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  animation: fadeInUp 0.3s var(--ease) both;
}
.qb-row:nth-child(1) { animation-delay: 0s; }
.qb-row:nth-child(2) { animation-delay: 0.05s; }
.qb-row:nth-child(3) { animation-delay: 0.1s; }
.qb-row:nth-child(4) { animation-delay: 0.15s; }
.qb-row:nth-child(5) { animation-delay: 0.2s; }
.qb-row:nth-child(6) { animation-delay: 0.25s; }
.qb-row:nth-child(7) { animation-delay: 0.3s; }

.qb-qty {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qb-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}
.qb-prices {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
.qb-ef { color: var(--green-dark); }
.qb-tr { color: var(--blue-dark); }
.qb-ta { color: var(--gray-400); }

/* Budget totals */
.qb-totals {
  padding: 20px 0 8px;
}
.qb-total-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qb-total-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.qb-total-prices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.qb-total-box {
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius);
}
.qb-total-box.ef { background: var(--green-bg); border: 2px solid var(--green-border); }
.qb-total-box.tr { background: var(--blue-bg); border: 2px solid var(--blue-border); }
.qb-total-box.ta { background: var(--card-orange-bg); border: 2px solid var(--card-orange-border); }
.qb-total-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.qb-total-box.ef .qb-total-tag { color: var(--green-dark); }
.qb-total-box.tr .qb-total-tag { color: var(--blue-dark); }
.qb-total-box.ta .qb-total-tag { color: var(--card-orange); }
.qb-total-val {
  font-size: 20px;
  font-weight: 900;
}
.qb-total-box.ef .qb-total-val { color: var(--green-dark); }
.qb-total-box.tr .qb-total-val { color: var(--blue-dark); }
.qb-total-box.ta .qb-total-val { color: var(--card-orange); }

.quick-budget-actions {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@keyframes budgetSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes budgetSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--orange);
  color: var(--pure-white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,90,0,0.4);
}
.btn-secondary {
  background: var(--pure-white);
  color: var(--gray-900);
  border: 2px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--gray-900);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--gray-900);
  color: var(--pure-white);
}
.btn-dark:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--pure-white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  text-align: center !important;
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.section-title {
  text-align: center !important;
  font-size: 36px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center !important;
  color: var(--gray-500);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Category Grid ────────────────────────────────────────── */
.cat-grid {
  display: flex !important;
  overflow-x: auto !important;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-wrap: nowrap; /* CRITICAL: prevent wrapping to grid */
}
.cat-grid::-webkit-scrollbar {
  display: none;
}
.cat-card {
  flex: 0 0 130px !important;
  min-width: 130px !important;
  scroll-snap-align: start;
  background: var(--pure-white);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  border: 2px solid var(--gray-100);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.cat-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cat-card.active {
  border-color: var(--orange);
  background: linear-gradient(135deg, #FFF5EE, #FFF0E5);
  box-shadow: var(--shadow-orange);
}
.cat-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.cat-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
}
.cat-card-count {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ── Search ───────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pure-white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 4px 6px 4px 20px;
  margin-bottom: 28px;
  transition: border-color var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}
.search-bar:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,90,0,0.08);
}
.search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  background: transparent;
  padding: 12px 0;
}
.search-bar input::placeholder { color: var(--gray-300); }
.search-results-count {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
  white-space: nowrap;
  padding-right: 12px;
}

/* ── Filter Toolbar (Catalog Page) ────────────────────────── */
.filter-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 0 12px;
  margin: -8px -24px 28px;
  padding-left: 24px;
  padding-right: 24px;
  border-bottom: 1px solid transparent;
  transition: all var(--duration-md) var(--ease);
}
.filter-toolbar.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ── Filter Dropdown & Pills ────────────────────────── */
.filter-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}
.filter-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.filter-pills-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px;
  justify-content: flex-start;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.filter-pill:hover {
  background: var(--pure-white);
  border-color: var(--gray-400);
  color: var(--black);
}
.filter-pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--pure-white);
}
.filter-pill-icon {
  font-size: 16px;
}
.filter-pill-count {
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}
.filter-pill.active .filter-pill-count {
  background: rgba(255,255,255,0.25);
  color: var(--pure-white);
}

/* Filter Search */
.filter-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pure-white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 4px 6px 4px 20px;
  margin-bottom: 14px;
  transition: all var(--duration-md) var(--ease);
  box-shadow: var(--shadow-sm);
}
.filter-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,90,0,0.08), 0 4px 16px rgba(255,90,0,0.1);
  transform: scale(1.01);
}
.filter-search-icon {
  width: 22px;
  height: 22px;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: color var(--duration) var(--ease);
}
.filter-search:focus-within .filter-search-icon {
  color: var(--orange);
}
.filter-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  background: transparent;
  padding: 12px 0;
}
.filter-search input::placeholder { color: var(--gray-300); }
.filter-search-clear {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
  border: none;
  cursor: pointer;
}
.filter-search-clear svg { width: 16px; height: 16px; }
.filter-search-clear:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}
.filter-search-clear.hidden { display: none; }

/* Filter Categories (Pills/Chips) */
.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--pure-white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.filter-pill:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.filter-pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--pure-white);
  box-shadow: 0 3px 12px rgba(255,0,0,0.25);
  font-weight: 700;
}
.filter-pill.active:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}
.filter-pill-icon {
  font-size: 15px;
  line-height: 1;
}
.filter-pill-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,0.08);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  min-width: 22px;
  text-align: center;
}
.filter-pill.active .filter-pill-count {
  background: rgba(255,255,255,0.25);
  color: var(--pure-white);
}

/* Filter Section Label & Pills Wrap (Catalog Page) */
.filter-section-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Load More Button */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  background: var(--gray-900);
  color: var(--pure-white);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-md);
}
.btn-load-more:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── Filter Select Dropdown (Catalog Page) ────────────────── */
.filter-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
}
.filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 12px 44px 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--pure-white);
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-md) var(--ease);
  box-shadow: var(--shadow-sm);
}
.filter-select:hover {
  border-color: var(--gray-400);
}
.filter-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 0, 0, 0.08), 0 4px 16px rgba(220, 0, 0, 0.1);
}
.filter-select-arrow {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  pointer-events: none;
  transition: color var(--duration) var(--ease);
}
.filter-select:focus + .filter-select-arrow {
  color: var(--red);
}

/* ── Product Grid ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--pure-white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 0;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Product Image ──────────────────────────────────── */
.product-image {
  position: relative;
  width: 100%;
  padding-top: 85%;
  background: var(--gray-50);
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
}
.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--duration-md) var(--ease);
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-image .no-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--gray-200);
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

/* ── Card Body ──────────────────────────────────── */
.product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-sku {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 10px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-note {
  font-size: 11px;
  color: var(--gray-400);
  font-style: italic;
  margin-bottom: 8px;
}

/* Precios */
.product-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.price-col {
  text-align: center;
  padding: 6px 3px;
  border-radius: var(--radius-sm);
}
.price-col.efectivo { background: var(--green-bg); }
.price-col.transferencia { background: var(--blue-bg); }
.price-col.tarjeta { background: var(--card-orange-bg); }
.price-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.price-col.efectivo .price-label { color: var(--green-dark); }
.price-col.transferencia .price-label { color: var(--blue-dark); }
.price-col.tarjeta .price-label { color: var(--card-orange); }
.price-value {
  font-size: 14px;
  font-weight: 800;
}
.price-col.efectivo .price-value { color: var(--green-dark); }
.price-col.transferencia .price-value { color: var(--blue-dark); }
.price-col.tarjeta .price-value { color: var(--card-orange); }

/* Add to cart */
.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 2px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.qty-btn:hover { background: var(--gray-200); color: var(--gray-900); }
.qty-input {
  width: 40px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  background: var(--pure-white);
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-add-cart {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: var(--pure-white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-orange);
}
.btn-add-cart:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.btn-add-cart svg { width: 16px; height: 16px; }

.btn-add-cart.added {
  background: var(--green);
  box-shadow: 0 4px 16px rgba(0,179,65,0.3);
}

/* ── Image Modal ────────────────────────────────────── */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-md) var(--ease);
  backdrop-filter: blur(8px);
}
.image-modal.active {
  opacity: 1;
  visibility: visible;
}
.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.image-modal-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  transition: background var(--duration) var(--ease);
}
.image-modal-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Combos Section ───────────────────────────────────────── */

.combo-card {
  flex: 0 0 280px !important;
  min-width: 280px !important;
  scroll-snap-align: start;
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
  padding: 24px;
  transition: all var(--duration) var(--ease);
}
.combo-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.combo-name { text-align: center; 
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.combo-desc { text-align: center; 
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.combo-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.combo-materials {
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  margin-bottom: 14px;
}
.combo-materials li {
  font-size: 12px;
  color: var(--gray-600);
  padding: 3px 0;
  list-style: none;
}
.combo-materials li::before {
  content: '•';
  color: var(--orange);
  margin-right: 6px;
  font-weight: 900;
}

/* ── Shipping Checker ─────────────────────────────────────── */
.shipping-checker {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}
.shipping-input-row {
  display: flex;
  gap: 10px;
}
.shipping-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color var(--duration) var(--ease);
}
.shipping-input:focus {
  border-color: var(--orange);
}
.shipping-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.shipping-result.ok {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-dark);
  display: block;
}
.shipping-result.no {
  background: #FFEBEE;
  border: 1px solid #E53935;
  color: #B71C1C;
  display: block;
}
.shipping-result.unknown {
  background: #FFF8E1;
  border: 1px solid #F9A825;
  color: #F57F17;
  display: block;
}

/* ── Cart Drawer ──────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-md) var(--ease);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--pure-white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--duration-md) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-drawer-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
}
.cart-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all var(--duration) var(--ease);
}
.cart-drawer-close:hover { background: var(--gray-100); color: var(--gray-900); }
.cart-drawer-close svg { width: 20px; height: 20px; }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.cart-empty-icon { font-size: 48px; margin-bottom: 12px; }
.cart-empty-text { font-size: 15px; font-weight: 600; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: 12px;
  color: var(--gray-500);
}
.cart-item-total {
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
}
.cart-item-remove {
  color: var(--gray-300);
  padding: 4px;
  transition: color var(--duration) var(--ease);
}
.cart-item-remove:hover { color: var(--red); }
.cart-item-remove svg { width: 16px; height: 16px; }

/* Cart footer */
.cart-drawer-footer {
  border-top: 1px solid var(--gray-100);
  padding: 20px 24px;
  flex-shrink: 0;
  background: var(--gray-50);
}
.cart-totals {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.cart-total-box {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
}
.cart-total-box.ef { background: var(--green-bg); border: 1px solid var(--green-border); }
.cart-total-box.tr { background: var(--blue-bg); border: 1px solid var(--blue-border); }
.cart-total-box.ta { background: var(--card-orange-bg); border: 1px solid var(--card-orange-border); }
.cart-total-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cart-total-box.ef .cart-total-label { color: var(--green-dark); }
.cart-total-box.tr .cart-total-label { color: var(--blue-dark); }
.cart-total-box.ta .cart-total-label { color: var(--card-orange); }
.cart-total-value {
  font-size: 18px;
  font-weight: 900;
  margin-top: 4px;
}
.cart-total-box.ef .cart-total-value { color: var(--green-dark); }
.cart-total-box.tr .cart-total-value { color: var(--blue-dark); }
.cart-total-box.ta .cart-total-value { color: var(--card-orange); }

.cart-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Calculator ───────────────────────────────────────────── */
.calc-container {
  max-width: 900px;
  margin: 0 auto;
}
.calc-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.calc-form {
  display: grid;
  gap: 14px;
  align-items: end;
}
.calc-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.calc-form select, .calc-form input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--duration) var(--ease);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.calc-form select:focus, .calc-form input[type="number"]:focus {
  border-color: var(--orange);
}
.calc-result {
  min-height: 200px;
}

/* Calculator budget result (same style as product card prices) */
.calc-budget-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.calc-budget-table thead tr {
  background: var(--gray-50);
  border-top: 2px solid var(--gray-900);
  border-bottom: 2px solid var(--gray-900);
}
.calc-budget-table th {
  padding: 10px 8px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--gray-600);
}
.calc-budget-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--gray-100);
}
.calc-budget-table .cq { width: 50px; text-align: center; font-weight: 700; }
.calc-budget-table .ca { text-align: left; }
.calc-budget-table .cp { width: 100px; text-align: right; color: var(--gray-500); }
.calc-budget-table .ct { width: 110px; text-align: right; font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--pure-white);
  color: var(--gray-600);
  padding: 60px 24px 30px;
  border-top: 1px solid var(--gray-200);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand-name {
  color: var(--black);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-col-title {
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-900);
  color: var(--pure-white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  transition: transform var(--duration-md) var(--ease);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { background: var(--green); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero h1 { font-size: 40px; }
  .hero-subtitle { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Tablet portrait & mobile */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-logo-text { font-size: 15px; }
  .header-logo-sub { display: none; }

  .hero { padding: 40px 16px 50px; }
  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 22px; }

  /* Hero search mobile */
  .hero-search {
    max-width: 100%;
    padding: 4px 6px 4px 16px;
    border-radius: var(--radius-lg);
  }
  .hero-search input {
    font-size: 14px;
    padding: 12px 0;
  }
  .hero-quick-tags {
    gap: 6px;
    margin-bottom: 20px;
  }
  .quick-tag {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Quick Order mobile */
  .quick-order-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quick-order-card {
    padding: 18px 16px;
  }
  .qo-icon { font-size: 26px; margin-bottom: 8px; }
  .qo-title { font-size: 16px; margin-bottom: 10px; }
  .qo-items span { font-size: 12px; }
  .qo-cta { font-size: 13px; }

  .quick-order-section .section-header,
  .quick-order-section .quick-order-grid,
  .quick-order-section .quick-budget-result {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Budget mobile */
  .quick-budget-header { padding: 14px 16px; }
  .quick-budget-title { font-size: 15px; }
  .quick-budget-body { padding: 12px 16px; }
  .quick-budget-actions { padding: 12px 16px 20px; }

  .qb-row {
    grid-template-columns: 32px 1fr;
    gap: 8px;
  }
  .qb-qty {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .qb-desc { font-size: 12px; }
  .qb-prices {
    grid-column: 1 / -1;
    gap: 8px;
    font-size: 11px;
  }
  .qb-total-val { font-size: 16px; }
  .qb-total-tag { font-size: 8px; }

  .section { padding: 50px 12px; }
  .section-title { font-size: 26px; }

  /* cat-grid stays as flex carousel on all breakpoints */
  .cat-card { padding: 12px 10px; flex: 0 0 120px !important; min-width: 120px !important; }
  .cat-card-icon { font-size: 22px; }
  .cat-card-name { font-size: 11px; }

  /* ★ 2 columnas en mobile — estilo PedidosYa/Rappi ★ */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-image {
    padding-top: 75%;
  }
  .product-image img {
    padding: 8px;
  }
  .product-image .no-img {
    font-size: 28px;
  }

  .product-card-body {
    padding: 10px 10px 12px;
  }

  .product-card-sku {
    font-size: 9px;
    margin-bottom: 2px;
  }

  .product-card-name {
    font-size: 12px;
    min-height: 30px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-card-note {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .product-prices {
    gap: 3px;
    margin-bottom: 10px;
  }
  .price-col {
    padding: 5px 2px;
  }
  .price-label {
    font-size: 7px;
    letter-spacing: 0;
    margin-bottom: 1px;
  }
  .price-value {
    font-size: 11px;
  }

  /* Controles compactos en mobile */
  .product-actions {
    flex-direction: column;
    gap: 6px;
  }
  .qty-control {
    width: 100%;
    justify-content: center;
  }
  .qty-btn {
    width: 32px;
    height: 30px;
    font-size: 18px;
  }
  .qty-input {
    width: 36px;
    height: 30px;
    font-size: 13px;
  }
  .btn-add-cart {
    width: 100%;
    padding: 10px 8px;
    font-size: 11px;
    border-radius: var(--radius-sm);
  }
  .btn-add-cart svg { width: 14px; height: 14px; }

  .combos-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { font-size: 11px; }
}

@media (max-width: 480px) {
  /* cat-grid is always flex carousel, no override needed */
  .hero h1 { font-size: 28px; letter-spacing: -0.8px; }
  .cart-totals { grid-template-columns: 1fr; }

  .product-grid {
    gap: 8px;
  }

  .product-card-name {
    font-size: 11px;
    min-height: 26px;
  }

  .price-value {
    font-size: 10px;
  }

  .price-label {
    font-size: 6.5px;
  }
}

/* ── Loading Skeleton ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card {
  height: 260px;
  border-radius: var(--radius);
}

/* ── Scroll to top ────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gray-900);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-md) var(--ease);
  box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--orange); }
.scroll-top svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════════
   COTIZADOR — Lenguaje natural en el Hero
   ══════════════════════════════════════════════════════════════ */

.cotizador-box {
  background: var(--pure-white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 16px;
  max-width: 680px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: border-color var(--duration-md) var(--ease), box-shadow var(--duration-md) var(--ease);
  text-align: left;
}
.cotizador-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 4px 24px rgba(255,90,0,0.12);
}

.cotizador-textarea {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  background: transparent;
  resize: none;
  line-height: 1.6;
}
.cotizador-textarea::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.cotizador-actions {
  display: flex;
  justify-content: center !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}

.cotizador-examples {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cotizador-examples span {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
}
.cotizador-examples button {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.cotizador-examples button:hover {
  background: rgba(255,90,0,0.08);
  border-color: var(--orange);
  color: var(--orange-dark);
}

.cotizador-btn {
  margin: 0 auto !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--pure-white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-orange);
  white-space: nowrap;
  flex-shrink: 0;
}
.cotizador-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,90,0,0.35);
}
.cotizador-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* ── Resultado del cotizador ── */
.cotizador-resultado {
  max-width: 680px;
  margin: 0 auto;
  background: var(--pure-white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  text-align: left;
}

.cot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.cot-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-900);
}
.cot-close {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
  background: none;
}
.cot-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.cot-body {
  padding: 8px 20px 0;
}

.cot-legend {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-100);
}
.cot-lbl-ef { color: var(--green-dark); }
.cot-lbl-tr { color: var(--blue-dark); }

.cot-row {
  display: grid;
  grid-template-columns: 36px 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50);
}

.cot-qty {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cot-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}
.cot-nota {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
  font-style: italic;
}

.cot-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.cot-ef { color: var(--green-dark); }
.cot-tr { color: var(--blue-dark); font-size: 11px; font-weight: 600; opacity: 0.85; }

.cot-no-match {
  font-size: 12px;
  color: var(--card-orange);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50);
}
.cot-no-match a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
}
.cot-error {
  padding: 20px;
  color: var(--gray-500);
  font-size: 14px;
  text-align: center;
}

.cot-totals {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 16px 20px;
}
.cot-total-box {
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius);
}
.cot-total-ef { background: var(--green-bg); border: 1.5px solid var(--green-border); }
.cot-total-tr { background: var(--blue-bg); border: 1.5px solid var(--blue-border); }
.cot-total-ta { background: var(--card-orange-bg); border: 1.5px solid var(--card-orange-border); }
.cot-total-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.cot-total-ef .cot-total-tag { color: var(--green-dark); }
.cot-total-tr .cot-total-tag { color: var(--blue-dark); }
.cot-total-ta .cot-total-tag { color: var(--card-orange); }
.cot-total-val {
  font-size: 18px;
  font-weight: 900;
}
.cot-total-ef .cot-total-val { color: var(--green-dark); }
.cot-total-tr .cot-total-val { color: var(--blue-dark); }
.cot-total-ta .cot-total-val { color: var(--card-orange); }
.cot-total-sub {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.7;
  margin-top: 3px;
}
.cot-total-ef .cot-total-sub { color: var(--green-dark); }
.cot-total-tr .cot-total-sub { color: var(--blue-dark); }
.cot-total-ta .cot-total-sub { color: var(--card-orange); }

.cot-footer-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 16px;
}
.cot-btn-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--gray-900);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
}
.cot-btn-cart:hover { background: var(--black); transform: translateY(-1px); }
.cot-btn-wa {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: #25D366;
  color: white;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--duration) var(--ease);
}
.cot-btn-wa:hover { background: #1DA851; transform: translateY(-1px); }

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile cotizador */
@media (max-width: 768px) {
  .cotizador-box { padding: 12px; }
  .cotizador-actions { flex-direction: column; align-items: stretch; }
  .cotizador-btn { width: 100%; justify-content: center; }
  .cotizador-examples { justify-content: center; }
  .cot-totals { grid-template-columns: 1fr; gap: 6px; }
  .cot-footer-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .cot-row { grid-template-columns: 30px 32px 1fr auto; gap: 8px; }
}



/* ═══ Carousels ═══ */
.home-carousels {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}
.carousel-section {
  display: flex;
  flex-direction: column;
}
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}
.carousel-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}
.carousel-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  cursor: pointer;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 12px;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar {
  height: 6px;
}
.carousel-track::-webkit-scrollbar-track {
  background: transparent;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 4px;
}
.carousel-track .product-card {
  flex: 0 0 200px; /* Fixed width for horizontal scroll */
  scroll-snap-align: start;
}
.catalog-full-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}
.btn-catalog-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--red);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-full);
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220, 0, 0, 0.25);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.btn-catalog-full:hover {
  background: var(--red-dark, #b30000);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 0, 0, 0.35);
}


.carousel-track-wrapper {
  position: relative;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pure-white);
  color: #3483fa; /* MercadoLibre blue */
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s, box-shadow 0.2s;
}
.carousel-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn.prev {
  left: -24px;
}
.carousel-btn.next {
  right: -24px;
}
@media (max-width: 768px) {
  .carousel-btn {
    display: none !important; /* Native swipe is enough on mobile */
  }
}

/* qo-compact adjustments */
.qo-compact .quick-order-card {
  padding: 12px;
  gap: 8px;
}
.qo-compact .qo-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.qo-compact .qo-title {
  font-size: 15px;
  margin-bottom: 4px;
}
.qo-compact .qo-items {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.qo-compact .qo-cta {
  font-size: 13px;
  margin-top: auto;
}
@media (max-width: 768px) {
  .qo-compact {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .qo-compact {
    grid-template-columns: 1fr;
  }
}


/* Combos desplazables horizontales */
.combos-carousel {
  display: flex !important;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.combos-carousel::-webkit-scrollbar {
  display: none;
}
.combos-carousel .combo-card {
  flex: 0 0 320px;
  max-width: 85vw;
  scroll-snap-align: center;
}

@media(min-width: 600px){ .cat-card { flex: 0 0 calc(25% - 14px); } }
@media(min-width: 900px){ .cat-card { flex: 0 0 calc(15% - 14px); } }

/* ── Product Carousel (Home) ────────────────────────────── */
.product-carousel-wrapper {
  position: relative;
  margin-bottom: 8px;
}
.product-carousel {
  display: flex !important;
  overflow-x: auto !important;
  gap: 16px;
  padding: 10px 4px 24px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-wrap: nowrap !important;
}
.product-carousel::-webkit-scrollbar {
  display: none;
}
.product-carousel .product-card {
  flex: 0 0 260px !important;
  min-width: 260px !important;
  scroll-snap-align: start;
  margin-bottom: 0 !important;
}
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.carousel-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.carousel-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  cursor: pointer;
}

/* ── Combos Full Page Grid ──────────────────────────────── */
.combos-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .combos-full-grid {
    grid-template-columns: 1fr;
  }
}

/* CAT-GRID CAROUSEL FIX v3 — match product carousel style */
.cat-grid {
  display: block !important;
  overflow-x: visible !important;
  gap: 0 !important;
  padding: 0 !important;
}
.cat-grid::-webkit-scrollbar { display: none !important; }
.cat-card {
  flex: 0 0 130px !important;
  min-width: 130px !important;
  scroll-snap-align: start !important;
  padding: 16px 10px !important;
  border-radius: 12px !important;
  border: 2px solid var(--gray-100) !important;
  text-align: center !important;
  background: var(--pure-white) !important;
  cursor: pointer !important;
  transition: all .2s !important;
}
.cat-card:hover { border-color: var(--orange) !important; transform: translateY(-2px) !important; }
.cat-card.active { border-color: var(--orange) !important; background: linear-gradient(135deg, #FFF5EE, #FFF0E5) !important; }
@media (min-width: 600px) { .cat-card { flex: 0 0 150px !important; min-width: 150px !important; } }

/* ═══ BANNER SLIDER ═══ */
.banner-slider {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  background: var(--gray-50);
}
.banner-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3.5/1;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s;
}
.banner-arrow:hover { background: rgba(0,0,0,0.7); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all .2s;
}
.banner-dot.active { background: white; transform: scale(1.3); }
@media (max-width: 768px) {
  .banner-slider { margin-top: 0; border-radius: 0; }
  .banner-track { aspect-ratio: 2.5/1; }
  .banner-arrow { width: 32px; height: 32px; font-size: 14px; }
  .banner-prev { left: 6px; }
  .banner-next { right: 6px; }
}

/* ═══ CAROUSEL BUTTONS (shared by products & categories) ═══ */
.carousel-track-wrapper {
  position: relative;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--pure-white);
  color: var(--gray-700);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all .2s;
}
.carousel-btn:hover { background: var(--gray-50); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 8px 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .carousel-btn { display: none !important; }
}

/* combo-card-center-fix */
.combo-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.combo-materials {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 12px;
}
.combo-prices {
  width: 100%;
  justify-content: center;
}
.combo-card .btn-primary {
  width: 100%;
  margin-top: auto;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.combos-carousel {
  margin: 0 auto;
}

/* ── Responsive: evitar desfase en presupuestos ── */
#cotizador-resultado,
#quick-budget-body,
#calc-container {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Grid de pagos del presupuesto unificado */
.budget-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  #cotizador-resultado > div,
  #quick-budget-body > div,
  #calc-container > div {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Boxes de pago vertical en mobile */
  .budget-payment-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Botón flotante WhatsApp ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  animation: waPulse 2s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}
.wa-float svg { width: 32px; height: 32px; fill: white; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}

/* ── Mapa de envío con radios ── */
.shipping-map-wrap {
  width: 100%;
  max-width: 800px;
  margin: 24px auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.shipping-map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
}
.shipping-radius-labels {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.radius-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.radius-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
}
.radius-dot.r5 { border-color: #16a34a; background: rgba(22, 163, 74, 0.15); }
.radius-dot.r10 { border-color: #2563eb; background: rgba(37, 99, 235, 0.15); }
.radius-dot.r15 { border-color: #ea580c; background: rgba(234, 88, 12, 0.15); }
.radius-dot.r20 { border-color: #dc2626; background: rgba(220, 38, 38, 0.15); }
@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
  .shipping-map-wrap iframe { height: 300px; }
}

/* ══════════════════════════════════════════════════════════════
   Samsung Galaxy / Small Mobile (≤ 420px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  /* ── Global spacing ── */
  .section { padding: 32px 12px; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 13px; }

  /* ── Cotizador ── */
  #cotizador textarea { font-size: 14px; min-height: 80px; }
  #cotizador .btn-primary { width: 100%; justify-content: center; }

  /* ── Calculadora: botones de categoría ── */
  .calc-categories,
  [style*="flex-wrap: wrap"][style*="justify-content: center"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .calc-categories .btn,
  .calc-categories button {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }

  /* ── Calculadora: formulario en columna ── */
  .calc-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .calc-form input,
  .calc-form select,
  .calc-form .btn-primary,
  .calc-form > div {
    width: 100% !important;
  }

  /* ── Presupuesto: tabla compacta ── */
  .budget-payment-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* ── Quick order cards ── */
  .quick-order-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Descuentos strip ── */
  .hero-stats,
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* ── Botones — todos centrados y full width en móvil ── */
  .btn-primary, .btn-secondary, .btn-whatsapp {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ── Shipping checker ── */
  .shipping-input-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .shipping-input-row .btn-primary {
    width: 100% !important;
  }

  /* ── Footer columns ── */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ── Combos ── */
  .combo-card {
    min-width: 280px !important;
    max-width: 320px !important;
  }

  /* ── Category carousel ── */
  .cat-card {
    flex: 0 0 100px !important;
    min-width: 100px !important;
  }
  .cat-card-text { font-size: 11px !important; }
  .cat-card-count { font-size: 9px !important; }

  /* ── Filter Toolbar mobile ── */
  .filter-toolbar {
    margin: -8px -12px 20px;
    padding: 12px 12px 10px;
    top: var(--header-h);
  }
  .filter-search {
    padding: 2px 4px 2px 14px;
    margin-bottom: 10px;
  }
  .filter-search input {
    font-size: 14px;
    padding: 10px 0;
  }
  .filter-categories {
    gap: 6px;
  }
  .filter-pill {
    font-size: 12px;
    padding: 5px 10px;
    gap: 4px;
  }
  .filter-pill-icon { font-size: 13px; }
  .filter-pill-count { font-size: 10px; padding: 1px 5px; }

  /* ── Product grid 2 cols apretados ── */
  .product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  /* ── Ocultar Transferencia en mobile, dejar solo Efectivo + Tarjeta ── */
  .price-col.transferencia {
    display: none !important;
  }

  /* ── Radius labels wrap ── */
  .shipping-radius-labels {
    gap: 8px;
    flex-wrap: wrap;
  }

  /* ── Mapa más bajo en mobile ── */
  #shipping-map {
    height: 280px !important;
  }

  /* ── Select filter full width ── */
  .filter-select-wrap {
    max-width: 100%;
  }

  /* ── Scroll top no se superponga con WA ── */
  .scroll-top {
    bottom: 80px !important;
    right: 16px !important;
  }
}

.filter-dropdown-menu { display: none; transform: translateY(-10px); opacity: 0; pointer-events: none; } .filter-dropdown-menu.show { display: block; transform: translateY(0); opacity: 1; pointer-events: auto; } .filter-dropdown-btn:hover { background: #fff5f5 !important; }
