/*
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); }
.vzr-perf-section { content-visibility: auto; contain-intrinsic-size: 1px 620px; contain: layout paint style; }
.vzr-perf-card { contain: layout paint; backface-visibility: hidden; transform: translateZ(0); }
.anim-lift-in { animation: liftIn .52s var(--motion-ease) both; }
.anim-fade-drop { animation: fadeDrop .46s var(--motion-ease) both; }
.anim-slide-left { animation: slideInLeft .56s var(--motion-ease) both; }
.anim-slide-right { animation: slideInRight .56s var(--motion-ease) both; }
.anim-zoom-in { animation: zoomReveal .48s var(--motion-ease) both; }
.anim-blur-in { animation: blurReveal .62s var(--motion-ease) both; }
.anim-pop-in { animation: popReveal .44s cubic-bezier(0.2, 0.84, 0.34, 1) both; }
.anim-tilt-in { transform-origin: top center; animation: tiltSettle .58s var(--motion-ease) both; }
.anim-float-soft { animation: floatSoft 4.8s ease-in-out infinite; }
.anim-sheen { position: relative; overflow: hidden; }
.anim-sheen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 0 40%, rgba(255,255,255,0.42) 48%, transparent 58% 100%); transform: translateX(-120%); animation: sheenSweep 2.8s ease 1 both; pointer-events: none; }
.anim-pulse-soft { animation: pulseSoft 2.8s ease-in-out infinite; }
.anim-glow-soft { animation: glowSoft 3.2s ease-in-out infinite; }
[data-low-power="1"] .anim-lift-in,
[data-low-power="1"] .anim-fade-drop,
[data-low-power="1"] .anim-slide-left,
[data-low-power="1"] .anim-slide-right,
[data-low-power="1"] .anim-zoom-in,
[data-low-power="1"] .anim-blur-in,
[data-low-power="1"] .anim-pop-in,
[data-low-power="1"] .anim-tilt-in,
[data-low-power="1"] .anim-float-soft,
[data-low-power="1"] .anim-sheen::after,
[data-low-power="1"] .anim-pulse-soft,
[data-low-power="1"] .anim-glow-soft,
[data-page-hidden="1"] .anim-float-soft,
[data-page-hidden="1"] .anim-pulse-soft,
[data-page-hidden="1"] .anim-glow-soft { animation: none !important; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid #3170B2; outline-offset: 2px; }
body.cart-open, body.nav-open { overflow: hidden; }

@keyframes liftIn {
  from { opacity: 0; transform: translate3d(0, 20px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes fadeDrop {
  from { opacity: 0; transform: translate3d(0, -16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translate3d(-24px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

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

@keyframes zoomReveal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes blurReveal {
  from { opacity: 0; filter: blur(10px); transform: translate3d(0, 12px, 0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

@keyframes popReveal {
  0% { opacity: 0; transform: scale(0.92); }
  62% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes tiltSettle {
  from { opacity: 0; transform: perspective(900px) rotateX(10deg) translateY(20px); }
  to { opacity: 1; transform: perspective(900px) rotateX(0deg) translateY(0); }
}

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

@keyframes sheenSweep {
  from { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(49,112,178,0); }
  50% { transform: scale(1.02); box-shadow: 0 10px 24px rgba(49,112,178,0.18); }
}

@keyframes glowSoft {
  0%, 100% { box-shadow: 0 0 0 rgba(49,112,178,0.0); }
  50% { box-shadow: 0 16px 34px rgba(49,112,178,0.18); }
}

.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;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
  backface-visibility: hidden;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-banner-link {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(204, 216, 231, 0.9);
  border-radius: 20px;
  background: #075f67;
  box-shadow: 0 22px 38px rgba(41, 74, 112, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-banner-link:hover,
.hero-banner-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 48px rgba(41, 74, 112, 0.28);
}

.hero-banner-link:focus-visible {
  outline: 3px solid rgba(49, 112, 178, 0.42);
  outline-offset: 4px;
}

.hero-banner-link picture,
.hero-banner-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner-link img {
  max-height: none;
  object-fit: cover;
  border-radius: inherit;
  filter: none;
}

.hero-campaign-card {
  position: relative;
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 174, 0.82);
  border-radius: 20px;
  background: #075f67;
  box-shadow: 0 22px 38px rgba(41, 74, 112, 0.2);
  color: #082f3a;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-campaign-card:hover,
.hero-campaign-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 48px rgba(41, 74, 112, 0.28);
}

.hero-campaign-card:focus-visible {
  outline: 3px solid rgba(49, 112, 178, 0.42);
  outline-offset: 4px;
}

.hero-campaign-card .hero-campaign-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit;
  filter: none !important;
}

.hero-campaign-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 247, 239, 0.96) 0%, rgba(255, 238, 224, 0.82) 39%, rgba(255, 238, 224, 0.08) 68%);
}

.hero-campaign-copy {
  position: absolute;
  inset: 20px auto 20px 20px;
  width: min(54%, 288px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hero-campaign-copy > strong {
  max-width: 280px;
  color: #064b59;
  font-size: clamp(24px, 2.4vw, 35px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero-campaign-text {
  color: #24485a;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 800;
  line-height: 1.3;
}

.hero-campaign-logos,
.hero-campaign-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-campaign-logo {
  min-width: 54px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(214, 225, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px rgba(17, 63, 115, 0.1);
}

.hero-campaign-logo img {
  width: auto !important;
  max-width: 82px !important;
  height: 18px !important;
  max-height: 18px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  filter: none !important;
}

.hero-campaign-logo.is-dark {
  border-color: rgba(6, 58, 82, 0.9);
  background: #063a52;
}

.hero-campaign--transfer .hero-campaign-logo {
  min-width: 70px;
}

.hero-campaign--transfer .hero-campaign-logo img {
  max-width: 76px !important;
  height: 16px !important;
  max-height: 16px !important;
}

.hero-campaign-badges span {
  padding: 5px 8px;
  border: 1px solid rgba(8, 91, 104, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #075f67;
  font-size: 10px;
  font-weight: 900;
}

.hero-campaign-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a56b12, #d7a53b);
  color: #fff;
  box-shadow: 0 8px 18px rgba(130, 82, 10, 0.24);
  font-size: 11px;
  font-weight: 950;
  line-height: 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; }

  .search-hero .hero-carousel {
    min-height: calc(100vw - 56px) !important;
  }

  .hero-slide--banner {
    align-items: stretch;
  }

  .hero-banner-link {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 17px;
  }
}

.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-nav .home-jump-button {
  min-height: 44px;
  font: inherit;
  font-weight: 750;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.pill-nav .home-jump-button:hover,
.pill-nav .home-jump-button:focus-visible,
.pill-nav .home-jump-button.is-jumping {
  border-color: #3170b2;
  background: #eef5fd;
  box-shadow: 0 8px 18px rgba(49, 112, 178, .14);
  outline: none;
}
.pill-nav .home-jump-button.is-jumping { transform: translateY(-2px); }
#ofertas,
#nuevos,
#lineas,
#marcas-home { scroll-margin-top: 118px; }
.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; position: relative; overflow: hidden; }
.prod-img {
  position: absolute;
  left: var(--img-left, 0);
  top: var(--img-top, 0);
  width: var(--img-width, 100%) !important;
  height: var(--img-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 .prod-img { cursor: pointer; }
.card-prod .thumb:hover .prod-img { transform: none; }
.product-hero .prod-img { cursor: zoom-in; }
.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; }
.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; position: relative; overflow: hidden; }
.ph-media .prod-img { width: var(--img-width, 101%) !important; height: var(--img-height, 100%) !important; left: var(--img-left, 0); top: var(--img-top, 0); 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; }
.product-hero .specs .chip-soft { display: none; }
.product-code-muted {
  margin: -2px 0 10px;
  color: #7b8794;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.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; }
.checkout-journey-card,
.checkout-payment-note,
.checkout-journey-note {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7e2f0;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.checkout-journey-card strong,
.checkout-payment-note strong,
.checkout-journey-note strong {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}
.checkout-journey-card ul,
.checkout-journey-note ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #33465d;
  font-size: 13px;
  font-weight: 700;
}
.checkout-payment-note span,
.checkout-journey-note li,
.checkout-journey-card li {
  color: #33465d;
  font-size: 13px;
  line-height: 1.45;
}
.billing-custom-fields.hidden {
  display: none !important;
}
.billing-choice-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #cfe0f2;
  border-radius: 13px;
  background: linear-gradient(180deg, #f8fbff, #f1f7fd);
}
.billing-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border: 1px solid #cbd9e8;
  border-radius: 12px;
  background: #e9f0f7;
}
body[data-page="checkout"] .card-form .billing-mode-switch label {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}
.billing-mode-switch input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}
.billing-mode-switch span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #5b6f84;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.billing-mode-switch input:checked + span {
  border-color: #a9c7e5;
  background: #fff;
  color: #1d5f9d;
  box-shadow: 0 5px 12px rgba(30, 78, 126, .12);
}
.checkout-billing-same span {
  display: grid;
  gap: 2px;
}
.checkout-billing-same small,
.billing-custom-head small {
  color: #61758a;
  font-size: 11px;
  line-height: 1.35;
}
.billing-same-summary {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff;
  color: #597086;
  font-size: 11px;
  line-height: 1.35;
}
.billing-same-summary strong {
  color: #183755;
  font-size: 12px;
}
.billing-custom-fields {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #fff;
}
.billing-custom-head {
  display: grid;
  gap: 3px;
}
.billing-demo-button {
  width: fit-content;
  min-height: 40px;
  justify-self: start;
}
.checkout-address-check {
  align-items: flex-start !important;
}
.checkout-local-delivery.hidden {
  display: none !important;
}
.checkout-local-delivery-choice {
  width: 100%;
  align-items: flex-start !important;
  border-color: #b8dfca !important;
  background: #f2faf6 !important;
}
.checkout-local-delivery-choice span {
  display: grid !important;
  gap: 3px;
}
.checkout-local-delivery-choice strong {
  color: #145f45;
  font-size: 14px;
}
.checkout-local-delivery-choice small {
  color: #405269;
  font-size: 12px;
  line-height: 1.4;
}
.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, .account-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd9e8; border-radius: 12px; background: #fff; color: var(--text); font: inherit; }
.account-form textarea { min-height: 76px; resize: vertical; }
.account-form input:focus, .account-form textarea:focus, .account-form select:focus { outline: 3px solid rgba(49,112,178,.14); border-color: #3170b2; }
.account-profile-hero { padding-bottom: 10px; }
.account-profile-shell { width: min(920px, 100%); margin-inline: auto; }
.account-profile-form { gap: 14px; }
.account-privacy-note { margin: 0; padding: 11px 13px; border: 1px solid #d7e2f0; border-radius: 12px; background: #f7faff; color: #526a82; font-size: 13px; font-weight: 700; line-height: 1.45; }
.account-profile-card { min-width: 0; margin: 0; padding: 16px; border: 1px solid #d7e2f0; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(31,69,110,.06); }
.account-profile-card legend { padding: 0 7px; color: #19334d; font-size: 16px; font-weight: 900; }
.account-field-grid, .account-custom-billing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-custom-billing { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3ebf4; }
.account-custom-billing.hidden { display: none !important; }
.account-wide-field { grid-column: 1 / -1; }
.account-billing-switch { width: min(440px, 100%); margin-bottom: 12px; }
.account-profile-actions { display: flex; gap: 10px; justify-content: flex-end; }
.account-profile-actions .btn { min-width: 190px; }
.account-profile-status { min-height: 20px; margin: 0; color: #287454; font-size: 13px; font-weight: 800; text-align: right; }

@media (max-width: 860px) {
  .account-profile-shell { padding-inline: 10px; }
  .account-field-grid, .account-custom-billing { grid-template-columns: 1fr; }
  .account-wide-field { grid-column: auto; }
  .account-profile-actions { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 8; padding: 10px; border: 1px solid #d7e2f0; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(28,60,94,.14); backdrop-filter: blur(12px); }
  .account-profile-actions .btn { flex: 1; min-width: 0; }
}

@media (max-width: 420px) {
  .account-profile-card { padding: 13px; border-radius: 14px; }
  .account-profile-actions { display: grid; grid-template-columns: 1fr; }
  .account-profile-actions .btn { width: 100%; }
  .account-profile-status { text-align: center; }
}

.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% -28px 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;
  padding: 6px 0 12px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

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

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

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

.brand-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(92px, 1fr) 28px;
  width: 246px;
  min-width: 246px;
  min-height: 104px;
  overflow: hidden;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(66, 109, 154, .18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.96));
  color: #142a45;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(31, 75, 119, .10);
  scroll-snap-align: start;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 178, .46);
  box-shadow: 0 18px 34px rgba(31, 75, 119, .17);
  outline: none;
}

.brand-card-media {
  display: grid;
  width: 82px;
  height: 82px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(50, 94, 137, .13);
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 35%, #fff 0 42%, #edf4fb 100%);
}

.brand-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  mix-blend-mode: multiply;
}

.brand-card-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.brand-card-copy strong {
  overflow: hidden;
  color: #173d64;
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-card-copy small {
  color: #65798e;
  font-size: 11px;
  font-weight: 750;
}

.brand-card-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e4f0fb;
  color: #1f6fb2;
  font-size: 16px;
  font-weight: 900;
}

.brand-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(226px, 1fr));
  gap: 16px;
}

.brand-directory .brand-card {
  width: 100%;
  min-width: 0;
}

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

@media (max-width: 700px) {
  .brand-carousel {
    overflow-x: auto;
    padding-bottom: 8px;
    mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .brand-carousel::-webkit-scrollbar {
    display: none;
  }

  .brand-carousel .brand-strip {
    gap: 10px;
    padding: 5px 18px;
  }

  .brand-carousel .brand-strip.is-carousel {
    animation: none;
  }

  .brand-card {
    grid-template-columns: 68px minmax(86px, 1fr) 24px;
    width: 210px;
    min-width: 210px;
    min-height: 88px;
    gap: 9px;
    padding: 8px;
    border-radius: 18px;
  }

  .brand-card-media {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .brand-card-copy strong {
    font-size: 13px;
  }

  .brand-card-arrow {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .brand-directory {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand-directory .brand-card {
    width: 100%;
  }
}

@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;
  }
}

/* PayPhone: conserva iconos y prefijo telefónico dentro de la misma fila. */
body[data-page="checkout"] #pp-button .ppb-input-group {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

