/*
Theme Name: Distribuidora Valarezo
*/
:root {
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-ghost: #f0f4fa;
  --border: #d7e2f0;
  --text: #1f2f3f;
  --muted: #4a5d72;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(49, 112, 178, 0.16);
  --motion-fast: 0.18s;
  --motion-base: 0.28s;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  --gutter: clamp(14px, 4vw, 24px);
  --radius-sm: 12px;
  --shadow-soft: 0 12px 28px rgba(49, 112, 178, 0.14);
  --max-width: 1200px;
  --topbar-height: 76px;
  --card-min: 210px;
  --card-min-tight: 190px;
  --primary: #3170B2;
  /* Fallbacks para cualquier var(--sky-*) heredado (ej. builds tailwind) */
  --sky-50: #f2f6fb;
  --sky-100: #e5edf7;
  --sky-200: #c8d8ee;
  --sky-300: #a3bfe2;
  --sky-400: #7ba3d4;
  --sky-500: #3170B2;
  --sky-600: #285d96;
  --sky-700: #214d7e;
  --sky-800: #1a3e65;
  --sky-900: #12314f;
}

* { box-sizing: border-box; }
body.vzr-body {
  margin: 0;
  font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  line-height: 1.6;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--text);
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* Fondo liso global (sin gradientes) */
html, body, #page, .site, .app-shell, .main, main {
  background: #ffffff !important;
}
h1 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.2; margin: 0.12em 0; }
h2 { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.25; margin: 0.16em 0; }
h3 { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.28; margin: 0.18em 0; }
img, video { max-width: 100%; height: auto; display: block; }
.u-mt-10 { margin-top: 10px !important; }
.u-mt-12 { margin-top: 12px !important; }
.u-mt-14 { margin-top: 14px !important; }
.u-flex-fill { flex: 1 1 0; min-width: 0; }
.u-min-180 { min-width: 180px; }
.surface { background: #fff; border: 1px solid #d7e2f0; border-radius: var(--radius); box-shadow: var(--shadow); }
.motion-fade { opacity: 0; transform: translateY(-6px); transition: opacity var(--motion-base) ease, transform var(--motion-base) var(--motion-ease); will-change: transform, opacity; }
.motion-fade.is-ready { opacity: 1; transform: translateY(0); }
.motion-scale { transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) ease; will-change: transform; }
.motion-scale:hover { transform: translateY(-2px) scale(1.01); }
.main { animation: fadePage 0.32s ease both; }
.reveal { opacity: 0; transform: translateY(14px); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .36s ease, transform .36s cubic-bezier(0.22, 1, 0.36, 1); }
.soft-fade { animation: fadeIn 0.26s ease both; }
.hover-float { transition: transform .18s ease, box-shadow .2s ease; will-change: transform; }
.hover-float:hover { transform: translateY(-3px); }
.gpu { transform: translate3d(0,0,0); }
.reduce-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid #3170B2; outline-offset: 2px; }
body.cart-open, body.nav-open { overflow: hidden; }

.app-shell { max-width: var(--max-width); width: min(var(--max-width), 100%); margin: 0 auto; padding: 12px var(--gutter) calc(90px + var(--safe-bottom)); }

.vzr-topbar {
  background: #ffffff;
  border: 1px solid #d7e2f0;
  border-radius: 18px;
  padding: clamp(10px, 2vw, 16px) 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 8px;
  min-height: var(--topbar-height);
  z-index: 20;
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
   transition: transform .22s ease, box-shadow .22s ease, background .2s ease;
   will-change: transform;
}
.vzr-topbar.motion-fade { transform: translateY(-10px); }
.vzr-logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 52px; height: 38px; display: grid; place-items: center; }
.brand { font-weight: 700; letter-spacing: 0.1px; }
.icon-btn { border: none; background: transparent; padding: 8px; border-radius: 12px; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: var(--text); }

