
:root {
  --black: #0b3b8c;
  --text: #10213b;
  --muted: #5d6f8d;
  --surface: #f6f8fc;
  --surface-2: #edf2fb;
  --white: #fff;
  --line: #d7e1ef;
  --blue: #ff6a00;
  --green: #16883f;
  --danger: #b42318;
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
  --container: 1440px;
  --font: 'Sora', Arial, Helvetica, sans-serif;

  /* Sistema de motion BOGA: tiempos breves y easing consistente. */
  --motion-fast: 160ms;
  --motion-normal: 240ms;
  --motion-slow: 360ms;
  --ease-standard: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);

  /* Profundidad visual coherente. */
  --shadow-1: 0 3px 12px rgba(10, 37, 84, .055);
  --shadow-2: 0 12px 32px rgba(10, 37, 84, .09);
  --shadow-3: 0 20px 50px rgba(10, 37, 84, .13);
  --shadow-4: 0 30px 90px rgba(4, 18, 42, .22);
  --shadow: var(--shadow-2);

  --z-sticky: 80;
  --z-overlay: 180;
  --z-drawer: 200;
  --z-search: 220;
  --z-toast: 260;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Mantiene el encabezado completo visible durante el scroll.
   El sticky se aplica al mount completo para que no quede limitado por
   la altura de su propio contenedor. */
#headerMount {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  width: 100%;
  background: rgba(255,255,255,.96);
  isolation: isolate;
  transition: box-shadow var(--motion-normal) var(--ease-standard), background-color var(--motion-normal) var(--ease-standard);
}
#headerMount.is-scrolled { background: rgba(255,255,255,.92); box-shadow: 0 8px 28px rgba(8,35,79,.09); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; min-width: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.03; letter-spacing: -.045em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1;
  transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.button:active { transform: translateY(0) scale(.985); box-shadow: none; }