body[data-page="checkout"] #pp-button .ppb-input-group > .ppb-form-control {
  width: 1% !important;
  min-width: 0 !important;
  flex: 1 1 0 !important;
}

body[data-page="checkout"] #pp-button .ppb-input-group > .ppb-input-group-text {
  display: grid !important;
  width: 46px !important;
  min-width: 46px !important;
  flex: 0 0 46px !important;
  padding: 0 10px !important;
  place-items: center !important;
}

body[data-page="checkout"] #pp-button .country-selector {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}

body[data-page="checkout"] #pp-button .country-selector .flag-container {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  z-index: 2 !important;
  display: flex !important;
  width: 88px !important;
  height: 100% !important;
  align-items: center !important;
}

body[data-page="checkout"] #pp-button .country-selector .selected-flag {
  display: flex !important;
  width: 88px !important;
  height: 100% !important;
  padding: 0 9px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  border-radius: 11px 0 0 11px !important;
}

body[data-page="checkout"] #pp-button .country-selector input[type="tel"] {
  width: 100% !important;
  min-width: 0 !important;
  padding-right: 13px !important;
  padding-left: 98px !important;
  color: #10243b !important;
  -webkit-text-fill-color: #10243b !important;
  caret-color: #245f9b !important;
}

body[data-page="checkout"] #pp-button .ppb-form-control,
body[data-page="checkout"] #pp-button .ppb-form-select {
  color: #10243b !important;
  -webkit-text-fill-color: #10243b !important;
  background-color: #fff !important;
}

body[data-page="checkout"] #pp-button .ppb-form-control:focus,
body[data-page="checkout"] #pp-button .ppb-form-select:focus {
  position: relative !important;
  z-index: 1 !important;
  border-color: #2f73b7 !important;
  box-shadow: 0 0 0 3px rgba(47, 115, 183, .14) !important;
  outline: 0 !important;
}

body[data-page="checkout"] #pp-button .ppb-form-check-input {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
}

@media (max-width: 680px) {
  body[data-page="checkout"] #pp-button input:not([type="checkbox"]):not([type="radio"]),
  body[data-page="checkout"] #pp-button select {
    min-height: 48px !important;
    font-size: 16px !important;
  }

  body[data-page="checkout"] #pp-button button:not(.ppb-btn-pay) {
    width: auto !important;
  }

  body[data-page="checkout"] #pp-button .ppb-btn-pay {
    width: 100% !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,
.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 {
  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;
}

body[data-page="home"] .card-prod .thumb,
body[data-page="home"] .card-prod .thumb img,
body[data-page="home"] .offer-thumb img,
body[data-page="home"] .hot-thumb img {
  cursor: pointer !important;
}

.services-floating {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: 96px;
  z-index: 64;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.services-floating .service-toggle {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 15px;
  border-color: rgba(49, 112, 178, 0.34);
  background: linear-gradient(135deg, #ffffff, #eaf4ff);
  box-shadow: 0 16px 34px rgba(17, 63, 115, 0.22);
}

.services-floating .service-toggle-icon {
  width: 22px;
  height: 22px;
  fill: var(--buy-blue);
}

.services-floating .service-toggle-arrow {
  width: 18px;
  height: 18px;
}

.services-floating:not(.is-collapsed) .service-toggle-arrow {
  transform: rotate(180deg);
}

.services-floating .service-grid {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 180px));
  overflow: auto;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d7e2f0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(17, 63, 115, 0.26);
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: right bottom;
  transition: opacity 0.18s ease, transform 0.2s ease, visibility 0.2s ease;
}

.services-floating.is-collapsed .service-grid {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.97);
}

.services-floating-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 4px 5px;
}

.services-floating-head strong {
  font-size: 17px;
  color: var(--text);
}

.services-floating-head span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.services-floating .service-card {
  min-height: 92px;
  grid-template-columns: 58px 1fr;
  gap: 3px 11px;
  padding: 11px;
}

.services-floating .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.services-floating .service-icon svg {
  width: 47px;
  height: 47px;
}

.services-floating .service-card strong {
  font-size: 16px;
}

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

.service-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(37, 211, 102, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, #e9fff2, #eef5ff);
  color: #05070a;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.14);
}

.service-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.18s ease;
}

.services-section:not(.is-collapsed) .service-toggle svg {
  transform: rotate(180deg);
}

.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) {
  body.mobile-search-results-first #best {
    margin-top: 8px;
    border-color: rgba(37, 211, 102, 0.36);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.12);
  }

  body.mobile-search-results-first #best .section-head {
    align-items: flex-start;
  }

  body.mobile-search-results-first #homeBookmarkKicker::after {
    content: " por búsqueda";
  }

  .services-section {
    padding: 12px !important;
  }

  .services-floating {
    right: 12px;
    bottom: 86px;
    padding: 0 !important;
  }

  .services-floating .service-grid {
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 170px);
  }

  .services-floating.is-collapsed .service-grid {
    max-height: calc(100vh - 170px);
    margin: 0;
  }

  .services-section .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .services-section .section-head h2 {
    font-size: 18px;
    margin: 0;
  }

  .services-section .section-head .micro {
    margin: 0 0 2px;
  }

  .service-toggle {
    display: inline-flex;
    white-space: nowrap;
  }

  .service-grid {
    grid-template-columns: 1fr;
    overflow: hidden;
    max-height: 620px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.24s ease, margin-top 0.2s ease;
  }

  .services-section.is-collapsed .service-grid {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .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;
  }
}