.vzr-search { background: #ffffff; border: 1px solid #d7e2f0; border-radius: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.vzr-search input { border: none; outline: none; background: transparent; width: 100%; font-size: 15px; }
.vzr-search svg { width: 18px; height: 18px; fill: var(--muted); }

.vzr-actions { display: flex; gap: 8px; align-items: center; }
.vzr-actions .action { position: relative; border: 1px solid #d7e2f0; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; width: 40px; height: 40px; min-width: 44px; min-height: 44px; cursor: pointer; text-decoration: none; touch-action: manipulation; }
.vzr-actions svg { width: 20px; height: 20px; fill: var(--text); }
.vzr-actions .pill { position: absolute; top: -6px; right: -6px; background: #ffccd3; color: #05070a; border-radius: 999px; padding: 2px 6px; font-size: 11px; font-weight: 700; }

.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
.nav-overlay.is-active { opacity: 1; pointer-events: auto; }
.nav-overlay.hidden { display: none !important; }
.nav-sheet { position: fixed; top: 0; left: 0; height: 100%; width: min(360px, 90vw); background: #fff; box-shadow: 10px 0 30px rgba(0,0,0,0.12); border-right: 1px solid #d7e2f0; z-index: 81; transform: translate3d(-26px,0,0); opacity: 0; pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 14px; transition: transform 0.24s ease, opacity 0.24s ease; will-change: transform, opacity; }
.nav-sheet.is-active { transform: translate3d(0,0,0); opacity: 1; pointer-events: auto; }
.nav-sheet.hidden { display: none !important; }
.nav-card { display: grid; gap: 12px; }
.nav-head { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: grid; gap: 8px; }
.nav-links a { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700; background: var(--surface); }
.nav-links a:hover, .nav-links a.active { background: #eaf2fb; color: #05070a; border-color: #3170B2; }
.nav-footer { display: grid; gap: 4px; padding: 10px 0; font-weight: 700; color: var(--muted); }

.desktop-tabs { display: flex; gap: 12px; padding: 12px 4px 10px; }
.desktop-tabs .tab { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.desktop-tabs .tab.active {
  background: #eaf2fb !important;
  color: #05070a !important;
  border-color: #3170B2 !important;
  box-shadow: 0 8px 20px rgba(49,112,178,0.22) !important;
}

.hero-banner { margin-top: clamp(10px, 2vw, 18px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(16px, 3vw, 26px); display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); align-items: center; gap: clamp(12px, 2.6vw, 20px); box-shadow: var(--shadow); }
.hero-text h1 { margin: 4px 0; font-size: clamp(26px, 2.8vw, 34px); }
.hero-text .lead { margin: 6px 0 14px; color: var(--muted); font-size: clamp(14px, 1.2vw, 16px); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.hero-actions .btn { flex: 1 1 180px; max-width: 240px; }
.hero-illus {
  position: relative;
  background: linear-gradient(135deg, #f7fbff 0%, #e8f1fb 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 240px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 18px);
  touch-action: pan-y;
  --hero-img-max: min(420px, 54vh);
}
.hero-illus.is-3d { perspective: 1100px; perspective-origin: 50% 48%; }
.hero-carousel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
}
.hero-carousel.is-3d {
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--hero-radius, 260px) * -1));
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}
.hero-carousel.is-3d .hero-slide { position: absolute; inset: 0; transform-origin: center center; }
.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
  backface-visibility: hidden;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-illus.is-3d .hero-slide {
  opacity: 1;
  transition: none;
}
.hero-illus.is-3d .hero-slide.is-active {
  opacity: 1;
}
.hero-slide img {
  width: min(100%, 980px);
  height: auto;
  max-height: var(--hero-img-max);
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 12px 30px rgba(17, 63, 115, 0.16));
  border-radius: 12px;
}
.hero-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}
.hero-nav-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.94);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}
.hero-nav-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,0.16); }
.hero-nav-btn:focus-visible { outline: 2px solid #3170B2; outline-offset: 2px; }
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(215,226,240,0.8);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  pointer-events: auto;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #b8cce3;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-dot.is-active { background: #3170B2; transform: scale(1.15); }

@media (max-width: 720px) {
  .hero-illus { min-height: 200px; padding: 12px; --hero-img-max: 260px; }
  .hero-slide img { max-height: var(--hero-img-max); }
  .hero-nav { inset: auto 12px 52px 12px; height: 0; pointer-events: none; }
  .hero-nav-btn { width: 44px; height: 44px; font-size: 16px; box-shadow: 0 10px 18px rgba(0,0,0,0.12); }
  .hero-nav-btn { position: relative; top: -26px; opacity: 0.78; }
}
@media (max-width: 520px) {
  .hero-illus { min-height: 180px; padding: 10px; --hero-img-max: 220px; }
  .hero-slide img { max-height: var(--hero-img-max); }
  .hero-nav { display: none; }
  .hero-dots { bottom: 8px; gap: 6px; padding: 6px 9px; box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
  .hero-dot { width: 9px; height: 9px; }
}
.click-strip { margin: 12px 0 2px; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 10px; }
.click-card { border: 1px solid #d7e2f0; background: #fff; border-radius: 14px; padding: 12px; display: grid; gap: 6px; font-weight: 800; color: var(--text); box-shadow: 0 10px 22px rgba(27,154,214,0.12); }
.click-card small { color: var(--muted); font-weight: 700; }

.pill-nav { margin: 14px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; color: var(--muted); cursor: pointer; position: static; }
.pill.active { background: #eaf2fb; color: #05070a; border-color: #3170B2; }
.pill.soft { background: var(--surface); color: var(--muted); border-color: var(--border); }

.section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(12px, 2.5vw, 20px); margin-top: clamp(12px, 2vw, 16px); box-shadow: var(--shadow); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.section-head.stackable { flex-wrap: wrap; gap: 6px 12px; }
.section-head h2 { margin: 2px 0; }
.link { color: #3170B2; text-decoration: none; font-weight: 700; }
.micro { text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-size: 12px; margin: 0; }
.lead { color: var(--muted); }
.muted { color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr)); gap: clamp(10px, 1.8vw, 14px); grid-auto-rows: 1fr; }
.product-grid.tight { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(var(--card-min-tight), 1fr)); grid-auto-rows: 1fr; }
.product-grid.minimal { gap: 10px; grid-auto-rows: 1fr; }
.card-prod {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(49, 112, 178, 0.14);
  height: 100%;
}
.card-prod.minimal { gap: 8px; padding: 10px; box-shadow: 0 8px 18px rgba(49, 112, 178, 0.12); }
.card-prod:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(27,154,214,0.18); border-color: #3170B2; }
.card-top { display: grid; grid-template-columns: 1fr; align-items: start; gap: 6px; position: relative; }
.card-prod .thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  min-height: 240px;
  max-height: 240px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.card-prod.minimal .thumb { padding: 6px; min-height: 200px; max-height: 200px; }
.prod-picture { width: 100%; height: 100%; display: block; }
.prod-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  cursor: zoom-in;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.18s ease;
}
.thumb.is-upscaled .prod-img { image-rendering: pixelated; }
.thumb:hover .prod-img { transform: scale(1.04); }
.card-prod, .cart-item, .section, .hero-banner, .product-hero, .checkout, .form-block { content-visibility: auto; contain-intrinsic-size: 260px 260px; }
.card-body { display: grid; gap: 6px; }
.card-prod.minimal .card-body { gap: 4px; }
.card-prod h3 { margin: 0; font-size: 16px; color: var(--text); }
.card-prod h3 a { color: inherit; text-decoration: none; }
.card-prod h3 a:hover { color: #3170B2; text-decoration: underline; }
.card-prod .price { font-weight: 800; color: var(--text); }
.card-prod .lead.small { font-size: 13px; color: var(--muted); margin: 0; }
.price-line-card { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.card-prod .rating { color: #f5a524; font-weight: 700; }
.card-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; align-items: stretch; }
.card-actions.single { grid-template-columns: 1fr; }
.card-prod .buy-link { background: #eef5ff !important; color: #05070a; border: 1px solid rgba(49,112,178,0.55); border-radius: 12px; padding: 11px; cursor: pointer; font-weight: 800; width: 100%; text-align: center; text-decoration: none; box-shadow: 0 12px 26px rgba(49,112,178,0.16); }
.card-prod .buy-link:hover { transform: translateY(-1px); }
.card-prod .fav { border: 1px solid #d7e2f0; background: #fff; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 16px; line-height: 1; box-shadow: 0 6px 12px rgba(27,154,214,0.14); }
.card-prod .fav.on { color: #e63946; border-color: #ffc5cb; }
.card-prod .btn.mini { padding: 8px 10px; font-size: 13px; }
.tags-row { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 10px; font-weight: 800; font-size: 11px; border: 1px solid #d7e2f0; color: var(--muted); background: #ffffff; }
.badge.offer { background: #fff4f0; color: #c0392b; border-color: #ffd6c7; }
.badge.new { background: #e8f9ef; color: #3170B2; border-color: #c9d9f1; }
.badge.tag { background: #f7f9fc; color: #3170B2; border-color: #cfdcf3; }
.card-top .badge.offer.floating {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  background: linear-gradient(135deg, #ff6b6b, #ff9f7f);
  color: #05070a;
  border-color: rgba(255,255,255,0.35);
  padding: 6px 12px;
}
.nudge-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 2px; }
.micro-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; border: 1px solid #d7e2f0; background: #ffffff; color: var(--muted); }
.micro-pill.soft { background: #ffffff; color: #6b7a8a; }
.micro-pill.go { background: #eef5ff; color: #05070a; border-color: rgba(49,112,178,0.4); box-shadow: 0 8px 18px rgba(49,112,178,0.16); }
.micro-pill.warn { background: #fff4ed; color: #c2410c; border-color: #ffd6b0; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.split.two-up { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #f7f9fc; border-radius: 10px; padding: 8px 12px; border: 1px solid #d7e2f0; font-weight: 700; color: var(--muted); text-decoration: none; }
.chip.active { background: #eaf2fb; color: #05070a; border-color: #3170B2; }
.brand-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 0; overflow-x: auto; scroll-snap-type: x proximity; }
.brand-strip .chip { scroll-snap-align: start; white-space: nowrap; }
.helpers { gap: 12px; }
.helper-card { background: #ffffff; border: 1px solid #d7e2f0; border-radius: 14px; padding: 12px; display: grid; gap: 8px; height: 100%; box-shadow: 0 10px 22px rgba(27,154,214,0.08); }
.actions-inline { display: grid; gap: 6px; align-content: start; }
.block-btn { width: 100%; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }

.sub-hero { margin-top: 10px; background: #ffffff; border: 1px solid #ddecf7; padding: 16px; border-radius: 14px; }
.sub-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.filters-bar { margin-top: 10px; background: #fff; border: 1px solid #d7e2f0; border-radius: 14px; padding: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; box-shadow: var(--shadow); }
.filters-bar.stacked { display: grid; gap: 10px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-status { flex: 1; min-width: 180px; }
.catalog-search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex: 1 1 260px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}
.catalog-search-field input {
  width: 100%;
  min-width: 140px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}
.catalog-search-field input::placeholder { color: #7f8fa2; }
.linea-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.linea-nav .chip { white-space: nowrap; }
.filters-bar .pill,
.filters-bar .field.pill {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.value-strip { margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 10px; }
.value-pill { border: 1px solid #d7e2f0; background: #ffffff; border-radius: 12px; padding: 10px 12px; font-weight: 800; color: var(--text); box-shadow: 0 10px 22px rgba(27,154,214,0.12); display: flex; align-items: center; gap: 8px; }
.value-pill span { font-size: 14px; color: var(--muted); font-weight: 700; }

.field.pill { background: #ffffff; border: 1px solid #d7e2f0; border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.field.pill { position: static; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.switch input { accent-color: #3170B2; }
.sorter { border: 1px solid #d7e2f0; background: #fff; border-radius: 12px; padding: 10px; font-weight: 600; }
.filter-sheet { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: grid; place-items: center; z-index: 70; transition: opacity 0.18s ease; }
.filter-sheet.hidden { opacity: 0; pointer-events: none; }
.filter-card { background: #fff; border: 1px solid #d7e2f0; border-radius: 16px; width: min(540px, 94vw); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.filter-card h3 { margin: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.filter-grid { display: grid; gap: 10px; }
.filter-field { display: grid; gap: 6px; font-weight: 700; color: var(--text); }
.filter-field select, .filter-field input[type="range"] { width: 100%; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.section-jump {
  animation: sectionJump 860ms ease both;
}

@keyframes sectionJump {
  0% { box-shadow: 0 0 0 0 rgba(49, 112, 178, 0); }
  38% { box-shadow: 0 0 0 7px rgba(49, 112, 178, 0.14), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}

.has-error input,
.has-error textarea,
.has-error select { border-color: #e76f51; background: #fff5f3; }
.error-msg { color: #c0392b; font-size: 13px; font-weight: 700; animation: fadeUp 0.2s ease both; }
.shake { animation: shake 0.3s ease; }

.switch, .radio { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.switch input, .radio input { accent-color: #3170B2; margin: 0; transform: scale(1.08); width: 20px; height: 20px; flex-shrink: 0; }

.product-hero { margin-top: 14px; background: #fff; border: 1px solid #d7e2f0; border-radius: 18px; padding: clamp(16px, 3vw, 24px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; box-shadow: var(--shadow); animation: fadeIn 0.25s ease both; max-width: 1180px; margin-inline: auto; }
.ph-media { background: #ffffff; border-radius: 16px; min-height: 520px; max-height: 660px; display: grid; place-items: center; padding: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.ph-media .prod-picture { width: 100%; height: 100%; display: block; }
.ph-media .prod-img { width: 101% !important; height: 100% !important; object-fit: cover !important; object-position: center center !important; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.06)); image-rendering: -webkit-optimize-contrast; }
.ph-media.is-upscaled .prod-img { image-rendering: pixelated; }
.img-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0,0,0,0.86); backdrop-filter: blur(6px); z-index: 120; opacity: 0; pointer-events: none; transition: opacity .22s ease, backdrop-filter .22s ease; }
.img-overlay.show { opacity: 1; pointer-events: auto; }
.img-overlay img { max-width: 96vw; max-height: 90vh; border-radius: 18px; box-shadow: 0 18px 38px rgba(0,0,0,0.5); transform: scale(.94); transition: transform .22s cubic-bezier(0.22,1,0.36,1); }
.img-overlay.show img { transform: scale(1); }
.overlay-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.84); color: #05070a; font-size: 22px; font-weight: 800; cursor: pointer; backdrop-filter: blur(4px); }
body.lightbox-open { overflow: hidden; }
.ph-info h1 { margin: 6px 0; }
.price-line { display: flex; gap: 12px; align-items: center; font-size: 22px; font-weight: 800; }
.price-line small { font-size: 12px; color: #405269; font-weight: 800; }
.status-line { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
.rating { color: #f5a524; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pd-desc { color: var(--muted); }
.confidence-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.checkout { margin-top: 14px; background: #fff; border: 1px solid #d7e2f0; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.step { text-align: center; padding: 10px; border-radius: 12px; background: #ffffff; border: 1px solid #d7e2f0; font-weight: 700; }
.step.active { background: #ffffff; border-color: #3170B2; color: var(--text); }
.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; }
.card-form { background: #ffffff; border: 1px solid #d7e2f0; border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.card-form label { display: grid; gap: 6px; font-weight: 700; color: var(--text); }
.card-form label.switch, .card-form label.radio { display: flex !important; align-items: center; gap: 12px; justify-content: flex-start; font-weight: 700; }
.card-form input, .card-form select, .card-form textarea { padding: 10px 12px; border-radius: 12px; border: 1px solid #d7e2f0; background: #fff; font-size: 15px; }
.card-form .is-locked { opacity: 0.78; }
.wizard-actions { display: flex; gap: 8px; justify-content: flex-end; }
.summary { background: #ffffff; border: 1px solid #d7e2f0; border-radius: 14px; padding: 14px; display: grid; gap: 10px; height: fit-content; }
.invoice-fields { border: 1px dashed #d7e2f0; background: #ffffff; border-radius: 12px; padding: 10px; margin: 8px 0; display: grid; gap: 8px; }
.sri-note { margin: 0; color: #263445; font-size: 13px; line-height: 1.45; font-weight: 700; }
.sri-note.small { font-size: 12px; color: #405269; }
.summary-list { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #d7e2f0; }
.summary-row span { min-width: 0; }
.summary-row small { display: block; margin-top: 3px; color: #405269; font-size: 12px; font-weight: 800; }
.summary-row.discount-row strong { color: #0b6848 !important; }
.summary-row.total { border: none; font-size: 18px; font-weight: 800; }

.success { margin-top: 20px; display: grid; place-items: center; }
.success-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #d6f1ff; border-radius: 18px; padding: 24px; max-width: 680px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.success-card.pop { animation: pulseGlow 1s ease-out 2; }
.success-card::after { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 45deg, #3170B2, #3170B2, #3170B2, #3170B2); opacity: 0; filter: blur(40px); transition: opacity 0.4s ease; z-index: 0; }
.success-card.pop::after { opacity: 0.35; }
.success-card > * { position: relative; z-index: 1; }
.success-badge { width: 82px; height: 82px; margin: 0 auto 10px; position: relative; display: grid; place-items: center; }
.success-badge .ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #3170B2, transparent 60%), radial-gradient(circle at 70% 70%, #3170B2, transparent 60%); filter: blur(1px); animation: spin 1.4s linear infinite; opacity: 0.8; }
.success-badge .check { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 3px solid #3170B2; color: #3170B2; font-weight: 900; font-size: 34px; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(49,112,178,0.24); animation: popIn 0.5s ease both; }
.order-summary { margin-top: 12px; text-align: left; border: 1px solid #d7e2f0; border-radius: 12px; padding: 12px; }
.order-summary ul { padding-left: 16px; }

.cart-panel { position: fixed; top: 0; right: 0; width: min(420px, 92vw); height: 100%; background: #fff; border-left: 1px solid #d7e2f0; box-shadow: -10px 0 30px rgba(0,0,0,0.12); display: grid; grid-template-rows: auto 1fr auto; z-index: 76; transform: translate3d(26px,0,0); opacity: 0; pointer-events: none; transition: transform 0.24s ease, opacity 0.24s ease; will-change: transform, opacity; }
.cart-panel.is-active { transform: translate3d(0,0,0); opacity: 1; pointer-events: auto; }
.cart-panel.hidden { display: none !important; }
.cart-head, .cart-foot { padding: 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d7e2f0; gap: 10px; }
.cart-head span { font-size: 18px; font-weight: 800; }
.cart-total { text-align: right; }
.cart-total strong { font-size: 20px; }
.cart-list { padding: 14px; overflow-y: auto; display: grid; gap: 12px; }
.cart-item { border: 1px solid #d7e2f0; border-radius: 14px; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: linear-gradient(180deg,#fff,#ffffff); }
.cart-thumb { width: 64px; height: 64px; background: #f7f9fc; border-radius: 12px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d7e2f0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-main { display: grid; gap: 6px; }
.cart-title { font-weight: 800; font-size: 16px; margin: 0; }
.cart-meta { color: var(--muted); font-size: 13px; }
.cart-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty-col { display: inline-flex; align-items: center; gap: 8px; background: #f7f9fc; border: 1px solid #d7e2f0; border-radius: 12px; padding: 6px 8px; }
.qty-col button { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; border: 1px solid #d4e7f5; background: #fff; cursor: pointer; }
.qty-col span { min-width: 32px; text-align: center; font-weight: 800; font-size: 17px; }
.line-total { font-weight: 800; color: var(--text); font-size: 16px; }
.icon-btn.danger { color: #c0392b; border: 1px solid #ffd6d6; background: #fff5f3; }
.icon-btn.danger:hover { background: #ffeae7; }
.cart-empty { text-align: center; padding: 24px 12px; display: grid; gap: 10px; color: var(--muted); }
.cart-empty .emoji { font-size: 28px; }
.cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

.toast { position: fixed; top: 18px; right: 18px; background: #e8f9ef; color: #05070a; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); z-index: 50; transition: opacity 0.2s ease, transform 0.2s ease; }
.toast.hidden { opacity: 0; pointer-events: none; transform: translateY(-10px); }

#waBubble { position: fixed; right: 14px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: #3170B2; display: grid; place-items: center; box-shadow: 0 16px 36px rgba(0,0,0,0.18); cursor: pointer; z-index: 45; border: 3px solid #ffffff; }
#waBubble svg { width: 28px; height: 28px; fill: #fff; }
#waBubble .ping { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37,211,102,0.4); animation: ping 1.8s ease infinite; }

.biz-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.btn { border: none; cursor: pointer; border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 15px; min-height: 44px; touch-action: manipulation; }
.btn { display: inline-block; text-decoration: none; text-align: center; }
.btn.primary { background: #eef5ff; color: #05070a; box-shadow: 0 12px 24px rgba(49,112,178,0.16); }
.btn.secondary { background: #e8f9ef; color: #1fa46d; border: 1px solid #c9f1dc; }
.btn.soft { background: #fff; color: #3170B2; border: 1px solid #d7e2f0; }
.btn.ghost { background: #f7f9fc; color: var(--text); border: 1px solid #d7e2f0; }
.btn.mini { padding: 8px 12px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.06); transition: all 0.15s ease; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #d7e2f0; display: none; grid-template-columns: repeat(4, 1fr); box-shadow: 0 -10px 24px rgba(0,0,0,0.05); z-index: 40; }
.bottom-nav::after { content: ""; position: absolute; inset: auto 0 0 0; height: env(safe-area-inset-bottom, 0px); }
.bn-item { padding: 12px 6px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--muted); text-decoration: none; font-weight: 700; display: grid; gap: 4px; place-items: center; transition: transform .15s ease, color .15s ease; will-change: transform; min-height: 56px; touch-action: manipulation; }
.bn-item svg { width: 22px; height: 22px; fill: currentColor; }
.bn-item:active { transform: translateY(1px); }
.bn-item.active { color: #3170B2; }

.form-block { background: #fff; border: 1px solid #d7e2f0; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.account-form { display: grid; gap: 10px; }
.account-form label { display: grid; gap: 6px; font-weight: 700; color: var(--text); }
.account-form input, .account-form textarea { padding: 10px 12px; border: 1px solid #d7e2f0; border-radius: 12px; background: #fff; }

.footer { margin-top: 20px; padding: 18px 12px; color: var(--muted); font-weight: 600; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: center; border: 1px solid #d7e2f0; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.footer-contact { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.added-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: grid; place-items: center; z-index: 60; transition: opacity 0.2s ease; }
.added-modal.hidden { opacity: 0; pointer-events: none; }
.added-card { background: #fff; border: 1px solid #d7e2f0; border-radius: 16px; padding: 16px; width: min(420px, 92vw); box-shadow: var(--shadow); display: grid; gap: 10px; }
.added-title { font-size: 20px; font-weight: 800; color: #3170B2; }
.added-body { display: grid; gap: 4px; }
.added-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 8px; }

.icon-btn {
  border: 1px solid #d7e2f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  touch-action: manipulation;
}
.icon-btn:hover { background: #f7f9fc; }

.pager { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pager-btn { border: 1px solid #d7e2f0; background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.pager-btn.active { background: #eaf2fb; color: #05070a; border-color: #3170B2; }
.pager-dots { padding: 8px 12px; color: var(--muted); }

.debug-toggle, .debug-panel, .debug-head, .debug-body { display: none !important; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 75; opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
.cart-overlay.is-active { opacity: 1; pointer-events: auto; }
.cart-overlay.hidden { display: none !important; }

.card-prod { animation: fadeUp 0.25s ease both; }
.card-prod:nth-child(2n) { animation-delay: 40ms; }
.card-prod:nth-child(3n) { animation-delay: 80ms; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadePage { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.pop-in { animation: popIn 0.35s ease both; }
@keyframes popIn { 0% { opacity: 0; transform: scale(.96) translateY(6px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(49,112,178,0.0); transform: scale(0.98); }
  60% { box-shadow: 0 0 40px rgba(49,112,178,0.32); transform: scale(1.01); }
  100% { box-shadow: 0 0 0 rgba(49,112,178,0.0); transform: scale(1); }
}
@keyframes confettiFall { to { transform: translate3d(0,110vh,0) rotate(300deg); opacity: 0; } }
.confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 90; }
.confetti-piece { position: absolute; top: -10px; width: 10px; height: 14px; background: #3170B2; border-radius: 2px; animation: confettiFall 1.6s ease-out forwards; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes ping { 0% { transform: scale(0.9); opacity: 0.75; } 80% { transform: scale(1.25); opacity: 0; } 100% { transform: scale(1.4); opacity: 0; } }

/* Paleta unificada: superficies y bordes neutros + azul principal */
:root {
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-ghost: #f0f4fa;
  --border: #d7e2f0;
}

.surface,
.vzr-topbar,
.vzr-search,
.vzr-actions .action,
.nav-links a,
.nav-sheet,
.hero-banner,
.click-card,
.pill,
.section,
.card-prod,
.card-prod .thumb,
.value-pill,
.helper-card,
.filter-card,
.filters-bar,
.field.pill,
.sorter,
.product-hero,
.ph-media,
.checkout,
.step,
.card-form,
.summary,
.order-summary,
.cart-panel,
.cart-head,
.cart-foot,
.cart-item,
.filter-card,
.btn.soft,
.btn.ghost,
.form-block,
.account-form input,
.account-form textarea,
.added-card,
.icon-btn,
.linea-nav {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

.chip,
.micro-pill,
.micro-pill.soft,
.qty-col {
  background: var(--surface-soft) !important;
  border-color: var(--border) !important;
}

.badge { border-color: var(--border) !important; background: var(--surface) !important; }
.cart-item { background: linear-gradient(180deg, var(--surface), var(--surface-soft)) !important; }

.badge.tag { background: var(--surface-ghost) !important; border-color: var(--border) !important; color: #3170B2 !important; }
.card-prod .fav,
.pager-btn,
.cart-thumb,
.invoice-fields {
  border-color: var(--border) !important;
  background: var(--surface) !important;
}
.cart-thumb { background: var(--surface-soft) !important; }

/* Rejilla de productos alineada */
.product-grid { grid-auto-rows: 1fr; }
.card-prod { display: flex; flex-direction: column; height: 100%; }
.card-prod .thumb { flex-shrink: 0; }
.card-prod .buy-link { margin-top: auto; }

/* ———— Fallback de compatibilidad: si algún navegador pinta en blanco, fuerza visibilidad */
.card-prod,
.cart-item,
.section,
.hero-banner,
.product-hero,
.checkout,
.form-block {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}


@media (max-width: 980px) {
  :root { --card-min: 190px; --card-min-tight: 170px; }
  .vzr-topbar { grid-template-columns: 1fr auto; grid-template-areas: "logo actions" "search search"; row-gap: 10px; position: sticky; top: 0; border-radius: 12px; z-index: 32; }
  .vzr-logo { grid-area: logo; }
  .vzr-search { grid-area: search; width: 100%; }
  .vzr-actions { grid-area: actions; justify-content: flex-end; }
  .desktop-tabs { display: none; }
  .hero-banner { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-panel { width: 100%; }
  .bottom-nav { display: grid; }
  .app-shell { padding-left: var(--gutter); padding-right: var(--gutter); padding-bottom: calc(110px + var(--safe-bottom)); }
  .filters-bar.stacked { position: sticky; top: calc(var(--topbar-height) + 6px); z-index: 15; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); }
  .linea-nav { padding: 6px; border: 1px solid #d7e2f0; border-radius: 12px; background: #ffffff; }
  #waBubble { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); right: 12px; width: 54px; height: 54px; }
  .card-prod { padding: 12px; }
  .card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .card-actions .btn, .card-actions .buy-link { width: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr)); }
  .product-grid.tight { grid-template-columns: repeat(auto-fit, minmax(var(--card-min-tight), 1fr)); }
  .price-line-card { align-items: center; gap: 10px; }
  .card-prod .rating { font-size: 15px; }
  .price-line-card .price { font-size: 18px; }
  .product-hero { padding: clamp(14px, 3vw, 18px); gap: 18px; }
  .ph-media { min-height: clamp(360px, 78vw, 540px); max-height: clamp(420px, 88vw, 600px); margin: 0 auto; width: 100%; }
  .ph-info { padding: 2px 4px; }
}

@media (max-width: 900px) {
  /* Fuerza 2 columnas en móvil/tablet para todas las rejillas de productos. */
  .product-grid,
  .product-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-prod .thumb {
    min-height: clamp(200px, 56vw, 300px);
    max-height: clamp(240px, 64vw, 340px);
  }
  .product-hero { padding: 14px; gap: 16px; border-radius: 16px; }
  .ph-media { min-height: clamp(340px, 74vw, 520px); max-height: clamp(380px, 82vw, 560px); }
}

@media (max-width: 640px) {
  :root { --card-min: 150px; --card-min-tight: 140px; }
  .product-grid,
  .product-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-prod .thumb {
    height: clamp(180px, 70vw, 260px);
    aspect-ratio: 4 / 3;
  }
  .card-prod .thumb .prod-img { object-fit: cover !important; }
  .vzr-topbar { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 14px; }
  .vzr-actions .action { width: 44px; height: 44px; }
  .vzr-search { padding: 8px; }
  .footer { text-align: center; gap: 6px; justify-items: center; }
  .footer-contact { justify-content: center; }
  .bottom-nav { font-size: 13px; }
  .click-strip, .value-strip { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .stepper { grid-template-columns: 1fr; }
  .card-form, .summary { padding: 12px; border-radius: 14px; }
  .card-form label.switch, .card-form label.radio { align-items: flex-start; }
  .summary-row { align-items: flex-start; }
  .summary-row strong { white-space: nowrap; }
  .product-hero { padding: 12px; gap: 14px; }
  .ph-media { min-height: clamp(320px, 86vw, 520px); max-height: clamp(360px, 96vw, 560px); }
}

@media (max-width: 520px) {
  :root { --card-min: 150px; --card-min-tight: 140px; }
  .vzr-topbar { grid-template-columns: 1fr; grid-template-areas: "logo" "search" "actions"; align-items: stretch; }
  .vzr-actions { justify-content: flex-start; }
  .vzr-search input { font-size: 14px; }
  .app-shell { padding: 10px var(--gutter) calc(110px + var(--safe-bottom)); }
  .hero-actions .btn { max-width: none; }
}

@media (max-width: 420px) {
  /* Evita cards apretadas o desbordes en teléfonos muy estrechos. */
  .product-grid,
  .product-grid.tight {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bn-item { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  #waBubble { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 900px) {
  /* En escritorio mantenemos imagen grande y aireada. */
  .card-prod .thumb {
    aspect-ratio: 4 / 3;
    min-height: 320px;
    max-height: 420px;
  }
}

/* Unifica cualquier azul “celeste” externo (plugins/Bootstrap) al azul principal. */
#hostinger-tools-vue-app :root,
#hostinger-tools-vue-app [data-bs-theme=light],
#hostinger-easy-onboarding-vue-app :root,
#hostinger-easy-onboarding-vue-app [data-bs-theme=light] {
  --bs-primary: #3170B2;
  --bs-primary-rgb: 49, 112, 178;
  --bs-link-color: #3170B2;
  --bs-link-color-rgb: 49, 112, 178;
  --bs-link-hover-color: #285d96;
  --bs-link-hover-color-rgb: 40, 93, 150;
  --bs-focus-ring-color: rgba(49,112,178,0.25);
}

/* Botones legibles: fondos claros y texto negro en toda la tienda. */
button,
input[type=submit],
input[type=button],
input[type=reset],
a.button,
a.btn,
.btn,
.btn-primary,
.btn.secondary,
.btn.soft,
.btn.ghost,
.wp-element-button,
#hostinger-tools-vue-app .btn-primary,
#hostinger-easy-onboarding-vue-app .btn-primary {
  background: #eef5ff !important;
  color: #05070a !important;
  border-color: #3170B2 !important;
}

.search-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1fr) !important;
  align-items: center;
  min-height: clamp(430px, 48vw, 535px);
  padding: clamp(82px, 8vw, 104px) clamp(26px, 5vw, 54px) clamp(30px, 4vw, 46px) !important;
  background: #ffffff !important;
  border: 1px solid #d7e2f0 !important;
  box-shadow: 0 22px 54px rgba(31, 55, 82, 0.12);
}

.search-hero-strip {
  position: absolute;
  inset: 0 0 auto;
  height: 56px;
  display: grid;
  place-items: center;
  background: #dce8f5;
  color: #1f2f3f;
  font-family: 'Inter', 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: clamp(17px, 1.6vw, 25px);
  font-weight: 800;
}

.search-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.search-hero-copy .micro {
  margin: 0 0 8px;
  color: #111827;
  font-family: 'Inter', 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.search-hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: #05070a;
  font-family: 'Inter', 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.search-hero-copy .lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: #7d8793;
  font-size: clamp(19px, 2.25vw, 30px);
  line-height: 1.18;
  font-weight: 600;
}

.search-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-top: clamp(24px, 3vw, 36px);
}

.search-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #d6e0eb;
  border-radius: 11px;
  background: #e9eff5;
  color: #172536;
  box-shadow: 0 9px 16px rgba(42, 64, 90, 0.18);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.search-pill.is-active {
  background: #eaf2fb;
  border-color: #3170B2;
  color: #05070a;
}

.search-pill.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 15px solid #3170B2;
}

.search-pill span {
  position: absolute;
  left: 50%;
  top: calc(100% + 26px);
  transform: translateX(-50%);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.search-hero .hero-illus {
  position: relative;
  min-height: clamp(300px, 32vw, 370px);
  padding: 12px 44px 72px;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  box-shadow: none;
}

.search-hero .hero-carousel {
  min-height: inherit;
}

.search-hero .hero-slide {
  padding: 8px;
}

.hero-card {
  position: relative;
  width: min(100%, 500px);
  min-height: clamp(220px, 25vw, 285px);
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) 1fr;
  align-items: center;
  gap: clamp(18px, 2.8vw, 34px);
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid #ccd8e7;
  border-radius: 20px;
  background: #e7eff9;
  box-shadow: 0 22px 38px rgba(41, 74, 112, 0.18);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.hero-orb {
  position: relative;
  z-index: 1;
  width: clamp(118px, 13vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.72), rgba(255,255,255,0) 32%),
    radial-gradient(circle at 64% 72%, #386f9f, #9fc5e9 64%, #b9d4ee);
  box-shadow: inset -16px -18px 26px rgba(31, 77, 119, 0.26), 0 16px 30px rgba(49, 112, 178, 0.28);
}

.hero-card-copy {
  position: relative;
  z-index: 1;
  color: #05070a;
}

.hero-card-copy h2 {
  margin: 0;
  max-width: 290px;
  font-family: 'Inter', 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: clamp(31px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-card-copy p {
  margin: 14px 0 0;
  color: #334155;
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.22;
  font-weight: 700;
}

.hero-card-copy span {
  display: inline-flex;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.search-hero .hero-nav {
  inset: 50% 2px auto;
  height: auto;
  transform: translateY(-50%);
  padding: 0;
}

.search-hero .hero-nav-btn {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  background: #ffffff !important;
  border-color: #d7e2f0 !important;
  color: #245c8e !important;
  font-size: 42px;
  font-weight: 500;
  box-shadow: 0 12px 26px rgba(31, 55, 82, 0.18);
}

.search-hero .hero-dots {
  bottom: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.search-hero .hero-dot {
  background: #b7c9dc !important;
}

.search-hero .hero-dot.is-active {
  background: #3170B2 !important;
}

.hero-chat-btn {
  position: absolute;
  right: 10px;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 26px;
  border-radius: 16px;
  background: #eef5ff;
  color: #05070a;
  box-shadow: 0 14px 28px rgba(49, 112, 178, 0.28);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 980px) {
  .search-hero {
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding: clamp(22px, 6vw, 34px) clamp(16px, 5vw, 26px) clamp(26px, 6vw, 36px) !important;
    gap: 18px;
  }

  .search-hero-strip {
    display: none;
  }

  .search-hero-copy h1 {
    max-width: 420px;
    font-size: clamp(38px, 10vw, 58px);
  }

  .search-hero-copy .lead {
    max-width: 480px;
    font-size: clamp(16px, 4.4vw, 22px);
  }

  .search-hero-pills {
    flex-wrap: nowrap;
    align-items: center;
    width: calc(100vw - (var(--gutter) * 2));
    max-width: 100%;
    margin-top: 24px;
    padding: 0 2px 8px;
    overflow-x: auto;
  }

  .search-pill {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 14px;
    box-shadow: 0 7px 12px rgba(42, 64, 90, 0.14);
  }

  .search-pill.is-active::after,
  .search-pill span {
    display: none;
  }

  .search-hero .hero-illus {
    min-height: 392px;
    padding: 4px 0 72px;
  }

  .search-hero .hero-nav,
  .search-hero .hero-dots {
    display: none;
  }

  .hero-card {
    width: 100%;
    min-height: 320px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    text-align: center;
    padding: 34px 22px;
  }

  .hero-orb {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 66px;
    opacity: 0.42;
  }

  .hero-card-copy h2 {
    max-width: 280px;
    font-size: clamp(32px, 9vw, 43px);
  }

  .hero-card-copy p {
    max-width: 280px;
    margin-inline: auto;
  }

  .hero-chat-btn {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 56px;
    border-radius: 18px;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .search-hero {
    padding-inline: 16px !important;
    border-radius: 20px;
  }

  .search-hero-copy .micro {
    display: none;
  }

  .search-hero-copy h1 {
    font-size: clamp(34px, 11vw, 45px);
  }

  .search-hero .hero-illus {
    min-height: 370px;
  }

  .hero-card {
    min-height: 300px;
  }
}

/* Bookmark hero buttons: hard override to win over older button styles. */
.search-hero .search-hero-pills {
  align-items: flex-start !important;
  gap: 12px !important;
}

.search-hero .search-hero-pills .search-pill {
  position: relative !important;
  isolation: isolate;
  min-height: 62px !important;
  padding: 13px 17px 23px !important;
  overflow: visible !important;
  border: 1px solid #cfdae7 !important;
  border-radius: 12px 12px 7px 7px !important;
  background: #e9eff5 !important;
  color: #172536 !important;
  box-shadow: 0 12px 20px rgba(34, 54, 78, 0.16) !important;
  transform: translate3d(0, 0, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease !important;
  will-change: transform;
}

.search-hero .search-hero-pills .search-pill::before {
  content: "" !important;
  position: absolute;
  inset: 7px 8px auto;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  pointer-events: none;
}

.search-hero .search-hero-pills .search-pill::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: -16px !important;
  width: 32px !important;
  height: 16px !important;
  transform: translateX(-50%) !important;
  border: 0 !important;
  background: inherit !important;
  clip-path: polygon(0 0, 100% 0, 50% 100%) !important;
  filter: drop-shadow(0 8px 6px rgba(34, 54, 78, 0.12));
  pointer-events: none;
}

.search-hero .search-hero-pills .search-pill:hover,
.search-hero .search-hero-pills .search-pill:focus-visible {
  transform: translate3d(0, -4px, 0) !important;
  box-shadow: 0 18px 28px rgba(34, 54, 78, 0.2) !important;
}

.search-hero .search-hero-pills .search-pill.is-active {
  background: #eaf2fb !important;
  border-color: #3170B2 !important;
  color: #05070a !important;
  animation: bookmarkSettle 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.search-hero .search-hero-pills .search-pill span {
  top: calc(100% + 24px) !important;
}

@keyframes bookmarkSettle {
  0% { transform: translate3d(0, -8px, 0) scale(0.98); }
  62% { transform: translate3d(0, 2px, 0) scale(1.01); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .search-hero .search-hero-pills .search-pill {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .search-hero .search-hero-pills {
    align-items: flex-start !important;
    padding-bottom: 20px !important;
  }

  .search-hero .search-hero-pills .search-pill {
    min-height: 54px !important;
    padding: 12px 14px 20px !important;
    font-size: 14px !important;
  }

  .search-hero .search-hero-pills .search-pill::after {
    display: block !important;
    bottom: -13px !important;
    width: 28px !important;
    height: 14px !important;
  }
}

.search-hero .search-hero-pills .search-pill .active-dot {
  position: absolute !important;
  top: auto !important;
  left: 50% !important;
  bottom: -27px !important;
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #ff4f5f !important;
  box-shadow: 0 0 0 6px rgba(255, 79, 95, 0.12);
  opacity: 0;
  transform: translateX(-50%) scale(0.6) !important;
  transition: opacity 180ms ease, transform 180ms ease !important;
}

.search-hero .search-hero-pills .search-pill.is-active .active-dot {
  opacity: 1;
  transform: translateX(-50%) scale(1) !important;
  animation: activeDotPulse 1.4s ease-in-out infinite;
}

@keyframes activeDotPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 79, 95, 0.12); }
  50% { box-shadow: 0 0 0 10px rgba(255, 79, 95, 0.04); }
}

.home-sort-tools {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-sort-tools .chip {
  cursor: pointer;
  min-height: 40px;
  background: var(--surface-soft) !important;
  color: var(--muted) !important;
  border-color: var(--border) !important;
}

.home-sort-tools .chip.active {
  background: #eaf2fb !important;
  color: #05070a !important;
  border-color: #3170B2 !important;
}

.card-prod {
  animation: productEnter 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card-prod h3 {
  min-height: 44px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-actions,
.card-actions.single {
  grid-template-columns: minmax(0, 1fr) 48px !important;
  min-height: 48px;
  margin-top: auto;
}

.card-prod .buy-link {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 12px !important;
  white-space: nowrap;
}

.share-link {
  width: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #3170B2 !important;
  border: 1px solid #d7e2f0 !important;
  box-shadow: 0 10px 22px rgba(49, 112, 178, 0.12) !important;
}

.share-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.share-link:hover,
.share-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(49, 112, 178, 0.18) !important;
}

.hero-card {
  animation: heroFloat 4.8s ease-in-out infinite;
}

.search-hero .hero-slide.is-active .hero-card {
  animation: heroSlideIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both, heroFloat 4.8s ease-in-out 420ms infinite;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translate3d(18px, 0, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes productEnter {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 16px;
  align-items: center;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.brand-carousel {
  overflow: hidden;
  margin-top: 12px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-carousel .brand-strip {
  width: max-content;
  flex-wrap: nowrap !important;
  gap: 10px;
  padding: 8px 0;
}

.brand-carousel .brand-strip.is-carousel {
  animation: brandMarquee 24s linear infinite;
}

.brand-carousel:hover .brand-strip.is-carousel {
  animation-play-state: paused;
}

@keyframes brandMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 980px) {
  .search-hero {
    margin-top: 8px;
    overflow: hidden;
  }

  .search-hero .search-hero-pills {
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .search-hero .search-hero-pills::-webkit-scrollbar {
    display: none;
  }

  .search-hero .search-hero-pills .search-pill {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .search-hero .search-hero-pills .search-pill .active-dot {
    bottom: -22px !important;
  }

  .home-sort-tools {
    justify-content: flex-start;
    width: 100%;
  }

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

  .about-points {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .search-hero {
    padding-top: 18px !important;
    gap: 14px;
  }

  .search-hero-copy h1 {
    max-width: 100%;
    line-height: 1.02;
  }

  .search-hero-copy .lead {
    margin-top: 10px;
  }

  .search-hero .hero-illus {
    min-height: 330px !important;
  }

  .hero-card {
    min-height: 260px !important;
    padding: 28px 18px !important;
  }

  .hero-card-copy h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .card-actions,
  .card-actions.single {
    grid-template-columns: minmax(0, 1fr) 46px !important;
  }

  .share-link {
    width: 46px !important;
    min-width: 46px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-prod,
  .hero-card,
  .search-hero .hero-slide.is-active .hero-card,
  .brand-carousel .brand-strip.is-carousel,
  .search-hero .search-hero-pills .search-pill.is-active .active-dot {
    animation: none !important;
  }
}

/* Robust mobile index layout. Keep this last so it wins over earlier iterations. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body.vzr-body {
    font-size: 15px;
  }

  .app-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 10px calc(112px + var(--safe-bottom)) !important;
    overflow-x: hidden;
  }

  .vzr-topbar {
    width: 100%;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "logo actions"
      "search search" !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    top: max(6px, env(safe-area-inset-top, 0px)) !important;
    overflow: visible;
  }

  .vzr-logo {
    min-width: 0;
  }

  .logo-mark {
    width: 50px;
    min-width: 50px;
    height: 28px;
  }

  .brand {
    min-width: 0;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px !important;
  }

  .vzr-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 48px);
    justify-content: end !important;
    gap: 8px !important;
  }

  .vzr-actions .action,
  .icon-btn {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 13px !important;
  }

  .vzr-search {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
  }

  .main {
    width: 100%;
    overflow-x: clip;
  }

  .search-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 18px 12px 14px !important;
    gap: 18px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .search-hero-copy {
    max-width: 100% !important;
    min-width: 0;
  }

  .search-hero-copy .micro {
    display: none !important;
  }

  .search-hero-copy h1 {
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(34px, 9.4vw, 43px) !important;
    line-height: 1.06 !important;
    overflow-wrap: anywhere;
  }

  .search-hero-copy .lead {
    max-width: 100% !important;
    margin: 10px 0 0 !important;
    font-size: clamp(16px, 4.2vw, 19px) !important;
    line-height: 1.34 !important;
  }

  .search-hero .search-hero-pills {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    margin-top: 18px !important;
    padding: 0 0 26px !important;
    overflow: visible !important;
  }

  .search-hero .search-hero-pills .search-pill {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 12px 10px 20px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.12 !important;
    font-size: clamp(13px, 3.55vw, 15px) !important;
  }

  .search-hero .search-hero-pills .search-pill::after {
    bottom: -12px !important;
    width: 26px !important;
    height: 13px !important;
  }

  .search-hero .search-hero-pills .search-pill .active-dot {
    bottom: -19px !important;
  }

  .search-hero .hero-illus {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: grid !important;
    gap: 12px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .search-hero .hero-carousel {
    width: 100% !important;
    min-height: 278px !important;
  }

  .search-hero .hero-slide {
    width: 100%;
    padding: 0 !important;
  }

  .hero-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 278px !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 12px !important;
    padding: 26px 18px !important;
    border-radius: 18px !important;
    text-align: center !important;
  }

  .hero-orb {
    top: 16px !important;
    right: 16px !important;
    width: 58px !important;
    opacity: 0.34 !important;
  }

  .hero-card-copy {
    width: 100%;
    min-width: 0;
  }

  .hero-card-copy h2 {
    max-width: 100% !important;
    font-size: clamp(30px, 8.8vw, 38px) !important;
    line-height: 1.02 !important;
    overflow-wrap: anywhere;
  }

  .hero-card-copy p {
    max-width: 100% !important;
    margin-top: 12px !important;
    font-size: clamp(15px, 4.1vw, 17px) !important;
    line-height: 1.35 !important;
  }

  .hero-card-copy span {
    max-width: 100%;
    margin-top: 18px !important;
    white-space: normal;
  }

  .hero-chat-btn {
    position: static !important;
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    border-radius: 18px !important;
  }

  #waBubble {
    right: 14px !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    width: 54px !important;
    height: 54px !important;
    z-index: 44;
  }

  .bottom-nav {
    min-height: 72px;
  }

  .bn-item {
    min-width: 0;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-inline: 8px !important;
  }

  .brand {
    max-width: 39vw;
  }

  .search-hero {
    padding-inline: 10px !important;
  }

  .search-hero .search-hero-pills {
    gap: 10px 8px !important;
  }

  .hero-card {
    min-height: 258px !important;
    padding-inline: 14px !important;
  }
}

/* High-contrast text override. Keep at end so all light surfaces read black. */
:root {
  --text: #05070a;
  --muted: #05070a;
}

body.vzr-body,
.main,
.section,
.sub-hero,
.filters-bar,
.value-pill,
.helper-card,
.card-prod,
.card-body,
.cart-panel,
.cart-item,
.footer,
.form-block,
.checkout,
.product-hero,
.nav-sheet,
.filter-card,
.search-hero,
.hero-card,
.vzr-topbar,
.vzr-search,
.bottom-nav,
.brand,
.lead,
.muted,
.micro,
.chip,
.pill,
.field,
.switch,
.catalog-search-field,
.catalog-search-field input,
.sorter,
.card-prod h3,
.card-prod h3 a,
.card-prod .price,
.card-prod .lead.small,
.value-pill span,
.micro-pill,
.micro-pill.soft,
.status-line,
.pd-desc,
.cart-meta,
.cart-empty,
.footer-contact,
.hero-card-copy,
.hero-card-copy p,
.hero-card-copy span,
.search-hero-copy .lead,
.search-pill,
.bn-item {
  color: #05070a !important;
}

input,
select,
textarea,
button {
  color: #05070a;
}

input::placeholder,
textarea::placeholder,
.vzr-search input::placeholder,
.catalog-search-field input::placeholder {
  color: #111827 !important;
  opacity: 1;
}

.btn.primary,
.buy-link,
.hero-chat-btn,
.search-pill.is-active,
.chip.active,
.pill.active,
.micro-pill.go,
.pager-btn.active,
.bottom-nav .bn-item.active,
button.btn,
input[type=submit],
input[type=button],
input[type=reset],
a.button,
a.btn,
.btn,
.btn-primary,
.wp-element-button {
  color: #05070a !important;
}

.btn.soft,
.btn.ghost,
.btn.secondary,
.share-link,
.icon-btn,
.vzr-actions .action,
.pager-btn,
.field.pill,
.search-pill:not(.is-active),
.chip:not(.active),
.pill:not(.active) {
  color: #05070a !important;
}

.badge,
.badge.tag,
.badge.new,
.badge.offer,
.micro-pill.warn,
.icon-btn.danger,
.rating,
.success-badge .check {
  color: #05070a !important;
}

.toast,
.overlay-close,
#waBubble,
#waBubble svg {
  color: #05070a !important;
  fill: #ffffff !important;
}

/* Final audit: no white labels on controls, selected states, or menu items. */
button,
input[type=submit],
input[type=button],
input[type=reset],
a.button,
a.btn,
.btn,
.btn-primary,
.btn.secondary,
.btn.soft,
.btn.ghost,
.card-prod .buy-link,
.hero-chat-btn,
.share-link,
.icon-btn,
.vzr-actions .action,
.desktop-tabs .tab,
.nav-links a,
.chip,
.pill,
.field.pill,
.search-pill,
.pager-btn,
.sorter,
.micro-pill,
.micro-pill.go,
.bottom-nav .bn-item,
.home-sort-tools .chip,
.link {
  color: #05070a !important;
}

.btn.primary,
.btn.secondary,
.btn.soft,
.btn.ghost,
.btn-primary,
.card-prod .buy-link,
.hero-chat-btn,
.micro-pill.go,
.wp-element-button {
  background: #eef5ff !important;
  border: 1px solid #3170B2 !important;
  color: #05070a !important;
  box-shadow: 0 10px 22px rgba(49, 112, 178, 0.12) !important;
}

.desktop-tabs .tab.active,
.desktop-tabs .tab:hover,
.nav-links a.active,
.nav-links a:hover,
.chip.active,
.chip:hover,
.pill.active,
.pill:hover,
.field.pill.active,
.field.pill:hover,
.search-pill.is-active,
.search-pill:hover,
.pager-btn.active,
.pager-btn:hover,
.home-sort-tools .chip.active,
.bottom-nav .bn-item.active {
  background: #eaf2fb !important;
  border-color: #3170B2 !important;
  color: #05070a !important;
}

.search-pill.is-active::after,
.search-hero .search-hero-pills .search-pill::after {
  background: inherit !important;
}

.vzr-actions .pill,
#cartBadge,
.toast,
.added-title,
.badge,
.badge.offer,
.badge.new,
.badge.tag,
.micro-pill.warn,
.line-total,
.price,
.rating {
  color: #05070a !important;
}

.toast {
  background: #e8f9ef !important;
  border: 1px solid #9edfc4 !important;
}

#waBubble svg {
  fill: #ffffff !important;
}

/* WhatsApp y compra: override final para mantener colores de conversión. */
:root {
  --wa-green: #25D366;
  --buy-blue: #3170B2;
}

#waBubble {
  background: var(--wa-green) !important;
  border-color: #ffffff !important;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.32) !important;
}

#waBubble .ping {
  border-color: rgba(37, 211, 102, 0.5) !important;
}

.card-prod .buy-link,
#pdBuyNow {
  background: var(--buy-blue) !important;
  border-color: var(--buy-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(49, 112, 178, 0.28) !important;
}

.card-prod .buy-link:hover,
#pdBuyNow:hover {
  filter: brightness(0.96);
}

.phone-field {
  position: relative;
  padding: 12px;
  border: 2px solid rgba(49, 112, 178, 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  box-shadow: 0 14px 30px rgba(49, 112, 178, 0.14);
}

.phone-field input {
  min-height: 54px;
  border: 2px solid #3170B2 !important;
  font-size: 18px !important;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.field-hint,
.phone-quality {
  color: #25445f;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.phone-quality {
  display: none;
}

.phone-field.phone-ok {
  border-color: rgba(37, 211, 102, 0.82);
  background: linear-gradient(180deg, #ffffff, #effbf4);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.18);
}

.phone-field.phone-ok input {
  border-color: #25D366 !important;
}

.phone-field.phone-ok .phone-quality {
  color: #0f6b3d;
}

.phone-field.phone-needs-quality {
  border-color: rgba(231, 111, 81, 0.72);
  background: linear-gradient(180deg, #ffffff, #fff6f2);
}

.phone-field.phone-needs-quality input {
  border-color: #e76f51 !important;
}

/* Ajuste final solicitado: cards alineadas por nombre y telefono homologado. */
.card-prod .card-body {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
}

.card-prod h3 {
  min-height: calc(1.32em * 3) !important;
  line-height: 1.32 !important;
  -webkit-line-clamp: 3 !important;
}

.card-actions,
.card-actions.single {
  margin-top: auto !important;
}

.phone-field {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.phone-field input {
  min-height: auto !important;
  border: 1px solid #d7e2f0 !important;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0;
}

.phone-field.phone-ok,
.phone-field.phone-needs-quality {
  background: transparent !important;
  box-shadow: none !important;
}

.phone-field.phone-ok input {
  border-color: rgba(37, 211, 102, 0.78) !important;
  background: #f7fff9 !important;
}

.phone-field.phone-needs-quality input {
  border-color: rgba(231, 111, 81, 0.78) !important;
  background: #fffaf7 !important;
}

.field-hint,
.phone-quality {
  font-size: 12px;
  font-weight: 700;
  color: #405269;
}

/* Cards con precio visible y medidas consistentes en laptop/desktop. */
.card-prod {
  min-height: 100%;
}

.card-prod .price-line-card {
  min-height: 32px;
  align-items: center;
}

.card-prod .price {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 20px;
  font-weight: 900;
  color: #1f2f3f !important;
}

@media (min-width: 981px) {
  :root {
    --card-min: 220px;
    --card-min-tight: 220px;
  }

  .product-grid,
  .product-grid.tight {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    align-items: stretch;
  }

  .card-prod {
    min-height: 424px;
  }

  .card-prod .thumb,
  .card-prod.minimal .thumb {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }
}

@media (min-width: 1180px) {
  .product-grid,
  .product-grid.tight {
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)) !important;
  }
}

/* Stock interno: cuando requiere asesor, el CTA visible va directo a WhatsApp sin mostrar unidades. */
.card-prod .assist-link,
#pdWhats.assist-primary {
  background: var(--wa-green) !important;
  border-color: var(--wa-green) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.26) !important;
}

.card-prod .assist-link:hover,
#pdWhats.assist-primary:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.services-section {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  animation: serviceSectionIn 0.44s ease both;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
  margin-top: 14px;
  align-items: stretch;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  align-items: center;
  gap: 4px 14px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 211, 102, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
  color: #05070a;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(49, 112, 178, 0.12);
  transform: translate3d(0, 0, 0);
  animation: serviceCardIn 0.58s cubic-bezier(0.2, 0.84, 0.34, 1) both;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:nth-child(2) { animation-delay: 0.08s; }
.service-card:nth-child(3) { animation-delay: 0.16s; }

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.72) 42%, transparent 58%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.service-card:hover::before,
.service-card:focus-visible::before {
  animation: serviceShine 0.76s ease both;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px auto;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--buy-blue), var(--wa-green));
  opacity: 0.72;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 211, 102, 0.58);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.16);
}

.service-card:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.32);
  outline-offset: 3px;
}

.service-icon {
  grid-area: icon;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(49, 112, 178, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 12px 22px rgba(49, 112, 178, 0.13);
  animation: serviceIdle 3.8s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon { animation-delay: 0.28s; }
.service-card:nth-child(3) .service-icon { animation-delay: 0.56s; }

.service-icon svg {
  width: 64px;
  height: 64px;
  overflow: visible;
}

.service-card strong {
  grid-area: title;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.08;
  font-weight: 900;
}

.service-card small {
  grid-area: text;
  color: #405269;
  font-weight: 800;
  line-height: 1.35;
}

.svc-paper,
.svc-receipt,
.svc-phone {
  fill: #eef5ff;
  stroke: #3170B2;
  stroke-width: 3;
}

.svc-body {
  fill: #3170B2;
}

.svc-paper.out {
  fill: #ffffff;
  animation: printSlide 1.8s ease-in-out infinite;
}

.svc-line,
.svc-wave {
  fill: none;
  stroke: #3170B2;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 34;
  animation: serviceDraw 2.3s ease-in-out infinite;
}

.svc-bolt {
  fill: #25D366;
  animation: servicePulse 1.5s ease-in-out infinite;
}

.svc-dot {
  fill: #25D366;
  animation: servicePulse 1.8s ease-in-out infinite;
}

.svc-dot.light { fill: #3170B2; animation-delay: 0.18s; }
.svc-dot.phone { fill: #f5a524; animation-delay: 0.36s; }

.service-card:hover .service-icon {
  animation: serviceFloat 0.78s ease both;
}

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

@keyframes serviceCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes serviceShine {
  0% { opacity: 0; transform: translateX(-120%); }
  35% { opacity: 0.72; }
  100% { opacity: 0; transform: translateX(120%); }
}

@keyframes serviceIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes printSlide {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@keyframes servicePulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes serviceFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1.5deg); }
}

@keyframes serviceDraw {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 18; }
}

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

  .service-card {
    min-height: 116px;
    padding: 14px;
  }

  .service-icon {
    width: 66px;
    height: 66px;
    border-radius: 16px;
  }

  .service-icon svg {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 430px) {
  .services-section .section-head {
    gap: 6px;
  }

  .service-card {
    grid-template-columns: 58px 1fr;
    gap: 4px 10px;
    min-height: 104px;
  }

  .service-card strong {
    font-size: 17px;
  }

  .service-card small {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-paper.out,
  .svc-bolt,
  .svc-dot,
  .svc-line,
  .svc-wave,
  .services-section,
  .service-card,
  .service-icon,
  .service-card:hover .service-icon {
    animation: none !important;
  }
}