.button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .catalog-tabs button:focus-visible, .filter-title:focus-visible { outline: 3px solid rgba(255,106,0,.28); outline-offset: 2px; }
.button-dark { background: var(--black); color: var(--white); }
.button-dark:hover { background: #0e4ca7; }
.button-outline { background: transparent; }
.button-gold { background: var(--blue); border-color: var(--blue); color: var(--white); }
.button-outline:hover { background: rgba(11,59,140,.06); border-color: var(--black); }
.button-block { width: 100%; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
.icon-button:hover { background: var(--surface); transform: translateY(-1px); }
.icon-button:active { transform: scale(.94); }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.announcement { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 18px; background: linear-gradient(90deg, #082c6c 0%, #0b3b8c 100%); color: var(--white); font-size: .75rem; font-weight: 650; text-align: center; }
.announcement strong { font-weight: 750; }
.site-header {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  min-height: 68px; padding: 0 clamp(18px, 2.2vw, 36px); border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background-color var(--motion-normal) var(--ease-standard), border-color var(--motion-normal) var(--ease-standard);
}
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { display: block; width: auto; height: clamp(36px, 3vw, 42px); max-width: 190px; object-fit: contain; }
.brand small, .brand strong { display: none; }
.desktop-nav { min-width: 0; display: flex; justify-content: center; gap: clamp(16px, 2.2vw, 34px); }
.desktop-nav a { position: relative; padding: 23px 0; font-size: .86rem; font-weight: 700; }
.desktop-nav a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 15px; height: 2px; background: var(--blue); transition: left var(--motion-normal) var(--ease-standard), right var(--motion-normal) var(--ease-standard); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current='page']::after { left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.header-action { position: relative; }
.count-badge { position: absolute; top: 1px; right: 0; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: .62rem; font-weight: 800; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 21px; height: 1.6px; margin: 2.5px; background: currentColor; }

.mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: var(--z-drawer); width: min(90vw, 420px); height: 100dvh; padding: 22px; background: var(--white); box-shadow: var(--shadow-4); transform: translateX(-105%); transition: transform var(--motion-normal) var(--ease-out); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.mobile-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mobile-links { display: grid; padding: 8px 0 26px; }
.mobile-links a { padding: 17px 2px; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 750; }
.overlay { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(6,20,45,.48); opacity: 0; pointer-events: none; transition: opacity var(--motion-normal) var(--ease-standard); }
.overlay.open { opacity: 1; pointer-events: auto; }

.search-overlay { position: fixed; inset: 0; z-index: var(--z-search); display: grid; place-items: start center; padding: 92px 20px 20px; background: rgba(6,20,45,.52); opacity: 0; pointer-events: none; transition: opacity var(--motion-normal) var(--ease-standard); }
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-box { width: min(800px, 100%); padding: 28px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-3); opacity: 0; transform: translateY(-10px) scale(.988); transition: transform var(--motion-normal) var(--ease-out), opacity var(--motion-normal) var(--ease-standard); }
.search-overlay.open .search-box { opacity: 1; transform: translateY(0) scale(1); }
.search-box-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.search-box h2 { margin: 0 0 22px; font-size: clamp(1.5rem, 4vw, 2.3rem); letter-spacing: -.04em; }
.global-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.global-search input { width: 100%; min-width: 0; min-height: 50px; padding: 0 18px; border: 1px solid #bfc9d8; border-radius: 999px; background: var(--white); color: var(--text); font-size: 16px; outline: 0; -webkit-appearance: none; appearance: none; transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard); }
.global-search input:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.global-search button { min-width: max-content; min-height: 48px; padding-inline: 22px; border: 0; border-radius: 999px; background: var(--black); color: var(--white); font-weight: 750; }

.hero { width: min(1520px, calc(100% - 32px)); min-height: min(720px, calc(100dvh - 100px)); margin: 16px auto 0; padding: clamp(36px, 6vw, 86px); border-radius: var(--radius-lg); background: linear-gradient(135deg,#f7fbff 0%,#edf3fc 55%,#fff6ef 100%); display: grid; grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr); align-items: center; gap: 40px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 660px; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.1rem, 6.4vw, 6.8rem); line-height: .93; letter-spacing: -.065em; }
.hero-text { max-width: 600px; margin: 24px 0 0; color: #494949; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-device { width: min(100%, 650px); max-height: 590px; object-fit: contain; filter: drop-shadow(0 30px 35px rgba(0,0,0,.16)); }
.hero-card { position: absolute; right: 0; bottom: 22px; display: grid; gap: 2px; min-width: 210px; padding: 18px 22px; border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.hero-card small { color: var(--muted); }
.hero-card strong { font-size: 1rem; }
.hero-card span { font-size: .82rem; color: var(--muted); }

.category-shortcuts { width: min(1100px, calc(100% - 40px)); margin: 28px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.category-shortcuts a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .88rem; font-weight: 700; transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard); }
.category-shortcuts a:hover { border-color: var(--black); background: var(--black); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.brand-marquee { width: min(1240px, calc(100% - 40px)); margin: 34px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 38px; color: #707070; font-size: .78rem; font-weight: 850; letter-spacing: .08em; }
.home-section { padding: clamp(70px, 8vw, 120px) 0; }
.home-section.surface { background: var(--surface); }
.home-section.dark { background: var(--black); color: var(--white); }
.home-section.dark .eyebrow { color: rgba(255,255,255,.66); }
.home-section.dark .section-title { color: #fff; }
.home-section.dark .section-head { margin-bottom: clamp(28px,3vw,38px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-head > p { max-width: 540px; margin: 0; color: var(--muted); }
.section-head a { font-size: .9rem; font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; padding: 2px 2px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.product-rail .product-card { scroll-snap-align: start; }

.price-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card { min-height: 0; padding: 22px 24px; border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; justify-content: flex-start; gap: 5px; transition: transform .2s ease, box-shadow .2s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card small { margin-bottom: 4px; color: var(--muted); font-weight: 700; }
.price-card strong { font-size: 1.45rem; letter-spacing: -.03em; }
.price-card span { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px,1.3vw,18px); align-items: stretch; }
.brand-card { min-width: 0; min-height: 116px; display: grid; place-items: stretch; padding: 0; border: 1px solid rgba(11,59,140,.10); border-radius: 20px; background: #fff; color: var(--text); cursor: pointer; overflow: hidden; box-shadow: 0 6px 18px rgba(5,25,61,.10); transition: transform var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard); }
.brand-logo-wrapper { width: 100%; min-width: 0; height: 116px; display: flex; align-items: center; justify-content: center; padding: 20px 24px; border-radius: inherit; background: transparent; overflow: hidden; }
.brand-logo { display: block; width: auto; height: auto; max-width: var(--brand-max-w, 72%); max-height: var(--brand-max-h, 56px); object-fit: contain; object-position: center; transform: translate(var(--brand-x,0),var(--brand-y,0)) scale(var(--brand-scale,1)); transform-origin: center; image-rendering: auto; transition: transform var(--motion-fast) var(--ease-standard); }
.brand-logo-wrapper[data-profile="ultra-wide"] .brand-logo { max-width: var(--brand-max-w, 76%); }
.brand-logo-wrapper[data-profile="wide"] .brand-logo { max-width: var(--brand-max-w, 70%); }
.brand-logo-wrapper[data-profile="wordmark"] .brand-logo { max-width: var(--brand-max-w, 72%); }
.brand-logo-wrapper[data-profile="mark"] .brand-logo { max-width: var(--brand-max-w, 70px); max-height: var(--brand-max-h, 70px); }
.brand-logo-wrapper[data-profile="tile"] .brand-logo { max-width: var(--brand-max-w, 76px); max-height: var(--brand-max-h, 76px); }
.brand-logo-fallback { max-width: 100%; color: #0f213d; font-size: clamp(1rem,1.15vw,1.1rem); font-weight: 800; letter-spacing: .01em; text-align: center; overflow-wrap: anywhere; }
.brand-card:hover { transform: translateY(-3px); border-color: rgba(255,106,0,.38); background: #fff; box-shadow: 0 14px 30px rgba(5,25,61,.16); }
.brand-card:hover .brand-logo { transform: translate(var(--brand-x,0),var(--brand-y,0)) scale(calc(var(--brand-scale,1) * 1.018)); }
.brand-card:active { transform: translateY(-1px) scale(.99); }
.brand-card:focus-visible { outline: 3px solid rgba(255,106,0,.42); outline-offset: 3px; }
.brand-card--fallback { background: linear-gradient(180deg,#fff 0%,#f7f9fc 100%); }
.brand-card--fallback .brand-logo-wrapper { background: transparent; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-card { min-height: 220px; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.benefit-card span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--black); color: var(--white); font-size: .78rem; font-weight: 800; }
.benefit-card h3 { margin: 44px 0 8px; font-size: 1.25rem; }
.benefit-card p { margin: 0; color: var(--muted); }
.wa-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: #dcecff; }
.wa-banner h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.wa-banner p { margin: 14px 0 0; color: #424242; }

.page-hero { padding: clamp(64px, 8vw, 110px) 0 46px; text-align: center; }
.page-hero .container { max-width: 860px; }
.page-hero h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: .96; letter-spacing: -.06em; }
.page-hero p:last-child { max-width: 660px; margin: 18px auto 0; color: var(--muted); font-size: 1.05rem; }

.catalog-shell { padding: 0 0 100px; }
.catalog-search-wrap { max-width: 900px; margin: 0 auto 34px; }
.catalog-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.catalog-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.catalog-tabs::-webkit-scrollbar { display: none; }
.catalog-tabs a { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.catalog-tabs a.active, .catalog-tabs a[aria-current="page"] { border-color: var(--black); background: var(--black); color: var(--white); }
.catalog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; white-space: nowrap; }
.catalog-actions > span { color: var(--muted); font-size: .82rem; }
.catalog-actions select { min-height: 42px; padding: 0 40px 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--text); }
.filters-open { display: none; min-height: 42px; padding: 9px 17px; }
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 2.4vw, 34px); align-items: start; }
.filters { position: sticky; top: 112px; max-height: calc(100dvh - 128px); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; overscroll-behavior: contain; }
.filter-mobile-head { display: none; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-title { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: transparent; color: var(--text); font-weight: 750; text-align: left; }
.filter-title span { font-size: 1.1rem; }
.filter-content { padding: 0 0 18px; }
.filter-search { width: 100%; min-height: 42px; margin-bottom: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; -webkit-appearance: none; appearance: none; }
.check-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 9px; min-height: 36px; font-size: .86rem; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--black); }
.check-row small { color: var(--muted); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.price-inputs input { width: 100%; min-width: 0; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
.quick-price { display: grid; gap: 7px; margin-top: 12px; }
.quick-price a { padding: 7px 0; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: .82rem; }
.quick-price a:hover { color: var(--black); }
.filters-footer { display: grid; grid-template-columns: 1fr; gap: 9px; padding: 18px 0 4px; }
.active-filters { min-height: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: .78rem; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 18px); align-items: stretch; }
.simple-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.product-card { position: relative; min-width: 0; height: 100%; display: flex; flex-direction: column; border: 1px solid rgba(11,59,140,.055); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(10,37,84,.02); overflow: hidden; transition: transform var(--motion-normal) var(--ease-standard), box-shadow var(--motion-normal) var(--ease-standard), border-color var(--motion-normal) var(--ease-standard), background-color var(--motion-normal) var(--ease-standard); }
.product-card:hover { transform: translateY(-4px); border-color: rgba(11,59,140,.11); box-shadow: var(--shadow-2); }
.product-media { position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 0; display: grid; place-items: center; padding: clamp(16px, 2vw, 26px) clamp(14px, 1.7vw, 24px) 10px; }
.product-media img { width: 100%; height: 100%; max-height: 285px; object-fit: contain; transition: transform var(--motion-normal) var(--ease-standard), opacity var(--motion-normal) var(--ease-standard); }
.product-card:hover .product-media img { transform: scale(1.028); }
.product-badge { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: var(--black); color: var(--white); font-size: .68rem; font-weight: 800; }
.favorite-button { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(11,59,140,.06); border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow-1); transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard); }
.favorite-button svg { width: 20px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 1.6; }
.favorite-button.active svg { fill: var(--black); }
.product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 15px clamp(14px, 1.4vw, 20px) 18px; }
.product-brand { margin: 0 0 5px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-info h3 { min-height: 2.35em; margin: 0; font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.17; letter-spacing: -.025em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-title-link { display: inline-block; }
.product-memory { margin: 7px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { display: grid; gap: 1px; margin-top: 12px; }
.product-price small { color: var(--muted); font-size: .72rem; }
.product-price strong { font-size: clamp(1.18rem, 1.55vw, 1.34rem); letter-spacing: -.025em; }
.stock-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.card-actions .button { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; font-size: .76rem; white-space: nowrap; }
.empty-state { padding: 74px 24px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state h2 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -.04em; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 34px; }
.pagination button { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); transition: transform var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard); }
.pagination button.active { border-color: var(--black); background: var(--black); color: var(--white); }
.pagination button:disabled { opacity: .35; cursor: default; }

.product-page { padding: 28px 0 100px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; color: var(--muted); font-size: .78rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.product-gallery { position: sticky; top: 112px; min-width: 0; }
.main-image { min-height: clamp(460px, 49vw, 620px); display: grid; place-items: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.main-image img { width: 100%; height: auto; max-height: 570px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumb { flex: 0 0 74px; width: 74px; height: 74px; display: grid; place-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); }
.gallery-thumb.active { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail { padding-top: 20px; }
.brand-line { margin: 0 0 8px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-detail h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; }
.availability { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--muted); font-size: .84rem; }
.detail-price { display: grid; margin: 20px 0 14px; }
.detail-price small { color: var(--muted); }
.detail-price strong { font-size: clamp(2rem, 3.2vw, 2.65rem); letter-spacing: -.045em; }
.detail-description { max-width: 620px; margin: 0 0 26px; color: #555; }
.selector { padding: 22px 0; border-top: 1px solid var(--line); }
.selector > strong { display: block; margin-bottom: 12px; font-size: .88rem; }
.variant-list, .color-list { display: flex; flex-wrap: wrap; gap: 9px; }
.variant-button, .color-button { min-height: 42px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .82rem; }
.variant-button.active, .color-button.active { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 24px; }
.detail-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 26px; }
.detail-notes div { padding: 15px; border-radius: 16px; background: var(--surface); }
.detail-notes strong, .detail-notes span { display: block; }
.detail-notes strong { margin-bottom: 3px; font-size: .75rem; }
.detail-notes span { color: var(--muted); font-size: .75rem; }
.detail-notes div:last-child { background: rgba(22,136,63,.07); border: 1px solid rgba(22,136,63,.10); }
.detail-notes div:last-child strong { color: #0f6c31; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-button { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: transparent; font-weight: 750; text-align: left; }
.accordion-panel { padding: 0 0 22px; color: #555; }
.accordion-panel ul { margin: 0; padding-left: 19px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.spec-table th, .spec-table td { padding: 11px 0; border-bottom: 1px solid #ececec; text-align: left; vertical-align: top; }
.spec-table th { width: 40%; padding-right: 15px; }
.related { margin-top: 100px; }
.related h2 { margin: 0 0 28px; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.05em; }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.favorites-page, .cart-page { padding: 0 0 100px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 38px; align-items: start; }
.cart-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.cart-heading h2 { margin: 0; font-size: 2.4rem; letter-spacing: -.05em; }
.cart-list { display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border-radius: 22px; background: var(--surface); }
.cart-row > img { width: 140px; height: 140px; object-fit: contain; }
.cart-row h3 { margin: 0; font-size: 1.1rem; }
.cart-row p { margin: 6px 0; }
.cart-row > div:last-child { display: grid; justify-items: end; gap: 16px; text-align: right; }
.qty-control { display: inline-grid; grid-template-columns: 36px 42px 36px; align-items: center; margin-top: 12px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty-control button { height: 34px; border: 0; background: transparent; }
.qty-control span { text-align: center; font-size: .82rem; }
.remove-link { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.checkout { position: sticky; top: 112px; padding: 26px; border-radius: var(--radius); background: var(--surface); }
.checkout h2 { margin: 0 0 20px; font-size: 1.45rem; letter-spacing: -.035em; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-line.total { padding-top: 16px; border-bottom: 0; font-size: 1.1rem; }
.folio { margin: 16px 0; color: var(--muted); font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .75rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 12px; background: var(--white); font-size: 16px; }
.form-field textarea { min-height: 78px; resize: vertical; }
.checkout-note { margin: 14px 0; color: var(--muted); font-size: .74rem; }

.content-page { padding: clamp(70px, 8vw, 120px) 0; }
.content-page article { max-width: 840px; margin-inline: auto; }
.content-page h1 { margin: 0 0 30px; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .96; letter-spacing: -.06em; }
.content-page h2 { margin-top: 38px; font-size: 1.4rem; }
.content-page p { color: #4e4e4e; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0; border: 0; background: transparent; font-size: 1rem; font-weight: 750; text-align: left; }
.faq-answer { padding: 0 0 24px; color: var(--muted); }

.site-footer { padding: 62px 0 24px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; }
.footer-brand strong { font-size: 1.1rem; }
.footer-brand p { max-width: 360px; color: var(--muted); font-size: .86rem; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h3 { margin: 0 0 6px; font-size: .82rem; }
.footer-col a { color: var(--muted); font-size: .82rem; transition: color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); }
.footer-col a:hover { color: var(--black); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.floating-wa { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 70; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), filter var(--motion-fast) var(--ease-standard); }
.floating-wa svg { width: 29px; height: 29px; fill: currentColor; }
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: var(--z-toast); max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 999px; background: rgba(11,59,140,.97); color: var(--white); box-shadow: var(--shadow-3); font-size: .84rem; opacity: 0; pointer-events: none; transform: translate(-50%, 14px) scale(.985); transition: opacity var(--motion-normal) var(--ease-standard), transform var(--motion-normal) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (max-width: 1280px) {
  .desktop-nav { gap: 18px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .price-categories { grid-template-columns: repeat(2, 1fr); }
  .simple-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
}

@media (max-width: 1024px) {
  .container { width: min(100% - 32px, var(--container)); }
  .site-header { grid-template-columns: 48px 1fr auto; padding: 0 16px; }
  .site-header .brand { justify-self: center; }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; text-align: center; padding: 54px 28px 26px; }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { min-height: 400px; }
  .hero-device { max-height: 430px; }
  .hero-card { right: 12px; bottom: 8px; text-align: left; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .catalog-top { align-items: flex-start; flex-direction: column; }
  .catalog-tabs { width: 100%; }
  .catalog-actions { width: 100%; justify-content: space-between; }
  .filters-open { display: inline-flex; }
  .catalog-layout { grid-template-columns: 1fr; gap: 0; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters.mobile-filter-panel { position: fixed; inset: 0 auto 0 0; z-index: var(--z-drawer); width: min(90%, 420px); height: 100dvh; max-height: none; padding: 0 22px 24px; background: var(--white); transform: translateX(-105%); transition: transform .28s ease; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin; }
  .filters.mobile-filter-panel.open { transform: translateX(0); }
  .filter-mobile-head { position: sticky; top: 0; z-index: 3; min-height: 70px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--white); }
  .filter-mobile-head button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface); font-size: 1.35rem; }
  .filters-footer { position: sticky; bottom: 0; z-index: 3; grid-template-columns: 1fr 1fr; margin: 14px -22px -24px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .main-image { min-height: 520px; }
  .product-detail { max-width: 760px; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--container)); }
  .announcement { min-height: 28px; font-size: .68rem; }
  .site-header { min-height: 60px; padding: 0 8px; }
  .brand { gap: 6px; }
  .brand small { font-size: .62rem; }
  .brand strong { font-size: .92rem; }
  .header-actions .favorite-action { display: none; }
  .search-box { padding: 20px; }
  .global-search { grid-template-columns: 1fr; }
  .global-search button { min-height: 48px; }
  .hero { width: calc(100% - 16px); margin-top: 8px; padding: 42px 18px 18px; border-radius: 26px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .hero-text { font-size: .98rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-media { min-height: 340px; }
  .hero-device { max-height: 330px; }
  .hero-card { display: none; }
  .category-shortcuts { width: calc(100% - 24px); justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .category-shortcuts::-webkit-scrollbar { display: none; }
  .category-shortcuts a { flex: 0 0 auto; }
  .brand-marquee { gap: 12px 24px; }
  .home-section { padding: 70px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 24px; }
  .product-rail { grid-auto-columns: minmax(260px, 84vw); }
  .price-categories { grid-template-columns: 1fr; }
  .price-card { min-height: 132px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card { min-height: 100px; }
  .brand-logo-wrapper { height: 100px; padding: 16px 18px; }
  .brand-logo { max-width: min(var(--brand-max-w, 78%), 86%); max-height: min(var(--brand-max-h, 52px), 54px); }
  .brand-logo-wrapper[data-profile="mark"] .brand-logo { max-width: min(var(--brand-max-w, 62px), 62px); max-height: min(var(--brand-max-h, 62px), 62px); }
  .brand-logo-wrapper[data-profile="tile"] .brand-logo { max-width: min(var(--brand-max-w, 66px), 66px); max-height: min(var(--brand-max-h, 66px), 66px); }
  .wa-banner { align-items: flex-start; flex-direction: column; border-radius: 26px; }
  .wa-banner .button { width: 100%; }
  .page-hero { padding: 54px 0 34px; }
  .page-hero h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .catalog-actions { align-items: stretch; flex-wrap: wrap; }
  .catalog-actions > span { order: 3; width: 100%; }
  .catalog-actions label { flex: 1; }
  .catalog-actions select { width: 100%; }
  .products-grid, .simple-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { min-height: 0; }
  .product-media img { height: 100%; max-height: 250px; }
  .card-actions { grid-template-columns: 1fr; }
  .main-image { min-height: 390px; padding: 24px; border-radius: 24px; }
  .main-image img { max-height: 350px; }
  .product-detail h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .purchase-actions { grid-template-columns: 1fr; }
  .detail-notes { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
  .cart-row > img { width: 92px; height: 105px; }
  .cart-row > div:last-child { grid-column: 2; justify-items: start; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field, .form-field.full { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .floating-wa { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
}

@media (max-width: 360px) {
  .products-grid, .simple-grid, .related-grid { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: 42px 1fr auto; }
  .icon-button { width: 40px; height: 40px; }
  .brand small { display: none; }
  .hero { padding-inline: 14px; }
  .card-actions { grid-template-columns: 1fr; }
  .filters-footer { grid-template-columns: 1fr; }
}


.footer-brand-logo { width: min(250px, 100%); height: auto; margin-bottom: 14px; }
.hero-card { border: 1px solid rgba(11,59,140,.08); }
.brand-grid a, .price-card, .benefit-card, .wa-banner, .filter-group, .product-card, .empty-state { border: 1px solid rgba(11,59,140,.06); }
.favorite-button.active svg { fill: var(--blue); stroke: var(--blue); }
.count-badge { background: var(--blue); }
@media (max-width: 760px) {
  .site-header { padding-inline: 10px; }
  .brand img { height: 34px; max-width: 150px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-badge { top: 10px; left: 10px; max-width: calc(100% - 56px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .favorite-button { top: 8px; right: 8px; width: 38px; height: 38px; }
  .product-info { padding: 12px 12px 16px; }
}

.price-categories { align-items:stretch; }
.catalog-tabs a:hover { border-color:var(--black); }
@media (max-width:640px){.price-card{min-height:0;padding:20px}.price-card small{margin-bottom:4px}.catalog-tabs a{min-height:40px;padding:8px 14px}.purchase-actions .button{min-height:48px;width:100%}.search-overlay{padding-top:calc(82px + env(safe-area-inset-top))}.mobile-drawer{padding-top:calc(18px + env(safe-area-inset-top));}.footer-bottom{padding-bottom:env(safe-area-inset-bottom)}}


/* Auditoría integral 2026-08-08 */
main, section, article, aside, nav, header, footer { min-width: 0; }
.site-header, .announcement { width: 100%; }
.announcement { padding-top: max(6px, env(safe-area-inset-top)); }
.catalog-top, .catalog-layout, .product-layout, .cart-layout { min-width: 0; }
.catalog-actions label { min-width: 0; }
.catalog-actions select { max-width: 100%; }
.filters-open, .pagination button, .filter-mobile-head button, .qty-control button { min-width: 44px; min-height: 44px; }
.filter-content[hidden], .accordion-panel[hidden], .faq-answer[hidden] { display: none !important; }
.mobile-drawer[inert], .search-overlay[inert] { pointer-events: none; }
.product-title-link { max-width: 100%; }
.product-card:focus-within { box-shadow: var(--shadow); }
.product-media img, .main-image img, .cart-row > img { color: transparent; }
.product-gallery, .checkout { scroll-margin-top: 120px; }
.spec-table td { overflow-wrap: anywhere; }
.catalog-tabs { overscroll-behavior-inline: contain; }
.category-shortcuts { overscroll-behavior-inline: contain; }

@media (max-width: 1120px) and (min-width: 1025px) {
  .catalog-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .filters.mobile-filter-panel:not(.open) { visibility: hidden; }
  .filters.mobile-filter-panel.open { visibility: visible; }
  .product-gallery { top: 106px; }
  .checkout { top: 106px; }
}

@media (max-width: 760px) {
  .catalog-top { gap: 12px; }
  .catalog-actions { gap: 8px; }
  .catalog-actions select { min-height: 44px; padding-left: 12px; }
  .page-hero { padding-top: 44px; }
  .product-page { padding-top: 18px; }
  .breadcrumb { margin-bottom: 16px; }
  .main-image { min-height: 360px; }
  .related { margin-top: 64px; }
  .detail-notes { gap: 8px; }
  .price-categories { gap: 12px; }
}

@media (max-width: 420px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .site-header { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .header-actions { gap: 0; }
  .header-action { width: 40px; height: 40px; }
  .brand img { height: 31px; max-width: 132px; }
  .product-info h3 { font-size: .96rem; }
  .product-memory { font-size: .72rem; }
  .product-price strong { font-size: 1.05rem; }
  .card-actions .button { font-size: .72rem; min-height: 40px; }
}

@media (max-width: 360px) { .products-grid, .simple-grid, .related-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Comparador de celulares — 2026-08-08
   ========================================================= */
:root {
  --z-compare-bar: 150;
  --z-compare-selector: 240;
  --compare-sticky-top: 100px;
}

.compare-card-button {
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 11px 0 9px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.compare-card-button svg,
.compare-product-button svg,
.compare-share-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compare-card-button:hover { background: var(--surface-2); color: var(--black); }
.compare-card-button.active { background: rgba(255,106,0,.10); color: #a94500; }
.compare-card-button:focus-visible { outline: 3px solid rgba(255,106,0,.28); outline-offset: 2px; }
.compare-product-button { width: 100%; margin-top: 10px; }

/* Barra flotante del comparador */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: var(--z-compare-bar);
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(11,59,140,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 55px rgba(10,37,84,.18);
  backdrop-filter: blur(18px);
}
.compare-bar[hidden] { display: none !important; }
.compare-bar-inner { padding: 12px 14px 14px; }
.compare-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 8px; }
.compare-bar-head > strong { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.compare-bar-clear { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-weight: 800; }
.compare-bar-clear:hover { background: var(--surface-2); color: var(--black); }
.compare-bar-content { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto; gap: 10px; align-items: center; }
.compare-bar-slot { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 48px minmax(0,1fr) 34px; align-items: center; gap: 9px; padding: 5px 7px; border-radius: 16px; background: var(--surface); }
.compare-bar-slot img { width: 48px; height: 48px; object-fit: contain; }
.compare-bar-slot > span { min-width: 0; display: grid; }
.compare-bar-slot small { color: var(--muted); font-size: .65rem; font-weight: 700; }
.compare-bar-slot strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.compare-bar-slot > button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.compare-bar-slot > button:hover { background: var(--white); color: var(--danger); }
.compare-bar-slot.empty { grid-template-columns: 32px minmax(0,1fr); color: var(--muted); font-size: .78rem; font-weight: 750; }
.compare-bar-plus { width: 32px; height: 32px; display: grid !important; place-items: center; border: 1px dashed var(--muted); border-radius: 50%; font-size: 1.1rem; }
.compare-bar-vs { color: var(--muted); font-size: .68rem; font-weight: 850; }
.compare-bar-action { white-space: nowrap; min-width: 158px; }
.compare-bar-action.disabled { pointer-events: none; opacity: .55; }
body.compare-bar-active { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
body.compare-bar-active .floating-wa { bottom: calc(112px + env(safe-area-inset-bottom)); }

/* Página de comparación */
.compare-page { padding: 28px 0 100px; }
.compare-page-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: clamp(30px,4vw,56px) 0 34px; }
.compare-page-head > div { max-width: 850px; }
.compare-page-head h1 { margin: 0; font-size: clamp(2.7rem,6vw,5.8rem); line-height: .94; letter-spacing: -.06em; }
.compare-page-head p:not(.eyebrow) { max-width: 660px; margin: 16px 0 8px; color: var(--muted); font-size: clamp(1rem,1.5vw,1.2rem); }
.compare-page-head #compareStateText { display: block; color: var(--black); font-size: .9rem; }
.compare-share-button { flex: 0 0 auto; }

.compare-products-wrap { position: relative; }
.compare-products { display: grid; grid-template-columns: minmax(0,1fr) 50px minmax(0,1fr); gap: 18px; align-items: stretch; }
.compare-vs-badge { align-self: center; justify-self: center; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--black); color: var(--white); font-size: .72rem; font-weight: 850; box-shadow: var(--shadow); }
.compare-product-card { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: clamp(20px,3vw,34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); text-align: center; }
.compare-product-card.empty { justify-content: center; min-height: 570px; border-style: dashed; background: var(--surface); }
.compare-product-tools { align-self: stretch; min-height: 34px; display: flex; justify-content: flex-end; gap: 6px; }
.compare-text-button { min-height: 34px; padding: 5px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 750; }
.compare-text-button:hover { background: var(--surface-2); color: var(--black); }
.compare-text-button.danger:hover { color: var(--danger); }
.compare-product-image { width: min(100%, 430px); height: clamp(240px,34vw,390px); display: grid; place-items: center; margin: 2px auto 16px; }
.compare-product-image img { width: 100%; height: 100%; object-fit: contain; }
.compare-product-brand { margin: 0 0 6px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.compare-product-card h2 { width: 100%; min-height: 2.45em; display: flex; align-items: start; justify-content: center; margin: 0; font-size: clamp(1.35rem,2.3vw,2.1rem); line-height: 1.12; letter-spacing: -.035em; }
.compare-product-capacity { min-height: 24px; margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.compare-product-price { margin: 12px 0 0; color: var(--black); font-size: clamp(1.55rem,2.8vw,2.45rem); font-weight: 800; letter-spacing: -.04em; }
.compare-warranty { margin: 4px 0 0; color: var(--green); font-size: .76rem; font-weight: 750; }
.compare-highlights { width: 100%; min-height: 74px; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 7px; margin: 18px 0; }
.compare-highlights span { min-height: 30px; display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 700; }
.compare-product-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: auto; }
.compare-product-actions .button { min-width: 0; padding-inline: 12px; font-size: .8rem; }
.compare-empty-select { width: min(100%, 360px); min-height: 300px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 28px; border: 0; border-radius: 24px; background: transparent; color: var(--text); text-align: center; }
.compare-empty-select > span { width: 58px; height: 58px; display: grid; place-items: center; border: 1px dashed var(--muted); border-radius: 50%; color: var(--blue); font-size: 2rem; font-weight: 400; }
.compare-empty-select strong { font-size: 1.05rem; }
.compare-empty-select small { color: var(--muted); }
.compare-empty-select:hover { background: rgba(255,255,255,.7); }

.compare-sticky { position: sticky; top: var(--compare-sticky-top); z-index: 70; margin: 16px 0 22px; border: 1px solid rgba(11,59,140,.12); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(10,37,84,.09); backdrop-filter: blur(16px); }
.compare-sticky[hidden] { display: none !important; }
.compare-sticky-inner { display: grid; grid-template-columns: minmax(0,1fr) 46px minmax(0,1fr); align-items: center; padding: 8px; }
.compare-sticky-product { min-width: 0; min-height: 52px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 8px; padding: 5px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: left; }
.compare-sticky-product:hover { background: var(--surface); }
.compare-sticky-product img { width: 40px; height: 40px; object-fit: contain; }
.compare-sticky-product span { min-width: 0; display: grid; }
.compare-sticky-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.compare-sticky-product small { color: var(--muted); font-size: .68rem; }
.compare-sticky-product.empty { grid-template-columns: 1fr; }
.compare-sticky-vs { text-align: center; color: var(--muted); font-size: .7rem; font-weight: 850; }

.comparison-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 18px; padding: 14px 18px; border-radius: 16px; background: var(--surface); }
.comparison-controls > p { margin: 0; color: var(--muted); font-size: .76rem; }
.difference-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.difference-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.difference-toggle > span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #c7d0de; transition: background .18s ease; }
.difference-toggle > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .18s ease; }
.difference-toggle input:checked + span { background: var(--black); }
.difference-toggle input:checked + span::after { transform: translateX(18px); }
.difference-toggle input:focus-visible + span { outline: 3px solid rgba(255,106,0,.28); outline-offset: 2px; }
.difference-toggle strong { font-size: .82rem; }

.comparison-sections { display: grid; gap: 18px; }
.comparison-section { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.comparison-section > h2 { margin: 0; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: clamp(1.15rem,2vw,1.45rem); letter-spacing: -.025em; }
.comparison-row { display: grid; grid-template-columns: minmax(170px,230px) minmax(0,1fr); align-items: stretch; border-bottom: 1px solid var(--line); }
.comparison-row:last-child { border-bottom: 0; }
.compare-field-label { display: flex; align-items: center; padding: 16px 20px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.compare-value-grid { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.compare-value-grid > div { min-width: 0; display: flex; align-items: center; padding: 16px 20px; border-left: 1px solid var(--line); overflow-wrap: anywhere; font-size: .86rem; }
.comparison-row.is-different .compare-value-grid > div { background: linear-gradient(90deg,rgba(255,106,0,.045),transparent 50%); }
.comparison-row.is-different .compare-value-grid > div:first-child { box-shadow: inset 2px 0 0 rgba(255,106,0,.28); }
.comparison-row.is-different .compare-value-grid > div:last-child { box-shadow: inset 2px 0 0 rgba(11,59,140,.16); }

.compare-final { margin-top: 56px; padding: clamp(24px,4vw,46px); border-radius: var(--radius-lg); background: var(--surface); }
.compare-final-head { max-width: 760px; }
.compare-final-head h2 { margin: 0; font-size: clamp(2rem,4vw,3.5rem); line-height: 1; letter-spacing: -.05em; }
.compare-final-head > p:last-child { color: var(--muted); }
.compare-final-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.compare-final-products article { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.compare-final-products article > strong { font-size: 1rem; }
.compare-final-products article > span { font-size: 1.35rem; font-weight: 800; }
.compare-final-products article > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }

/* Selector de productos */
.compare-selector { position: fixed; inset: 0; z-index: var(--z-compare-selector); display: grid; place-items: center; padding: 24px; background: rgba(6,20,45,.58); }
.compare-selector[hidden] { display: none !important; }
.compare-selector-panel { width: min(980px,100%); max-height: min(860px,calc(100dvh - 48px)); display: grid; grid-template-rows: auto auto auto minmax(0,1fr); overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: 0 28px 90px rgba(0,0,0,.25); }
.compare-selector-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 24px 26px 14px; }
.compare-selector-head h2 { margin: 0; font-size: clamp(1.5rem,3vw,2.3rem); letter-spacing: -.04em; }
.compare-selector-search { padding: 0 26px 14px; }
.compare-selector-search label { display: block; margin-bottom: 7px; font-size: .74rem; font-weight: 800; }
.compare-selector-search input { width: 100%; min-height: 50px; padding: 0 17px; border: 1px solid #bfc9d8; border-radius: 14px; background: var(--white); font-size: 16px; outline: 0; }
.compare-selector-search input:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(11,59,140,.10); }
.compare-selector-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 26px 18px; border-bottom: 1px solid var(--line); }
.compare-selector-filters label { min-width: 0; display: grid; gap: 5px; }
.compare-selector-filters span { color: var(--muted); font-size: .68rem; font-weight: 750; }
.compare-selector-filters select { width: 100%; min-width: 0; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: .78rem; }
.compare-selector-results { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 26px 28px; }
.selector-brand-group + .selector-brand-group { margin-top: 22px; }
.selector-brand-group h3 { margin: 0 0 8px; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.selector-brand-group > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.selector-product-item { min-width: 0; min-height: 92px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--text); text-align: left; transition: border-color .16s ease, background .16s ease; }
.selector-product-item:hover:not(:disabled) { border-color: var(--black); background: var(--surface); }
.selector-product-item:disabled { cursor: not-allowed; opacity: .5; }
.selector-product-item img { width: 72px; height: 72px; object-fit: contain; }
.selector-product-item > span { min-width: 0; display: grid; gap: 2px; }
.selector-product-item small { color: var(--muted); font-size: .65rem; font-weight: 750; }
.selector-product-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.selector-product-item em { color: var(--muted); font-size: .68rem; font-style: normal; }
.selector-product-item > b { color: var(--black); font-size: .78rem; white-space: nowrap; }
.selector-no-results { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); text-align: center; }
.selector-no-results strong { color: var(--text); }

@media (max-width: 900px) {
  .compare-page-head { align-items: start; flex-direction: column; }
  .compare-products { grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr); gap: 8px; }
  .compare-vs-badge { width: 36px; height: 36px; font-size: .62rem; }
  .compare-product-card { padding: 18px 14px; }
  .compare-product-image { height: clamp(210px,36vw,320px); }
  .compare-product-actions { grid-template-columns: 1fr; }
  .compare-bar-content { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .compare-bar-action { grid-column: 1 / -1; min-height: 42px; }
  body.compare-bar-active { padding-bottom: calc(154px + env(safe-area-inset-bottom)); }
  body.compare-bar-active .floating-wa { bottom: calc(162px + env(safe-area-inset-bottom)); }
  .selector-brand-group > div { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .compare-page { padding-top: 18px; }
  .compare-page-head { padding-top: 30px; }
  .compare-share-button { width: 100%; }
  .compare-products { grid-template-columns: minmax(0,1fr) 26px minmax(0,1fr); gap: 4px; }
  .compare-vs-badge { width: 26px; height: 26px; font-size: .52rem; }
  .compare-product-card { padding: 12px 8px 14px; border-radius: 18px; }
  .compare-product-tools { justify-content: center; gap: 0; }
  .compare-text-button { padding-inline: 6px; font-size: .64rem; }
  .compare-product-image { height: clamp(155px,43vw,215px); margin-bottom: 10px; }
  .compare-product-card h2 { min-height: 3.25em; font-size: clamp(.94rem,4vw,1.15rem); line-height: 1.08; }
  .compare-product-brand { font-size: .6rem; }
  .compare-product-capacity { min-height: 35px; margin-top: 7px; font-size: .68rem; }
  .compare-product-price { margin-top: 8px; font-size: clamp(1.1rem,5vw,1.45rem); }
  .compare-warranty { font-size: .62rem; }
  .compare-highlights { min-height: 64px; gap: 4px; margin: 12px 0; }
  .compare-highlights span { min-height: 25px; padding: 4px 7px; font-size: .58rem; }
  .compare-product-actions .button { min-height: 42px; padding: 8px 7px; font-size: .64rem; white-space: normal; line-height: 1.15; }
  .compare-product-card.empty { min-height: 430px; }
  .compare-empty-select { min-height: 250px; padding: 10px 5px; }
  .compare-empty-select > span { width: 48px; height: 48px; }
  .compare-empty-select strong { font-size: .82rem; }
  .compare-empty-select small { font-size: .65rem; }

  .compare-sticky { margin-inline: -2px; border-radius: 14px; }
  .compare-sticky-inner { grid-template-columns: minmax(0,1fr) 30px minmax(0,1fr); padding: 5px; }
  .compare-sticky-product { min-height: 46px; grid-template-columns: 34px minmax(0,1fr); padding: 4px; }
  .compare-sticky-product img { width: 32px; height: 32px; }
  .compare-sticky-product strong { font-size: .66rem; }
  .compare-sticky-product small { font-size: .58rem; }
  .compare-sticky-vs { font-size: .55rem; }

  .comparison-controls { align-items: flex-start; flex-direction: column; padding: 12px 14px; }
  .comparison-section > h2 { padding: 16px; }
  .comparison-row { display: block; }
  .compare-field-label { min-height: 0; padding: 12px 14px 7px; }
  .compare-value-grid > div { min-height: 54px; padding: 11px 12px; border-left: 0; border-top: 1px solid var(--line); font-size: .74rem; }
  .compare-value-grid > div + div { border-left: 1px solid var(--line); }
  .comparison-row.is-different .compare-value-grid > div:first-child,
  .comparison-row.is-different .compare-value-grid > div:last-child { box-shadow: inset 0 2px 0 rgba(255,106,0,.20); }

  .compare-final { margin-top: 38px; padding: 22px 14px; }
  .compare-final-products { gap: 8px; }
  .compare-final-products article { padding: 13px 10px; }
  .compare-final-products article > strong { font-size: .78rem; }
  .compare-final-products article > span { font-size: 1.05rem; }
  .compare-final-products article > div { display: grid; grid-template-columns: 1fr; }
  .compare-final-products .button { padding-inline: 8px; font-size: .66rem; white-space: normal; }

  .compare-selector { place-items: end center; padding: 0; }
  .compare-selector-panel { width: 100%; max-height: 94dvh; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .compare-selector-head { padding: 18px 16px 10px; }
  .compare-selector-search { padding: 0 16px 10px; }
  .compare-selector-filters { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 12px; }
  .compare-selector-filters label:last-child { grid-column: 1 / -1; }
  .compare-selector-results { padding: 14px 16px 24px; }
  .selector-product-item { grid-template-columns: 58px minmax(0,1fr) auto; min-height: 76px; padding: 7px 8px; }
  .selector-product-item img { width: 58px; height: 58px; }
  .selector-product-item > b { font-size: .68rem; }

  .compare-bar { width: 100%; bottom: 0; border-inline: 0; border-bottom: 0; border-radius: 20px 20px 0 0; }
  .compare-bar-inner { padding: 9px 10px calc(10px + env(safe-area-inset-bottom)); }
  .compare-bar-head { padding-bottom: 5px; }
  .compare-bar-content { gap: 5px; }
  .compare-bar-slot { min-height: 50px; grid-template-columns: 38px minmax(0,1fr) 28px; gap: 5px; padding: 4px; }
  .compare-bar-slot img { width: 38px; height: 38px; }
  .compare-bar-slot small { display: none; }
  .compare-bar-slot strong { font-size: .66rem; }
  .compare-bar-slot > button { width: 27px; height: 27px; font-size: .7rem; }
  .compare-bar-slot.empty { grid-template-columns: 26px minmax(0,1fr); font-size: .65rem; }
  .compare-bar-plus { width: 26px; height: 26px; }
  .compare-bar-vs { font-size: .55rem; }
  .compare-bar-action { min-height: 38px; font-size: .72rem; }
  body.compare-bar-active { padding-bottom: calc(142px + env(safe-area-inset-bottom)); }
  body.compare-bar-active .floating-wa { bottom: calc(148px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .compare-product-card { padding-inline: 6px; }
  .compare-product-image { height: 145px; }
  .compare-product-card h2 { font-size: .88rem; }
  .compare-highlights span { font-size: .54rem; }
  .compare-product-actions .button { font-size: .6rem; }
}


.compare-product-tools { align-items: center; justify-content: space-between; gap: 8px; }
.compare-product-selector-button { min-width: 0; flex: 1 1 auto; min-height: 50px; display: grid; grid-template-columns: minmax(0,1fr) 24px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--text); text-align: left; }
.compare-product-selector-button:hover { border-color: var(--black); background: var(--surface); }
.compare-product-selector-button > span { min-width: 0; display: grid; gap: 1px; }
.compare-product-selector-button small { color: var(--muted); font-size: .62rem; font-weight: 750; }
.compare-product-selector-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; }
.compare-product-selector-button > b { font-size: 1rem; text-align: center; }
.compare-remove-button { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-weight: 750; }
.compare-remove-button:hover { background: var(--surface-2); color: var(--danger); }
@media (max-width:640px) {
  .compare-product-tools { align-self: stretch; }
  .compare-product-selector-button { min-height: 44px; padding: 6px; border-radius: 11px; }
  .compare-product-selector-button small { font-size: .52rem; }
  .compare-product-selector-button strong { font-size: .6rem; }
  .compare-remove-button { width: 32px; height: 32px; font-size: .65rem; }
}


/* =========================================================
   SISTEMA DE MOVIMIENTO Y PULIDO VISUAL — BOGA 2026-08-08
   ========================================================= */

/* Focus/inputs: feedback immediate without moving layout. */
input, select, textarea {
  transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}
.filter-search:focus,
.price-inputs input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.compare-selector-search input:focus,
.compare-selector-filters select:focus,
.catalog-actions select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(11,59,140,.09);
  outline: 0;
}

/* Hover refinado solo en dispositivos que realmente tienen hover. */
@media (hover: hover) and (pointer: fine) {
  .favorite-button:hover { transform: translateY(-1px) scale(1.035); box-shadow: var(--shadow-2); }
  .gallery-thumb:hover { border-color: rgba(11,59,140,.38); transform: translateY(-1px); }
  .pagination button:not(:disabled):hover { transform: translateY(-1px); border-color: var(--black); box-shadow: var(--shadow-1); }
  .floating-wa:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(17,122,61,.22); filter: saturate(1.04); }
  .footer-col a:hover { transform: translateX(2px); }
  .compare-card-button:hover,
  .compare-text-button:hover,
  .compare-product-selector-button:hover,
  .compare-sticky-product:hover,
  .selector-product-item:hover:not(:disabled) { transform: translateY(-1px); }
}
.floating-wa:active { transform: scale(.94); }
.pagination button:active:not(:disabled) { transform: scale(.94); }
.favorite-button:active { transform: scale(.91); }

/* Tarjetas generadas o reemplazadas por filtros/paginación. */
.motion-card-enter {
  animation: boga-card-enter var(--motion-slow) var(--ease-out) both;
  animation-delay: var(--motion-delay, 0ms);
}
@keyframes boga-card-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal: solo se aplica a secciones secundarias, nunca al LCP principal. */
.motion-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out);
}
.motion-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Carga perceptual de imágenes sin cambiar dimensiones (evita CLS). */
.product-media,
.main-image,
.compare-product-image { position: relative; }
.image-loading { overflow: hidden; }
.image-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(219,228,241,.28) 20%, rgba(255,255,255,.72) 42%, rgba(219,228,241,.28) 64%);
  background-size: 220% 100%;
  animation: boga-skeleton 1.35s ease-in-out infinite;
  opacity: .72;
  transition: opacity var(--motion-normal) var(--ease-standard);
}
.image-loading > img { position: relative; z-index: 1; opacity: .38; }
.image-loading.is-loaded::after { opacity: 0; }
.image-loading.is-loaded > img { opacity: 1; }
@keyframes boga-skeleton { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Feedback de acciones. */
.motion-pop { animation: boga-pop 280ms var(--ease-out); }
@keyframes boga-pop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
.count-badge.motion-pop { transform-origin: center; }
.button.is-success { background: #157a3f; border-color: #157a3f; color: #fff; }
.button.is-success.motion-pop { animation: boga-button-success 340ms var(--ease-out); }
@keyframes boga-button-success { 0% { transform: scale(.98); } 55% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* Barra de comparación: entrada compacta desde abajo. */
.compare-bar.motion-bar-enter {
  animation: boga-compare-bar-in var(--motion-slow) var(--ease-out) both;
}
@keyframes boga-compare-bar-in {
  from { opacity: 0; transform: translate(-50%, 18px) scale(.99); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* Header premium: sin variar altura para no provocar CLS. */
#headerMount.is-scrolled .site-header { background: rgba(255,255,255,.91); border-bottom-color: rgba(11,59,140,.10); }

/* Ficha de producto: cambios de galería y precio. */
.main-image img { transition: opacity var(--motion-normal) var(--ease-standard), transform var(--motion-normal) var(--ease-standard); }
.main-image.is-switching img { opacity: .18; transform: scale(.988); }
.detail-price strong.motion-price-update { animation: boga-price-update 220ms var(--ease-out); }
@keyframes boga-price-update { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.accordion-panel,
.faq-answer { transform-origin: top; }

/* Comparador: cambios de producto y selector. */
.compare-products.motion-refresh,
.comparison-sections.motion-refresh,
.compare-final-products.motion-refresh {
  animation: boga-content-refresh var(--motion-normal) var(--ease-out) both;
}
@keyframes boga-content-refresh {
  from { opacity: .58; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.compare-selector {
  opacity: 0;
  transition: opacity var(--motion-normal) var(--ease-standard);
}
.compare-selector.open { opacity: 1; }
.compare-selector-panel {
  transform: translateY(10px) scale(.988);
  opacity: .86;
  transition: transform var(--motion-normal) var(--ease-out), opacity var(--motion-normal) var(--ease-standard);
}
.compare-selector.open .compare-selector-panel { transform: translateY(0) scale(1); opacity: 1; }
.compare-sticky { transition: box-shadow var(--motion-normal) var(--ease-standard), border-color var(--motion-normal) var(--ease-standard), background-color var(--motion-normal) var(--ease-standard); }
.compare-sticky.is-visible { animation: boga-sticky-in var(--motion-normal) var(--ease-out) both; }
@keyframes boga-sticky-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
.comparison-row { overflow: hidden; }

/* Selector: pequeño stagger solo para los primeros resultados visibles. */
.motion-list-enter { animation: boga-list-enter var(--motion-normal) var(--ease-out) both; animation-delay: var(--motion-delay, 0ms); }
@keyframes boga-list-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Estados activos más legibles. */
.variant-button,
.color-button,
.filter-chip,
.catalog-tabs a,
.compare-card-button,
.compare-product-selector-button,
.compare-remove-button,
.compare-sticky-product,
.selector-product-item {
  transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard);
}
.variant-button:active,
.color-button:active,
.filter-chip:active,
.catalog-tabs a:active,
.compare-card-button:active,
.compare-product-selector-button:active,
.selector-product-item:active:not(:disabled) { transform: scale(.98); }

/* Surface depth refinement. */
.product-card,
.price-card,
.benefit-card,
.compare-product-card,
.comparison-section,
.checkout,
.cart-row,
.empty-state { box-shadow: var(--shadow-1); }
.compare-product-card,
.comparison-section { transition: box-shadow var(--motion-normal) var(--ease-standard), border-color var(--motion-normal) var(--ease-standard); }

/* Responsive motion: shorter travel and softer shadows on touch devices. */
@media (max-width: 640px) {
  .motion-reveal { transform: translateY(8px); }
  .product-card { box-shadow: 0 2px 10px rgba(10,37,84,.045); }
  .compare-selector-panel { transform: translateY(16px); }
  .compare-selector.open .compare-selector-panel { transform: translateY(0); }
}

/* Reduced motion is a hard accessibility constraint. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .motion-reveal { opacity: 1 !important; transform: none !important; }
  .motion-card-enter, .motion-list-enter, .motion-pop, .motion-bar-enter, .motion-refresh { animation: none !important; }
  .image-loading::after { animation: none !important; opacity: .25; }
}

@media (prefers-reduced-motion: reduce) { .brand-card, .brand-logo { transition: none !important; } }

/* Brand selector polish */
.home-section.dark { padding-top: clamp(82px,8vw,118px); padding-bottom: clamp(82px,8vw,118px); }
@media (max-width: 1100px) { .brand-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) { .brand-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } .brand-card { border-radius: 17px; } }
@media (max-width: 340px) { .brand-grid { grid-template-columns: 1fr; } .brand-card, .brand-logo-wrapper { min-height: 96px; height: 96px; } }
@media (prefers-reduced-motion: reduce) { .brand-card, .brand-logo { transition: none !important; } }