/* Logo oficial y selector de vista móvil. */
.logo-mark {
  width: clamp(180px, 16vw, 220px) !important;
  min-width: 172px !important;
  height: 58px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.mobile-view-toggle {
  display: none;
}

.bottom-nav {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 760px) {
  .vzr-logo {
    gap: 7px !important;
  }

  .logo-mark {
    width: min(52vw, 152px) !important;
    min-width: 124px !important;
    height: 40px !important;
  }

  .vzr-actions {
    grid-template-columns: repeat(2, 48px) !important;
  }

  .mobile-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    min-height: 44px;
    border: 1px solid rgba(49, 112, 178, 0.25);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(49, 112, 178, 0.1);
  }

  .mobile-view-toggle button {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    min-height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #405269;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-view-toggle button svg {
    width: 23px;
    height: 23px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-view-toggle button.active,
  .mobile-view-toggle button[aria-pressed="true"] {
    background: var(--buy-blue);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(49, 112, 178, 0.2);
  }

  .sheet-view-toggle {
    width: max-content;
  }

  .filter-row .mobile-view-toggle,
  .pill-nav .mobile-view-toggle {
    flex: 0 0 auto;
  }

  body[data-mobile-product-view="grid"] .product-grid,
  body[data-mobile-product-view="grid"] .product-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body[data-mobile-product-view="list"] .product-grid,
  body[data-mobile-product-view="list"] .product-grid.tight {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body[data-mobile-product-view="list"] .card-prod,
  body[data-mobile-product-view="list"] .card-prod.minimal {
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px !important;
    align-items: stretch;
  }

  body[data-mobile-product-view="list"] .card-prod .card-top {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  body[data-mobile-product-view="list"] .card-prod .thumb,
  body[data-mobile-product-view="list"] .card-prod.minimal .thumb {
    width: 108px !important;
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 4px !important;
    border-radius: 12px;
  }

  body[data-mobile-product-view="list"] .card-prod .card-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    gap: 6px;
  }

  body[data-mobile-product-view="list"] .card-prod h3 {
    min-height: 0 !important;
    font-size: 15px !important;
    line-height: 1.22 !important;
    -webkit-line-clamp: 2 !important;
  }

  body[data-mobile-product-view="list"] .card-prod .price {
    min-height: 24px;
    font-size: 18px;
  }

  body[data-mobile-product-view="list"] .card-actions,
  body[data-mobile-product-view="list"] .card-actions.single {
    grid-template-columns: 1fr !important;
    gap: 6px;
    margin-top: auto !important;
  }

  body[data-mobile-product-view="list"] .share-link {
    display: none !important;
  }
}

@media (max-width: 420px) {
  body[data-mobile-product-view="grid"] .product-grid,
  body[data-mobile-product-view="grid"] .product-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-mobile-product-view="list"] .card-prod,
  body[data-mobile-product-view="list"] .card-prod.minimal {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  body[data-mobile-product-view="list"] .card-prod .thumb,
  body[data-mobile-product-view="list"] .card-prod.minimal .thumb {
    width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
  }
}

/* Checkout: correo opcional y ciudad/sector con buscador fluido. */
.optional-label {
  color: #6b7a8a;
  font-size: 12px;
  font-weight: 800;
}

.city-field {
  position: relative;
  gap: 8px !important;
}

.city-field input {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.city-field input:focus {
  border-color: var(--buy-blue) !important;
  box-shadow: 0 0 0 4px rgba(49, 112, 178, 0.12);
  outline: none;
}

.city-options {
  display: grid;
  gap: 6px;
  max-height: 246px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(49, 112, 178, 0.2);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(49, 112, 178, 0.14);
  animation: cityOptionsIn 0.16s ease both;
  overscroll-behavior: contain;
}

.city-options.hidden {
  display: none !important;
}

.city-options button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #f7f9fc;
  color: #1f2f3f;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.city-options button small {
  color: #6b7a8a;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.city-options button:hover,
.city-options button.active {
  background: #eef5ff;
  border-color: rgba(49, 112, 178, 0.38);
  color: #05070a;
}

.city-empty {
  padding: 10px 12px;
  color: #405269;
  font-size: 13px;
  font-weight: 800;
}

@keyframes cityOptionsIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .city-options {
    max-height: 210px;
    padding: 7px;
  }

  .city-options button {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

.delivery-billing-notice,
.delivery-shipping-quote,
.delivery-order-note {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(49, 112, 178, 0.22);
  background: #eef5ff;
  color: #1f2f3f;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 800;
}

.delivery-billing-notice.hidden {
  display: none !important;
}

.delivery-shipping-quote.hidden {
  display: none !important;
}

.delivery-billing-notice strong,
.delivery-shipping-quote strong,
.delivery-order-note strong {
  font-size: 14px;
  font-weight: 900;
}

.delivery-billing-notice.pending,
.delivery-order-note.pending {
  border-color: rgba(245, 165, 36, 0.42);
  background: #fff8e8;
}

.delivery-shipping-quote.pending {
  border-color: rgba(49, 112, 178, 0.28);
  background: #eef5ff;
}

.delivery-billing-notice.direct,
.delivery-order-note.direct {
  border-color: rgba(37, 211, 102, 0.35);
  background: #effbf4;
}

.delivery-shipping-quote.ready {
  border-color: rgba(37, 211, 102, 0.35);
  background: #effbf4;
}

.delivery-shipping-quote.error {
  border-color: rgba(231, 111, 81, 0.34);
  background: #fff5f2;
}

.delivery-shipping-quote span {
  display: block;
  font-size: 12px;
  line-height: 1.42;
  font-weight: 700;
}

.delivery-shipping-quote > small {
  color: #24704c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.delivery-order-note {
  margin-top: 10px;
}

.delivery-order-note p {
  margin: 0;
}

.delivery-order-note .btn {
  width: fit-content;
  margin-top: 2px;
}

.sri-document {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(49, 112, 178, 0.22);
  border-radius: 12px;
  background: #f7fbff;
}

.sri-document.pending {
  border-color: rgba(245, 165, 36, 0.42);
  background: #fffaf0;
}

.sri-document.direct {
  border-color: rgba(37, 211, 102, 0.35);
  background: #f3fcf7;
}

.sri-document dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.sri-document dl > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.42fr) 1fr;
  gap: 8px;
  align-items: start;
}

.sri-document dt {
  color: #405269;
  font-size: 12px;
  font-weight: 900;
}

.sri-document dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.sri-document .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.sri-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sri-document-actions .btn {
  min-height: 38px;
}

/* fix66: cards 1:1, una linea, sin flecha y sin saltos agresivos en movil */
.search-pill.is-active::after,
.search-hero .search-hero-pills .search-pill::after {
  content: none !important;
  display: none !important;
}

.product-grid,
.product-grid.tight,
.product-grid.minimal {
  align-items: start !important;
}

.card-prod,
.card-prod.minimal,
.product-grid .card-prod,
.product-grid.tight .card-prod {
  background: #ffffff !important;
  border: 1px solid #d7dfec !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 20px rgba(44, 94, 168, 0.08) !important;
  overflow: hidden !important;
  padding: 0 !important;
  gap: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  animation: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}

.card-prod:hover,
.card-prod.minimal:hover {
  transform: none !important;
  border-color: #c9d8ef !important;
  box-shadow: 0 10px 24px rgba(44, 94, 168, 0.12) !important;
}

.card-prod::before,
.card-prod::after,
.card-prod .card-top::before,
.card-prod .card-top::after,
.card-prod .thumb::before,
.card-prod .thumb::after {
  content: none !important;
  display: none !important;
}

.card-prod .card-top {
  display: block !important;
}

.card-prod .thumb,
.card-prod.minimal .thumb {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #e7eef7 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.card-prod .prod-picture {
  background: #ffffff !important;
}

.card-prod .prod-img {
  object-fit: contain !important;
  object-position: center center !important;
  transition: none !important;
  image-rendering: auto !important;
}

.thumb:hover .prod-img,
.card-prod:hover .prod-img {
  transform: none !important;
}

.card-prod .card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px 12px 0 !important;
  min-width: 0 !important;
}

.card-prod h3,
.card-prod h3 a {
  display: block !important;
  margin: 0 !important;
  min-height: 0 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  color: #264980 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

.card-prod .price-line-card {
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding-bottom: 2px !important;
}

.card-prod .price {
  display: inline-flex !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #244f96 !important;
}

.card-actions,
.card-actions.single {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  gap: 8px !important;
  align-items: stretch !important;
  padding: 0 12px 12px !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

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

.card-prod .buy-link,
.card-prod .assist-link {
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #2f72c6 !important;
  background: #2f72c6 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
  white-space: nowrap !important;
}

.share-link {
  width: 44px !important;
  min-width: 44px !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  border: 1px solid #cfdcf1 !important;
  background: #ffffff !important;
  color: #2f72c6 !important;
  box-shadow: none !important;
}

.share-link:hover,
.share-link:focus-visible {
  transform: none !important;
  box-shadow: none !important;
}

.section,
.product-grid,
.product-grid .card-prod {
  scroll-margin-top: 96px;
}

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

@media (max-width: 980px) {
  .product-grid,
  .product-grid.tight,
  body[data-mobile-product-view="grid"] .product-grid,
  body[data-mobile-product-view="grid"] .product-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-mobile-product-view="list"] .product-grid,
  body[data-mobile-product-view="list"] .product-grid.tight {
    grid-template-columns: 1fr !important;
  }

  body[data-mobile-product-view="list"] .card-prod,
  body[data-mobile-product-view="list"] .card-prod.minimal {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body[data-mobile-product-view="list"] .card-prod .thumb,
  body[data-mobile-product-view="list"] .card-prod.minimal .thumb {
    width: 112px !important;
    min-width: 112px !important;
    height: 112px !important;
    min-height: 112px !important;
    border-right: 1px solid #e7eef7 !important;
    border-bottom: 0 !important;
  }

  body[data-mobile-product-view="list"] .card-prod .card-body {
    padding: 10px 12px 0 !important;
  }

  body[data-mobile-product-view="list"] .share-link {
    display: inline-grid !important;
  }
}

@media (max-width: 420px) {
  .card-prod h3,
  .card-prod h3 a {
    font-size: 13px !important;
  }

  .card-prod .price {
    font-size: 17px !important;
  }
}

/* fix67: saneamiento final de thumbs, CTA WhatsApp y cache-safe rendering */
.thumb.is-upscaled .prod-img {
  image-rendering: auto !important;
}

.card-prod .prod-picture {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.card-prod .prod-picture[data-smart-crop="1"] .prod-img {
  inset: 0 !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Vista pública exacta usada dentro de Tario: sin navegación ni espacios muertos. */
body[data-tario-embed="1"] {
  min-height: 0 !important;
  background: #ffffff !important;
}

body[data-tario-embed="1"] .vzr-topbar,
body[data-tario-embed="1"] .desktop-tabs,
body[data-tario-embed="1"] #navOverlay,
body[data-tario-embed="1"] #navSheet,
body[data-tario-embed="1"] #cartPanel,
body[data-tario-embed="1"] #cartOverlay,
body[data-tario-embed="1"] #waBubble,
body[data-tario-embed="1"] .bottom-nav,
body[data-tario-embed="1"] .footer,
body[data-tario-embed="1"] .sub-hero,
body[data-tario-embed="1"] .filters-bar,
body[data-tario-embed="1"] .value-strip,
body[data-tario-embed="1"] .section-head,
body[data-tario-embed="1"] #pager {
  display: none !important;
}

body[data-tario-embed="1"] .app-shell,
body[data-tario-embed="1"] .main {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body[data-tario-embed="1"] .main,
body[data-tario-embed="1"] .section,
body[data-tario-embed="1"] .product-hero,
body[data-tario-embed="1"] .card-prod,
body[data-tario-embed="1"] .prod-picture,
body[data-tario-embed="1"] .prod-img {
  content-visibility: visible !important;
  contain: none !important;
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body[data-tario-embed="1"] .section {
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-tario-embed="1"][data-page="catalogo"] #gridCatalog {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  width: min(100%, 420px) !important;
  margin-inline: auto !important;
}

body[data-tario-embed="1"][data-page="producto"] .product-hero {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-tario-embed="1"][data-page="producto"] .ph-media {
  min-height: 0 !important;
  max-height: none !important;
  width: min(100%, 520px) !important;
  margin-inline: auto !important;
}

body[data-tario-embed="1"][data-page="producto"] #gridDetail {
  display: none !important;
}

.thumb.is-landscape .prod-picture[data-smart-crop="1"] .prod-img {
  object-position: center center !important;
}

.thumb.is-portrait .prod-picture[data-smart-crop="1"] .prod-img {
  object-position: center 28% !important;
}

.thumb.is-square .prod-picture[data-smart-crop="1"] .prod-img {
  object-position: center center !important;
}

.card-prod .assist-link {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  text-wrap: balance !important;
  overflow: visible !important;
  text-overflow: clip !important;
  padding: 10px 10px !important;
  min-height: 48px !important;
}

.card-actions.single .assist-link {
  width: 100% !important;
}

#waBubble {
  width: 60px !important;
  height: 60px !important;
  right: 16px !important;
  bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  background: #25d366 !important;
  color: #ffffff !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.34) !important;
}

#waBubble svg {
  width: 30px !important;
  height: 30px !important;
  fill: #ffffff !important;
}

#waBubble .ping {
  inset: -5px !important;
  border-width: 2px !important;
}

@media (max-width: 980px) {
  #waBubble {
    width: 58px !important;
    height: 58px !important;
    right: 12px !important;
    bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .card-prod .thumb,
  .card-prod.minimal .thumb {
    border-radius: 10px 10px 0 0 !important;
    overflow: hidden !important;
  }
}

/* fix69: grilla visible en todos los móviles, CTA compactos y bubble sin choque */
.product-grid,
.product-grid.tight,
.product-grid.minimal,
.product-grid .card-prod,
.product-grid.tight .card-prod,
.filters-bar,
.value-strip,
.sub-hero {
  opacity: 1 !important;
  visibility: visible !important;
  content-visibility: visible !important;
  contain: none !important;
  transform: none !important;
}

.card-prod .buy-link,
.card-prod .assist-link {
  font-size: clamp(12px, 1vw + 11px, 18px) !important;
  padding-inline: clamp(6px, 1vw + 4px, 12px) !important;
}

.card-prod .buy-link {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.share-link svg {
  width: 18px !important;
  height: 18px !important;
}

@media (max-width: 390px) {
  .product-grid,
  .product-grid.tight,
  body[data-mobile-product-view="grid"] .product-grid,
  body[data-mobile-product-view="grid"] .product-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .card-prod,
  .card-prod.minimal {
    border-radius: 14px !important;
  }

  .card-prod .card-body {
    gap: 6px !important;
    padding: 8px 8px 0 !important;
  }

  .card-prod h3,
  .card-prod h3 a {
    font-size: 11px !important;
    line-height: 1.18 !important;
  }

  .card-prod .price {
    font-size: 14px !important;
  }

  .card-actions,
  .card-actions.single {
    gap: 6px !important;
    padding: 0 8px 10px !important;
  }

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

  .card-prod .buy-link {
    min-height: 38px !important;
    font-size: 13px !important;
    padding: 8px 4px !important;
    border-radius: 10px !important;
  }

  .card-prod .assist-link {
    min-height: 50px !important;
    font-size: 11px !important;
    line-height: 1.08 !important;
    border-radius: 10px !important;
    padding: 8px 6px !important;
  }

  .share-link {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    border-radius: 10px !important;
  }

  #waBubble {
    display: none !important;
  }
}

@media (max-width: 340px) {
  .product-grid,
  .product-grid.tight,
  body[data-mobile-product-view="grid"] .product-grid,
  body[data-mobile-product-view="grid"] .product-grid.tight {
    grid-template-columns: 1fr !important;
  }

  .card-prod .buy-link,
  .card-prod .assist-link {
    font-size: 13px !important;
  }
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 7px;
}
.product-gallery-thumb {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 2px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.product-gallery-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-gallery-thumbs.is-detail { max-width: 420px; margin: 10px auto 0; }
.detail-gallery-main { position: relative; width: 100%; height: 100%; min-height: inherit; overflow: hidden; border-radius: 16px; outline: none; touch-action: pan-x pan-y pinch-zoom; }
.detail-gallery-main:focus-visible { box-shadow: 0 0 0 3px rgba(49,112,178,.22); }
.detail-gallery-frame { display: flex; width: 100%; min-height: inherit; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.detail-gallery-frame::-webkit-scrollbar { display: none; width: 0; height: 0; }
.detail-gallery-slide { flex: 0 0 100%; width: 100%; min-width: 100%; min-height: inherit; scroll-snap-align: center; scroll-snap-stop: always; }
.detail-gallery-arrow { position: absolute; z-index: 4; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; padding: 0; border: 1px solid rgba(164,184,205,.72); border-radius: 50%; background: rgba(255,255,255,.9); color: #173a5e; box-shadow: 0 10px 26px rgba(25,58,93,.16); cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(8px); transition: transform .16s ease, background .16s ease; }
.detail-gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.detail-gallery-arrow:active { transform: translateY(-50%) scale(.96); }
.detail-gallery-arrow span { font-size: 34px; line-height: 1; transform: translateY(-2px); }
.detail-gallery-arrow.is-prev { left: 14px; }
.detail-gallery-arrow.is-next { right: 14px; }
.detail-gallery-counter { position: absolute; z-index: 4; right: 14px; bottom: 14px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(21,50,79,.76); color: #fff !important; font-size: 10px; font-weight: 900; letter-spacing: .04em; backdrop-filter: blur(7px); }
.detail-gallery-frame img { user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.ph-media:has(.detail-gallery-main) { display: flex; flex-direction: column; overflow: visible; height: auto; max-height: none; }
.detail-gallery-main .prod-picture,
.detail-gallery-frame .prod-picture { min-height: 520px; border-radius: 16px; }
.price-original { color: #66788c; font-weight: 650; margin-right: 8px; }
.price-sale { color: #c72f27 !important; }
.price-line-card { flex-wrap: wrap; }
@media (max-width: 720px) {
  .product-gallery-thumbs { gap: 4px; }
  .product-gallery-thumb { border-radius: 7px; }
  .detail-gallery-main .prod-picture,
  .detail-gallery-frame .prod-picture { min-height: clamp(320px, 86vw, 520px); }
  .detail-gallery-arrow { width: 40px; height: 40px; opacity: .92; }
  .detail-gallery-arrow.is-prev { left: 8px; }
  .detail-gallery-arrow.is-next { right: 8px; }
  .detail-gallery-counter { right: 9px; bottom: 9px; }
  .detail-gallery-frame { cursor: grab; }
  .detail-gallery-frame:active { cursor: grabbing; }
}

@media (max-width: 720px) {
  .cart-panel { top: 0; bottom: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; background: #f5f8fc; transform: translate3d(0,34px,0); transition: transform .28s cubic-bezier(.2,.78,.2,1), opacity .22s ease; }
  .cart-panel.is-active { transform: translate3d(0,0,0); }
  .cart-head { min-height: 68px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; border-bottom: 1px solid #dce6f0; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
  .cart-head span { font-size: 20px; letter-spacing: -.02em; }
  .cart-head .icon-btn { width: 44px; height: 44px; border-radius: 50%; background: #f3f7fb; font-size: 23px; }
  .cart-list { align-content: start; gap: 10px; padding: 12px 12px 18px; overscroll-behavior: contain; }
  .cart-item { position: relative; grid-template-columns: 82px minmax(0,1fr); gap: 11px; align-items: stretch; padding: 11px 42px 11px 11px; border-color: #dce6f0; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(28,66,102,.07); }
  .cart-thumb { width: 82px; height: 94px; border-radius: 13px; background: #f8fafc; }
  .cart-main { align-content: center; gap: 5px; min-width: 0; }
  .cart-title { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .cart-meta { overflow: hidden; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .cart-meta del { color: #8a98a8; }
  .cart-controls { flex-wrap: nowrap; gap: 8px; }
  .qty-col { gap: 4px; padding: 3px 5px; border-radius: 11px; }
  .qty-col button { width: 34px; height: 34px; }
  .qty-col span { min-width: 24px; font-size: 14px; }
  .line-total { margin-left: auto; font-size: 14px; white-space: nowrap; }
  .cart-item > .icon-btn.danger { position: absolute; top: 9px; right: 9px; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 50%; background: #fff3f1; font-size: 18px; }
  .cart-foot { display: grid; gap: 10px; padding: 13px 14px calc(13px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #d9e4ef; border-bottom: 0; background: rgba(255,255,255,.98); box-shadow: 0 -12px 30px rgba(25,58,93,.09); backdrop-filter: blur(12px); }
  .cart-total { display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
  .cart-total span { color: #50667d; font-size: 12px; font-weight: 800; }
  .cart-total strong { color: #173a5e !important; font-size: 24px; }
  .cart-actions { grid-template-columns: 1fr; margin: 0; }
  body.cart-open #cartPanel .cart-actions a.btn.secondary { grid-row: 1; min-height: 52px; display: grid; place-items: center; border: 1px solid #245f99 !important; background: #3170b2 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; opacity: 1 !important; visibility: visible !important; box-shadow: 0 12px 24px rgba(49,112,178,.22) !important; }
  .cart-actions .ghost { grid-row: 2; min-height: 44px; background: transparent; }
  body.cart-open .bottom-nav, body.cart-open #waBubble { display: none !important; }
}

/* Checkout: experiencia final de compra */
body[data-page="checkout"] .main {
  animation: none !important;
  transform: none !important;
}

body[data-page="checkout"] .checkout {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid #dce6f2;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(49, 112, 178, .08), transparent 30%),
    #fff;
  box-shadow: 0 22px 60px rgba(21, 52, 84, .10);
}

.checkout-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.checkout-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #27649f !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.checkout-intro h1,
.summary-head h2,
.checkout-section-head h2 {
  margin: 0;
  color: #10243b !important;
  letter-spacing: -.025em;
}

.checkout-intro h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.checkout-intro > div > p {
  margin: 8px 0 0;
  color: #52657a !important;
  font-size: 15px;
}

.checkout-assurance {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 300px;
  padding: 12px 15px;
  border: 1px solid #cfe7da;
  border-radius: 15px;
  background: #f3fbf7;
}

.checkout-assurance > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #167852;
  color: #fff !important;
  font-weight: 900;
}

.checkout-assurance p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.checkout-assurance strong {
  color: #154b37 !important;
  font-size: 13px;
}

.checkout-assurance small {
  color: #47705f !important;
  font-size: 11px;
  line-height: 1.35;
}

body[data-page="checkout"] .stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}

body[data-page="checkout"] .step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid #dce6f2;
  border-radius: 15px;
  background: #f8fafc;
  color: #52657a !important;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  font: inherit;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

body[data-page="checkout"] .step.completed {
  cursor: pointer;
}

body[data-page="checkout"] .step:disabled {
  opacity: 1;
}

body[data-page="checkout"] .step.completed:focus-visible,
body[data-page="checkout"] .step.completed:hover {
  border-color: #68ae8c;
  box-shadow: 0 0 0 3px rgba(22, 120, 82, .12);
  outline: 0;
}

body[data-page="checkout"] .step.active {
  border-color: #3170b2;
  background: #f1f7ff;
  box-shadow: 0 8px 20px rgba(49, 112, 178, .12);
}

body[data-page="checkout"] .step.completed {
  border-color: #bfddce;
  background: #f4fbf7;
}

.step-index,
.checkout-section-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: #e8eef5;
  color: #52657a !important;
  font-size: 13px;
  font-weight: 900;
}

.step.active .step-index {
  background: #3170b2;
  color: #fff !important;
}

.step.completed .step-index {
  background: #167852;
  color: transparent !important;
}

.step.completed .step-index::after {
  content: "✓";
  color: #fff !important;
}

.step-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.step-copy strong {
  color: #19324d !important;
  font-size: 14px;
}

.step-copy small {
  color: #708196 !important;
  font-size: 11px;
  font-weight: 700;
}

body[data-page="checkout"] .checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: 20px;
  align-items: start;
}

body[data-page="checkout"] .card-form,
body[data-page="checkout"] .summary {
  border: 1px solid #dce6f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 52, 84, .07);
}

body[data-page="checkout"] .card-form {
  display: flex;
  min-height: 460px;
  padding: clamp(18px, 2.4vw, 28px);
  flex-direction: column;
}

body[data-page="checkout"] .step-group {
  display: grid;
  gap: 17px;
  align-content: start;
  animation: checkoutStepIn .24s ease both;
}

body[data-page="checkout"] .step-group.hidden {
  display: none !important;
}

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

.checkout-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3px;
}

.checkout-section-icon {
  background: #eaf3ff;
  color: #27649f !important;
}

.checkout-section-head h2 {
  font-size: clamp(19px, 2.4vw, 24px);
}

.checkout-section-head p {
  margin: 3px 0 0;
  color: #66798d !important;
  font-size: 13px;
  line-height: 1.4;
}

body[data-page="checkout"] .card-form label {
  gap: 8px;
  color: #233b55 !important;
  font-size: 13px;
  font-weight: 800;
}

body[data-page="checkout"] .card-form input:not([type="checkbox"]):not([type="radio"]),
body[data-page="checkout"] .card-form select,
body[data-page="checkout"] .card-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #cddae8;
  border-radius: 13px;
  background: #fff;
  color: #10243b !important;
  font-size: 15px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body[data-page="checkout"] .card-form textarea {
  min-height: 86px;
  resize: vertical;
}

body[data-page="checkout"] .card-form input:not([type="checkbox"]):not([type="radio"]):focus,
body[data-page="checkout"] .card-form select:focus,
body[data-page="checkout"] .card-form textarea:focus {
  border-color: #3170b2;
  background: #fbfdff;
  box-shadow: 0 0 0 4px rgba(49, 112, 178, .11);
}

body[data-page="checkout"] .optional-label {
  color: #7a8b9d !important;
  font-size: 11px;
  font-weight: 700;
}

body[data-page="checkout"] .field-hint {
  color: #718297 !important;
  font-size: 11px;
  font-weight: 600;
}

body[data-page="checkout"] .card-form label.switch,
body[data-page="checkout"] .card-form label.radio {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center !important;
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid #d5e0ec;
  border-radius: 14px;
  background: #fff;
  color: #29435e !important;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body[data-page="checkout"] .card-form label.switch:has(input:checked),
body[data-page="checkout"] .card-form label.radio:has(input:checked) {
  border-color: #3170b2;
  background: #f2f7fd;
  box-shadow: 0 0 0 3px rgba(49, 112, 178, .08);
}

body[data-page="checkout"] .card-form label.switch input,
body[data-page="checkout"] .card-form label.radio input {
  display: block;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center;
  accent-color: #3170b2;
  box-shadow: none !important;
}

body[data-page="checkout"] .card-form label.switch > span,
body[data-page="checkout"] .card-form label.radio > span {
  display: block;
  min-width: 0;
  color: #29435e !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: break-word;
}

body[data-page="checkout"] .card-form label.checkout-address-check {
  align-items: start !important;
  background: #f8fafc;
}

body[data-page="checkout"] .card-form label.checkout-address-check:has(input:checked) {
  border-color: #bedfce;
  background: #f2faf6;
  box-shadow: 0 0 0 3px rgba(22, 120, 82, .07);
}

body[data-page="checkout"] .checkout-address-check input {
  margin-top: 1px !important;
  accent-color: #167852 !important;
}

.payment-methods {
  display: grid;
  gap: 11px;
}

body[data-page="checkout"] .card-form label.payment-option {
  min-height: 68px;
  padding: 11px 13px;
}

body[data-page="checkout"] .card-form label.payment-option > .payment-option-content {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.payment-option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #eaf3ff;
  color: #27649f !important;
}

.payment-option-icon.transfer-icon {
  padding: 8px 5px;
  border: 1px solid #eadb65;
  background: #fffbe3;
}

.payment-option-icon.transfer-icon img {
  display: block;
  width: 100%;
  max-height: 27px;
  object-fit: contain;
}

.payment-option-icon.deuna-icon {
  padding: 8px 6px;
  background: #f2ebfb;
}

.payment-option-icon.deuna-icon img {
  display: block;
  width: 100%;
  max-height: 26px;
  object-fit: contain;
}

.payment-option-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.payment-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment-option-copy strong {
  color: #19324d !important;
  font-size: 14px;
  line-height: 1.25;
}

.payment-option-copy small {
  color: #6b7e92 !important;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.payment-option-badges {
  display: flex;
  gap: 4px;
  align-items: center;
}

.payment-option-badges b {
  display: grid;
  min-width: 34px;
  height: 22px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
  background: #fff;
  color: #1b3f91 !important;
  font-size: 9px;
  font-style: italic;
  letter-spacing: -.02em;
}

.payment-option-badges b:last-child {
  color: #c43a30 !important;
  font-style: normal;
}

.payment-card-preview,
.transfer-bank-selector,
.deuna-payment-panel {
  display: none;
  margin: -2px 0 2px 34px;
  padding: 14px;
  border: 1px solid #d9e5f1;
  border-radius: 15px;
  background: #f8fbff;
  animation: checkoutStepIn .22s ease both;
}

.payment-methods:has(input[name="payment"][value="19"]:checked) .payment-card-preview {
  display: grid;
}

.payment-methods:has(input[name="payment"][value="20"]:checked) .transfer-bank-selector {
  display: grid;
}

.payment-methods:has(input[name="payment"][value="deuna"]:checked) .deuna-payment-panel {
  display: grid;
}

.deuna-payment-option:has(input:checked) {
  border-color: #7d3fc0 !important;
  background: #fbf8ff !important;
  box-shadow: 0 0 0 3px rgba(91, 31, 153, .09) !important;
}

.deuna-badge b,
.deuna-badge b:last-child {
  border-color: #d9c6ec;
  background: #f7f1fd;
  color: #55228f !important;
  font-style: normal;
}

.payment-card-preview {
  grid-template-columns: minmax(210px, .85fr) minmax(150px, 1fr);
  gap: 15px;
  align-items: center;
}

.payphone-card-panel {
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.payphone-card-intro,
.payphone-box-shell {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: #fff;
}

.payphone-card-intro {
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  align-content: center;
  padding: 13px 15px;
}
.payphone-card-intro > strong { align-self: end; }
.payphone-card-intro > p { grid-column: 2; align-self: start; }
.payphone-card-intro .payphone-test-badge { grid-row: 1 / span 2; }
.payphone-card-intro .payphone-card-brands { grid-column: 3; grid-row: 1 / span 2; }
.payphone-box-shell { align-content: start; padding: clamp(12px,2.2vw,20px); overflow: hidden; }

.payphone-card-intro strong { color: #19324d !important; font-size: 16px; }
.payphone-card-intro p { margin: 0; color: #617489 !important; font-size: 11px; line-height: 1.5; }
.payphone-test-badge { justify-self: start; padding: 5px 9px; border-radius: 999px; background: #fff3d8; color: #7a5200 !important; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.payphone-card-brands { display: flex; gap: 7px; }
.payphone-card-brands b { padding: 5px 8px; border: 1px solid #dce5ee; border-radius: 7px; color: #24558a !important; font-size: 10px; }
.payphone-box-status { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #cce5d9; border-radius: 11px; background: #f1faf6; color: #315d49 !important; font-size: 10px; line-height: 1.4; }
.payphone-box-status > span:first-child { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: #197a55; color: #fff !important; font-weight: 900; }
.payphone-box-status > span:last-child { display: grid; gap: 1px; }
.payphone-box-status strong { color: #214c3a !important; font-size: 11px; }
.payphone-box-status small { color: #4d705f !important; font-size: 9px; }
#pp-button { width: 100%; min-width: 0; min-height: 20px; overflow: hidden; }
#pp-button, #pp-button *, #pp-button *::before, #pp-button *::after { box-sizing: border-box; }
#pp-button .ppb-content { width: 100% !important; min-width: 0 !important; justify-content: center !important; }
#pp-button .payment-box { width: 100% !important; max-width: 414px !important; min-width: 0 !important; flex: 1 1 414px !important; margin: 0 auto !important; padding: clamp(14px,3vw,20px) !important; box-shadow: 0 14px 34px rgba(25,58,93,.09); border: 1px solid #e0e8f1; }
#pp-button .ppb-row { min-width: 0; }
#pp-button input, #pp-button select, #pp-button button { max-width: 100%; }
#pp-button .ppb-btn-pay { width: 100% !important; min-height: 54px !important; }
#pp-button .ppb-footer-image-container { gap: 8px; align-items: center; margin-left: clamp(4px,4vw,30px); margin-right: clamp(4px,4vw,30px); }
#pp-button .ppb-footer-image { min-width: 0; }
#pp-button .ppb-footer-image img { max-width: 100% !important; height: auto !important; margin-right: 0 !important; }

@media (max-width: 720px) {
  .payphone-card-panel { margin-left: 0; padding: 8px; border-radius: 14px; }
  .payphone-card-intro { grid-template-columns: 1fr auto; gap: 6px 8px; padding: 12px; }
  .payphone-card-intro .payphone-test-badge { grid-column: 1; grid-row: 1; }
  .payphone-card-intro > strong { grid-column: 1; grid-row: 2; }
  .payphone-card-intro > p { grid-column: 1 / -1; grid-row: 3; }
  .payphone-card-intro .payphone-card-brands { grid-column: 2; grid-row: 1 / span 2; }
  .payphone-box-shell { padding: 10px 8px 12px; border-radius: 12px; }
  #pp-button .payment-box { padding: 13px 11px !important; border-radius: 12px !important; box-shadow: none; }
  #pp-button .ppb-form-control, #pp-button .ppb-form-select { font-size: 16px !important; }
  #pp-button .ppb-form-control-paypment-box { height: 48px !important; }
  #pp-button .ppb-btn-control.btn-card { width: min(180px,100%) !important; }
  #pp-button .ppb-form-check-label { font-size: 11px !important; line-height: 1.3 !important; }
  #pp-button .ppb-text-total, #pp-button .ppb-text-amount { font-size: 16px !important; }
}

@media (max-width: 380px) {
  .payphone-card-panel { padding: 6px; }
  .payphone-card-intro .payphone-card-brands { display: none; }
  .payphone-card-intro { grid-template-columns: 1fr; }
  .payphone-box-shell { padding: 8px 5px 10px; }
  #pp-button .payment-box { padding: 11px 8px !important; }
  #pp-button .ppb-col-6 { width: 100% !important; padding-right: 4px !important; padding-left: 4px !important; }
  #pp-button .ppb-row { margin-right: -4px !important; margin-left: -4px !important; row-gap: 7px; }
  #pp-button .ppb-footer-image-container { flex-wrap: wrap; justify-content: center; }
}

.payment-card-visual {
  position: relative;
  display: grid;
  min-height: 135px;
  overflow: hidden;
  padding: 16px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.25), transparent 24%),
    linear-gradient(135deg, #18395d 0%, #3170b2 58%, #4c91d4 100%);
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(28, 70, 111, .24);
  transition: background .24s ease, box-shadow .24s ease;
}

.payment-card-visual.is-mastercard {
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.2), transparent 24%),
    linear-gradient(135deg, #191c28 0%, #323746 58%, #4b5262 100%);
  box-shadow: 0 14px 28px rgba(23, 27, 38, .28);
}

.payment-card-visual.is-generic {
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.2), transparent 24%),
    linear-gradient(135deg, #344054 0%, #526176 100%);
}

.payment-card-visual.brand-refresh {
  animation: payment-card-brand-refresh .42s cubic-bezier(.2, .75, .2, 1);
}

@keyframes payment-card-brand-refresh {
  0% { opacity: .72; transform: perspective(800px) rotateY(-8deg) scale(.975); }
  58% { opacity: 1; transform: perspective(800px) rotateY(3deg) scale(1.018); }
  100% { transform: perspective(800px) rotateY(0) scale(1); }
}

.payment-card-visual::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255,255,255,.06);
}

.payment-card-top,
.payment-card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-card-top span {
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.payment-card-top b {
  color: #fff !important;
  font-size: 13px;
  font-style: italic;
}

.payment-card-visual.is-mastercard .payment-card-brand {
  position: relative;
  width: 38px;
  height: 23px;
  overflow: hidden;
  color: transparent !important;
  font-size: 0;
}

.payment-card-visual.is-mastercard .payment-card-brand::before,
.payment-card-visual.is-mastercard .payment-card-brand::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
}

.payment-card-visual.is-mastercard .payment-card-brand::before {
  left: 1px;
  background: #eb001b;
}

.payment-card-visual.is-mastercard .payment-card-brand::after {
  right: 1px;
  background: rgba(247, 158, 27, .92);
}

.payment-card-chip {
  width: 31px;
  height: 23px;
  margin: 12px 0 8px;
  border: 1px solid rgba(85, 63, 14, .3);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(85,63,14,.22) 48%, rgba(85,63,14,.22) 52%, transparent 53%),
    linear-gradient(#f9dfa0, #d9b45e);
}

.payment-card-visual > strong {
  position: relative;
  z-index: 1;
  color: #fff !important;
  font-size: 15px;
  letter-spacing: .05em;
}

.payment-card-holder {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 10px;
}

.payment-card-holder > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.payment-card-holder small {
  color: rgba(255,255,255,.66) !important;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
}

.payment-card-holder b {
  overflow: hidden;
  color: #fff !important;
  font-size: 9px;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-card-bottom {
  margin-top: 10px;
}

.payment-card-bottom small,
.payment-card-bottom span {
  color: rgba(255,255,255,.86) !important;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.payment-card-preview > p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.payment-card-preview > p strong {
  color: #19324d !important;
  font-size: 13px;
}

.payment-card-preview > p span {
  color: #617489 !important;
  font-size: 11px;
  line-height: 1.45;
}

.card-simulation {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.simulation-safety {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #cbe5d7;
  border-radius: 11px;
  background: #f2faf6;
}

.simulation-safety > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #167852;
  color: #fff !important;
  font-weight: 900;
}

.simulation-safety p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.simulation-safety strong {
  color: #184b38 !important;
  font-size: 11px;
}

.simulation-safety small {
  color: #4d705f !important;
  font-size: 9px;
  line-height: 1.35;
}

.card-simulation-fields {
  display: grid;
  gap: 8px;
}

body[data-page="checkout"] .card-form .card-simulation-fields label {
  gap: 4px;
  font-size: 10px;
}

body[data-page="checkout"] .card-form .card-simulation-fields input {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.card-simulation-fields .secure-entry {
  -webkit-text-security: disc;
}

.card-simulation-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-simulation-button,
.transfer-simulation-button {
  width: 100%;
  min-height: 44px;
  border-color: #bfd2e6 !important;
  background: #fff !important;
  color: #27649f !important;
}

.simulation-result {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #d5e0ec;
  border-radius: 11px;
  background: #fff;
}

.simulation-result > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  font-weight: 900;
}

.simulation-result p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.simulation-result strong {
  color: #19324d !important;
  font-size: 11px;
}

.simulation-result small {
  color: #617489 !important;
  font-size: 9px;
  line-height: 1.35;
}

.simulation-result.success {
  border-color: #bfe2cf;
  background: #f2faf6;
}

.simulation-result.success > span {
  background: #167852;
}

.simulation-result.error {
  border-color: #f0caca;
  background: #fff7f7;
}

.simulation-result.error > span {
  background: #b53b3b;
}

.transfer-bank-selector {
  gap: 12px;
  background: #fbfcfe;
}

.transfer-bank-head {
  display: grid;
  gap: 3px;
}

.transfer-bank-head strong {
  color: #19324d !important;
  font-size: 13px;
}

.transfer-bank-head span {
  color: #687b90 !important;
  font-size: 11px;
}

.transfer-bank-grid {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(180px, 1.35fr);
  gap: 8px;
  align-items: stretch;
}

body[data-page="checkout"] .card-form label.bank-option {
  position: relative;
  display: grid;
  grid-template-rows: 38px auto;
  gap: 6px;
  min-width: 0;
  min-height: 78px;
  padding: 10px 7px 8px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e3ed;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body[data-page="checkout"] .card-form label.bank-option:hover {
  transform: translateY(-1px);
}

body[data-page="checkout"] .card-form label.bank-option:has(input:checked) {
  border-color: #3170b2;
  box-shadow: 0 0 0 3px rgba(49, 112, 178, .1);
}

.bank-option input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.bank-logo {
  display: grid;
  width: 100%;
  height: 38px;
  place-items: center;
}

.bank-logo img {
  display: block;
  max-width: 94px;
  max-height: 32px;
  object-fit: contain;
}

.pichincha-logo img {
  max-height: 25px;
}

.bank-name {
  color: #29435e !important;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.bank-check {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #3170b2;
  color: #fff !important;
  font-size: 10px;
  font-weight: 900;
}

.bank-option:has(input:checked) .bank-check {
  display: grid;
}

.pichincha-transfer {
  border-color: #eadf9d;
  background: linear-gradient(160deg, #fffdf1 0%, #fff 62%, #fff9cf 100%);
}

.pichincha-transfer .bank-option:has(input:checked) {
  border-color: #f1cf00 !important;
  box-shadow: 0 0 0 3px rgba(241, 207, 0, .17) !important;
}

.pichincha-transfer .bank-check {
  background: #f1cf00;
  color: #1d2939 !important;
}

.transfer-account-toggle {
  min-height: 78px;
  border-color: #eadf9d !important;
  background: #fff !important;
  color: #26364b !important;
  font-weight: 900;
}

.pichincha-account-details {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eadb7a;
  border-radius: 14px;
  background: #fffef5;
  box-shadow: 0 12px 26px rgba(86, 73, 9, .08);
}

.pichincha-account-details.hidden {
  display: none !important;
}

.pichincha-account-brand {
  display: flex;
  gap: 11px;
  align-items: center;
}

.pichincha-account-brand img {
  width: 112px;
  max-height: 28px;
  object-fit: contain;
}

.pichincha-account-brand span {
  display: grid;
  gap: 2px;
}

.pichincha-account-brand strong {
  color: #283548 !important;
  font-size: 12px;
}

.pichincha-account-brand small {
  color: #6d7580 !important;
  font-size: 10px;
}

.pichincha-account-details dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.pichincha-account-details dl div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}

.pichincha-account-details dt {
  color: #7a7140;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.pichincha-account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #26364b;
  font-size: 11px;
  font-weight: 900;
}

.pichincha-account-pending {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: #fff7cf;
  color: #594e16;
  font-size: 11px;
  font-weight: 800;
}

.transfer-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding-top: 3px;
}

.transfer-journey-step {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  padding: 9px 7px;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: #fff;
}

.transfer-journey-step > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e8eef5;
  color: #66798d !important;
  font-size: 9px;
  font-weight: 900;
}

.transfer-journey-step p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.transfer-journey-step strong {
  color: #29435e !important;
  font-size: 9px;
  line-height: 1.25;
}

.transfer-journey-step small {
  color: #77899b !important;
  font-size: 8px;
  line-height: 1.3;
}

.transfer-journey-step.active {
  border-color: #9fc0e2;
  background: #f2f7fd;
}

.transfer-journey-step.active > span {
  background: #3170b2;
  color: #fff !important;
}

.transfer-journey-step.completed {
  border-color: #bee0ce;
  background: #f2faf6;
}

.transfer-journey-step.completed > span {
  background: #167852;
  color: transparent !important;
}

.transfer-journey-step.completed > span::after {
  content: "✓";
  color: #fff !important;
}

.transfer-simulation-receipt {
  display: grid;
  grid-template-columns: 36px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #bfe0cf;
  border-radius: 13px;
  background: #f2faf6;
}

.transfer-receipt-check {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #167852;
  color: #fff !important;
  font-weight: 900;
}

.transfer-simulation-receipt > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.transfer-proof-fields {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 9px !important;
}

.proof-choice-hint {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.proof-choice-hint strong {
  color: #274b3b !important;
  font-size: 11px;
}

.proof-choice-hint small {
  color: #668174 !important;
  font-size: 9px !important;
  line-height: 1.35;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.proof-choice-or {
  display: grid;
  width: 28px;
  height: 28px;
  align-self: end;
  margin-bottom: 10px;
  place-items: center;
  border: 1px solid #bad7c8;
  border-radius: 50%;
  background: #fff;
  color: #47705d;
  font-size: 9px;
  font-weight: 900;
}

body[data-page="checkout"] .card-form .transfer-proof-fields label {
  gap: 5px;
  color: #365846;
  font-size: 10px;
}

body[data-page="checkout"] .card-form .transfer-proof-fields input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border-color: #c8dfd3;
  background: #fff;
  font-size: 12px;
}

.transfer-proof-upload {
  position: relative;
  display: block !important;
  min-width: 0;
  cursor: pointer;
}

body[data-page="checkout"] .card-form .receipt-file-input {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.receipt-upload-action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px dashed #9bc8b0;
  border-radius: 11px;
  background: linear-gradient(145deg, #fff, #f1faf5);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.receipt-upload-action > svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 9px;
  background: #dff3e8;
  fill: #187451;
}

.receipt-upload-action > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.receipt-upload-action strong {
  color: #20543e !important;
  font-size: 11px;
  line-height: 1.2;
}

.receipt-upload-action small {
  display: block;
  overflow: hidden;
  color: #668174 !important;
  font-size: 8px !important;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: none !important;
  white-space: nowrap;
}

.transfer-proof-upload:hover .receipt-upload-action,
.transfer-proof-upload:focus-within .receipt-upload-action {
  border-color: #3c9d70;
  box-shadow: 0 0 0 3px rgba(44, 142, 98, .1);
  transform: translateY(-1px);
}

.transfer-proof-upload.has-file .receipt-upload-action {
  border-style: solid;
  border-color: #46a779;
  background: #effaf4;
}

.transfer-simulation-receipt strong {
  color: #184b38 !important;
  font-size: 11px;
}

.transfer-simulation-receipt small {
  color: #5c7b6c !important;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.transfer-simulation-receipt b {
  overflow: hidden;
  color: #244f3c !important;
  font-size: 9px;
  text-overflow: ellipsis;
}

.transfer-complete-button {
  grid-column: 1 / -1;
  min-height: 42px;
  margin-top: 2px;
  background: #167852 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(22, 120, 82, .18);
}

.transfer-final-status {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #bde0cd;
  border-radius: 12px;
  background: #edf9f3;
}

.transfer-final-status > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #167852;
  color: #fff !important;
  font-weight: 900;
}

.transfer-final-status p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.payment-approval-status {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: auto;
  color: #66798d;
}

.payment-approval-status > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #e8eef5;
  color: #60758a !important;
  font-weight: 900;
}

.payment-approval-status small {
  max-width: 230px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.checkout-process-error {
  margin-top: 14px;
  border: 1px solid #d8563f;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff4f1;
  color: #9f2f20;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(159, 47, 32, 0.1);
}

.checkout-error-target {
  animation: checkoutErrorTarget 0.7s ease both;
}

@keyframes checkoutErrorTarget {
  0%, 100% { box-shadow: none; }
  45% { box-shadow: 0 0 0 5px rgba(216, 86, 63, 0.18); }
}

.payment-approval-status.is-approved {
  color: #176a49;
}

.payment-approval-status.is-approved > span {
  background: #167852;
  color: #fff !important;
}

.checkout:not([data-current-step="3"]) .payment-approval-status {
  display: none;
}

#confirmOrder:disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: saturate(.5);
  box-shadow: none;
}

.transfer-final-status strong {
  color: #184b38 !important;
  font-size: 11px;
}

.transfer-final-status small {
  color: #557363 !important;
  font-size: 9px;
  line-height: 1.4;
}

body[data-page="checkout"] .wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 24px;
}

body[data-page="checkout"] .wizard-actions .btn {
  min-width: 150px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 13px;
}

body[data-page="checkout"] .wizard-actions .btn.primary {
  background: #3170b2 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(49, 112, 178, .23);
}

body[data-page="checkout"] .wizard-actions .btn.ghost {
  background: #fff !important;
  color: #29435e !important;
}

body[data-page="checkout"] .summary {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 0;
  padding: clamp(18px, 2.2vw, 25px);
}

.summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-head h2 {
  font-size: 21px;
}

.summary-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff4f9;
  color: #52657a !important;
  font-size: 11px;
  font-weight: 800;
}

body[data-page="checkout"] .checkout-journey-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid #dce6f2;
  border-radius: 13px;
  background: #f7faff;
}

body[data-page="checkout"] .checkout-journey-note[data-state="ready"] {
  border-color: #cbe6d8;
  background: #f2faf6;
}

.checkout-status-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #e4edf8;
  color: #27649f !important;
  font-weight: 900;
}

.checkout-journey-note[data-state="ready"] .checkout-status-icon {
  background: #167852;
  color: #fff !important;
}

body[data-page="checkout"] .checkout-journey-note > span:last-child {
  display: grid;
  gap: 2px;
}

body[data-page="checkout"] .checkout-journey-note strong {
  color: #19324d !important;
  font-size: 13px;
}

body[data-page="checkout"] .checkout-journey-note small {
  color: #617489 !important;
  font-size: 11px;
  line-height: 1.35;
}

body[data-page="checkout"] .summary-list {
  display: grid;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e8f0;
}

.summary-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.summary-product-image {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #f7f9fc;
}

.summary-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-product-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.summary-product-copy strong {
  overflow: hidden;
  color: #1b334d !important;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.summary-product-copy small {
  color: #6c7e91 !important;
  font-size: 11px;
}

.summary-product-copy small + small {
  color: #167852 !important;
  font-weight: 800;
}

.summary-product-price {
  color: #17314c !important;
  font-size: 13px;
  white-space: nowrap;
}

.summary-totals {
  display: grid;
}

body[data-page="checkout"] .summary-row {
  padding: 9px 0;
  border: 0;
  color: #52657a !important;
  font-size: 13px;
}

body[data-page="checkout"] .summary-row strong {
  color: #1a334e !important;
}

body[data-page="checkout"] .summary-row.total {
  margin-top: 7px;
  padding-top: 16px;
  border-top: 1px solid #dce6f2;
  color: #10243b !important;
  font-size: 17px;
}

body[data-page="checkout"] .summary-row.total strong {
  color: #27649f !important;
  font-size: 24px;
}

body[data-page="checkout"] .checkout-fiscal-row {
  display: none !important;
}

.summary-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: #617489 !important;
  font-size: 11px;
}

.summary-footnote span {
  color: #167852 !important;
  font-weight: 900;
}

.checkout-empty {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: #f7f9fc;
  text-align: center;
}

.checkout-empty strong { color: #233b55 !important; }
.checkout-empty span { color: #6c7e91 !important; font-size: 12px; }

body[data-page="checkout"] .delivery-billing-notice,
body[data-page="checkout"] .delivery-shipping-quote,
body[data-page="checkout"] .checkout-payment-note {
  padding: 12px 14px;
  border-radius: 13px;
  box-shadow: none;
}

body[data-page="checkout"] .checkout-payment-note {
  display: grid;
  gap: 3px;
  border: 1px solid #d8e5f3;
  background: #f5f9fe;
}

body[data-page="checkout"] .checkout-payment-note strong,
body[data-page="checkout"] .checkout-payment-note span {
  color: #29435e !important;
}

@media (max-width: 980px) {
  body[data-page="checkout"] .checkout-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="checkout"] .summary {
    position: static;
  }
}

@media (max-width: 680px) {
  body[data-page="checkout"] .checkout {
    margin-top: 8px;
    padding: 16px 13px;
    border-radius: 18px;
  }

  .checkout-intro {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .checkout-intro h1 {
    font-size: 28px;
  }

  .checkout-intro > div > p {
    font-size: 13px;
  }

  .checkout-assurance {
    display: none;
  }

  body[data-page="checkout"] .stepper {
    gap: 6px;
    margin-bottom: 13px;
  }

  body[data-page="checkout"] .step {
    justify-content: center;
    gap: 0;
    padding: 9px 5px;
    border-radius: 12px;
  }

  .step-index {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .step-copy {
    display: none;
  }

  body[data-page="checkout"] .card-form,
  body[data-page="checkout"] .summary {
    border-radius: 16px;
  }

  body[data-page="checkout"] .card-form {
    min-height: 0;
    padding: 17px 14px;
  }

  body[data-page="checkout"] .step-group {
    gap: 13px;
  }

  body[data-page="checkout"] .card-form input:not([type="checkbox"]):not([type="radio"]),
  body[data-page="checkout"] .card-form select {
    min-height: 47px;
  }

  body[data-page="checkout"] .card-form label.switch,
  body[data-page="checkout"] .card-form label.radio {
    grid-template-columns: 21px minmax(0, 1fr);
    min-height: 52px;
    padding: 12px;
    border-radius: 13px;
  }

  body[data-page="checkout"] .card-form label.switch input,
  body[data-page="checkout"] .card-form label.radio input {
    width: 21px !important;
    min-width: 21px !important;
    max-width: 21px !important;
    height: 21px !important;
    min-height: 21px !important;
    max-height: 21px !important;
  }

  body[data-page="checkout"] .card-form label.switch > span,
  body[data-page="checkout"] .card-form label.radio > span {
    font-size: 12.5px;
    line-height: 1.38;
  }

  body[data-page="checkout"] .card-form label.payment-option {
    min-height: 66px;
    padding: 10px;
  }

  body[data-page="checkout"] .card-form label.payment-option > .payment-option-content {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .payment-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .payment-option-badges {
    display: none;
  }

  .payment-card-preview,
  .transfer-bank-selector {
    margin-left: 0;
    padding: 12px;
  }

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

  .payment-card-visual {
    width: min(100%, 270px);
    min-height: 168px;
    margin: 0 auto;
  }

  .card-simulation {
    gap: 9px;
  }

  .transfer-bank-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="checkout"] .card-form label.bank-option {
    grid-template-rows: none;
    grid-template-columns: 116px minmax(0, 1fr) 22px;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
    place-items: center start;
  }

  .bank-logo {
    justify-items: start;
    height: 34px;
  }

  .bank-name {
    font-size: 12px;
    text-align: left;
  }

  .bank-check {
    position: static;
    display: grid;
    visibility: hidden;
  }

  .bank-option:has(input:checked) .bank-check {
    visibility: visible;
  }

  .transfer-journey {
    grid-template-columns: 1fr 1fr;
  }

  .transfer-journey-step {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 9px;
  }

  .transfer-simulation-receipt {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .transfer-simulation-receipt > div {
    grid-column: 2;
  }

  .transfer-receipt-check {
    grid-row: 1;
  }

  .transfer-complete-button {
    grid-column: 1 / -1;
  }

  .checkout-section-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .checkout-section-head h2 {
    font-size: 19px;
  }

  .checkout-section-head p {
    font-size: 12px;
  }

  body[data-page="checkout"] .wizard-actions {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 8px;
    z-index: 70;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid #dce6f2;
    border-radius: 15px 15px 0 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -12px 28px rgba(20, 50, 82, .12);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    touch-action: manipulation;
  }

  body[data-page="checkout"] .wizard-actions .btn {
    min-width: 0;
    flex: 1;
    padding-inline: 10px;
    font-size: 13px;
    position: relative;
    z-index: 1;
    min-height: 52px;
    touch-action: manipulation;
    pointer-events: auto;
  }

  body[data-page="checkout"] .wizard-actions .btn.ghost {
    flex: 0 0 86px;
  }

  body[data-page="checkout"] .checkout { margin-bottom: 96px; }

  .summary-product {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .summary-product-image {
    width: 52px;
    height: 52px;
  }
}

/* fix70: prioridad visible y estado de carga para fotos del catálogo. */
.prod-picture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 38%, #dce8f6 0 9%, transparent 9.5%),
    linear-gradient(145deg, transparent 45%, #dce8f6 45.5% 53%, transparent 53.5%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  opacity: 1;
  transition: opacity 120ms ease;
}

.prod-picture.is-image-ready::before {
  opacity: 0;
}

.prod-picture .prod-img {
  z-index: 1;
}

/* Banner de Ofertas: conserva completa la versión cuadrada en teléfonos. */
@media (max-width: 520px) {
  .search-hero .hero-carousel {
    min-height: calc(100vw - 56px) !important;
  }

  .search-hero .hero-slide--banner {
    min-height: calc(100vw - 56px) !important;
    align-items: stretch;
  }

  .search-hero .hero-slide--campaign,
  .search-hero .hero-campaign-card {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
  }

  .search-hero .hero-campaign-card {
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    box-shadow: 0 14px 28px rgba(41, 74, 112, 0.18);
  }

  .search-hero .hero-campaign-shade {
    background: linear-gradient(180deg, rgba(255, 247, 239, 0.97) 0%, rgba(255, 239, 225, 0.82) 42%, rgba(255, 239, 225, 0.04) 72%);
  }

  .search-hero .hero-campaign-copy {
    inset: 12px 12px auto;
    width: calc(100% - 24px);
    min-height: 0;
    justify-content: flex-start;
    gap: 5px;
  }

  .search-hero .hero-campaign-copy > strong {
    max-width: 92%;
    font-size: clamp(18px, 6vw, 22px);
    line-height: 1;
  }

  .search-hero .hero-campaign-text {
    max-width: 90%;
    font-size: 11px;
    line-height: 1.24;
  }

  .search-hero .hero-campaign-logo {
    min-width: 48px;
    height: 24px;
    padding: 3px 6px;
  }

  .search-hero .hero-campaign-logo img {
    max-width: 66px !important;
    height: 15px !important;
    max-height: 15px !important;
  }

  .search-hero .hero-campaign--transfer .hero-campaign-logo {
    min-width: 60px;
  }

  .search-hero .hero-campaign--transfer .hero-campaign-logo img {
    max-width: 62px !important;
    height: 13px !important;
    max-height: 13px !important;
  }

  .search-hero .hero-campaign-badges span {
    padding: 4px 7px;
    font-size: 9px;
  }

  .search-hero .hero-campaign-cta {
    padding: 7px 10px;
    font-size: 10px;
  }

  .search-hero .hero-slide--banner .hero-banner-link {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 17px;
  }
}

/* Identidad compacta del transportista en checkout y confirmación. */
.shipping-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(207, 220, 236, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(31, 72, 110, 0.08);
}

.shipping-brand-row small {
  flex: 0 0 auto;
  color: #52657a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.shipping-brand-row b,
.shipping-brand-name {
  color: #1f2f3f;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.shipping-brand-logo {
  display: grid;
  place-items: center;
  width: auto;
  height: 23px;
  min-width: 62px;
  max-width: 116px;
}

.shipping-brand-logo img {
  display: block;
  width: auto !important;
  max-width: 110px !important;
  height: 21px !important;
  max-height: 21px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  filter: none !important;
}

.shipping-brand-logo.is-laar img {
  height: 18px !important;
  max-height: 18px !important;
}

.shipping-brand-logo.is-servientrega img {
  height: 19px !important;
  max-height: 19px !important;
}

.delivery-billing-notice .shipping-brand-row,
.delivery-order-note .shipping-brand-row {
  margin-bottom: 3px;
}

@media (max-width: 420px) {
  .shipping-brand-row {
    gap: 6px;
    min-height: 32px;
    padding: 4px 7px;
  }

  .shipping-brand-logo {
    min-width: 54px;
    max-width: 96px;
  }

  .shipping-brand-logo img {
    max-width: 92px !important;
    height: 18px !important;
    max-height: 18px !important;
  }
}

/* Inicio compacto: carrusel protagonista y accesos ajustados a cada pantalla. */
.search-hero {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "visual"
    "shortcuts";
  justify-items: center;
  min-height: 0;
  gap: 8px !important;
  padding: clamp(72px, 7vw, 88px) clamp(18px, 4vw, 42px) 26px !important;
}

.search-hero-strip {
  height: 56px;
  margin: 0;
}

.search-hero-copy {
  grid-area: shortcuts;
  width: min(100%, 820px);
  max-width: none;
}

.search-hero .search-hero-pills {
  width: 100%;
  max-width: 820px;
  justify-content: center;
  margin: 2px auto 0 !important;
  padding: 0 4px 22px;
}

.search-hero .search-hero-pills .search-pill {
  min-height: 52px !important;
  padding: 12px 18px 17px !important;
}

.search-hero .hero-illus {
  grid-area: visual;
  width: min(100%, 940px);
  min-height: clamp(340px, 40vw, 480px);
  padding: 8px 56px 68px;
}

.search-hero .hero-carousel {
  width: min(100%, 760px);
  min-height: clamp(285px, 34vw, 420px);
  margin-inline: auto;
}

.search-hero .hero-banner-link,
.search-hero .hero-campaign-card {
  width: min(100%, 760px);
}

.search-hero .hero-chat-btn {
  right: 8px;
}

@media (min-width: 1200px) {
  .search-hero .hero-illus {
    width: min(100%, 1280px);
    min-height: 620px;
  }

  .search-hero .hero-carousel {
    width: min(100%, 1080px);
    min-height: 608px;
  }

  .search-hero .hero-banner-link,
  .search-hero .hero-campaign-card {
    width: min(100%, 1080px);
  }

  .search-hero .hero-illus::before,
  .search-hero .hero-illus::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    transition: background-image .28s ease, opacity .28s ease;
  }

  .search-hero .hero-illus::before {
    top: 2%;
    right: 0;
    bottom: 9%;
    left: 0;
    border-radius: 0;
    background-image: var(--hero-active-art);
    background-position: center;
    background-size: cover;
    opacity: .31;
    filter: blur(52px) saturate(1.3);
    transform: scale(1.06);
    -webkit-mask-image:
      linear-gradient(90deg, #000 0%, rgba(0,0,0,.74) 10%, transparent 30%, transparent 70%, rgba(0,0,0,.74) 90%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, #000 0%, rgba(0,0,0,.74) 10%, transparent 30%, transparent 70%, rgba(0,0,0,.74) 90%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
    mask-composite: intersect;
  }

  .search-hero .hero-illus::after {
    display: none;
  }

  .search-hero .hero-carousel {
    z-index: 1;
  }
}

@media (min-width: 1400px) {
  :root {
    --max-width: 1540px;
    --gutter: clamp(20px, 2.2vw, 34px);
  }

  .section {
    padding: clamp(20px, 2vw, 30px);
  }
}

@media (max-width: 980px) {
  .search-hero {
    padding: 66px clamp(14px, 4vw, 24px) 20px !important;
  }

  .search-hero-strip {
    display: grid;
    height: 52px;
  }

  .search-hero .hero-illus {
    width: min(100%, 780px);
    min-height: 0;
    padding: 2px 0 0;
  }

  .search-hero .hero-carousel {
    width: min(100%, 720px);
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .search-hero .hero-chat-btn {
    width: min(100%, 720px);
    margin: 12px auto 0;
  }

  .search-hero .search-hero-pills {
    width: 100%;
    max-width: 720px;
    justify-content: center;
    margin-top: 2px !important;
    padding: 0 2px 20px !important;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .search-hero {
    gap: 10px !important;
    padding: 56px 12px 16px !important;
    border-radius: 18px;
  }

  .search-hero-strip {
    height: 46px;
    padding-inline: 10px;
    font-size: clamp(17px, 5.2vw, 21px);
    text-align: center;
  }

  .search-hero .hero-illus {
    padding: 0;
  }

  .search-hero .hero-carousel {
    width: min(100%, clamp(280px, calc(100vw - 74px), 340px)) !important;
    aspect-ratio: 1 / 1;
  }

  .search-hero .hero-chat-btn {
    width: min(100%, 340px);
    min-height: 48px;
    margin-top: 10px;
    border-radius: 14px;
  }

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

  .search-hero .search-hero-pills .search-pill {
    width: 100%;
    min-width: 0;
    min-height: 48px !important;
    padding: 11px 8px 15px !important;
    font-size: 13px !important;
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .transfer-bank-grid,
  .pichincha-account-details dl {
    grid-template-columns: 1fr;
  }

  .transfer-account-toggle {
    min-height: 48px;
  }

  .pichincha-account-details {
    padding: 12px;
  }

  .transfer-proof-fields {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }

  .payment-approval-status {
    order: -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-card-visual.brand-refresh {
    animation: none;
  }
}

/* Carrusel principal: controles estables, táctiles y visibles en todas las resoluciones. */
.search-hero .hero-carousel {
  position: relative;
}

.search-hero .hero-slide.is-active {
  z-index: 2;
}

.search-hero .hero-slide--banner .hero-banner-link img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

.search-hero .hero-nav,
.search-hero .hero-dots {
  z-index: 8;
}

@media (max-width: 980px) {
  .search-hero .hero-illus {
    grid-template-rows: auto auto !important;
  }

  .search-hero .hero-nav {
    inset: 50% 6px auto !important;
    display: flex !important;
    height: auto !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  .search-hero .hero-nav-btn {
    position: relative;
    top: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 29px;
    opacity: 0.94;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 8px 20px rgba(17, 63, 115, 0.18);
  }

  .search-hero .hero-dots {
    bottom: 9px !important;
    display: inline-flex !important;
    gap: 7px;
    padding: 7px 10px;
  }

  .search-hero .hero-dot {
    width: 11px;
    height: 11px;
  }

  .search-hero .hero-chat-btn {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .search-hero .hero-carousel {
    width: min(100%, clamp(280px, calc(100vw - 90px), 340px)) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }

  .search-hero .hero-slide--banner {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
  }

  .search-hero .hero-nav {
    inset: 68% 5px auto !important;
  }

  .search-hero .hero-nav-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 27px;
  }

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

  .search-hero .hero-banner-link {
    border-radius: 15px !important;
    box-shadow: 0 14px 28px rgba(41, 74, 112, 0.18);
  }
}

/* Carrusel móvil horizontal y tarjetas de oferta estables. */
.search-hero .search-pill-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.search-hero .search-pill-catalog {
  display: none !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.product-grid,
.product-grid.tight,
.product-grid.minimal {
  align-items: stretch !important;
}

.product-grid .card-prod,
.product-grid.tight .card-prod {
  height: 100% !important;
}

.card-prod .card-top {
  position: relative;
}

.sale-corner {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 29px;
  padding: 4px 9px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: linear-gradient(135deg, #f3263d 0%, #bd071b 100%);
  box-shadow: 0 7px 16px rgba(183, 5, 27, 0.30);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
}

.card-prod .price-line-card {
  min-height: 38px !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}

.card-prod .price-line-card .price-sale {
  width: auto !important;
  flex: 0 0 auto;
  white-space: nowrap;
}

.card-prod .price-line-card .price-original {
  flex: 0 1 auto;
  min-width: 0;
  margin-right: 0;
  font-size: 12px;
  white-space: nowrap;
}

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

@media (max-width: 520px) {
  .search-hero .hero-carousel {
    width: min(100%, calc(100vw - 24px), 430px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }

  .search-hero .hero-slide,
  .search-hero .hero-slide--banner,
  .search-hero .hero-slide--campaign,
  .search-hero .hero-banner-link,
  .search-hero .hero-campaign-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }

  .search-hero .hero-banner-link picture,
  .search-hero .hero-banner-link img,
  .search-hero .hero-campaign-art {
    width: 100% !important;
    height: 100% !important;
  }

  .search-hero .hero-campaign-art {
    object-fit: cover !important;
    object-position: center 58% !important;
  }

  .search-hero .hero-campaign-copy {
    inset: 9px 10px auto;
    width: min(58%, 220px);
    gap: 3px;
  }

  .search-hero .hero-campaign-copy > strong {
    font-size: clamp(14px, 4.5vw, 19px);
  }

  .search-hero .hero-campaign-text {
    max-width: 100%;
    font-size: 9px;
    line-height: 1.18;
  }

  .search-hero .hero-campaign-badges {
    display: none;
  }

  .search-hero .hero-campaign-cta {
    padding: 5px 8px;
    font-size: 9px;
  }

  .search-hero .hero-nav {
    inset: 50% 5px auto !important;
  }

  .search-hero .hero-chat-btn {
    width: min(100%, calc(100vw - 24px), 430px) !important;
  }

  .sale-corner {
    top: 6px;
    right: 6px;
    min-width: 36px;
    min-height: 24px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .card-prod .price-line-card {
    min-height: 34px !important;
    gap: 5px !important;
  }

  .card-prod .price-line-card .price-original {
    font-size: 10px;
  }

  .card-prod .price-line-card .price-sale {
    font-size: 15px !important;
  }
}

/* Ver catálogo forma parte de los accesos del escritorio; en móvil conserva el CTA grande. */
@media (min-width: 981px) {
  .search-hero .search-hero-pills {
    width: min(100%, 940px);
    justify-content: center;
  }

  .search-hero .search-hero-pills .search-pill-catalog {
    display: inline-flex !important;
    border-color: #245f9f !important;
    background: linear-gradient(135deg, #397fc7 0%, #245f9f 100%) !important;
    box-shadow: 0 10px 22px rgba(36, 95, 159, 0.22) !important;
    color: #fff !important;
  }

  .search-hero .search-hero-pills .search-pill-catalog:hover,
  .search-hero .search-hero-pills .search-pill-catalog:focus-visible {
    border-color: #174b83 !important;
    background: linear-gradient(135deg, #2f72b8 0%, #174f8c 100%) !important;
    box-shadow: 0 13px 27px rgba(31, 84, 143, 0.29) !important;
  }

  .search-hero .hero-catalog-btn {
    display: none !important;
  }
}

.sales-ranking-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 0;
  padding: 22px;
  border: 1px dashed #c9d8e9;
  border-radius: 14px;
  background: linear-gradient(145deg, #f9fbfe 0%, #f1f6fc 100%);
  color: #53677d;
  font-weight: 750;
  text-align: center;
}

.footer {
  grid-template-columns: minmax(230px, 1fr) minmax(300px, 420px) minmax(220px, 1fr) !important;
  gap: 18px !important;
  padding: 18px !important;
}

.footer-identity {
  display: grid;
  gap: 8px;
  align-self: center;
}

.footer-identity > div {
  color: #253f5c;
  font-weight: 850;
}

.footer-identity address {
  display: grid;
  gap: 5px;
  max-width: 390px;
  margin: 0;
  color: #5b6e82;
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
  line-height: 1.5;
}

.footer-identity address strong {
  color: #324d69;
  font-size: 12.5px;
  font-weight: 850;
}

.footer-identity address b {
  color: #425d78;
  font-weight: 820;
}

.footer-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 132px;
  max-height: 165px;
  overflow: hidden;
  border: 1px solid #cfdae8;
  border-radius: 14px;
  background: #edf3f9;
  box-shadow: 0 10px 24px rgba(37, 71, 108, 0.12);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  border: 0;
}

.footer-map a {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(38, 91, 147, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 18px rgba(29, 66, 104, 0.16);
  color: #245f9f;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.footer-map a:hover,
.footer-map a:focus-visible {
  background: #fff;
  color: #174f8c;
}

.footer-contact {
  align-self: center;
}

@media (max-width: 900px) {
  .footer {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
    text-align: center;
  }

  .footer-identity {
    justify-items: center;
  }

  .footer-identity address {
    max-width: 620px;
  }

  .footer-map {
    width: min(100%, 620px);
    min-height: 150px;
    max-height: 190px;
    margin-inline: auto;
    aspect-ratio: 16 / 7;
  }

  .footer-map iframe {
    min-height: 150px;
  }

  .footer-contact {
    justify-content: center;
  }
}

/* Búsqueda útil en páginas sin catálogo visible. */
.vzr-search {
  position: relative;
}

.vzr-search-results {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 90;
  display: grid;
  width: min(620px, calc(100vw - 24px));
  max-height: min(520px, 68vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #cddcec;
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 48px rgba(26, 57, 91, .2);
  backdrop-filter: blur(12px);
}

.vzr-search-result,
.vzr-search-all {
  display: grid;
  min-width: 0;
  color: #162d45;
  text-decoration: none;
}

.vzr-search-result {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 11px;
}

.vzr-search-result:hover,
.vzr-search-result:focus-visible {
  background: #eef5fd;
  outline: none;
}

.vzr-search-result img {
  width: 54px;
  height: 54px;
  border: 1px solid #dae5f0;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.vzr-search-result span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vzr-search-result strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vzr-search-result small {
  overflow: hidden;
  color: #62768a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vzr-search-all {
  min-height: 42px;
  margin-top: 4px;
  place-items: center;
  border-top: 1px solid #e1e9f1;
  color: #235f9b;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

/* Respuesta visual inmediata al abrir el pago. */
.checkout-transition {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  grid-template-columns: 42px auto;
  gap: 13px;
  place-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(244, 249, 255, .92);
  backdrop-filter: blur(12px);
  animation: checkoutTransitionIn .16s ease both;
}

.checkout-transition-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #cbdcf0;
  border-top-color: #3170b2;
  border-radius: 50%;
  animation: checkoutTransitionSpin .7s linear infinite;
}

.checkout-transition p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.checkout-transition strong {
  color: #14385c;
  font-size: 16px;
}

.checkout-transition small {
  color: #5d7187;
  font-size: 12px;
  font-weight: 750;
}

@keyframes checkoutTransitionSpin {
  to { transform: rotate(360deg); }
}

@keyframes checkoutTransitionIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Transferencia Pichincha: cuenta y reporte en un solo bloque. */
.pichincha-transfer .transfer-bank-head {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.pichincha-transfer .transfer-bank-head > .bank-logo {
  width: 116px;
  height: 42px;
  padding: 7px;
  border: 1px solid #eadb7a;
  border-radius: 10px;
  background: #fff;
}

.pichincha-transfer .transfer-bank-head > span:last-child {
  display: grid;
  gap: 3px;
}

.pichincha-transfer .transfer-bank-head small {
  color: #667487;
  font-size: 11px;
  line-height: 1.4;
}

.pichincha-account-details dd {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}

.pichincha-account-details dd span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pichincha-account-details dd button {
  min-height: 30px;
  padding: 5px 8px;
  flex: 0 0 auto;
  border: 1px solid #dacb6b;
  border-radius: 8px;
  background: #fff9c7;
  color: #4f4514;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.pichincha-transfer .transfer-simulation-receipt {
  grid-template-columns: 1fr;
  align-items: stretch;
  background: #f4fbf7;
}

.transfer-fast-summary {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px !important;
}

.transfer-fast-summary > span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #c9e2d5;
  border-radius: 10px;
  background: #fff;
}

.transfer-fast-summary b {
  font-size: 13px !important;
  text-overflow: initial !important;
}

/* Deuna: QR y reporte como método independiente. */
.deuna-payment-panel {
  gap: 14px;
  border-color: #d8c4eb;
  background:
    radial-gradient(circle at 100% 0, rgba(57, 151, 157, .12), transparent 34%),
    linear-gradient(155deg, #fbf8ff 0%, #fff 66%, #f1fbfb 100%);
}

.deuna-payment-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.deuna-payment-head > img {
  width: 104px;
  max-height: 48px;
  padding: 9px 12px;
  border: 1px solid #ded0ec;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(71, 30, 112, .08);
}

.deuna-payment-head > span {
  display: grid;
  gap: 3px;
}

.deuna-payment-head strong {
  color: #492078 !important;
  font-size: 13px;
}

.deuna-payment-head small {
  color: #687487 !important;
  font-size: 11px;
  line-height: 1.4;
}

.deuna-payment-body {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(230px, 1.15fr);
  gap: 14px;
  align-items: stretch;
}

.deuna-qr-card {
  display: grid;
  gap: 7px;
  align-content: center;
  margin: 0;
  padding: 12px;
  border: 1px solid #d9c7e9;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(55, 25, 87, .09);
}

.deuna-qr-viewport {
  width: min(100%, 320px);
  margin: auto;
  border-radius: 14px;
  background: #fff;
}

.deuna-qr-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.deuna-qr-card figcaption {
  color: #635574;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.deuna-payment-report {
  display: grid;
  gap: 11px;
  align-content: center;
  min-width: 0;
}

.deuna-payment-report .transfer-fast-summary > span {
  border-color: #d9c8e8;
}

.deuna-payment-report .transfer-fast-summary small {
  color: #72558b !important;
}

.deuna-payment-report .transfer-fast-summary b {
  color: #47216e !important;
}

.deuna-proof-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 9px;
}

.deuna-proof-fields .proof-choice-hint strong {
  color: #55227f !important;
}

.deuna-proof-fields .proof-choice-hint small {
  color: #72558b !important;
}

.deuna-proof-fields .proof-choice-or {
  border-color: #d3bee3;
  color: #6b3992;
}

body[data-page="checkout"] .card-form .deuna-proof-fields label {
  gap: 5px;
  color: #51316e;
  font-size: 10px;
}

body[data-page="checkout"] .card-form .deuna-proof-fields input {
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border-color: #dacbe7;
  background: #fff;
  font-size: 12px;
}

.deuna-proof-fields .receipt-upload-action {
  border-color: #c8addd;
  background: linear-gradient(145deg, #fff, #f8f1fd);
}

.deuna-proof-fields .receipt-upload-action > svg {
  background: #eee0f8;
  fill: #682c9d;
}

.deuna-proof-fields .receipt-upload-action strong {
  color: #55227f !important;
}

.deuna-proof-fields .transfer-proof-upload:hover .receipt-upload-action,
.deuna-proof-fields .transfer-proof-upload:focus-within .receipt-upload-action {
  border-color: #8d54b9;
  box-shadow: 0 0 0 3px rgba(104, 44, 157, .1);
}

.deuna-proof-fields .transfer-proof-upload.has-file .receipt-upload-action {
  border-color: #8d54b9;
  background: #f5ecfb;
}

.deuna-complete-button {
  min-height: 44px;
  background: linear-gradient(135deg, #57258d, #7138aa) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(84, 35, 133, .2);
}

.deuna-final-status {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #b9dede;
  border-radius: 12px;
  background: #effafa;
}

.deuna-final-status > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #358e94;
  color: #fff !important;
  font-weight: 900;
}

.deuna-final-status p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.deuna-final-status strong {
  color: #245d61 !important;
  font-size: 11px;
}

.deuna-final-status small {
  color: #527579 !important;
  font-size: 9px;
  line-height: 1.35;
}

/* Escritorio: Pichincha y Deuna comparten la misma jerarquía visual. */
@media (min-width: 981px) {
  body[data-page="checkout"] .payment-methods {
    gap: 12px;
  }

  body[data-page="checkout"] .card-form label.payment-option {
    min-height: 72px;
    padding: 13px 15px;
    border-radius: 16px;
  }

  body[data-page="checkout"] .card-form label.payment-option:hover {
    border-color: #a9bfd7;
    background: #fbfdff;
    box-shadow: 0 8px 20px rgba(28, 65, 104, .08);
  }

  body[data-page="checkout"] .transfer-bank-selector.pichincha-transfer,
  body[data-page="checkout"] .deuna-payment-panel {
    width: 100%;
    min-width: 0;
    margin: 0 0 4px;
    padding: 18px;
    gap: 16px;
    overflow: hidden;
    border-radius: 20px;
    box-sizing: border-box;
    box-shadow: 0 18px 36px rgba(30, 58, 91, .10);
  }

  body[data-page="checkout"] .transfer-bank-selector.pichincha-transfer {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    border: 1px solid #e4d575;
    border-top: 4px solid #f1cf00;
    background:
      radial-gradient(circle at 100% 0, rgba(241, 207, 0, .15), transparent 34%),
      linear-gradient(155deg, #fffef6 0%, #fff 68%, #fffbea 100%);
  }

  body[data-page="checkout"] .deuna-payment-panel {
    border: 1px solid #d5c1e8;
    border-top: 4px solid #612a91;
    background:
      radial-gradient(circle at 100% 0, rgba(57, 151, 157, .14), transparent 33%),
      linear-gradient(155deg, #fcf9ff 0%, #fff 67%, #f1fbfb 100%);
  }

  .pichincha-transfer .transfer-bank-head,
  .deuna-payment-head {
    grid-template-columns: 126px minmax(0, 1fr);
    min-height: 64px;
    gap: 15px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(109, 125, 144, .16);
  }

  .pichincha-transfer .transfer-bank-head,
  .pichincha-transfer .transfer-final-status {
    grid-column: 1 / -1;
  }

  .pichincha-transfer .transfer-bank-head > .bank-logo,
  .deuna-payment-head > img {
    width: 126px;
    height: 54px;
    max-height: 54px;
    padding: 10px 12px;
    border-radius: 13px;
    box-sizing: border-box;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 9px 20px rgba(31, 54, 81, .08);
  }

  .pichincha-transfer .transfer-bank-head > .bank-logo {
    border-color: #e4d575;
  }

  .deuna-payment-head > img {
    border-color: #d8c7e7;
  }

  .pichincha-transfer .transfer-bank-head strong,
  .deuna-payment-head strong {
    font-size: 15px;
    line-height: 1.25;
  }

  .pichincha-transfer .transfer-bank-head small,
  .deuna-payment-head small {
    max-width: 48ch;
    font-size: 11px;
    line-height: 1.45;
  }

  .pichincha-account-details,
  .deuna-qr-card,
  .pichincha-transfer .transfer-simulation-receipt,
  .deuna-payment-report {
    min-width: 0;
    border-radius: 16px;
    box-sizing: border-box;
  }

  .pichincha-account-details {
    gap: 10px;
    padding: 15px;
    border-color: #e7dc91;
    background: rgba(255, 255, 255, .92);
  }

  .pichincha-account-brand {
    display: none;
  }

  .pichincha-account-details dl {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .pichincha-account-details dl div {
    min-height: 50px;
    padding: 8px 9px;
    align-content: center;
    border: 1px solid #f0e9bd;
    background: #fffef8;
  }

  .pichincha-account-details dl div:first-child {
    grid-column: auto;
  }

  .pichincha-account-details dt {
    font-size: 9px;
    letter-spacing: .035em;
  }

  .pichincha-account-details dd {
    font-size: 12px;
  }

  .pichincha-account-details dd button {
    min-height: 32px;
    padding-inline: 10px;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
  }

  .pichincha-account-details dd button:hover,
  .pichincha-account-details dd button:focus-visible {
    transform: translateY(-1px);
    border-color: #bfa900;
    background: #fff5a9;
    outline: none;
  }

  .pichincha-transfer .transfer-simulation-receipt {
    gap: 11px;
    padding: 13px;
    border-color: #c4decf;
    background: rgba(244, 251, 247, .94);
  }

  .pichincha-transfer .transfer-fast-summary,
  .pichincha-transfer .transfer-proof-fields {
    grid-template-columns: 1fr !important;
  }

  .pichincha-transfer .proof-choice-or {
    width: 26px;
    height: 26px;
    align-self: center;
    margin: -2px auto;
  }

  .deuna-payment-body {
    grid-template-columns: minmax(205px, .82fr) minmax(245px, 1.18fr);
    gap: 16px;
  }

  .deuna-qr-card {
    min-height: 338px;
    padding: 14px;
    border-color: #d8c6e8;
    background: rgba(255, 255, 255, .94);
  }

  .deuna-qr-viewport {
    width: min(100%, 300px);
  }

  .deuna-payment-report {
    gap: 11px;
    align-content: stretch;
    padding: 15px;
    border: 1px solid #d9c8e8;
    background: rgba(255, 255, 255, .78);
  }

  .pichincha-transfer .transfer-fast-summary > span,
  .deuna-payment-report .transfer-fast-summary > span {
    min-height: 64px;
    padding: 11px;
    align-content: center;
  }

  .pichincha-transfer .proof-choice-hint,
  .deuna-payment-panel .proof-choice-hint {
    min-height: 52px;
    padding: 10px 11px;
    align-content: center;
    border: 1px solid rgba(123, 145, 134, .14);
  }

  .pichincha-transfer .receipt-upload-action,
  .deuna-payment-panel .receipt-upload-action {
    min-height: 70px;
  }

  .pichincha-transfer .transfer-complete-button,
  .deuna-payment-panel .deuna-complete-button {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  body[data-page="checkout"] .transfer-bank-selector.pichincha-transfer,
  body[data-page="checkout"] .deuna-payment-panel {
    width: 100%;
    min-width: 0;
    margin: -2px 0 2px;
    padding: 12px;
    gap: 14px;
    box-sizing: border-box;
    border-radius: 15px;
  }

  .pichincha-transfer .transfer-bank-head,
  .deuna-payment-head {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    align-items: center;
  }

  .pichincha-transfer .transfer-bank-head > .bank-logo,
  .deuna-payment-head > img {
    width: 88px;
    height: 44px;
    max-height: 44px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 11px;
    object-fit: contain;
  }

  .pichincha-transfer .transfer-bank-head > span:last-child,
  .deuna-payment-head > span {
    min-width: 0;
  }

  .pichincha-transfer .transfer-simulation-receipt > div {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pichincha-transfer .transfer-simulation-receipt,
  .deuna-payment-report {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .pichincha-transfer .transfer-simulation-receipt {
    gap: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .pichincha-transfer .transfer-proof-fields,
  .deuna-payment-panel .deuna-proof-fields {
    width: 100%;
    min-width: 0;
  }

  .pichincha-transfer .transfer-complete-button,
  .deuna-payment-panel .deuna-complete-button {
    width: 100%;
    min-height: 44px;
    margin-top: 2px;
  }

  .vzr-search-results {
    position: fixed;
    top: 126px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: min(480px, calc(100vh - 150px));
  }

  .checkout-transition {
    grid-template-columns: 38px minmax(0, auto);
    padding-inline: 18px;
  }

  .pichincha-account-details dl,
  .transfer-fast-summary,
  .transfer-proof-fields,
  .deuna-proof-fields {
    grid-template-columns: 1fr !important;
  }

  .proof-choice-or {
    width: 26px;
    height: 26px;
    align-self: center;
    margin: -2px auto;
  }

  .deuna-payment-body {
    grid-template-columns: 1fr;
  }

  .deuna-qr-viewport {
    width: min(100%, 340px);
  }

  .pichincha-account-details dd {
    font-size: 12px;
  }
}

/* PayPhone móvil: prioridad final para aislar la caja del ancho del proveedor. */
@media (max-width: 680px) {
  body[data-page="checkout"],
  body[data-page="checkout"] .site-main,
  body[data-page="checkout"] .checkout,
  body[data-page="checkout"] .checkout-grid,
  body[data-page="checkout"] .card-form,
  body[data-page="checkout"] .step-group,
  body[data-page="checkout"] .payment-methods,
  body[data-page="checkout"] .payment-card-preview.payphone-card-panel,
  body[data-page="checkout"] .payphone-box-shell,
  body[data-page="checkout"] #pp-button,
  body[data-page="checkout"] #pp-button .ppb-content,
  body[data-page="checkout"] #pp-button .payment-box {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body[data-page="checkout"] {
    overflow-x: clip;
  }

  body[data-page="checkout"] .payment-card-preview.payphone-card-panel {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 7px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body[data-page="checkout"] .payphone-card-intro,
  body[data-page="checkout"] .payphone-box-shell {
    width: 100% !important;
  }

  body[data-page="checkout"] .payphone-box-shell {
    padding: 8px 6px 10px !important;
    overflow: hidden !important;
  }

  body[data-page="checkout"] #pp-button,
  body[data-page="checkout"] #pp-button .ppb-content {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body[data-page="checkout"] #pp-button .payment-box {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 9px !important;
    flex: 0 1 100% !important;
  }

  body[data-page="checkout"] #pp-button .ppb-container,
  body[data-page="checkout"] #pp-button .ppb-row,
  body[data-page="checkout"] #pp-button [class*="ppb-col-"] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body[data-page="checkout"] #pp-button input,
  body[data-page="checkout"] #pp-button select,
  body[data-page="checkout"] #pp-button button {
    width: 100% !important;
    min-width: 0 !important;
  }

  body[data-page="checkout"] #pp-button .country-list {
    right: auto !important;
    left: 0 !important;
    width: min(300px, calc(100vw - 58px)) !important;
    max-width: 100% !important;
  }

  body[data-page="checkout"] #pp-button .ppb-footer-image-container {
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}

@media (max-width: 390px) {
  body[data-page="checkout"] #pp-button .ppb-col-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  body[data-page="checkout"] #pp-button .ppb-row {
    margin-right: -3px !important;
    margin-left: -3px !important;
  }
}
