/*
AUDITORÍA UX/UI v7 — refinamiento sobre estructura existente, sin tocar lógica PHP/backend.
1) Full-bleed: .hero-section y .full-banner no deben usar 100vw + márgenes negativos; se mantienen fuera de .page-shell con inline-size:100% y max-inline-size:100% para evitar overflow horizontal sin parche global en html/body.
2) Producto: .product-card necesita altura predecible; se mantiene flex-column, título a 2 líneas, descripción a 1 línea y footer con precio/botón alineado.
3) Grids: se corrigen proporciones rígidas en productos/categorías/carrito mediante minmax(), aspect-ratio y breakpoints explícitos para 320, 375, 414, 768, 1024, 1280, 1440 y 1920.
4) Huérfanos: .product-grid usa flex-wrap + max-width por tarjeta + justify-content:center para que la última fila no quede perdida ni se estire de forma rara.
5) Chips: .chip-row conserva scroll horizontal intencional, pero lo contiene dentro de la fila con max-inline-size, min-inline-size y overscroll-behavior-inline.
6) Sticky: .filter-box y .cart-summary usan --sticky-top derivado de --header-height y se desactivan en tablet/mobile para no chocar con el header fijo.
*/

:root {
  --color-primary: #03467b;
  --color-primary-dark: #03467b;
  --color-surface: #ffffff;
  --color-page: #eef8fd;
  --color-text: #1e3a5f;
  --color-muted: #48a4c8;
  --color-line: rgba(3, 70, 123, 0.10);
  --color-accent: #2da8d8;
  --color-blue-mid: #03467b;
  --color-blue-light: #7bc9f0;
  --color-bg-mobile: #eef8fd;
  --color-gradient-start: #03467b;
  --color-gradient-mid: #03467b;
  --color-gradient-end: #03467b;
  --radius: 12px;
  --radius-lg: 18px;
  --spacing-unit: 8px;
  --shadow-soft: 0 4px 12px rgba(3, 70, 123, 0.06);
  --shadow-hover: 0 12px 28px rgba(3, 70, 123, 0.10);
  --container: 80vw;
  --container-wide: 80vw;
  --side-space: 10vw;
  --section-space: clamp(64px, 9vw, 112px);

  --header-height: 76px;
  --sticky-top: calc(var(--header-height) + var(--spacing-unit) * 3);
  --card-gap: calc(var(--spacing-unit) * 2.75);
  --focus-ring: 0 0 0 4px rgba(45, 168, 216, 0.15);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: #eef8fd;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #eef8fd;
  color: var(--color-text);
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1.75);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 220ms ease-out, box-shadow 220ms ease-out, background 220ms ease-out;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: rgba(45, 168, 216, 0.45); box-shadow: var(--focus-ring); }
label {
  display: block;
  margin: calc(var(--spacing-unit) * 2) 0 var(--spacing-unit);
  color: var(--color-primary-dark);
  font-size: .86rem;
  line-height: 1.2;
  font-weight: 700;
}
small { color: var(--color-muted); }

.page-shell,
.wide-shell {
  width: min(calc(100% - var(--side-space) * 2), var(--container));
  margin-inline: auto;
  min-width: 0;
}
.wide-shell { max-width: var(--container-wide); }
.inner-main { padding-top: calc(var(--header-height) + var(--spacing-unit) * 1.25); }
.section { padding: var(--section-space) 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  color: #fff;
  transition: background 240ms ease-out, color 240ms ease-out, box-shadow 240ms ease-out, border-color 240ms ease-out;
}
.site-header.is-solid,
.light-header .site-header,
.admin-body .site-header {
  color: var(--color-text);
  background: rgba(246, 249, 251, 0.94);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 6px 18px rgba(3, 70, 123, 0.05);
  backdrop-filter: blur(14px);
}
.nav-inner {
  width: min(calc(100% - var(--side-space) * 2), var(--container-wide));
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 2.5);
  min-width: 0;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: auto; height: 42px; }
.nav-links,
.nav-actions { display: flex; align-items: center; gap: calc(var(--spacing-unit) * 2.25); min-width: 0; }
.nav-links { flex: 1 1 auto; justify-content: center; }
.nav-actions { flex: 0 0 auto; }
.nav-links a,
.nav-link-soft {
  color: inherit;
  font-size: .92rem;
  font-weight: 700;
  opacity: .96;
  white-space: nowrap;
  transition: color 220ms ease-out, opacity 220ms ease-out;
}
.nav-links a:hover,
.nav-link-soft:hover { color: var(--color-primary); }
.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-text);
}
.menu-button span,
.menu-button span::before,
.menu-button span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}
.menu-button span::before { transform: translateY(-6px); }
.menu-button span::after { transform: translateY(4px); }
.menu-button[aria-expanded="true"] span { background: transparent; }
.menu-button[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.menu-button[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }
.toast {
  position: relative;
  z-index: 950;
  margin-top: calc(var(--header-height) + var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * -5.5);
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1.75);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}
.toast-success { background: #effaf4; }
.toast-error { background: #fff3f1; }
.toast-warning { background: #fff8ed; }
.store-home .toast {
  position: fixed;
  top: calc(var(--header-height) + var(--spacing-unit) * 1.5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  margin: 0;
  width: min(calc(100% - var(--side-space) * 2), var(--container));
}

.hero-section {
  position: relative;
  inline-size: 100%;
  min-block-size: min(860px, 90svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: calc(var(--header-height) + var(--spacing-unit) * 5.25) 0 calc(var(--spacing-unit) * 10.25);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, rgba(3, 70, 123, .86) 0%, rgba(3, 70, 123, .58) 46%, rgba(3, 70, 123, .26) 100%), var(--section-image);
  background-size: cover;
  background-position: center 48%;
}
.hero-content { max-width: 620px; }
.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--color-primary);
  font-size: .74rem;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.hero-section .eyebrow { color: var(--color-accent); }
.hero-content h1 {
  margin: calc(var(--spacing-unit) * 2) 0 0;
  max-width: 11ch;
  font-size: clamp(2.55rem, 5vw, 4.55rem);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 800;
}
.hero-description {
  max-width: 38rem;
  margin: calc(var(--spacing-unit) * 2.25) 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: calc(var(--spacing-unit) * 1.5); margin-top: calc(var(--spacing-unit) * 3.5); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-unit);
  min-height: 44px;
  padding: 0 calc(var(--spacing-unit) * 2.25);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .92rem;
  transition: transform 220ms ease-out, background 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out, box-shadow 220ms ease-out;
}
.button:hover { transform: translateY(-1px) scale(1.01); }
.button-primary { background: var(--color-primary); color: #fff; }
.button-primary:hover { background: #0f5f9f; box-shadow: 0 8px 18px rgba(3, 70, 123, .22); }
.button-secondary { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.button-secondary:hover { background: #fff; color: var(--color-primary-dark); }
.button-secondary.dark { color: var(--color-primary-dark); border-color: var(--color-line); background: var(--color-surface); }
.button-secondary.dark:hover { border-color: var(--color-primary); color: var(--color-primary); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 3.5);
}
.section-head.compact { margin-bottom: calc(var(--spacing-unit) * 2.5); }
.section-head-title {
  margin-bottom: calc(var(--spacing-unit) * 2);
  max-width: none;
}
.section-head h2,
.section-head-title,
.page-hero h1,
.detail-copy h1,
.auth-card h1 {
  margin: calc(var(--spacing-unit) * 1.25) 0 0;
  color: var(--color-text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 800;
}
.section-head p,
.page-hero p,
.detail-copy > p,
.product-info p,
.category-card p,
.panel-card p,
.contact-card p,
.stat-card p,
.editorial-copy p {
  color: var(--color-muted);
  line-height: 1.62;
}
.section-link,
.filter-clear {
  font-size: .92rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  transition: color 220ms ease-out;
}
.section-link:hover,
.filter-clear:hover { color: var(--color-primary); }

.category-chip-section { padding-bottom: calc(var(--section-space) * .45); }
.chip-row {
  display: flex;
  gap: calc(var(--spacing-unit) * 1.25);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.chip {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 calc(var(--spacing-unit) * 1.875);
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 220ms ease-out, border-color 220ms ease-out, color 220ms ease-out, transform 220ms ease-out;
}
.chip:hover { transform: translateY(-1px); border-color: rgba(45, 168, 216, .35); color: var(--color-primary); }
.chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--card-gap);
  min-width: 0;
}
.product-card {
  flex: 1 1 calc((100% - var(--card-gap) * 3) / 4);
  max-width: calc((100% - var(--card-gap) * 3) / 4);
  min-width: min(100%, 230px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 260ms ease-out, box-shadow 260ms ease-out, border-color 260ms ease-out;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(45, 168, 216, .22); }
.product-media,
.detail-media,
.cart-thumb {
  position: relative;
  overflow: hidden;
  background: #eef5f8;
}
.product-media {
  display: block;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}
.product-media::before,
.detail-media::before,
.cart-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--item-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: scale(.88);
  transition: transform 260ms ease-out;
}
.product-card:hover .product-media::before { transform: scale(.93); }
.product-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: calc(var(--spacing-unit) * 2.25);
}
.product-tag {
  display: block;
  margin-bottom: var(--spacing-unit);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-info h3 {
  margin: 0 0 var(--spacing-unit);
  min-height: calc(1.28em * 2);
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-info p {
  margin: 0;
  min-height: 1.45em;
  font-size: .92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 1.5);
  margin-top: auto;
  padding-top: calc(var(--spacing-unit) * 2);
}
.product-bottom strong {
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.product-bottom form { margin: 0; }
.product-bottom button,
.product-bottom a,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 calc(var(--spacing-unit) * 1.5);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(3, 70, 123, .08);
  color: var(--color-primary-dark);
  font-size: .88rem;
  font-weight: 800;
  transition: background 220ms ease-out, color 220ms ease-out, transform 220ms ease-out;
}
.product-bottom button:hover,
.product-bottom a:hover,
.mini-button:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }

.full-banner {
  position: relative;
  inline-size: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(3, 70, 123, .86), rgba(3, 70, 123, .34)), var(--section-image);
  background-size: cover;
  background-position: center 48%;
}
.full-banner-inner { position: relative; }
.full-banner h2 {
  max-width: 560px;
  margin: calc(var(--spacing-unit) * 1.25) 0 calc(var(--spacing-unit) * 3);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.full-banner .section-kicker { color: var(--color-accent); }

.page-hero { padding: calc(var(--spacing-unit) * 6.25) 0 calc(var(--spacing-unit) * 3.75); }
.page-hero p:last-child { max-width: 42rem; margin-top: calc(var(--spacing-unit) * 1.5); }

.shop-layout {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: calc(var(--spacing-unit) * 4.5);
  align-items: start;
  padding-bottom: var(--section-space);
  min-width: 0;
}
.shop-sidebar,
.shop-content { min-width: 0; }
.filter-box {
  position: sticky;
  top: var(--sticky-top);
  padding: calc(var(--spacing-unit) * 2.25);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}
.filter-box .button { width: 100%; margin-top: calc(var(--spacing-unit) * 2.25); }
.filter-clear { display: inline-block; margin-top: calc(var(--spacing-unit) * 1.75); }
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: calc(var(--spacing-unit) * 2.5);
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.catalog-toolbar h2 { margin: var(--spacing-unit) 0 0; font-size: clamp(1.65rem, 2.25vw, 2.35rem); line-height: 1.08; }
.catalog-chips { margin-bottom: calc(var(--spacing-unit) * 2.75); }
.stock-line { margin-top: calc(var(--spacing-unit) * 1.25); color: var(--color-muted); font-size: .88rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--card-gap);
  align-items: stretch;
}
.category-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 260ms ease-out, box-shadow 260ms ease-out, border-color 260ms ease-out;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(45, 168, 216, .22); }
.category-image {
  display: block;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  transition: transform 300ms ease-out;
}
.category-card:hover .category-image { transform: scale(1.04); }
.category-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: calc(var(--spacing-unit) * 2.5);
}
.category-content small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 38px;
  height: 32px;
  margin-bottom: calc(var(--spacing-unit) * 1.75);
  padding: 0 calc(var(--spacing-unit) * 1.25);
  border-radius: 999px;
  background: rgba(45, 168, 216, .08);
  color: var(--color-primary);
  font-weight: 800;
}
.category-content strong {
  display: -webkit-box;
  margin-bottom: var(--spacing-unit);
  min-height: calc(1.22em * 2);
  font-size: 1.15rem;
  line-height: 1.22;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-content p {
  margin: 0;
  display: -webkit-box;
  min-height: 1.5em;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contact-section {
  display: flex;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 2.25) 0 var(--section-space);
}
.contact-form { width: min(100%, 560px); }
.legal-banner {
  margin: 0 auto;
  padding: calc(var(--header-height) + 48px) 0 clamp(48px, 6vw, 72px);
  background: #03467b;
  color: #fff;
}
.legal-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-align: center;
  color: #fff;
}
.legal-banner h1 {
  margin: calc(var(--spacing-unit) * 1.25) 0 calc(var(--spacing-unit) * 1.5);
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.legal-points {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: calc(var(--spacing-unit) * 2.25) 0 0;
  padding: 0;
  list-style: none;
}
.legal-points li {
  display: flex;
  align-items: start;
  gap: 10px;
  color: rgba(255,255,255,.94);
  font-weight: 700;
}
.legal-points li::before {
  content: "•";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-accent);
}
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}
.legal-content h2:not(:first-child) {
  margin-top: calc(var(--spacing-unit) * 3);
}
.legal-content h2 {
  margin: 0 0 calc(var(--spacing-unit) * 1.5);
  color: var(--color-primary-dark);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}
.legal-content p {
  margin: 0 0 calc(var(--spacing-unit) * 1.5);
  color: var(--color-muted);
  line-height: 1.7;
}
.legal-content p strong {
  color: var(--color-primary-dark);
}
.legal-content a {
  color: var(--color-primary);
  font-weight: 600;
}
.legal-list {
  margin: 0 0 calc(var(--spacing-unit) * 1.5);
  padding-left: 1.4em;
  color: var(--color-muted);
  line-height: 1.7;
}
.legal-list li {
  margin-bottom: 8px;
}
.legal-card {
  max-width: 860px;
  margin: 24px auto 0;
  padding: clamp(24px, 4vw, 40px);
}
.panel-card,
.auth-card,
.contact-card,
.cart-table,
.cart-summary,
.table-card,
.stat-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}
.panel-card,
.auth-card,
.contact-card,
.cart-summary,
.stat-card { padding: calc(var(--spacing-unit) * 3); }
.form-card .button { margin-top: calc(var(--spacing-unit) * 2.25); }
.form-note { margin-top: calc(var(--spacing-unit) * 1.5); color: var(--color-muted); font-size: .92rem; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: calc(var(--spacing-unit) * 5.25);
  align-items: center;
  padding: calc(var(--spacing-unit) * 3.75) 0 var(--section-space);
  min-width: 0;
}
.detail-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.detail-copy { min-width: 0; }
.detail-copy h1 { margin-bottom: calc(var(--spacing-unit) * 1.5); }
.detail-price {
  margin: calc(var(--spacing-unit) * 2.75) 0 calc(var(--spacing-unit) * 1.75);
  color: var(--color-primary-dark);
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 800;
}
.stock-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 calc(var(--spacing-unit) * 1.5);
  border-radius: 999px;
  background: rgba(45, 168, 216, .08);
  color: var(--color-primary);
  font-size: .84rem;
  font-weight: 800;
}
.buy-box {
  display: grid;
  grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
  gap: calc(var(--spacing-unit) * 1.5);
  align-items: end;
  margin-top: calc(var(--spacing-unit) * 2.75);
}
.buy-box label { grid-column: 1 / -1; margin-top: 0; }

.auth-wrap,
.checkout-grid,
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: calc(var(--spacing-unit) * 3.5);
  align-items: start;
  padding: calc(var(--spacing-unit) * 2.5) 0 var(--section-space);
  min-width: 0;
}
.auth-card { max-width: 520px; }
.auth-side,
.contact-card { min-height: 220px; }
.contact-card h2 { margin: calc(var(--spacing-unit) * 1.25) 0 calc(var(--spacing-unit) * 1.5); font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1.1; }

.cart-table { padding: var(--spacing-unit) calc(var(--spacing-unit) * 2.75); }
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(76px, .34fr) minmax(96px, .42fr) auto;
  gap: calc(var(--spacing-unit) * 2);
  align-items: center;
  padding: calc(var(--spacing-unit) * 2.25) 0;
  border-bottom: 1px solid var(--color-line);
  min-width: 0;
}
.cart-row:last-of-type { border-bottom: 0; }
.cart-product { display: flex; align-items: center; gap: calc(var(--spacing-unit) * 1.75); min-width: 0; }
.cart-thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: var(--radius);
}
.cart-product h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.25; }
.cart-product p { margin: 0; color: var(--color-muted); }
.cart-actions { padding: calc(var(--spacing-unit) * 2) 0; }
.cart-summary { position: sticky; top: var(--sticky-top); }
.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 1.5) 0;
  border-bottom: 1px solid var(--color-line);
}
.summary-total { border-bottom: 0; font-size: 1.08rem; font-weight: 800; }
.check-line { display: inline-flex; align-items: center; gap: calc(var(--spacing-unit) * 1.25); }
.link-danger { background: transparent; padding: 0; color: #b94d4d; font-weight: 800; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: calc(var(--spacing-unit) * 2.25);
  padding: calc(var(--spacing-unit) * 2.5) 0 calc(var(--spacing-unit) * 3.5);
}
.stat-card span {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 1.25);
  color: var(--color-primary-dark);
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}
.stat-card strong { display: block; font-size: .95rem; }
.stat-card p { margin: 6px 0 0; font-size: .9rem; }
.admin-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.75) calc(var(--spacing-unit) * 2.75);
  margin-bottom: calc(var(--spacing-unit) * 3);
}
.admin-help p { width: 100%; margin-bottom: 0; }
.admin-help a { font-weight: 800; }
.admin-split {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: calc(var(--spacing-unit) * 3.5);
  align-items: start;
  padding-bottom: var(--section-space);
  min-width: 0;
}
.table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--color-surface);
}
.data-table th,
.data-table td {
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.25);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  color: var(--color-muted);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
.data-table tbody tr:hover { background: rgba(45, 168, 216, .035); }
.actions-cell,
.status-form { display: flex; flex-wrap: wrap; gap: calc(var(--spacing-unit) * 1.25); align-items: center; }
.mini-button.danger { background: rgba(185, 77, 77, .08); color: #a64242; }
.form-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--spacing-unit) * 1.75); }

.empty-state {
  flex: 1 1 100%;
  width: 100%;
  padding: calc(var(--spacing-unit) * 3.5);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: center;
}
.empty-state h3 { margin: 0 0 calc(var(--spacing-unit) * 1.25); }
.empty-state p { margin: 0 0 calc(var(--spacing-unit) * 2); color: var(--color-muted); }

.site-footer {
  margin-top: var(--section-space);
  padding: calc(var(--spacing-unit) * 5.5) 0 calc(var(--spacing-unit) * 7.5);
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr .75fr .75fr;
  gap: calc(var(--spacing-unit) * 3.25);
}
.footer-logo { height: 42px; width: auto; margin-bottom: calc(var(--spacing-unit) * 1.5); }
.site-footer .footer-description { margin: 0 0 calc(var(--spacing-unit) * 1.25); max-width: 320px; color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.6; }
.site-footer h3 { margin: 0 0 calc(var(--spacing-unit) * 1.5); font-size: .96rem; }
.site-footer p { margin: 0; max-width: 320px; color: var(--color-muted); line-height: 1.6; }
.site-footer a { display: block; margin-top: calc(var(--spacing-unit) * 1.125); color: #e1a140; font-weight: 600; }
.site-footer a:hover { color: var(--color-primary); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease-out, transform 560ms ease-out;
}
.reveal.is-visible,
.reveal-fallback .reveal { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .product-card {
    flex-basis: calc((100% - var(--card-gap) * 2) / 3);
    max-width: calc((100% - var(--card-gap) * 2) / 3);
  }
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-actions .nav-link-soft { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .shop-layout,
  .product-detail,
  .auth-wrap,
  .checkout-grid,
  .cart-layout,
  .admin-split { grid-template-columns: 1fr; }
  .filter-box,
  .cart-summary { position: static; }
  .product-card {
    flex-basis: calc((100% - var(--card-gap)) / 2);
    max-width: calc((100% - var(--card-gap)) / 2);
  }
  .hero-section { min-block-size: min(780px, 78svh); }
}

@media (max-width: 768px) {
  :root { --side-space: 10vw; --section-space: 54px; --header-height: 66px; --sticky-top: calc(var(--header-height) + var(--spacing-unit) * 2); }
  .brand-logo { height: 36px; }
  .inner-main { padding-top: calc(var(--header-height) + var(--spacing-unit)); }
  .hero-section {
    min-block-size: 72svh;
    padding: calc(var(--header-height) + var(--spacing-unit) * 3.75) 0 calc(var(--spacing-unit) * 7.25);
  }
  .hero-content h1 { font-size: clamp(2.2rem, 9.6vw, 3.05rem); }
  .hero-description { font-size: 1rem; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: calc(var(--spacing-unit) * 2.5); }
  .category-content strong { min-height: auto; }
  .cart-row { grid-template-columns: 1fr; justify-items: start; }
  .buy-box { grid-template-columns: 1fr; }
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td { display: block; width: 100%; min-width: 0; }
  .data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table tr { padding: calc(var(--spacing-unit) * 1.75) calc(var(--spacing-unit) * 2.25); border-bottom: 1px solid var(--color-line); }
  .data-table td { padding: 7px 0; border-bottom: 0; }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
  }
}

@media (max-width: 520px) {
  .product-card { flex-basis: 100%; max-width: 100%; min-width: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .product-bottom { align-items: stretch; flex-direction: column; }
  .product-bottom button,
  .product-bottom a { width: 100%; }
  .footer-grid,
  .dashboard-grid { grid-template-columns: 1fr; }
  .full-banner { min-height: 360px; }
  .full-banner h2 { font-size: 1.6rem; }
  .form-two { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  :root { --side-space: 10vw; }
  .nav-inner { gap: calc(var(--spacing-unit) * 1.25); }
  .hero-content h1 { font-size: 2.08rem; }
  .panel-card,
  .auth-card,
  .contact-card,
  .cart-summary,
  .stat-card { padding: calc(var(--spacing-unit) * 2.25); }
}


/* ===== v7 defensive refinements: stability across 320px–1920px ===== */
.hero-section,
.full-banner {
  inline-size: 100%;
  max-inline-size: 100%;
  margin-inline: 0;
  overflow: clip;
}
.full-banner {
  background-image: linear-gradient(90deg, rgba(3, 70, 123, .86), rgba(3, 70, 123, .34)), var(--section-image, url("../img/banners/equipamiento-premium.jpg"));
}
.page-shell,
.wide-shell,
.nav-inner,
.shop-layout,
.shop-content,
.shop-sidebar,
.product-grid,
.category-grid,
.cart-layout,
.checkout-grid,
.auth-wrap,
.admin-split,
.footer-grid {
  max-inline-size: 100%;
}
.product-grid {
  justify-content: center;
}
.product-card {
  flex-grow: 0;
  inline-size: 100%;
}
.product-info h3,
.product-info h3 a,
.product-info p,
.product-tag,
.product-bottom strong,
.category-content strong,
.category-content p,
.cart-product,
.summary-line span,
.summary-total span,
.data-table td,
.data-table th {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.product-bottom strong {
  flex: 1 1 auto;
}
.product-bottom button,
.product-bottom a,
.product-bottom form {
  flex: 0 0 auto;
}
.chip-row {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  contain: inline-size;
}
.chip {
  max-inline-size: min(82vw, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-box,
.cart-summary {
  align-self: start;
  max-block-size: calc(100svh - var(--sticky-top) - var(--spacing-unit) * 2);
  overflow: auto;
}
.cart-summary .button,
.cart-summary form .button {
  width: 100%;
}
.cart-summary .button + form,
.cart-summary form + .button,
.cart-summary .summary-total + .button {
  margin-top: calc(var(--spacing-unit) * 2);
}
.cart-summary form {
  margin: calc(var(--spacing-unit) * 1.25) 0 0;
}
.cart-row > input[type="number"] {
  max-inline-size: 100%;
}
.category-content {
  min-block-size: 176px;
}
.data-table {
  table-layout: auto;
}
.status-form select {
  min-inline-size: 150px;
}

@media (min-width: 901px) and (max-width: 1024px) {
  .product-card {
    flex-basis: calc((100% - var(--card-gap) * 2) / 3);
    max-width: calc((100% - var(--card-gap) * 2) / 3);
  }
}

@media (max-width: 900px) {
  .product-card {
    flex-basis: calc((100% - var(--card-gap)) / 2);
    max-width: calc((100% - var(--card-gap)) / 2);
  }
}

@media (max-width: 768px) {
  .filter-box,
  .cart-summary {
    max-block-size: none;
    overflow: visible;
  }
  .catalog-filter-box .filter-category-panel {
    display: none;
  }
  .category-content {
    min-block-size: auto;
  }
  .cart-row > strong,
  .cart-row > .link-danger,
  .cart-row > input[type="number"] {
    inline-size: 100%;
  }
}

@media (max-width: 520px) {
  .product-card {
    flex-basis: 100%;
    max-width: 100%;
  }
  .chip-row {
    margin-inline: calc(var(--side-space) * -1);
    padding-inline: var(--side-space);
  }
  .product-media {
    aspect-ratio: 4 / 3;
  }
}

@supports not (overflow: clip) {
  .hero-section,
  .full-banner { overflow: hidden; }
}

/* ===== UX refine v8 — grocery/ecommerce premium treatment ===== */
.site-header {
  background: rgba(3, 70, 123, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header.is-solid,
.light-header .site-header,
.admin-body .site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand-logo { height: 50px; }
.nav-links { gap: clamp(20px, 2.35vw, 36px); }
.nav-actions { gap: calc(var(--spacing-unit) * 1.25); }
.nav-links a { position: relative; padding: 10px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease-out;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-pill-link,
.nav-login-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--spacing-unit) * 1.75);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
}
.site-header.is-solid .nav-pill-link,
.site-header.is-solid .nav-login-pill,
.light-header .nav-pill-link,
.light-header .nav-login-pill,
.admin-body .nav-pill-link,
.admin-body .nav-login-pill { border-color: var(--color-line); background: rgba(255, 255, 255, .68); }
.nav-login-pill:hover,
.nav-pill-link:hover { border-color: rgba(45, 168, 216, .42); background: rgba(45, 168, 216, .08); }
.nav-cart-icon {
  position: relative;
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}
.nav-cart-icon span[data-cart-count] {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: .65rem;
  line-height: 14px;
  text-align: center;
}
.site-header.is-solid .nav-cart-icon span[data-cart-count],
.light-header .nav-cart-icon span[data-cart-count] {
  background: var(--color-primary-dark);
  color: #fff;
}
.mobile-menu {
  width: min(calc(100% - var(--side-space) * 2), 410px);
  padding: calc(var(--spacing-unit) * 1.25);
}

.hero-section { min-block-size: 100svh; }
.hero-section::before {
  background-image: linear-gradient(90deg, rgba(7, 24, 34, .88) 0%, rgba(3, 70, 123, .66) 44%, rgba(3, 70, 123, .20) 100%), var(--section-image);
  background-size: cover;
  background-position: center 48%;
}
.hero-content { max-width: 760px; }
.hero-section .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 calc(var(--spacing-unit) * 1.5);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  backdrop-filter: blur(12px);
}
.hero-content h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 7.4vw, 5.7rem);
  letter-spacing: -.065em;
}
.hero-description { max-width: 48rem; font-size: clamp(1.05rem, 1.4vw, 1.26rem); }
.hero-actions .button { min-height: 52px; padding-inline: calc(var(--spacing-unit) * 2.8); border-radius: 999px; }
.button-primary,
.product-bottom button,
.form-card .button-primary,
.cart-summary .button-primary { background: var(--color-primary); color: #fff; }

.category-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}
.category-mini-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: calc(var(--spacing-unit) * 1.75);
  align-items: center;
  min-height: 132px;
  padding: calc(var(--spacing-unit) * 2.25);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms ease-out, box-shadow 240ms ease-out, border-color 240ms ease-out;
}
.category-mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(45,168,216,.24); }
.category-mini-card strong {
  display: -webkit-box;
  color: var(--color-primary-dark);
  font-size: 1.04rem;
  line-height: 1.15;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-mini-card small {
  display: -webkit-box;
  margin-top: 7px;
  color: var(--color-muted);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(45,168,216,.09);
  color: var(--color-primary);
}
.category-icon::before {
  content: "";
  width: 29px;
  height: 29px;
  background: currentColor;
  -webkit-mask: var(--icon-mask, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 14c2 0 2-1 4-1s2 1 4 1 2-1 4-1 2 1 4 1v4H4v-4Zm2-8h12v5c-1.2-.2-2 .8-4 .8-2.1 0-2.6-1-4-1s-1.9 1-4 1V6Z'/%3E%3C/svg%3E")) center / contain no-repeat;
          mask: var(--icon-mask, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 14c2 0 2-1 4-1s2 1 4 1 2-1 4-1 2 1 4 1v4H4v-4Zm2-8h12v5c-1.2-.2-2 .8-4 .8-2.1 0-2.6-1-4-1s-1.9 1-4 1V6Z'/%3E%3C/svg%3E")) center / contain no-repeat;
}
.category-mini-card[href*="bomba"] .category-icon { --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7h7a5 5 0 1 1 0 10H8V7Zm7 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3 9h5v6H3V9Z'/%3E%3C/svg%3E"); }
.category-mini-card[href*="filtro"] .category-icon { --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14l-5.2 7.2V20h-3.6v-8.8L5 4Z'/%3E%3C/svg%3E"); }
.category-mini-card[href*="luz"] .category-icon,
.category-mini-card[href*="luces"] .category-icon { --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 9 10h6l-3 11 9-13h-6l3-5h-6Z'/%3E%3C/svg%3E"); }
.category-mini-card[href*="limpieza"] .category-icon { --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v3H7V3Zm1 5h8l3 12H5L8 8Zm2.5 3-.9 6h4.8l-.9-6h-3Z'/%3E%3C/svg%3E"); }
.category-mini-card[href*="calentador"] .category-icon { --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2s5 4 5 9a5 5 0 0 1-10 0c0-2 1-3.3 2.1-4.5.2 2.6 1.7 4.1 3.4 4.6C11.8 8.3 12 2 12 2Z'/%3E%3C/svg%3E"); }
.category-mini-card[href*="escalera"] .category-icon { --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h3v4h4V3h3v18h-3v-5h-4v5H7V3Zm3 7v3h4v-3h-4Z'/%3E%3C/svg%3E"); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.product-card {
  max-width: none;
  min-width: 0;
  border-radius: 22px;
}
.product-media { aspect-ratio: 3 / 2; background: linear-gradient(180deg, #fff, #eef7fa); }
.product-media::before { transform: scale(.82); }
.product-card:hover .product-media::before { transform: scale(.88); }
.product-tag {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e1a140;
  color: var(--color-primary-dark);
}
.product-bottom strong { font-size: clamp(1.22rem, 1.3vw, 1.42rem); color: var(--color-primary-dark); }
.product-bottom button,
.product-bottom a {
  min-height: 40px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
}

.why-section { padding-top: calc(var(--section-space) * .6); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--card-gap); }
.why-card {
  padding: calc(var(--spacing-unit) * 3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  border-radius: 999px;
  background: rgba(45,168,216,.10);
  color: var(--color-primary);
  font-weight: 800;
}
.why-card h3 { margin: 0 0 var(--spacing-unit); color: var(--color-primary-dark); font-size: 1.14rem; }
.why-card p { margin: 0; color: var(--color-muted); line-height: 1.6; }
.full-banner { min-height: 520px; background-image: linear-gradient(90deg, rgba(5,20,30,.90), rgba(15,52,70,.55), rgba(15,52,70,.18)), var(--section-image, url("../img/banners/equipamiento-premium.jpg")); }
.full-banner h2 { max-width: 700px; font-size: clamp(2rem, 4vw, 3.2rem); }
.full-banner p:not(.section-kicker) { max-width: 520px; margin: calc(var(--spacing-unit) * -1.25) 0 calc(var(--spacing-unit) * 3); color: rgba(255,255,255,.82); line-height: 1.65; }

.compact-hero,
.category-hero {
  margin-top: calc(var(--spacing-unit) * 2.5);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(45,168,216,.10), rgba(255,255,255,.96) 50%, rgba(255,155,84,.10));
  box-shadow: var(--shadow-soft);
}
.category-hero { background: radial-gradient(circle at 85% 12%, rgba(45,168,216,.18), transparent 35%), linear-gradient(135deg, rgba(45,168,216,.12), rgba(255,255,255,.96)); }
.shop-layout { grid-template-columns: minmax(240px, 282px) minmax(0, 1fr); }
.filter-box { padding: calc(var(--spacing-unit) * 3); border-radius: 24px; }
.filter-box h3,
.form-card-head h2 { margin: 0; color: var(--color-primary-dark); font-size: 1.35rem; line-height: 1.15; }
.filter-separator { height: 1px; margin: calc(var(--spacing-unit) * 2.25) 0 calc(var(--spacing-unit) * .5); background: var(--color-line); }
.catalog-chips .chip { border-color: rgba(45,168,216,.20); background: rgba(255,255,255,.72); }
.catalog-chips .chip.is-active { background: rgba(45,168,216,.12); color: var(--color-primary-dark); border-color: rgba(45,168,216,.42); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: calc(var(--spacing-unit) * 2.5) 0 0;
  color: var(--color-muted);
  font-size: .92rem;
  font-weight: 700;
}
.breadcrumb a { color: var(--color-primary-dark); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb strong { color: var(--color-muted); font-weight: 700; }
.product-detail { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); padding-top: calc(var(--spacing-unit) * 3); }
.detail-media {
  border: 1px solid var(--color-line);
  background: linear-gradient(180deg, #fff, #edf8fb);
  box-shadow: 0 24px 50px rgba(3, 70, 123, .10);
}
.detail-media::before { transform: scale(.78); }
.detail-copy { padding: calc(var(--spacing-unit) * 2); }
.detail-copy h1 { font-size: clamp(2.05rem, 3.6vw, 4rem); }
.detail-price { font-size: clamp(2.15rem, 4vw, 3.35rem); letter-spacing: -.04em; }
.stock-pill { min-height: 40px; padding-inline: calc(var(--spacing-unit) * 2); background: rgba(45,168,216,.11); }
.stock-pill.in-stock { background: rgba(46,164,60,.13); color: #2c7a26; font-weight: 600; }
.stock-pill.out-of-stock { background: rgba(196,90,74,.10); color: #9c5148; }
.buy-box {
  grid-template-columns: 1fr;
  padding: calc(var(--spacing-unit) * 2.25);
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.buy-box .button { width: 100%; min-height: 52px; border-radius: 999px; }
.qty-control { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; overflow: hidden; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-page); }
.qty-control input { min-height: 48px; border: 0; border-radius: 0; background: transparent; text-align: center; box-shadow: none; font-weight: 800; }
.qty-btn { height: 44px; margin: 3px; border-radius: 999px; background: #fff; color: var(--color-primary-dark); font-weight: 800; box-shadow: 0 3px 8px rgba(3,70,123,.06); }

.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 0;
  color: #fff;
  isolation: isolate;
}
.category-image { position: absolute; inset: 0; aspect-ratio: auto; z-index: -2; }
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15,52,70,.20), rgba(15,52,70,.82));
  transition: background 260ms ease-out;
}
.category-card:hover::before { background: rgba(45,168,216,.75); }
.category-content { justify-content: flex-end; min-height: 100%; color: #fff; }
.category-content small { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); }
.category-content strong { color: #fff; min-height: auto; font-size: clamp(1.35rem, 2vw, 1.9rem); }
.category-content p { color: rgba(255,255,255,.84); -webkit-line-clamp: 2; min-height: auto; }

.cart-table,
.cart-summary,
.delivery-card,
.order-summary,
.auth-card,
.contact-form,
.contact-info-card { border-radius: 26px; box-shadow: 0 18px 42px rgba(3,70,123,.08); }
.cart-thumb { width: 88px; height: 88px; flex-basis: 88px; border-radius: 18px; border: 1px solid var(--color-line); background: #fff; }
.cart-row > input[type="number"] { text-align: center; font-weight: 800; max-width: 96px; }
.cart-row > strong { color: var(--color-primary-dark); font-size: 1.1rem; }
.cart-summary .summary-total { align-items: center; padding-top: calc(var(--spacing-unit) * 2.25); font-size: 1.2rem; }
.cart-summary .summary-total strong { font-size: 1.65rem; color: var(--color-primary-dark); }
.empty-cart-state { max-width: 660px; margin-inline: auto; }
.empty-cart-icon { display: inline-grid; place-items: center; width: 82px; height: 82px; margin-bottom: calc(var(--spacing-unit) * 2); border-radius: 999px; background: rgba(45,168,216,.10); color: var(--color-primary); }
.empty-cart-icon svg { width: 46px; height: 46px; }

.checkout-grid { grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); }
.form-card-head { margin-bottom: calc(var(--spacing-unit) * 2.5); }
.form-card-head .section-kicker { margin-bottom: var(--spacing-unit); }
.delivery-card .button,
.contact-form .button,
.auth-card .button { width: 100%; min-height: 52px; border-radius: 999px; }
.order-summary .summary-line span { max-width: 210px; }

.auth-wrap { grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr); align-items: stretch; }
.auth-card { max-width: none; }
.auth-logo { height: 48px; width: auto; margin-bottom: calc(var(--spacing-unit) * 3); }
.dark-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 0;
  background: radial-gradient(circle at 85% 18%, rgba(45,168,216,.42), transparent 30%), linear-gradient(135deg, #03467b, #03467b);
  color: #fff;
}
.dark-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -96px; bottom: -116px; border-radius: 999px; border: 42px solid rgba(255,255,255,.06); }
.dark-panel .section-kicker { color: var(--color-accent); }
.dark-panel h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3.3rem); }
.dark-panel p { color: rgba(255,255,255,.76); }
.benefit-list { position: relative; z-index: 1; display: grid; gap: calc(var(--spacing-unit) * 1.25); margin: calc(var(--spacing-unit) * 2.5) 0 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.benefit-list li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--color-accent); }

.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); gap: var(--card-gap); align-items: stretch; }
.contact-form { width: 100%; }
.contact-info-card { border: 0; background: linear-gradient(135deg, #03467b, #03467b); color: #fff; }
.contact-info-card .section-kicker { color: var(--color-accent); }
.contact-info-card h2 { color: #fff; }
.contact-list { display: grid; gap: calc(var(--spacing-unit) * 1.4); margin-top: calc(var(--spacing-unit) * 2.25); }
.contact-list a,
.contact-list p { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; align-items: start; margin: 0; color: rgba(255,255,255,.86); font-weight: 700; }
.contact-list svg { width: 34px; height: 34px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.10); fill: var(--color-accent); }
.discount-note { margin-top: calc(var(--spacing-unit) * 3); padding: calc(var(--spacing-unit) * 2); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.08); }
.discount-note strong,
.discount-note span { display: block; }
.discount-note span { margin-top: 6px; color: rgba(255,255,255,.78); line-height: 1.45; }

.site-footer {
  margin-top: 0;
  padding: calc(var(--spacing-unit) * 7) 0 0;
  border-top: 0;
  background: var(--color-primary-dark);
  color: #fff;
}
.footer-logo { height: 48px; width: auto; }
.site-footer h3 { color: #fff; }
.site-footer p,
.site-footer a { color: rgba(255,255,255,.70); }
.site-footer a:hover { color: var(--color-accent); }
.footer-contact p { margin-top: calc(var(--spacing-unit) * 1.125); }
.footer-bottom { margin-top: calc(var(--spacing-unit) * 5); padding: calc(var(--spacing-unit) * 2.25) 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; gap: calc(var(--spacing-unit) * 2); flex-wrap: wrap; }
.footer-bottom p { max-width: none; font-size: .92rem; color: #fff; }
.footer-bottom a { display: inline; margin: 0; padding-left: calc(var(--spacing-unit) * 1.5); color: #fff; font-size: .92rem; font-weight: 600; }
.footer-bottom-links { display: flex; align-items: center; }
.footer-bottom a:hover { color: var(--color-primary); }

@media (max-width: 1180px) {
  .category-quick-grid,
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .brand-logo { height: 44px; }
  .nav-actions .nav-link-soft { display: none; }
  .shop-layout,
  .product-detail,
  .auth-wrap,
  .checkout-grid,
  .cart-layout,
  .contact-section { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-side { min-height: 340px; }
}
@media (max-width: 820px) {
  .category-quick-grid,
  .product-grid,
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-section { min-block-size: 84svh; }
  .hero-content h1 { font-size: clamp(3rem, 11vw, 4rem); }
}
@media (max-width: 620px) {
  .nav-cart-label { display: none; }
  .category-quick-grid,
  .product-grid,
  .why-grid,
  .category-grid { grid-template-columns: 1fr; }
  .compact-hero,
  .category-hero { padding: 28px; border-radius: 22px; }
  .product-detail { padding-bottom: calc(var(--section-space) * .75); }
  .cart-row > input[type="number"] { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  .brand-logo { height: 38px; }
  .nav-cart-icon { width: 18px; height: 18px; }
}
.product-grid .empty-state,
.category-grid .empty-state { grid-column: 1 / -1; }
.auth-card .section-link { display: inline-flex; margin-top: calc(var(--spacing-unit) * 2); }

/* ===== v9 HOME STORE — header centrado + index tipo ecommerce visual ===== */
html,
body { overflow-x: hidden; }
.store-home { background: #fff; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header,
.site-header.is-solid,
.light-header .site-header,
.admin-body .site-header {
  color: #fff;
  background: rgba(3, 70, 123, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 28px rgba(3, 70, 123, .15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-centered {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.nav-pill-layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - var(--side-space) * 2), var(--container-wide));
  height: var(--header-height);
  margin-inline: auto;
}
.nav-brand-left {
  flex: 0 0 auto;
  margin-left: calc(-1 * var(--side-space) / 2);
}
.nav-brand-left .brand-logo {
  height: 44px;
  width: auto;
}
.nav-pill-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1.5px solid rgba(3, 70, 123, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(3, 70, 123, .06);
}
.nav-pill-container a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background 220ms ease-out, color 220ms ease-out;
}
.nav-pill-container a:hover {
  background: rgba(45, 168, 216, .08);
  color: var(--color-primary);
}
.site-header.is-solid .nav-pill-container {
  border-color: rgba(3, 70, 123, .10);
  background: rgba(255, 255, 255, .72);
}
.store-home .site-header:not(.is-solid) .nav-pill-container {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .10);
}
.store-home .site-header:not(.is-solid) .nav-pill-container a {
  color: rgba(255, 255, 255, .88);
}
.store-home .site-header:not(.is-solid) .nav-pill-container a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
.transparent-header .site-header:not(.is-solid) .nav-pill-container {
  border-color: rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .08);
}
.transparent-header .site-header:not(.is-solid) .nav-pill-container a {
  color: rgba(255, 255, 255, .88);
}
.transparent-header .site-header:not(.is-solid) .nav-pill-container a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
@media (min-width: 821px) {
  .store-home .site-header:not(.is-solid) .nav-pill-container a {
    color: var(--color-primary-dark);
  }
  .store-home .site-header:not(.is-solid) .nav-pill-container {
    border-color: rgba(3, 70, 123, .08);
    background: rgba(255, 255, 255, .50);
  }
}
.nav-left {
  justify-self: start;
  justify-content: flex-start;
  gap: clamp(18px, 2.1vw, 34px);
}
.nav-brand-center {
  justify-self: center;
}
.brand-logo {
  height: 48px;
  width: auto;
}
.site-header.is-solid .brand-logo {
  filter: brightness(0) invert(1);
}
.nav-icon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(3, 70, 123, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--color-primary-dark);
  box-shadow: 0 10px 20px rgba(3, 70, 123, .045);
  transition: transform 220ms ease-out, background 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out, box-shadow 220ms ease-out;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.nav-icon-form { display: inline-grid; }
button.nav-icon {
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.nav-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 168, 216, .30);
  background: rgba(45, 168, 216, .08);
  color: var(--color-accent);
  box-shadow: 0 14px 24px rgba(3, 70, 123, .08);
}
.site-header.is-solid .nav-icon {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .10);
  color: #fff;
}
.site-header.is-solid .nav-icon:hover {
  border-color: rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .16);
  color: var(--color-accent);
}
.site-header.is-solid .nav-cart-icon span[data-cart-count] {
  background: var(--color-primary);
  color: #fff;
  border-color: rgba(3, 70, 123, .95);
}
.site-header.is-solid .nav-pill-container {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
}
.site-header.is-solid .nav-pill-container a {
  color: rgba(255, 255, 255, .85);
}
.site-header.is-solid .nav-pill-container a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
.site-header.is-solid .menu-button span,
.site-header.is-solid .menu-button::before,
.site-header.is-solid .menu-button::after {
  background: #fff;
}
.nav-links a {
  color: var(--color-primary-dark);
  font-size: .89rem;
  letter-spacing: .01em;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-link-pill {
  padding: 8px 20px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  border: 1.5px solid transparent !important;
  transition: background 220ms ease-out, border-color 220ms ease-out, color 220ms ease-out, box-shadow 220ms ease-out !important;
}
.nav-link-pill:hover {
  background: rgba(45, 168, 216, .08) !important;
  border-color: rgba(45, 168, 216, .22) !important;
  color: var(--color-primary) !important;
}
.site-header.is-solid .nav-link-pill {
  background: rgba(255, 255, 255, .6);
  border-color: rgba(3, 70, 123, .10) !important;
}
.site-header.is-solid .nav-link-pill:hover {
  background: rgba(45, 168, 216, .06) !important;
  border-color: rgba(45, 168, 216, .28) !important;
}
.store-home .site-header:not(.is-solid) .nav-link-pill {
  color: rgba(255, 255, 255, .88);
}
.store-home .site-header:not(.is-solid) .nav-link-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28) !important;
}
.nav-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(3, 70, 123, .04);
  border: 1px solid rgba(3, 70, 123, .06);
}
.nav-icon-group .nav-icon {
  width: 38px;
  height: 38px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nav-icon-group .nav-icon:hover {
  background: rgba(45, 168, 216, .10) !important;
  box-shadow: none !important;
  transform: scale(1.08);
}
.store-home .site-header:not(.is-solid) .nav-icon-group {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .14);
}
.store-home .site-header:not(.is-solid) .nav-icon-group .nav-icon {
  color: #fff;
}
.store-home .site-header:not(.is-solid) .nav-icon-group .nav-icon:hover {
  background: rgba(255, 255, 255, .14) !important;
}

.store-home .home-hero {
  min-block-size: clamp(500px, 73svh, 760px);
  margin-top: var(--header-height);
  padding: clamp(56px, 7vw, 96px) 0;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(3, 70, 123, .88) 0%, rgba(3, 70, 123, .72) 45%, rgba(3, 70, 123, .45) 100%), var(--section-image, url("../img/banners/hero-piscina-premium.jpg"));
  background-size: cover;
  background-position: center right;
}
.store-home .home-hero::before { display: none; }
.home-hero-copy { position: relative; z-index: 1; }
.store-home .hero-section .eyebrow {
  color: var(--color-primary);
  border-color: rgba(45, 168, 216, .16);
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 20px rgba(3, 70, 123, .05);
}
.store-home .hero-content,
.store-home .home-hero-copy { max-width: none; }
.store-home .home-hero h1 {
  max-width: 11ch;
  margin-top: calc(var(--spacing-unit) * 2.2);
  color: #fff;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: .96;
  letter-spacing: -.066em;
  font-weight: 800;
}
.store-home .hero-description {
  max-width: 560px;
  color: rgba(255, 255, 255, .85);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}
.store-home .button-primary {
  background: #e1a140;
  color: #fff;
}
.store-home .button-primary:hover {
  background: #e1a140;
  color: #fff;
  box-shadow: 0 12px 24px rgba(3, 70, 123, .24);
}
.store-home .button-secondary.dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.store-home .button-secondary.dark:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  padding-top: clamp(30px, 4vw, 46px);
}
.step-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 0;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(4, 18, 27, .12), rgba(4, 18, 27, .72)), var(--step-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 36px rgba(3, 70, 123, .12);
  transition: transform 260ms ease-out, box-shadow 260ms ease-out;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 24px 42px rgba(3, 70, 123, .16); }
.step-card > span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.step-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.step-card p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.45;
  font-weight: 600;
}

.home-category-section { padding-top: clamp(42px, 5vw, 62px); padding-bottom: clamp(42px, 5vw, 70px); }
.category-orb-grid {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(106px, 1fr);
  gap: clamp(14px, 1.5vw, 22px) clamp(16px, 1.8vw, 24px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.category-orb-card {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  text-align: center;
  scroll-snap-align: start;
}
.category-orb-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(66px, 6.2vw, 86px);
  height: clamp(66px, 6.2vw, 86px);
  border: 1px solid rgba(3, 70, 123, .08);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #eef8fb);
  box-shadow: 0 14px 28px rgba(3, 70, 123, .075);
  color: var(--color-primary-dark);
  transition: transform 240ms ease-out, background 240ms ease-out, color 240ms ease-out, border-color 240ms ease-out;
}
.category-orb-icon::before {
  content: "";
  width: 40%;
  height: 40%;
  background: currentColor;
  -webkit-mask: var(--orb-mask, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 14c2 0 2-1 4-1s2 1 4 1 2-1 4-1 2 1 4 1v4H4v-4Zm2-8h12v5c-1.2-.2-2 .8-4 .8-2.1 0-2.6-1-4-1s-1.9 1-4 1V6Z'/%3E%3C/svg%3E")) center / contain no-repeat;
          mask: var(--orb-mask, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 14c2 0 2-1 4-1s2 1 4 1 2-1 4-1 2 1 4 1v4H4v-4Zm2-8h12v5c-1.2-.2-2 .8-4 .8-2.1 0-2.6-1-4-1s-1.9 1-4 1V6Z'/%3E%3C/svg%3E")) center / contain no-repeat;
}
.category-orb-card:hover .category-orb-icon {
  transform: translateY(-4px);
  border-color: rgba(45, 168, 216, .24);
  background: var(--color-primary-dark);
  color: #fff;
}
.category-orb-card strong {
  display: -webkit-box;
  max-width: 108px;
  min-height: 2.35em;
  color: var(--color-primary-dark);
  font-size: .76rem;
  line-height: 1.16;
  letter-spacing: .015em;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-orb-card[href*="bomba"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7h7a5 5 0 1 1 0 10H8V7Zm7 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3 9h5v6H3V9Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="filtro"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14l-5.2 7.2V20h-3.6v-8.8L5 4Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="cascada"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v4H4V5Zm2 6c1.5 0 1.5 1.2 3 1.2s1.5-1.2 3-1.2 1.5 1.2 3 1.2 1.5-1.2 3-1.2v7c-1.5 0-1.5 1.2-3 1.2s-1.5-1.2-3-1.2-1.5 1.2-3 1.2-1.5-1.2-3-1.2v-7Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="escalera"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h3v4h4V3h3v18h-3v-5h-4v5H7V3Zm3 7v3h4v-3h-4Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="luz"] .category-orb-icon,
.category-orb-card[href*="luces"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 9 10h6l-3 11 9-13h-6l3-5h-6Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="empotrable"] .category-orb-icon,
.category-orb-card[href*="boquilla"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 3.2a4.8 4.8 0 1 0 0 9.6 4.8 4.8 0 0 0 0-9.6Zm0 2.1a2.7 2.7 0 1 1 0 5.4 2.7 2.7 0 0 1 0-5.4Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="limpieza"] .category-orb-icon,
.category-orb-card[href*="clorinadores"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v3H7V3Zm1 5h8l3 12H5L8 8Zm2.5 3-.9 6h4.8l-.9-6h-3Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="accesorios"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 3 2 2-4.8 4.8 2 2L13 7l2 2-7.8 7.8a2.8 2.8 0 0 1-4-4L11 5l-2-2Zm7.2 8.2 4.6 4.6a3.1 3.1 0 1 1-4.4 4.4l-4.6-4.6 1.4-1.4 2.2 2.2 1-1-2.2-2.2 2-2Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="hidromasaje"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10a6 6 0 0 1 12 0h2a8 8 0 1 0-16 0h2Zm-2 4c2 0 2-1 4-1s2 1 4 1 2-1 4-1 2 1 4 1v5H4v-5Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="calentador"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2s5 4 5 9a5 5 0 0 1-10 0c0-2 1-3.3 2.1-4.5.2 2.6 1.7 4.1 3.4 4.6C11.8 8.3 12 2 12 2Zm-6 16h12v2H6v-2Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="corriente"] .category-orb-icon,
.category-orb-card[href*="nado"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h9l-2.2-2.2L12 4.6 16.4 9 12 13.4l-1.2-1.2L13 10H4V8Zm16 8h-9l2.2 2.2-1.2 1.2L7.6 15 12 10.6l1.2 1.2L11 14h9v2Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="sumergible"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4h8v8H8V4Zm-3 10c2 0 2-1 4-1s2 1 4 1 2-1 4-1 2 1 4 1v5H5v-5Z'/%3E%3C/svg%3E"); }
.category-orb-card[href*="hidroneumatico"] .category-orb-icon { --orb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10a4 4 0 0 1 0 8H7a4 4 0 0 1 0-8Zm0 10h10v6H7v-6Zm2 2v2h6v-2H9Z'/%3E%3C/svg%3E"); }

.store-home .home-products { 
  padding-top: clamp(36px, 5vw, 68px); 
  background: #fff;
}
.store-home .home-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 1.9vw, 28px);
  justify-content: stretch;
}
.store-home .product-card-lite {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.store-home .product-card-lite:hover { transform: translateY(-3px); box-shadow: none; }
.store-home .product-card-lite .product-media {
  aspect-ratio: 1 / 1.12;
  border-radius: 0;
  background: #f1f5f7;
  box-shadow: inset 0 0 0 1px rgba(3, 70, 123, .045);
}
.store-home .product-card-lite .product-media::before { transform: scale(.80); }
.store-home .product-card-lite:hover .product-media::before { transform: scale(.86); }
.store-home .product-card-lite .product-info {
  padding: 14px 0 0;
  align-items: stretch;
  text-align: left;
}
.store-home .product-card-lite .product-tag {
  width: fit-content;
  padding: 4px 10px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #e1a140;
  color: var(--color-primary-dark);
  font-size: .66rem;
  letter-spacing: .04em;
}
.store-home .product-card-lite .product-info h3 {
  min-height: calc(1.18em * 2);
  margin-bottom: 5px;
  color: var(--color-primary-dark);
  font-size: .92rem;
  line-height: 1.18;
  letter-spacing: -.012em;
}
.store-home .product-card-lite .product-info p {
  min-height: 1.25em;
  color: rgba(3, 70, 123, .55);
  font-size: .78rem;
  line-height: 1.3;
}
.store-home .product-card-lite .product-bottom {
  align-items: center;
  padding-top: 10px;
  gap: 10px;
}
.store-home .product-card-lite .product-bottom strong {
  font-size: .95rem;
  color: var(--color-primary-dark);
}
.store-home .product-card-lite .product-bottom button,
.store-home .product-card-lite .product-bottom a {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}
.store-home .product-card-lite .product-bottom button:hover,
.store-home .product-card-lite .product-bottom a:hover { background: var(--color-primary); color: #fff; }

.store-home .home-full-banner {
  min-height: clamp(360px, 48vh, 500px);
  display: flex;
  align-items: center;
  width: calc(100% - 10vw);
  max-width: none;
  margin-inline: auto;
  border: 1px solid rgba(3, 70, 123, .16);
  border-radius: 30px;
  box-shadow: 0 18px 46px rgba(3, 70, 123, .18);
  background-image: linear-gradient(90deg, rgba(3,70,123,.88) 0%, rgba(3,70,123,.58) 50%, rgba(3,70,123,.20) 100%), var(--section-image, url("../img/banners/equipamiento-premium.jpg"));
  background-size: cover;
  background-position: center;
}
.store-home .home-full-banner .home-banner-inner {
  width: 100%;
  max-width: 100%;
  padding: clamp(44px, 7vh, 84px) clamp(24px, 4.5vw, 64px);
}
.store-home .home-full-banner h2 {
  max-width: 720px;
  margin: 0 0 clamp(14px, 2vw, 22px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.store-home .home-full-banner p:not(.section-kicker) {
  max-width: 620px;
  margin: 0 0 clamp(22px, 3vw, 30px);
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.95rem, 1.1vw, 1.08rem);
  line-height: 1.6;
}
.store-home .home-full-banner .button-primary {
  background: #ffd43b;
  color: var(--color-primary);
  border: 2px solid #ffd43b;
}
.store-home .home-full-banner .button-primary:hover {
  background: #ffca1f;
  border-color: #ffca1f;
  color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(3, 70, 123, .22);
  transform: translateY(-1px) scale(1.01);
}
.store-home .home-full-banner .home-banner-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: 2px;
}

.store-home .home-support-section {
  width: calc(100% - 10vw);
  max-width: none;
  margin-inline: auto;
  border: 1px solid rgba(3, 70, 123, .16);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(3, 70, 123, .18);
}

@media (max-width: 1180px) {
  .store-home .home-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .nav-centered {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }
  .nav-left,
  .nav-icon-actions { display: none; }
  .nav-brand-center { grid-column: 2; }
  .menu-button { grid-column: 3; justify-self: end; display: inline-grid; place-items: center; }
  .brand-logo { height: 42px; }
  .nav-pill-layout {
    justify-content: space-between;
  }
  .nav-pill-container { display: none; }
  .nav-pill-layout .nav-icon-actions { display: none; }
  .nav-pill-layout .menu-button {
    display: inline-grid;
    place-items: center;
  }
}
@media (max-width: 820px) {
  .store-home .home-hero {
    min-block-size: 72svh;
    background-image: linear-gradient(90deg, rgba(3, 70, 123, .9) 0%, rgba(3, 70, 123, .58) 42%, transparent 72%), var(--section-image, url("../img/banners/hero-piscina-premium.jpg"));
    background-position: center right;
  }
  .store-home .home-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-orb-grid { grid-auto-columns: minmax(92px, 1fr); }
}
@media (max-width: 620px) {
  .store-home .home-hero {
    min-block-size: auto;
    padding: 46px 0 58px;
  }
  .store-home .home-hero h1 { font-size: clamp(3.2rem, 13vw, 4.2rem); }
  .home-steps { grid-template-columns: 1fr; }
  .step-card { min-height: 190px; }
  .store-home .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .category-orb-grid { grid-auto-columns: minmax(82px, 1fr); gap: 14px; }
  .category-orb-card strong { max-width: 86px; font-size: .68rem; }
  .store-home .home-full-banner,
  .home-support-section { min-height: 420px; }
}
@media (max-width: 420px) {
  .store-home .home-product-grid { grid-template-columns: 1fr 1fr; }
  .store-home .product-card-lite .product-info h3 { font-size: .86rem; }
  .store-home .product-card-lite .product-bottom { flex-direction: row; align-items: center; }
  .store-home .product-card-lite .product-bottom button,
  .store-home .product-card-lite .product-bottom a { width: 30px; min-width: 30px; height: 30px; min-height: 30px; }
}

/* ===== v10 config folder + transparent home header + mobile visual assets ===== */
.store-home .site-header:not(.is-solid) {
  color: #fff;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.store-home .site-header:not(.is-solid) .nav-links a {
  color: #fff;
  text-shadow: 0 2px 14px rgba(4, 18, 27, .22);
}
.store-home .site-header:not(.is-solid) .brand-logo {
  filter: drop-shadow(0 8px 18px rgba(4, 18, 27, .24));
}
.store-home .site-header:not(.is-solid) .nav-icon,
.store-home .site-header:not(.is-solid) .nav-icon-actions .nav-cart-icon,
.store-home .site-header:not(.is-solid) .menu-button {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: 0 12px 26px rgba(4, 18, 27, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.store-home .site-header:not(.is-solid) .nav-icon-actions .nav-cart-icon span[data-cart-count] {
  border-color: rgba(255,255,255,.82);
  background: var(--color-primary);
  color: #fff;
}

.store-home .home-hero {
  min-block-size: 100svh;
  margin-top: 0;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + clamp(54px, 7vw, 92px)) 0 clamp(76px, 8vw, 118px);
  background-image: linear-gradient(90deg, rgba(3, 70, 123, .9) 0%, rgba(3, 70, 123, .68) 34%, rgba(3, 70, 123, .38) 55%, rgba(3, 70, 123, 0) 76%), var(--section-image, url("../img/banners/hero-piscina-premium.jpg"));
  background-size: cover;
  background-position: center right;
}
.store-home .home-hero-copy {
  width: min(calc(100% - var(--side-space) * 2), var(--container));
}
.store-home .home-hero h1 {
  max-width: 10.8ch;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
}
.store-home .home-hero .hero-description br { display: block; }

.home-video-section {
  background: linear-gradient(180deg, #fff 0%, #f5f9fb 100%);
}
.home-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: stretch;
}
.home-video-frame {
  position: relative;
  min-height: clamp(360px, 46vw, 640px);
  overflow: hidden;
  border-radius: 34px;
  background: var(--color-primary-dark);
  box-shadow: 0 28px 64px rgba(3, 70, 123, .18);
}
.home-video-frame video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}
.home-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(4,18,27,.74) 100%);
  pointer-events: none;
}
.video-caption {
  position: absolute;
  left: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 2.5vw, 34px);
  bottom: clamp(18px, 2.5vw, 34px);
  z-index: 1;
  color: #fff;
}
.video-caption span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.video-caption strong {
  display: block;
  max-width: 560px;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.video-content-grid {
  display: grid;
  gap: 16px;
}
.video-card,
.support-card {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(3, 70, 123, .08);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(3, 70, 123, .075);
}
.video-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(45,168,216,.10);
  color: var(--color-primary-dark);
  font-size: .78rem;
  font-weight: 900;
}
.video-card h3,
.support-card strong {
  display: block;
  margin: 0 0 8px;
  color: var(--color-primary-dark);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.video-card p,
.support-card span {
  margin: 0;
  color: rgba(3, 70, 123, .64);
  line-height: 1.55;
}

.home-support-section {
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(4,18,27,.88) 0%, rgba(15,52,70,.68) 48%, rgba(15,52,70,.18) 100%), var(--section-image, url("../img/banners/mantenimiento-piscina.jpg"));
  background-size: cover;
  background-position: center;
}
.home-support-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .62fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(72px, 9vw, 128px);
}
.support-copy .section-kicker {
  color: var(--color-accent);
  border-color: rgba(255,255,255,.18);
}
.support-copy h2 {
  max-width: 680px;
  margin: 18px 0 18px;
  color: #fff;
  font-size: 1.8rem;
  line-height: .96;
  letter-spacing: -.066em;
}
.support-copy p:not(.section-kicker) {
  max-width: 590px;
  margin-bottom: 28px;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.7;
}
.support-card-grid {
  display: grid;
  gap: 16px;
}
.support-card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 1024px) {
  .home-video-layout,
  .home-support-inner {
    grid-template-columns: 1fr;
  }
  .video-content-grid,
  .support-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .store-home .home-hero {
    min-block-size: 100svh;
    align-items: flex-end;
    padding: calc(var(--header-height) + 36px) 0 58px;
    color: #fff;
    background-image: linear-gradient(180deg, rgba(4,18,27,.06) 0%, rgba(4,18,27,.24) 34%, rgba(4,18,27,.78) 100%), var(--section-mobile-image, var(--section-image, url("../img/mobile/banners/hero-piscina-premium.jpg")));
    background-position: center;
  }
  .store-home .home-hero h1,
  .store-home .hero-description {
    color: #fff;
    text-shadow: 0 12px 28px rgba(4,18,27,.32);
  }
  .store-home .hero-section .eyebrow {
    color: #fff;
    border-color: rgba(255,255,255,.20);
    background: rgba(255,255,255,.12);
    box-shadow: none;
  }
  .store-home .button-secondary.dark {
    background: rgba(255,255,255,.14);
    color: #fff;
    border-color: rgba(255,255,255,.28);
  }
  .step-card {
    background-image: linear-gradient(180deg, rgba(4, 18, 27, .08), rgba(4, 18, 27, .76)), var(--step-mobile-image, var(--step-image));
  }
  .store-home .product-card-lite .product-media {
    background-image: var(--item-mobile-image, var(--item-image));
  }
  .store-home .home-full-banner,
  .home-support-section {
    background-image: linear-gradient(180deg, rgba(4,18,27,.18) 0%, rgba(4,18,27,.78) 100%), var(--section-mobile-image, var(--section-image));
    background-position: center;
  }
  .home-video-frame {
    min-height: 520px;
    border-radius: 28px;
  }
  .video-content-grid,
  .support-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .store-home .home-hero {
    min-block-size: 100svh;
    padding-bottom: 42px;
  }
  .store-home .home-hero h1 {
    max-width: 9.6ch;
    font-size: clamp(3.2rem, 13vw, 4.2rem);
  }
  .store-home .home-hero .hero-description br { display: none; }
  .home-video-section { padding-top: 72px; }
  .home-video-frame { min-height: 440px; border-radius: 24px; }
  .video-caption strong { font-size: clamp(1.5rem, 8vw, 2.25rem); }
  .home-support-inner { padding-block: 72px; }
  .support-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
  .video-card,
  .support-card { border-radius: 22px; }
}
@media (max-width: 820px) {
  .store-home .product-card-lite .product-media::before {
    background-image: var(--item-mobile-image, var(--item-image));
  }
}
@media (min-width: 821px) {
  .store-home .site-header:not(.is-solid) {
    color: var(--color-primary-dark);
  }
  .store-home .site-header:not(.is-solid) .nav-links a {
    color: var(--color-primary-dark);
    text-shadow: none;
  }
  .store-home .site-header:not(.is-solid) .nav-icon,
  .store-home .site-header:not(.is-solid) .nav-icon-actions .nav-cart-icon {
    border-color: rgba(3, 70, 123, .10);
    background: rgba(255,255,255,.46);
    color: var(--color-primary-dark);
  }
  .store-home .site-header:not(.is-solid) .nav-pill-container {
    border-color: rgba(3, 70, 123, .08);
    background: rgba(255, 255, 255, .50);
  }
  .store-home .site-header:not(.is-solid) .nav-pill-container a {
    color: var(--color-primary-dark);
  }
}
@media (max-width: 820px) {
  .store-home .site-header:not(.is-solid) {
    color: #fff;
  }
}
.category-image {
  background-image: var(--category-image);
}
@media (max-width: 820px) {
  .detail-media::before,
  .cart-thumb::before {
    background-image: var(--item-mobile-image, var(--item-image));
  }
  .category-image {
    background-image: var(--category-mobile-image, var(--category-image));
  }
}

/* Ajustes finales v11 */
html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.category-grid {
  padding: 6px;
  overflow: visible;
}
.category-card {
  border-color: rgba(3, 70, 123, .08);
}
.category-card:hover {
  border-color: rgba(3, 70, 123, .08);
  box-shadow: var(--shadow-hover), 0 0 0 3px rgba(45, 168, 216, .10);
}

.store-home .home-hero {
  min-block-size: 100svh;
  block-size: 100svh;
  padding: calc(var(--header-height) + clamp(24px, 4vw, 52px)) 0 clamp(34px, 5vw, 64px);
  overflow: hidden;
}
.store-home .home-hero h1 {
  max-width: 1080px;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.store-home .hero-description {
  max-width: 520px;
  font-size: clamp(.94rem, 1.05vw, 1.06rem);
  line-height: 1.5;
}
.store-home .home-hero .hero-actions {
  margin-top: clamp(18px, 2.5vw, 28px);
}
.store-home .home-hero .button {
  min-height: 50px;
  padding-inline: 26px;
  font-size: .94rem;
  font-weight: 700;
  border-radius: 12px;
}
.store-home .home-hero .button.hero-btn-yellow {
  color: #0a2a45;
  background: #ffd43b;
  border: 2px solid #ffd43b;
}
.store-home .home-hero .button.hero-btn-yellow:hover {
  color: #0a2a45;
  background: #ffca1f;
  border-color: #ffca1f;
}
.store-home .home-hero .button.hero-btn-outline {
  color: #fff;
  background: transparent;
  border: 2px solid #ffd43b;
}
.store-home .home-hero .button.hero-btn-outline:hover {
  color: #fff;
  background: rgba(255, 212, 59, .12);
}

.home-video-section {
  padding-top: clamp(34px, 4vw, 54px);
  padding-bottom: clamp(36px, 4.5vw, 62px);
}
.home-video-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  align-items: center;
}
.home-video-frame {
  min-height: 0;
  height: clamp(260px, 30vw, 390px);
  border-radius: 26px;
}
.home-video-frame video {
  min-height: 0;
  height: 100%;
}
.video-caption strong {
  max-width: 480px;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}
.video-card {
  padding: clamp(16px, 2vw, 22px);
  border-radius: 20px;
}
.video-card span {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.home-support-section {
  min-height: auto;
}
.home-support-inner {
  grid-template-columns: minmax(0, .92fr) minmax(280px, .58fr);
  padding-block: clamp(46px, 6vw, 78px);
}
.support-copy h2 {
  max-width: 560px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.04em;
}
.support-copy p:not(.section-kicker) {
  max-width: 520px;
  margin-bottom: 22px;
}
.button-accent {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}
.button-accent:hover {
  background: #0f5f9f;
  color: #fff;
  box-shadow: 0 12px 24px rgba(3, 70, 123, .24);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-advice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 900;
}
.footer-advice-button:hover {
  background: #0f5f9f;
  color: #fff !important;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.footer-socials a {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 900;
}
.footer-socials a:hover {
  background: rgba(255,255,255,.16);
  color: var(--color-accent) !important;
}

.home-picks-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(45, 168, 216, .14);
  border-radius: 18px;
  background: rgba(45, 168, 216, .055);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: var(--color-primary-dark);
  line-height: 1.35;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--color-primary);
}
.home-picks-cell {
  min-width: 170px;
}
.home-picks-cell span {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(45,168,216,.10);
  color: var(--color-primary-dark);
  font-size: .76rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .store-home .home-hero {
    align-items: center;
    min-block-size: 100svh;
    block-size: 100svh;
    padding: calc(var(--header-height) + 28px) 0 38px;
  }
  .store-home .home-hero h1 {
    max-width: 10.2ch;
    font-size: clamp(3.2rem, 13vw, 4.2rem);
  }
  .store-home .hero-description {
    font-size: .94rem;
  }
  .home-video-section {
    padding-top: 44px;
    padding-bottom: 48px;
  }
  .home-video-frame {
    height: min(330px, 68vw);
    min-height: 260px;
    border-radius: 22px;
  }
  .video-caption strong {
    font-size: clamp(1.25rem, 6vw, 1.8rem);
  }
  .home-support-inner {
    padding-block: 52px;
  }
  .support-copy h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 620px) {
  .store-home .home-hero h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }
  .store-home .home-hero .button {
    width: 100%;
  }
  .home-video-frame {
    height: 300px;
    min-height: 0;
  }
}

/* ===== v12 ajustes solicitados: home, catálogo, footer y admin ===== */
html,
body {
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.catalog-chips::-webkit-scrollbar,
.category-orb-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.category-orb-grid {
  padding: 14px 4px 18px;
  overflow-y: visible;
  scrollbar-width: none;
}
.category-orb-card {
  padding-block: 2px;
}
.category-orb-icon {
  outline: 0 solid transparent;
}
.category-orb-card:hover .category-orb-icon {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(3, 70, 123, .12), 0 0 0 4px rgba(45, 168, 216, .10);
}

.store-home .home-product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  row-gap: clamp(24px, 2.6vw, 36px);
}
.store-home .home-products {
  padding-top: clamp(30px, 4vw, 52px);
  padding-bottom: clamp(34px, 4vw, 56px);
}
.store-home .product-card-lite .product-info h3 {
  font-size: .84rem;
}
.store-home .product-card-lite .product-info p {
  font-size: .74rem;
}
.store-home .product-card-lite .product-bottom strong {
  font-size: .82rem;
}

.home-video-section {
  padding-top: clamp(26px, 3vw, 42px);
  padding-bottom: clamp(28px, 3.4vw, 46px);
}
.home-video-layout {
  grid-template-columns: minmax(0, .92fr) minmax(280px, .78fr);
  gap: clamp(18px, 2.4vw, 32px);
}
.home-video-frame {
  height: clamp(220px, 24vw, 320px);
  min-height: 0;
  border-radius: 22px;
}
.home-video-frame video {
  height: 100%;
  min-height: 0;
}
.video-caption {
  left: 22px;
  right: 22px;
  bottom: 20px;
}
.video-caption strong {
  max-width: 430px;
  font-size: clamp(1.08rem, 1.8vw, 1.55rem);
  line-height: 1.05;
}
.video-caption span {
  padding: 6px 10px;
  margin-bottom: 7px;
  font-size: .66rem;
}
.video-card {
  padding: 16px 18px;
  border-radius: 18px;
}
.video-card span {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}
.video-card h3 {
  font-size: .98rem;
}
.video-card p {
  font-size: .84rem;
  line-height: 1.45;
}

.home-support-section {
  min-height: auto;
}
.home-support-inner {
  grid-template-columns: minmax(0, .94fr) minmax(280px, .56fr);
  padding-block: clamp(38px, 5vw, 62px);
  gap: clamp(22px, 4vw, 48px);
}
.support-copy h2 {
  max-width: 520px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}
.support-copy p:not(.section-kicker) {
  max-width: 490px;
  margin-bottom: 18px;
  font-size: .96rem;
  line-height: 1.55;
}
.support-card-grid {
  gap: 10px;
}
.support-card {
  padding: 16px 18px;
  border-radius: 18px;
}
.support-card strong {
  font-size: .98rem;
}
.support-card span {
  font-size: .84rem;
}
.support-advice-btn {
  white-space: nowrap;
  flex-wrap: nowrap;
  background: #ffd43b;
  color: #0a2a45;
  border: 2px solid #ffd43b;
}
.support-advice-btn:hover {
  background: #ffca1f;
  border-color: #ffca1f;
  color: #0a2a45;
}
.support-advice-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.button-accent,
.support-copy .button-accent {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: rgba(255,255,255,.16);
}
.button-accent:hover,
.support-copy .button-accent:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(45, 168, 216, .28);
}

.footer-contact {
  gap: 8px;
}
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: calc(var(--spacing-unit) * 1.125);
}
.footer-contact-row a,
.footer-contact .footer-contact-row span {
  margin-top: 0;
  display: block;
  font-weight: 600;
}
.footer-contact .contact-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #ffd43b;
}
.footer-advice-button {
  min-height: 38px;
  padding: 0 16px;
  margin-top: 2px;
  font-size: .82rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-advice-button .contact-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  margin: 0;
}
.footer-socials {
  gap: 9px;
  margin-top: 8px;
}
.footer-socials a {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
}
.footer-socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.catalog-main.inner-main {
  padding-top: var(--header-height);
  background: #ffffff;
}
.catalog-page .hero-section {
  min-block-size: 50vh !important;
  padding: calc(var(--header-height) + var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 6);
}
.catalog-page .home-hero-copy h1 {
  max-width: 100%;
  margin-top: calc(var(--spacing-unit) * 2);
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
}
.catalog-page .hero-description {
  max-width: 38rem;
  margin-top: calc(var(--spacing-unit) * 2);
  color: rgba(255, 255, 255, .9);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.6;
}
.product-list-hero {
  position: relative;
  inline-size: 100%;
  min-height: 85svh;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(246, 251, 253, .94) 0%, rgba(246, 251, 253, .82) 42%, rgba(246, 251, 253, .24) 72%), var(--section-image, url("../img/banners/equipamiento-premium.jpg"));
  background-size: cover;
  background-position: center right;
}
.product-list-hero-inner {
  padding-block: clamp(64px, 7vw, 104px);
}
.product-list-hero .section-kicker {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0);
  border-color: rgba(45,168,216,.16);
}
.product-list-hero h1 {
  max-width: 13ch;
  margin: 18px 0 14px;
  color: var(--color-primary-dark);
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.product-list-hero p:last-child {
  max-width: 560px;
  color: rgba(3, 70, 123, .70);
  font-size: clamp(.98rem, 1.2vw, 1.14rem);
  line-height: 1.55;
}
.catalog-shop-layout {
  grid-template-columns: minmax(300px, 320px) minmax(0, 1fr);
  gap: clamp(20px, 2.8vw, 36px);
  padding-top: clamp(28px, 3vw, 44px);
  margin-top: 0;
  width: calc(100% - 8vw);
  max-width: none;
  margin-inline: auto;
  min-height: calc(100svh - var(--header-height));
}
.catalog-products-panel {
  background: #ffffff;
  border-radius: 28px 0 0 28px;
  padding: clamp(20px, 2.6vw, 34px) clamp(24px, 3vw, 48px) clamp(24px, 3vw, 44px) 0;
}
.catalog-filter-box {
  top: calc(var(--header-height) + 18px);
  max-height: none;
  min-height: 100%;
  overflow: visible;
  padding: 22px;
  border-radius: 0;
  border: 1px solid rgba(3, 70, 123, .08);
  border-left: 3px solid #fff;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(3, 70, 123, .05);
  scrollbar-width: none;
}
.catalog-filter-box::-webkit-scrollbar { display: none; }
.filter-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.filter-title-row h3 {
  font-size: 1.02rem;
}
.filter-title-row small {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: .72rem;
  font-weight: 700;
}
.filter-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(3, 70, 123, .12);
  border-radius: 999px;
  background: rgba(45, 168, 216, .06);
  color: var(--color-primary);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}
.filter-clear-all:hover {
  border-color: rgba(45, 168, 216, .38);
  background: rgba(45, 168, 216, .14);
  color: var(--color-primary-dark);
}
.price-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.price-field legend {
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  float: none;
}
.price-field .filter-field-legend-label {
  display: block;
  color: var(--color-primary);
  font-size: .70rem;
  font-weight: 900;
  letter-spacing: .035em;
}
.price-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.price-range-sep {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: .9rem;
  font-weight: 800;
}
.price-range-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: .7rem;
  font-weight: 700;
}
.filter-title-icon,
.filter-category-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(45,168,216,.10);
  color: var(--color-primary);
}
.filter-title-icon {
  width: 32px;
  height: 32px;
}
.filter-title-icon::before,
.filter-category-icon::before {
  content: "";
  width: 52%;
  height: 52%;
  background: currentColor;
  -webkit-mask: var(--filter-mask, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14l-5.2 7.2V20h-3.6v-8.8L5 4Z'/%3E%3C/svg%3E")) center / contain no-repeat;
          mask: var(--filter-mask, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14l-5.2 7.2V20h-3.6v-8.8L5 4Z'/%3E%3C/svg%3E")) center / contain no-repeat;
}
.catalog-filter-box label,
.filter-label {
  display: block;
  margin-bottom: 7px;
  color: var(--color-primary);
  font-size: .70rem;
  font-weight: 900;
  letter-spacing: .035em;
}
.catalog-filter-box input,
.catalog-filter-box select {
  min-height: 42px;
  border-radius: 13px;
  font-size: .82rem;
  border-color: rgba(11, 79, 138, .12);
  background: #fff;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px rgba(11, 79, 138, .08), 0 10px 20px rgba(3, 70, 123, .04);
}
.catalog-filter-box .button {
  min-height: 42px;
  margin-top: 14px;
  border-radius: 13px;
  font-size: .78rem;
}
.catalog-filter-box .filter-clear {
  margin-top: 12px;
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 900;
}
.catalog-filter-box .filter-separator {
  margin: 18px 0 14px;
  background: rgba(3, 70, 123, .10);
}
.filter-category-panel {
  display: grid;
  gap: 8px;
}
.filter-category-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(3, 70, 123, .06);
  border-radius: 13px;
  color: var(--color-primary-dark);
  transition: background 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}
.filter-category-link strong {
  overflow: hidden;
  color: inherit;
  font-size: .74rem;
  line-height: 1.05;
  font-weight: 900;
  text-overflow: ellipsis;
}
.filter-category-icon {
  width: 28px;
  height: 28px;
  background: rgba(45,168,216,.08);
}
.filter-category-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(3, 70, 123, .08);
  color: var(--color-primary);
  font-size: .68rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
}
.filter-category-link.is-active .filter-category-count {
  background: var(--color-primary);
  color: #fff;
}
.filter-category-link:hover {
  transform: translateX(2px);
  border-color: rgba(45,168,216,.10);
  background: rgba(45,168,216,.08);
  color: var(--color-primary-dark);
}
.filter-category-link.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(3, 70, 123, .18);
}
.filter-category-link.is-active .filter-category-icon {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.filter-category-link[href*="bomba"] .filter-category-icon { --filter-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7h7a5 5 0 1 1 0 10H8V7Zm7 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3 9h5v6H3V9Z'/%3E%3C/svg%3E"); }
.filter-category-link[href*="luz"] .filter-category-icon,
.filter-category-link[href*="luces"] .filter-category-icon { --filter-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 9 10h6l-3 11 9-13h-6l3-5h-6Z'/%3E%3C/svg%3E"); }
.filter-category-link[href*="limpieza"] .filter-category-icon,
.filter-category-link[href*="clorinadores"] .filter-category-icon { --filter-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v3H7V3Zm1 5h8l3 12H5L8 8Zm2.5 3-.9 6h4.8l-.9-6h-3Z'/%3E%3C/svg%3E"); }
.filter-category-link[href*="cascada"] .filter-category-icon { --filter-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v4H4V5Zm2 6c1.5 0 1.5 1.2 3 1.2s1.5-1.2 3-1.2 1.5 1.2 3 1.2 1.5-1.2 3-1.2v7c-1.5 0-1.5 1.2-3 1.2s-1.5-1.2-3-1.2-1.5 1.2-3 1.2-1.5-1.2-3-1.2v-7Z'/%3E%3C/svg%3E"); }
.filter-category-link[href*="escalera"] .filter-category-icon { --filter-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h3v4h4V3h3v18h-3v-5h-4v5H7V3Zm3 7v3h4v-3h-4Z'/%3E%3C/svg%3E"); }

.catalog-help-card {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 22px 18px;
  border: 1px solid rgba(3, 70, 123, .10);
  border-radius: 18px;
  background: linear-gradient(165deg, #f2f9fd 0%, #e3f3fa 100%);
  text-align: center;
}
.catalog-help-icon {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(3, 70, 123, .25);
}
.catalog-help-icon svg {
  width: 28px;
  height: 28px;
}
.catalog-help-card h3 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 1.12rem;
  line-height: 1.1;
}
.catalog-help-card p {
  margin: 0;
  color: rgba(3, 70, 123, .68);
  font-size: .84rem;
  line-height: 1.5;
}
.catalog-help-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(3, 70, 123, .28);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}
.catalog-help-whatsapp:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
  box-shadow: 0 14px 28px rgba(3, 70, 123, .34);
}
.catalog-help-whatsapp svg {
  width: 18px;
  height: 18px;
}
.catalog-benefits {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.catalog-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(3, 70, 123, .07);
  border-radius: 13px;
  background: #fff;
  color: var(--color-primary-dark);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
}
.catalog-benefit-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.catalog-toolbar-clean {
  margin-bottom: 24px;
}
.catalog-count-note {
  display: inline-block;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: .82rem;
  font-weight: 700;
}
.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
  justify-content: stretch;
}
.catalog-product-grid .product-card {
  border-radius: 18px;
  border: 1px solid rgba(3, 70, 123, .08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 10px 24px rgba(3, 70, 123, .05);
}
.catalog-product-grid .product-media {
  aspect-ratio: 1 / .84;
}
.catalog-product-grid .product-info {
  padding: 14px;
}
.catalog-product-grid .product-info h3 {
  font-size: .84rem;
}
.catalog-product-grid .product-info p {
  font-size: .72rem;
}
.catalog-product-grid .product-bottom strong {
  font-size: .86rem;
  white-space: nowrap;
}
.catalog-product-grid .product-bottom button {
  min-height: 34px;
  padding: 0 12px;
  font-size: .68rem;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 48px);
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(3,70,123,.10);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-dark);
  font-size: .82rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(3,70,123,.06);
}
.page-link-wide {
  min-width: 92px;
}
.page-link-ellipsis {
  min-width: 24px;
  background: transparent;
  border-color: transparent;
  color: var(--color-muted);
  box-shadow: none;
  pointer-events: none;
}
.page-link-ellipsis:hover {
  background: transparent;
  color: var(--color-muted);
}
.page-link:hover,
.page-link.is-active {
  background: var(--color-primary-dark);
  color: #fff;
  border-color: var(--color-primary-dark);
}

@media (max-width: 1180px) {
  .store-home .home-product-grid,
  .catalog-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .catalog-shop-layout { grid-template-columns: 1fr; }
  .catalog-filter-box { max-height: none; }
  .shop-sidebar { position: static; top: auto; }
  .filter-category-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-video-layout,
  .home-support-inner { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .product-list-hero { min-height: 62vh; }
  .product-list-hero h1 { font-size: clamp(2.15rem, 9vw, 3.4rem); }
  .store-home .home-product-grid,
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-category-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-video-frame { height: min(260px, 62vw); }
}
@media (max-width: 620px) {
  .product-list-hero { min-height: 58vh; }
  .catalog-shop-layout { padding-top: 36px; }
  .filter-category-panel { grid-template-columns: 1fr; }
  .store-home .home-product-grid,
  .catalog-product-grid { gap: 18px; }
  .footer-socials a { width: 36px; min-width: 36px; height: 36px; }
}

/* ===== v13 transparent inner pages + refined footer/catalog/category UX ===== */
html {
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.transparent-header .inner-main,
.transparent-header.catalog-page .catalog-main.inner-main {
  padding-top: 0;
}

.transparent-header .site-header:not(.is-solid) {
  color: #fff;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.transparent-header .site-header:not(.is-solid) .nav-links a {
  color: #fff;
  text-shadow: 0 2px 14px rgba(4, 18, 27, .26);
}
.catalog-page.transparent-header .site-header:not(.is-solid) .nav-links a {
  color: var(--color-primary-dark);
  text-shadow: none;
}
.transparent-header .site-header:not(.is-solid) .brand-logo {
  filter: drop-shadow(0 8px 18px rgba(4, 18, 27, .28));
}
.transparent-header .site-header:not(.is-solid) .nav-icon,
.transparent-header .site-header:not(.is-solid) .nav-icon-actions .nav-cart-icon,
.transparent-header .site-header:not(.is-solid) .menu-button {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: 0 12px 26px rgba(4, 18, 27, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.transparent-header .site-header:not(.is-solid) .nav-pill-container {
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
}
.transparent-header .site-header:not(.is-solid) .nav-pill-container a {
  color: rgba(255, 255, 255, .88);
}
.transparent-header .site-header:not(.is-solid) .nav-pill-container a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
.transparent-header .site-header:not(.is-solid) .nav-icon-group .nav-icon:hover {
  background: rgba(255,255,255,.14) !important;
}

.product-list-hero,
.page-visual-hero {
  width: 100%;
  max-width: 100%;
  min-height: 90svh;
  min-height: 90vh;
}
.product-list-hero {
  padding-top: var(--header-height);
  background-image: linear-gradient(90deg, rgba(246, 251, 253, 0.041) 0%, rgba(246, 251, 253, 0.171) 42%, rgba(246, 251, 253, .10) 72%), var(--section-image, url("../img/banners/equipamiento-premium.jpg"));
}

.page-visual-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-height);
  background-image: linear-gradient(90deg, rgba(5, 20, 30, 0.075) 0%, rgba(3, 70, 123, 0.075) 48%, rgba(3, 70, 123, 0.089) 100%), var(--section-image, url("../img/banners/equipamiento-premium.jpg"));
  background-size: cover;
  background-position: center right;
  color: #fff;
}
.page-visual-hero-inner {
  padding-block: clamp(70px, 8vw, 118px);
}
.page-visual-hero .section-kicker {
  color: #fff;
  border-color: rgba(255, 255, 255, 0);
  background: rgba(255, 255, 255, 0);
}
.categories-page .section-kicker {
  color: var(--color-primary);
}
.contact-page .section-kicker {
  color: inherit;
}
.categories-page.transparent-header .site-header:not(.is-solid) .nav-links a {
  color: var(--color-primary-dark);
  text-shadow: none;
}
.categories-page .page-visual-hero h1 {
  color: var(--color-primary-dark);
}
.categories-page .page-visual-hero p {
  color: var(--color-primary);
}
.categories-page .category-list-section .section-kicker {
  color: var(--color-primary);
}
.categories-page .category-list-section h2 {
  color: var(--color-primary-dark);
}
.categories-page .category-card strong,
.categories-page .category-card p {
  color: var(--color-primary-dark);
}
.categories-page .category-info-card h3,
.categories-page .category-info-card p {
  color: var(--color-primary-dark);
}

.page-visual-hero h1 {
  max-width: 12ch;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.75rem, 5.6vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.058em;
}
.page-visual-hero p:last-child {
  max-width: 590px;
  color: #000000;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.62;
}
.contact-page-hero,
.cart-page-hero {
  background-position: center;
}
.contact-page-hero {
  background-image: linear-gradient(90deg, rgba(5,20,30,.84) 0%, rgba(15,52,70,.58) 48%, rgba(15,52,70,.14) 100%), var(--section-image, url("../img/banners/mantenimiento-piscina.jpg"));
}
.cart-page-hero {
  background-image: linear-gradient(90deg, rgba(5,20,30,.82) 0%, rgba(15,52,70,.56) 50%, rgba(15,52,70,.12) 100%), var(--section-image, url("../img/banners/Compra.jpg"));
}

.catalog-shop-layout {
  align-items: stretch;
}
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  align-self: start;
  display: flex;
  flex-direction: column;
  opacity: 1 !important;
  transform: none !important;
}
.catalog-filter-box {
  position: static;
  flex: 1 1 auto;
  min-height: 100%;
  max-height: none;
  overflow: visible;
  overscroll-behavior: contain;
}
.filter-category-panel {
  padding-bottom: 4px;
}
.catalog-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.catalog-products-panel {
  padding-right: clamp(24px, 3vw, 48px);
}

.category-list-section {
  padding-top: clamp(48px, 6vw, 86px);
}
.category-info-section {
  padding-top: 0;
}
.category-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}
.category-info-card {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid rgba(3,70,123,.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(3,70,123,.065);
}
.category-info-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(45,168,216,.10);
  color: var(--color-primary-dark);
  font-size: .78rem;
  font-weight: 900;
}
.category-info-card h3 {
  margin: 0 0 10px;
  color: var(--color-primary-dark);
  font-size: clamp(1.12rem, 1.55vw, 1.36rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.category-info-card p {
  margin: 0;
  color: rgba(3,70,123,.64);
  line-height: 1.58;
}
.category-reels-section {
  overflow: hidden;
  background: linear-gradient(135deg, #03467b, #03467b);
  color: #fff;
}
.category-reels-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.category-reels-copy .section-kicker {
  color: var(--color-accent);
  border-color: rgba(255, 255, 255, 0);
  background: rgba(255, 255, 255, 0);
}
.category-reels-copy h2 {
  max-width: 560px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.category-reels-copy p:not(.section-kicker) {
  max-width: 520px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.74);
  line-height: 1.68;
}
.reel-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.reel-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 42%, rgba(4,18,27,.68) 100%),
    radial-gradient(circle at 50% 18%, rgba(45,168,216,.32), transparent 34%),
    rgba(255,255,255,.08);
  box-shadow: 0 24px 58px rgba(4,18,27,.30);
  isolation: isolate;
}
.reel-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  z-index: -1;
}
.reel-card span {
  width: fit-content;
  margin-bottom: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  color: var(--color-accent);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.reel-card strong {
  display: block;
  color: #fff;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.05;
}
.reel-card p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.70);
  line-height: 1.45;
}

.footer-contact {
  align-items: flex-start;
}
.footer-advice-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 144px;
  min-height: 44px;
  margin-top: 8px !important;
  padding: 0 22px;
  line-height: 1;
  text-align: center;
}
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
}
.footer-socials a {
  display: grid !important;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin-top: 0 !important;
  padding: 0 !important;
  line-height: 1;
}
.footer-socials svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  fill: currentColor;
}

@media (min-width: 1440px) {
  .catalog-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .catalog-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .catalog-shop-layout { grid-template-columns: 1fr; }
  .catalog-filter-box { max-height: none; }
  .shop-sidebar { position: static; top: auto; }
  .category-info-grid,
  .category-reels-layout { grid-template-columns: 1fr; }
  .reel-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .product-list-hero,
  .page-visual-hero {
    min-height: 70svh;
    background-image: linear-gradient(180deg, rgba(4,18,27,.08) 0%, rgba(4,18,27,.34) 36%, rgba(4,18,27,.82) 100%), var(--section-mobile-image, var(--section-image));
    background-position: center;
  }
  .product-list-hero {
    background-image: linear-gradient(180deg, rgba(246,251,253,.30) 0%, rgba(246,251,253,.74) 48%, rgba(246,251,253,.94) 100%), var(--section-mobile-image, var(--section-image));
  }
  .page-visual-hero h1,
  .product-list-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }
  .category-info-grid,
  .reel-card-grid { grid-template-columns: 1fr; }
  .reel-card { min-height: 320px; }
  .catalog-filter-box {
    background: linear-gradient(180deg, rgba(5, 72, 124, .98) 0%, rgba(8, 88, 147, .98) 100%);
  }
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .page-visual-hero,
  .product-list-hero { min-height: 70svh; }
  .page-visual-hero-inner,
  .product-list-hero-inner { padding-block: 92px 54px; }
  .catalog-product-grid { grid-template-columns: 1fr; }
  .footer-contact,
  .footer-socials { align-items: flex-start; justify-content: flex-start; }
  .footer-advice-button { min-width: 150px; min-height: 42px; }
}

/* Dataset + variantes de producto */
.price-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.price-stack strong,
.product-bottom .price-stack strong {
  color: var(--color-primary-dark);
  font-size: inherit;
  letter-spacing: -.02em;
}

.usd-reference,
.detail-usd-reference,
.price-stack small {
  display: block;
  color: rgba(7, 50, 68, .58);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: 3px;
}

.detail-usd-reference {
  margin-top: -12px;
  margin-bottom: 12px;
  font-size: .88rem;
}

.product-detail-variant .buy-box select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 800;
  outline: 0;
}

.product-variant-section {
  padding-top: clamp(24px, 4vw, 58px);
}

.variant-table-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 20px 45px rgba(7, 50, 68, .08);
}

.variant-table {
  margin: 0;
}

.variant-table td {
  vertical-align: top;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 6px 6px 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(45, 168, 216, .08);
  color: var(--color-primary-dark);
  font-size: .72rem;
  font-weight: 700;
}

.cart-variant-label,
.summary-line small {
  display: block;
  margin-top: 3px;
  color: rgba(7, 50, 68, .58);
  font-size: .74rem;
  font-weight: 800;
}

.admin-help a:nth-last-child(2) {
  border-top: 1px solid var(--color-line);
}

@media (max-width: 760px) {
  .product-detail-variant .buy-box select { border-radius: 14px; font-size: .82rem; }
  .variant-table-card { border-radius: 20px; overflow: visible; }
  .catalog-products-panel { padding-right: 0; }
  .spec-chip { display: flex; width: fit-content; max-width: 100%; white-space: normal; }
}

/* CTA Section */
.cta-section {
  background: var(--section-image, #fff) center / cover no-repeat;
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--color-primary-dark);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}
.cta-inner p {
  max-width: 580px;
  margin: 0 auto calc(var(--spacing-unit) * 3);
  color: var(--color-muted);
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  line-height: 1.65;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 1.5);
  flex-wrap: wrap;
}
.cta-buttons .button-primary {
  background: #e1a140;
  color: #fff;
  white-space: nowrap;
}
.cta-buttons .button-primary:hover {
  background: #e1a140;
  color: #fff;
}
.cta-buttons .button-primary svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* About Section */
.about-section {
  background: #ffffff;
  padding: clamp(18px, 2.5vw, 36px) 0 clamp(10px, 1.5vw, 18px);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-content .section-kicker {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.2;
}
.about-text {
  color: var(--color-text);
  font-size: clamp(.82rem, .9vw, .9rem);
  line-height: 1.7;
  text-align: justify;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}
.stat-item {
  padding: clamp(8px, 1vw, 12px);
  text-align: center;
}
.stat-item:hover {
  transform: translateY(-2px);
}
.stat-icon {
  display: block;
  width: clamp(52px, 4.2vw, 68px);
  height: auto;
  margin: 0 auto 8px;
  color: var(--color-primary);
  animation: stat-float 5s ease-in-out infinite;
}
.stat-value {
  display: inline;
}

/* ===== Animated stat icons ===== */
@keyframes stat-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.pool-wave,
.wave-line {
  animation: wave-pulse 3s ease-in-out infinite;
}
.wave-b {
  animation-delay: .5s;
}
.wave-c {
  animation-delay: 1s;
}
@keyframes wave-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}
.shield-check {
  transform-box: fill-box;
  transform-origin: center;
  animation: check-pulse 2.6s ease-in-out infinite;
}
@keyframes check-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.wheel-line {
  transform-box: fill-box;
  transform-origin: center;
  animation: wheel-rotate 1.3s linear infinite;
}
@keyframes wheel-rotate {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-icon,
  .pool-wave,
  .wave-line,
  .shield-check,
  .wheel-line {
    animation: none !important;
  }
}
.stat-number {
  display: inline;
  color: var(--color-primary);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
}
.stat-plus,
.stat-percent,
.stat-hours {
  display: inline;
  color: var(--color-primary);
  font-size: clamp(.85rem, 1.1vw, 1rem);
  font-weight: 700;
}
.stat-item p {
  margin: 4px 0 0;
  color: var(--color-primary);
  font-size: clamp(.65rem, .75vw, .75rem);
  font-weight: 700;
  line-height: 1.3;
}
.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}
.product-section.home-products {
  padding-top: clamp(6px, 1vw, 14px);
}
.wave-separator {
  margin-top: -1px;
  line-height: 0;
}
.wave-separator svg {
  width: 100%;
  height: 34px;
  display: block;
}
.about-image-shape {
  width: 100%;
  max-width: 420px;
  line-height: 0;
}
.about-image-shape img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-stats {
    justify-items: center;
  }
  .about-image-shape {
    max-width: 340px;
    margin: 0 auto;
  }
}
@media (max-width: 680px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-item {
    padding: 10px;
  }
  .stat-number {
    font-size: 1.3rem;
  }
  .stat-item p {
    font-size: .6rem;
  }
}

/* ===== v25 UX fixes: mobile catalog, stable header, AJAX cart, auth-only pages ===== */

.store-home .site-header:not(.is-solid) {
  background: linear-gradient(180deg, rgba(3, 70, 123, .58) 0%, rgba(3, 70, 123, .18) 72%, transparent 100%);
}
.catalog-page .hero-section {
  padding: clamp(30px, 3.6vw, 48px) 0 clamp(14px, 1.8vw, 24px);
}
body:not(.store-home) .site-header {
  color: var(--color-text);
  background: rgba(246, 249, 251, .97);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 6px 18px rgba(3, 70, 123, .05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body:not(.store-home) .site-header .brand-logo {
  filter: none;
}
body:not(.store-home) .site-header .nav-pill-container {
  border-color: rgba(3, 70, 123, .08);
  background: rgba(255, 255, 255, .76);
}
body:not(.store-home) .site-header .nav-pill-container a,
body:not(.store-home) .site-header .nav-icon,
body:not(.store-home) .site-header .menu-button {
  color: var(--color-primary-dark);
}
body:not(.store-home) .site-header .nav-icon,
body:not(.store-home) .site-header .menu-button {
  border-color: rgba(3, 70, 123, .10);
  background: #fff;
  box-shadow: 0 8px 20px rgba(3, 70, 123, .06);
}
body:not(.store-home).transparent-header .inner-main {
  padding-top: 0;
}

.cart-page .inner-main {
  padding-top: var(--header-height);
}
.cart-page-hero.cart-gradient-hero {
  min-height: clamp(320px, 44svh, 470px);
  padding-top: 0;
  background-image: linear-gradient(125deg, #03467b 0%, #086fad 52%, #79d1ee 100%) !important;
  background-position: center;
}
.cart-page-hero.cart-gradient-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 24%, rgba(255,255,255,.20), transparent 30%),
    radial-gradient(circle at 18% 86%, rgba(255,255,255,.10), transparent 32%);
}
.cart-page-hero.cart-gradient-hero .section-kicker,
.cart-page-hero.cart-gradient-hero h1,
.cart-page-hero.cart-gradient-hero p:last-child {
  color: #fff;
}
.cart-page-hero.cart-gradient-hero p:last-child {
  max-width: 560px;
  opacity: .88;
}

.client-toast-stack {
  position: fixed;
  z-index: 3000;
  top: calc(var(--header-height) + 16px);
  right: clamp(14px, 3vw, 34px);
  width: min(92vw, 390px);
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.client-toast {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(3, 70, 123, .10);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  color: var(--color-primary-dark);
  box-shadow: 0 18px 44px rgba(3, 70, 123, .18);
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity 220ms ease, transform 220ms ease;
}
.client-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.client-toast-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f8ef;
  color: #16864b;
  font-weight: 900;
}
.client-toast-error .client-toast-icon {
  background: #fff0ee;
  color: #b73c31;
}
button.is-loading {
  cursor: wait;
  opacity: .72;
}

.footer-advice-button {
  background: #f2c230 !important;
  color: #173b57 !important;
  box-shadow: 0 10px 24px rgba(242, 194, 48, .22);
}
.footer-advice-button:hover {
  background: #ffd34e !important;
  color: #173b57 !important;
  transform: translateY(-1px);
}

.auth-only-page {
  min-height: 100svh;
  overflow: auto;
  background-image:
    linear-gradient(115deg, rgba(2, 35, 63, .80), rgba(3, 70, 123, .46)),
    var(--auth-background);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.auth-only-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 60px) 18px;
}
.auth-only-card {
  width: min(100%, 420px);
  padding: clamp(18px, 2.6vw, 24px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 80px rgba(2, 27, 48, .30);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.auth-only-logo-link {
  display: inline-flex;
  margin-bottom: 14px;
}
.auth-only-logo {
  width: auto;
  height: 38px;
}
.auth-copy .section-kicker {
  color: var(--color-primary);
}
.auth-copy h1 {
  margin: 6px 0 6px;
  color: var(--color-primary-dark);
  font-size: clamp(1.6rem, 5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.auth-copy > p:last-child {
  margin: 0 0 14px;
  color: rgba(3,70,123,.68);
  line-height: 1.5;
}
.auth-only-form {
  display: grid;
  gap: 6px;
}
.auth-only-form label {
  margin: 4px 0 0;
}
.auth-only-form input {
  min-height: 42px;
  border-radius: 12px;
  background: #fff;
}
.auth-only-form .button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border-radius: 12px;
}
.auth-code-input {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .34em;
  padding-left: calc(.34em + 16px);
}
.auth-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}
.auth-alert-error {
  color: #8b2d26;
  background: #fff0ee;
  border: 1px solid rgba(183,60,49,.16);
}
.auth-alert-success {
  color: #17653d;
  background: #eaf8f0;
  border: 1px solid rgba(22,134,75,.14);
}
.auth-inline-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}
.auth-inline-actions form {
  margin: 0;
}
.auth-text-button,
.auth-switch a,
.auth-back-link {
  color: var(--color-primary);
  font-weight: 800;
}
.auth-text-button {
  padding: 0;
  background: none;
  font-size: .88rem;
}
.auth-switch {
  margin: 12px 0 0;
  color: rgba(3,70,123,.68);
  text-align: center;
}
.auth-forgot-link {
  display: block;
  margin-top: 10px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  text-decoration: none;
}
.auth-forgot-link:hover {
  color: var(--color-primary-dark, #02528f);
  text-decoration: underline;
}
.auth-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 14px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid rgba(3,70,123,.14);
  box-shadow: 0 4px 14px rgba(3,70,123,.06);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.auth-back-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.auth-back-link:hover {
  border-color: rgba(3,70,123,.32);
  box-shadow: 0 8px 20px rgba(3,70,123,.12);
  transform: translateY(-1px);
}
.auth-back-link:focus-visible {
  outline: 3px solid rgba(45,168,216,.4);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .catalog-page .hero-section {
    height: auto !important;
    min-height: 56svh !important;
    padding: 36px 0 48px;
  }
  .catalog-page .home-hero-copy {
    width: calc(100% - 32px);
  }
  .catalog-page .home-hero-copy h1 {
    max-width: 18ch;
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }
  .catalog-page .hero-description {
    max-width: 100%;
    font-size: .95rem;
    line-height: 1.5;
  }
  .catalog-shop-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 16px 48px;
  }
  .shop-sidebar {
    position: static;
    display: block;
    width: 100%;
  }
  .catalog-filter-box {
    min-height: auto;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7fcff 0%, #e8f6fc 100%) !important;
    box-shadow: 0 12px 28px rgba(3,70,123,.08);
  }
  .catalog-filter-box .filter-category-panel {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
  }
  .catalog-filter-box label,
  .catalog-filter-box .filter-label,
  .catalog-filter-box .filter-category-link,
  .catalog-filter-box .filter-clear {
    color: var(--color-primary-dark);
  }
  .catalog-products-panel {
    width: 100%;
    padding: 24px 16px 30px;
    border-radius: 24px;
  }
  .catalog-toolbar-clean {
    margin-bottom: 18px;
  }
  .catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .catalog-product-grid .product-card {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .catalog-product-grid .product-media {
    aspect-ratio: 1 / 1;
  }
  .catalog-product-grid .product-info {
    padding: 13px;
  }
  .catalog-product-grid .product-info h3 {
    min-height: calc(1.25em * 2);
    font-size: .86rem;
  }
  .catalog-product-grid .product-info p {
    min-height: calc(1.35em * 2);
    font-size: .73rem;
    -webkit-line-clamp: 2;
  }
  .catalog-product-grid .product-bottom {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    padding-top: 12px;
  }
  .catalog-product-grid .product-bottom form {
    width: auto;
  }
  .catalog-product-grid .product-bottom button {
    width: auto !important;
    min-width: 72px;
    padding: 0 10px;
  }
  .catalog-product-grid .product-bottom strong {
    font-size: .82rem;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .client-toast-stack {
    top: calc(var(--header-height) + 10px);
    right: 12px;
    left: 12px;
    width: auto;
  }
  .catalog-page .hero-section {
    min-height: 52svh !important;
  }
  .catalog-filter-box .filter-category-panel {
    grid-template-columns: 1fr;
    max-height: 210px;
  }
  .catalog-product-grid {
    grid-template-columns: 1fr;
  }
  .catalog-product-grid .product-card {
    display: grid;
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    align-items: stretch;
  }
  .catalog-product-grid .product-media {
    height: 100%;
    min-height: 180px;
    aspect-ratio: auto;
  }
  .catalog-product-grid .product-info p {
    min-height: 1.35em;
    -webkit-line-clamp: 1;
  }
  .catalog-product-grid .product-bottom {
    flex-wrap: wrap;
  }
  .catalog-product-grid .product-bottom button {
    min-width: 68px;
  }
  .cart-page-hero.cart-gradient-hero {
    min-height: 300px;
  }
  .cart-page-hero.cart-gradient-hero .page-visual-hero-inner {
    padding-block: 54px;
  }
  .auth-only-page {
    background-image:
      linear-gradient(180deg, rgba(2, 35, 63, .74), rgba(3, 70, 123, .48)),
      var(--auth-mobile-background, var(--auth-background));
    background-attachment: scroll;
  }
  .auth-only-main {
    place-items: center;
    padding: 18px 12px;
  }
  .auth-only-card {
    padding: 24px 20px;
    border-radius: 22px;
  }
  .auth-only-logo {
    height: 42px;
  }
}

@media (max-width: 360px) {
  .catalog-product-grid .product-card {
    grid-template-columns: 1fr;
  }
  .catalog-product-grid .product-media {
    min-height: 190px;
  }
  .auth-inline-actions {
    flex-direction: column;
  }
}

/* ===== v26 unified transparent header + mobile catalog navigation ===== */
.catalog-filter-trigger,
.mobile-filter-drawer-head,
.catalog-filter-overlay {
  display: none;
}

/* Every public header starts transparent and becomes QHATAI blue on scroll. */
body.transparent-header .site-header:not(.is-solid) {
  color: #fff !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body .site-header.is-solid,
body.light-header .site-header.is-solid,
body.transparent-header .site-header.is-solid,
body.admin-body .site-header {
  color: #fff !important;
  background: rgba(3, 70, 123, .97) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow: 0 12px 32px rgba(2, 35, 63, .20) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}
body .site-header.is-solid .brand-logo,
body.admin-body .site-header .brand-logo {
  filter: drop-shadow(0 6px 16px rgba(2, 25, 45, .18)) !important;
}
body .site-header.is-solid .nav-pill-container,
body.admin-body .site-header .nav-pill-container {
  border-color: rgba(255, 255, 255, .20) !important;
  background: rgba(255, 255, 255, .10) !important;
}
body .site-header.is-solid .nav-pill-container a,
body .site-header.is-solid .nav-icon,
body .site-header.is-solid .menu-button,
body.admin-body .site-header .nav-pill-container a,
body.admin-body .site-header .nav-icon,
body.admin-body .site-header .menu-button {
  color: #fff !important;
}
body .site-header.is-solid .nav-pill-container a:hover,
body.admin-body .site-header .nav-pill-container a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
}
body .site-header.is-solid .nav-icon,
body .site-header.is-solid .menu-button,
body.admin-body .site-header .nav-icon,
body.admin-body .site-header .menu-button {
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.10) !important;
  box-shadow: none !important;
}
body .site-header.is-solid .nav-cart-icon span[data-cart-count] {
  border-color: #fff !important;
  background: #2da8d8 !important;
  color: #fff !important;
}

/* Pages without a visual hero still preserve contrast below the transparent header. */
body.transparent-header:not(.store-home):not(.catalog-page):not(.categories-page):not(.contact-page):not(.page-detail):not(.product-detail-page):not(.cart-page):not(.checkout-page):not(.account-page)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: calc(var(--header-height) + 26px);
  background: linear-gradient(180deg, #03467b 0%, #086fad 72%, rgba(8,111,173,0) 100%);
  pointer-events: none;
}
body.transparent-header:not(.store-home):not(.catalog-page):not(.categories-page):not(.contact-page):not(.page-detail):not(.product-detail-page):not(.cart-page):not(.checkout-page):not(.account-page) .inner-main {
  padding-top: calc(var(--header-height) + 28px) !important;
}

@media (max-width: 1024px) {
  body.menu-open,
  body.catalog-filter-open {
    overflow: hidden !important;
  }

  .nav-pill-layout {
    display: flex !important;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
  }
  .nav-pill-layout .nav-brand-left {
    margin-left: 0;
  }
  .nav-pill-layout .menu-button {
    justify-self: auto;
    z-index: 3;
  }
  .nav-brand-left .brand-logo {
    height: 40px;
  }

  /* Products header: filters left, logo left, cart + menu right. */
  .catalog-page .catalog-filter-trigger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    box-shadow: 0 10px 24px rgba(2,35,63,.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .catalog-page .catalog-filter-trigger svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
  }
  .catalog-page .site-header.is-solid .catalog-filter-trigger,
  .catalog-page.catalog-filter-open .catalog-filter-trigger {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.10);
    color: #fff;
  }

  /* Left catalog drawer. */
  .catalog-page .shop-sidebar {
    display: block !important;
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 1205 !important;
    width: min(88vw, 370px) !important;
    height: 100dvh !important;
    padding: 0 !important;
    overflow-y: auto !important;
    background: #f7fbfe;
    box-shadow: 24px 0 60px rgba(2,35,63,.28);
    opacity: 1 !important;
    visibility: hidden;
    transform: translateX(-105%) !important;
    transition: transform 280ms cubic-bezier(.22,.8,.24,1), visibility 280ms ease !important;
  }
  .catalog-page .shop-sidebar.is-open {
    visibility: visible;
    transform: translateX(0) !important;
  }
  .mobile-filter-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, #03467b, #086fad);
    color: #fff;
  }
  .mobile-filter-drawer-head div {
    display: grid;
    gap: 2px;
  }
  .mobile-filter-drawer-head small {
    color: rgba(255,255,255,.72);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .mobile-filter-drawer-head strong {
    font-size: 1.05rem;
  }
  .mobile-filter-drawer-head button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
  }
  .catalog-page .catalog-filter-box {
    max-height: none !important;
    min-height: calc(100dvh - 86px) !important;
    margin: 0 !important;
    padding: 22px 18px 30px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f7fbfe !important;
    box-shadow: none !important;
  }
  .catalog-page .catalog-filter-box .filter-category-panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .catalog-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 27, 48, .56);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
  }
  body.catalog-filter-open .catalog-filter-overlay {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Mobile catalog: compact two-column product cards. */
  .catalog-page .hero-section {
    min-height: 48svh !important;
    padding: calc(var(--header-height) + 30px) 0 42px !important;
  }
  .catalog-page .home-hero-copy {
    width: calc(100% - 32px) !important;
  }
  .catalog-page .home-hero-copy h1 {
    max-width: 17ch !important;
    font-size: clamp(1.85rem, 8.2vw, 2.65rem) !important;
    line-height: 1.02 !important;
  }
  .catalog-page .hero-description {
    display: -webkit-box;
    max-width: 42rem !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: .9rem !important;
  }
  .catalog-shop-layout {
    display: block !important;
    width: 100% !important;
    padding: 20px 12px 46px !important;
  }
  .catalog-products-panel {
    width: 100% !important;
    padding: 18px 10px 26px !important;
    border-radius: 22px !important;
  }
  .catalog-toolbar-clean {
    margin-bottom: 16px !important;
  }
  .catalog-toolbar-clean h2 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }
  .catalog-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .catalog-product-grid .product-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(3,70,123,.09) !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(3,70,123,.07) !important;
  }
  .catalog-product-grid .product-media {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    background-color: #f1f7fa;
  }
  .catalog-product-grid .product-media::before {
    transform: scale(.82);
  }
  .catalog-product-grid .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 11px !important;
  }
  .catalog-product-grid .product-tag {
    max-width: 100%;
    overflow: hidden;
    font-size: .60rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .catalog-product-grid .product-info h3 {
    display: -webkit-box;
    min-height: calc(1.25em * 2) !important;
    margin: 7px 0 5px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: clamp(.76rem, 3.6vw, .88rem) !important;
    line-height: 1.25 !important;
  }
  .catalog-product-grid .product-info p {
    display: none !important;
  }
  .catalog-product-grid .product-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: end !important;
    gap: 9px !important;
    margin-top: auto;
    padding-top: 9px !important;
  }
  .catalog-product-grid .price-stack {
    width: 100%;
    min-width: 0;
  }
  .catalog-product-grid .product-bottom strong {
    font-size: clamp(.82rem, 3.8vw, .96rem) !important;
    white-space: nowrap !important;
  }
  .catalog-product-grid .price-stack small {
    overflow: hidden;
    font-size: .58rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .catalog-product-grid .product-bottom form {
    width: 100% !important;
  }
  .catalog-product-grid .product-bottom button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    font-size: .72rem !important;
  }
}

@media (max-width: 520px) {
  .catalog-page .hero-section {
    min-height: 44svh !important;
  }
  .catalog-products-panel {
    padding-inline: 4px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .catalog-product-grid .product-card {
    grid-template-columns: none !important;
  }
  .catalog-product-grid .product-info {
    padding: 10px 9px !important;
  }
}

@media (max-width: 360px) {
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .catalog-product-grid .product-info {
    padding: 9px 8px !important;
  }
  .catalog-product-grid .product-bottom button {
    font-size: .68rem !important;
  }
}

/* ---------- Home benefits (inside hero) ---------- */

.home-benefits {
  margin-top: clamp(18px, 2.6vw, 34px);
  max-width: 760px;
}
.home-benefit-row {
  display: flex;
  align-items: stretch;
}
.home-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 16px;
  background: transparent;
  border: 0;
}
.home-benefit + .home-benefit {
  border-left: 1px solid rgba(255, 212, 59, .5);
}
.home-benefit svg,
.home-benefit .home-benefit-icon {
  width: 26px;
  height: 26px;
  color: #ffd43b;
  flex: 0 0 auto;
  margin-top: 2px;
}
.home-benefit-copy b {
  display: block;
  color: #fff;
  font-size: .84rem;
  line-height: 1.3;
  margin-bottom: 2px;
}
.home-benefit-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .74rem;
  line-height: 1.45;
}
@media (max-width: 767px) {
  .home-benefit-row { flex-direction: column; }
  .home-benefit { padding: 12px 4px; }
  .home-benefit + .home-benefit { border-left: 0; border-top: 1px solid rgba(255, 212, 59, .5); }
}

/* ---------- Catalog hero (productos.php): text direct on hero, left-aligned ---------- */

.catalog-page .hero-section.catalog-hero-split {
  min-block-size: min(760px, 86svh) !important;
  padding: clamp(48px, 6vw, 96px) 0 !important;
  align-items: center !important;
  overflow: hidden;
  background: linear-gradient(100deg, #dbf1fb 0%, #eaf7fd 52%, #f4fbff 100%) !important;
}
.catalog-page .catalog-hero-split::before {
  background: none !important;
}
.catalog-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(246, 251, 253, .96) 0%, rgba(246, 251, 253, .88) 18%, rgba(246, 251, 253, .46) 40%, rgba(246, 251, 253, .03) 62%, rgba(246, 251, 253, 0) 100%), var(--section-image);
  background-size: cover;
  background-position: center 42%;
}
.catalog-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-top: clamp(28px, 5vh, 64px);
  margin-left: calc(var(--side-space) / 2);
  margin-right: auto;
  width: calc(100% - var(--side-space) * 2);
  text-align: left;
}
.catalog-page .catalog-hero-copy h1 {
  max-width: none !important;
  margin: 0;
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 800;
}
.catalog-hero-subtitle {
  margin: 10px 0 0;
  color: #41a6dd;
  text-transform: uppercase;
  font-size: calc(clamp(1.9rem, 3.4vw, 3rem) - 2px);
  line-height: 1.15;
  letter-spacing: .01em;
  font-weight: 800;
}
.catalog-hero-copy .hero-description {
  max-width: 50ch;
  max-height: 3.2em;
  margin: 18px 0 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: clamp(.92rem, 1vw, 1rem);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.catalog-hero-actions .button {
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 800;
}
.catalog-hero-actions .catalog-hero-catalog {
  color: #fff;
  border: 2px solid var(--color-primary);
  background: var(--color-primary);
}
.catalog-hero-actions .catalog-hero-catalog:hover {
  color: #fff;
  border-color: #0f5f9f;
  background: #0f5f9f;
}
.catalog-hero-actions .catalog-hero-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-primary);
  border: 1px solid rgba(3, 70, 123, .25);
  background: #fff;
}
.catalog-hero-actions .catalog-hero-whatsapp:hover {
  color: #fff;
  background: var(--color-primary);
}
.catalog-hero-actions .catalog-hero-whatsapp svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: var(--color-primary);
}
.catalog-hero-actions .catalog-hero-whatsapp:hover svg {
  fill: #fff;
}

@media (max-width: 1024px) {
  .catalog-page .hero-section.catalog-hero-split {
    min-height: min(640px, 64svh) !important;
    padding: calc(var(--header-height) + 24px) 0 56px !important;
  }
  .catalog-hero-media {
    background-image: linear-gradient(90deg, rgba(246, 251, 253, .96) 0%, rgba(246, 251, 253, .82) 22%, rgba(246, 251, 253, .34) 46%, rgba(246, 251, 253, .02) 66%), var(--section-mobile-image, var(--section-image));
    background-position: center;
  }
}

@media (max-width: 820px) {
  .catalog-page .hero-section.catalog-hero-split {
    padding: 0 !important;
  }
  .catalog-hero-media {
    position: relative;
    inset: auto;
    height: clamp(230px, 36svh, 330px);
    background-image: linear-gradient(180deg, rgba(238, 248, 253, .04) 0%, rgba(238, 248, 253, .34) 60%, rgba(245, 251, 254, .98) 100%), var(--section-mobile-image, var(--section-image));
    background-position: center 38%;
  }
  .catalog-hero-copy {
    width: 100% !important;
    max-width: none;
    margin-top: 0;
    margin-inline: 0 !important;
    padding: 26px clamp(16px, 5vw, 28px) 40px;
  }
  .catalog-hero-copy .hero-description {
    max-width: 100%;
  }
}

/* ---------- Catalog products toolbar + category pills ---------- */

.catalog-toolbar-products {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  margin-bottom: 18px;
}
.catalog-toolbar-meta h2 {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.catalog-toolbar-meta .catalog-count-note {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: .9rem;
  font-weight: 600;
}
.catalog-sort-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.catalog-sort-form label {
  margin: 0;
  color: var(--color-muted);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.catalog-sort-form select {
  width: auto;
  min-width: 190px;
  min-height: 42px;
  padding: 0 38px 0 16px;
  border: 1px solid rgba(11, 79, 138, .14);
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary-dark);
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(3, 70, 123, .06);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303467b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.catalog-category-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 clamp(20px, 2.5vw, 30px);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.catalog-category-strip::-webkit-scrollbar { display: none; }
.catalog-category-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(3, 70, 123, .14);
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
  text-transform: none;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.catalog-category-pill:hover {
  border-color: rgba(3, 70, 123, .42);
  box-shadow: 0 8px 18px rgba(3, 70, 123, .10);
}
.catalog-category-pill.is-active {
  color: #fff;
  border-color: var(--color-primary);
  background: var(--color-primary);
}

@media (max-width: 640px) {
  .catalog-toolbar-products {
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-sort-form select {
    min-width: 100%;
  }
}

/* ===== Product detail page (producto.php) · clean white redesign ===== */
body.product-detail-page {
  background: #ffffff;
}
body.product-detail-page .inner-main {
  padding-top: var(--header-height);
}
body.product-detail-page .breadcrumb {
  padding-top: 14px;
  padding-bottom: 10px;
  font-size: .84rem;
}
body.product-detail-page .product-detail {
  gap: clamp(24px, 3vw, 52px);
  padding-top: 10px;
  padding-bottom: clamp(28px, 3.5vw, 44px);
  align-items: start;
}
body.product-detail-page .detail-media {
  border: 1px solid var(--color-line);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(3, 70, 123, .07);
}
body.product-detail-page .detail-copy {
  padding: 0;
}
body.product-detail-page .detail-copy h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1.12;
}
body.product-detail-page .detail-price {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}
body.product-detail-page .buy-box {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: 0 10px 24px rgba(3, 70, 123, .06);
}
body.product-detail-page .buy-box .button {
  border-radius: 12px;
  min-height: 48px;
}
body.product-detail-page .qty-control {
  background: #f3f9fd;
}
body.product-detail-page .qty-control input {
  background: transparent;
}
body.product-detail-page .section {
  padding-top: clamp(20px, 2.8vw, 36px);
  padding-bottom: clamp(28px, 3.5vw, 48px);
}
body.product-detail-page .section-head {
  margin-bottom: 16px;
}
body.product-detail-page .variant-table-card,
body.product-detail-page .data-table {
  border-radius: 16px;
}
body.product-detail-page .variant-table td,
body.product-detail-page .variant-table th {
  padding: 12px 14px;
}

/* ===== Carrito unificado (carrito.php) — checkout y pago en una sola página ===== */
.cart-checkout-hero {
  padding: clamp(24px, 3.5vw, 44px) 0 clamp(16px, 2vw, 24px);
  background: #ffffff;
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}
.cart-checkout-hero h1 {
  margin: 10px 0 6px;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  letter-spacing: -.02em;
  color: var(--color-primary-dark);
}
.cart-checkout-hero p:last-child {
  margin: 0 auto;
  max-width: 620px;
  color: var(--color-muted);
}
.checkout-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.checkout-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e3f2fb;
  color: var(--color-primary);
  font-size: .7rem;
}
.checkout-step.is-active span {
  background: var(--color-primary);
  color: #fff;
}
.checkout-step.is-active {
  color: var(--color-primary-dark);
}
@media (min-width: 1025px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  }
}
.cart-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: calc(var(--spacing-unit) * 2.25) 0 calc(var(--spacing-unit) * 1.5);
  border-bottom: 1px solid var(--color-line);
}
.cart-table-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.auth-required-note {
  text-align: center;
  padding: 8px 0;
}
.auth-required-note p {
  margin: 0 0 14px;
}
.auth-required-note .button {
  margin-top: 4px;
}
.auth-required-note .mini-button {
  margin-top: 10px;
  display: inline-flex;
}
.checkout-delivery-form {
  display: grid;
  gap: 4px;
}
.checkout-delivery-form[hidden] {
  display: none;
}
.checkout-form-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.checkout-form-head p {
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: .88rem;
}
.checkout-delivery-form label {
  margin-top: 8px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--color-primary-dark);
}
.checkout-delivery-form input,
.checkout-delivery-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--color-primary-dark);
}
.checkout-delivery-form input:focus,
.checkout-delivery-form textarea:focus {
  outline: 2px solid rgba(45, 168, 216, .35);
  border-color: #2da8d8;
}
.checkout-pay-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-line);
}
.checkout-pay-box .summary-line,
.checkout-pay-box .summary-total {
  padding: 8px 0;
}
.checkout-confirm-btn {
  margin-top: 10px;
}
.checkout-pay-box .form-help {
  margin: 10px 0 0;
}
.form-help.is-error {
  color: #b94d4d;
}

/* ===== Confirmación de pedido (confirmacion.php) ===== */
.confirmation-page .inner-main {
  padding-top: var(--header-height);
  background: #ffffff;
}
.confirmation-hero {
  padding: clamp(30px, 4vw, 54px) 0 clamp(16px, 2vw, 24px);
  text-align: center;
  background: #ffffff;
}
.confirmation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 12px 26px rgba(2, 35, 63, .14);
}
.confirmation-icon.is-success { background: #1f9d55; }
.confirmation-icon.is-pending { background: #e8963a; }
.confirmation-icon.is-cancelled { background: #c14b4b; }
.confirmation-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  color: var(--color-primary-dark);
  letter-spacing: -.02em;
}
.confirmation-hero p {
  margin: 0 auto;
  max-width: 580px;
  color: var(--color-muted);
}
.confirmation-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.confirmation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: calc(var(--spacing-unit) * 3);
  align-items: start;
  padding: 24px 0 var(--section-space);
}
.confirmation-card {
  padding: calc(var(--spacing-unit) * 2.75);
}
.confirmation-id h2 {
  margin: 2px 0 4px;
  color: var(--color-primary-dark);
  font-size: 1.5rem;
}
.delivery-sheet,
.confirmation-summary {
  margin-top: 18px;
}
.delivery-sheet h3,
.confirmation-summary h3 {
  margin: 0 0 8px;
  font-size: .92rem;
  color: var(--color-primary-dark);
}
.delivery-sheet p {
  margin: 2px 0;
  color: var(--color-muted);
  font-size: .92rem;
}
.delivery-sheet p strong {
  color: var(--color-primary-dark);
}
.order-timeline {
  list-style: none;
  margin: 12px 0 14px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.timeline-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.timeline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef2f5;
  color: #9aa7b1;
  font-size: .78rem;
  font-weight: 800;
}
.timeline-step.is-done .timeline-dot {
  background: #1f9d55;
  color: #fff;
}
.timeline-step strong {
  display: block;
  font-size: .92rem;
  color: var(--color-primary-dark);
}
.timeline-step small {
  color: var(--color-muted);
  font-size: .82rem;
}
/* ===== Progreso del pedido (confirmación) ===== */
.order-progress {
  margin-top: 18px;
}
.order-progress-title {
  margin: 6px 0 14px;
  font-size: 1rem;
  color: var(--color-primary-dark);
}
.order-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-step {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.order-step:last-child {
  padding-bottom: 0;
}
.step-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid #d8dfe5;
  background: #fff;
}
.step-dot::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 2px;
  height: calc(100% + 0px);
  transform: translateX(-50%);
  background: #e3e9ee;
}
.order-step:last-child .step-dot::before { display: none; }
.order-step b {
  display: block;
  font-size: .92rem;
  color: var(--color-primary-dark);
}
.order-step span {
  color: var(--color-muted);
  font-size: .78rem;
}
.order-step.is-done .step-dot {
  border-color: #1f9d55;
  background: #1f9d55;
}
.order-step.is-done .step-dot::after,
.order-step.is-current .step-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
}
.order-step.is-done .step-dot::after {
  background: #fff;
}
.order-step.is-current .step-dot {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(45, 168, 216, .18);
}
.order-step.is-current .step-dot::after {
  background: var(--color-accent);
}
@media (max-width: 992px) {
  .confirmation-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Mi cuenta (mi-cuenta.php) ===== */
.account-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(var(--spacing-unit) * 2.5);
  align-items: end;
  margin-top: calc(var(--spacing-unit) * 2.25);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(45, 168, 216, .55), transparent 46%),
    linear-gradient(132deg, #03467b 0%, #06598f 100%);
  box-shadow: 0 24px 54px rgba(3, 70, 123, .28);
}
.account-hero-deco {
  position: absolute;
  pointer-events: none;
}
.account-hero-deco-a { width: 300px; height: 300px; right: -70px; bottom: -110px; opacity: .9; }
.account-hero-deco-b { width: 130px; height: 130px; right: 26%; top: -40px; transform: rotate(12deg); }
.account-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2.5);
  min-width: 0;
}
.account-avatar {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
}
.account-avatar svg { width: 38px; height: 38px; color: #fff; }
.account-hero .section-kicker { color: var(--color-accent); }
.account-hero h1 {
  margin: calc(var(--spacing-unit) * 1.25) 0 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
}
.account-hero-content p:last-child {
  margin: calc(var(--spacing-unit) * 1.25) 0 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.55;
  max-width: 40rem;
}
.account-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 1.25);
  justify-content: flex-end;
}
.account-hero-actions .button-primary { background: #fff; color: var(--color-primary-dark); }
.account-hero-actions .button-primary:hover { background: var(--color-accent); color: #fff; }

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: calc(var(--spacing-unit) * 2.25);
  padding: calc(var(--spacing-unit) * 2.5) 0 calc(var(--spacing-unit) * 3.5);
}
.account-stat {
  display: flex;
  gap: calc(var(--spacing-unit) * 1.75);
  align-items: center;
  padding: calc(var(--spacing-unit) * 2.25);
  border: 1px solid rgba(45, 168, 216, .28);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}
.account-stat-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(45, 168, 216, .10);
  color: var(--color-primary);
}
.account-stat-icon svg { width: 26px; height: 26px; }
.account-stat-body { min-width: 0; }
.account-stat-value {
  display: block;
  color: var(--color-primary-dark);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}
.account-stat strong { display: block; margin-top: 6px; font-size: .95rem; }
.account-stat p { margin: 4px 0 0; color: var(--color-muted); font-size: .88rem; line-height: 1.5; }

.account-layout {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: calc(var(--spacing-unit) * 3.5);
  align-items: start;
  padding: calc(var(--spacing-unit) * 2.5) 0 var(--section-space);
  min-width: 0;
}
.account-forms {
  display: grid;
  gap: calc(var(--spacing-unit) * 2.5);
}
.account-forms .account-form {
  padding: calc(var(--spacing-unit) * 2.75);
  border-radius: 22px;
}
.account-form .button {
  width: 100%;
  min-height: 48px;
  margin-top: calc(var(--spacing-unit) * 2.25);
  border-radius: 999px;
}
.form-card-sub {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: .9rem;
  line-height: 1.55;
}
.account-form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 1.25);
  margin-top: calc(var(--spacing-unit) * 1.75);
}
.auth-text-button {
  background: transparent;
  padding: 0;
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
}
.auth-text-button:hover { color: var(--color-primary); }
.account-alert {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  padding: 13px 15px;
  border-radius: 13px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}
.account-alert.is-error {
  color: #8b2d26;
  background: #fff0ee;
  border: 1px solid rgba(183, 60, 49, .16);
}
.account-alert.is-success {
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, .22);
}

.account-orders {
  min-width: 0;
}
.account-order-list {
  display: grid;
  gap: calc(var(--spacing-unit) * 1.75);
}
.account-order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.25);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
}
.account-order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 168, 216, .22);
}
.account-order-main {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
  min-width: 0;
}
.account-order-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(45, 168, 216, .10);
  color: var(--color-primary);
}
.account-order-icon svg { width: 24px; height: 24px; }
.account-order-info { min-width: 0; }
.account-order-info h3 { margin: 0 0 3px; font-size: 1rem; line-height: 1.25; }
.account-order-info p { margin: 0 0 7px; color: var(--color-muted); font-size: .85rem; }
.account-order-info .status-pill { min-height: 26px; padding-inline: calc(var(--spacing-unit) * 1.25); font-size: .78rem; }
.account-order-total {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}
.account-order-total span { color: var(--color-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.account-order-total strong { color: var(--color-primary-dark); font-size: 1.15rem; line-height: 1; }
.account-orders .empty-state { padding: calc(var(--spacing-unit) * 3); }
.account-orders-section {
  padding: calc(var(--spacing-unit) * 2.5) 0 var(--section-space);
}
.account-order-card-wide .account-order-delivery {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 0 calc(var(--spacing-unit) * 2);
  border-left: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
}
.account-order-delivery strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: .85rem;
}
.account-order-delivery p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: .88rem;
  line-height: 1.5;
}
.account-order-delivery small {
  color: var(--color-muted);
}

body.account-page .site-header,
body.account-page .site-header.is-solid {
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 1024px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .account-hero-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .account-hero-content {
    align-items: flex-start;
  }
  .account-order-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-order-total {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: calc(var(--spacing-unit) * 1.5);
  }
  .account-order-total .mini-button {
    margin-left: auto;
  }
  .account-order-card-wide .account-order-delivery {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.25) 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
  }
}
@media (max-width: 768px) {
  .cart-table-head {
    flex-wrap: wrap;
  }
}

/* ===== MOBILE: header con degradado + menú drawer ===== */
.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .site-header,
  .site-header.is-solid,
  .store-home .site-header,
  .store-home .site-header:not(.is-solid),
  .transparent-header .site-header:not(.is-solid),
  .store-home.menu-open .site-header {
    background: linear-gradient(135deg, #0a4d8f 0%, #03467b 55%, #02305a 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-inner,
  .nav-pill-layout {
    width: 100%;
    padding: 0 16px;
  }
  .nav-brand-left { margin-left: 0; }
  .brand-logo { height: 36px; }

  .nav-pill-container { display: none; }
  .nav-icon-actions { display: none; }

  .nav-mobile-actions { display: inline-flex; }
  .nav-mobile-actions .nav-icon,
  .nav-mobile-actions .menu-button {
    width: 42px;
    height: 42px;
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .15);
    color: #fff;
    box-shadow: none;
  }
  .nav-mobile-actions .nav-cart-icon span[data-cart-count] {
    border-color: #fff;
    background: #ffb53e;
    color: #02305a;
  }
  .menu-button span,
  .menu-button span::before,
  .menu-button span::after { background: #fff; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  visibility: hidden;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity 240ms ease-out, transform 260ms ease-out, visibility 260ms;
  overflow: hidden;
}
.mobile-menu.is-open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  background: linear-gradient(135deg, #0a4d8f 0%, #03467b 55%, #02305a 100%);
}
.mobile-menu-head .brand-logo { height: 34px; }
.mobile-menu-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
}
.mobile-menu-close svg { width: 18px; height: 18px; }

.mobile-menu-groups {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px 24px;
}
.mobile-menu-groups > a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 6px;
  border-bottom: 1px solid #edf3f8;
  color: #23425c;
  font-size: 1.05rem;
  font-weight: 600;
}
.mobile-menu-groups > a:last-child { border-bottom: 0; }
.mobile-menu-groups > form > button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid #edf3f8;
  background: none;
  color: #23425c;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.mobile-menu-groups > a[href*="carrito"] {
  color: #03467b;
  font-weight: 800;
}
.mobile-menu-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffb53e;
  color: #02305a;
  font-size: .72rem;
  font-weight: 800;
}

.mobile-menu-foot {
  flex: 0 0 auto;
  padding: 16px 22px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #edf3f8;
  background: #fafcfe;
}
.mobile-menu-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: #0a4d8f;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.mobile-menu-whatsapp svg { width: 19px; height: 19px; }
.mobile-menu-foot > span {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #8aa0b4;
  font-size: .75rem;
}

@media (max-width: 420px) {
  .nav-inner,
  .nav-pill-layout { padding: 0 12px; }
}

/* ===== Mobile home simplificado (v32): solo hero + 4 indicadores + productos ===== */
@media (max-width: 767px) {
  .store-home .home-hero {
    min-block-size: auto;
    padding: calc(var(--header-height) + 20px) 0 36px;
  }
  .store-home .home-hero h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 8.5vw, 2.8rem);
  }
  .store-home .home-hero .hero-description,
  .store-home .home-hero .home-benefits {
    display: none;
  }
  .store-home .home-hero .hero-actions {
    margin-top: 20px;
    gap: 10px;
  }
  .store-home .hero-actions .button {
    min-height: 46px;
    padding-inline: 22px;
    font-size: .88rem;
  }

  .store-home .about-section {
    padding: 16px 0 8px;
  }
  .store-home .about-section .section-kicker,
  .store-home .about-section .about-text,
  .store-home .about-section .about-image {
    display: none;
  }
  .store-home .about-inner {
    display: block;
  }
  .store-home .about-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .store-home .stat-item {
    padding: 6px 2px;
  }
  .store-home .stat-icon {
    display: none;
  }
  .store-home .stat-number {
    font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  }
  .store-home .stat-plus,
  .store-home .stat-percent,
  .store-home .stat-hours {
    font-size: .62rem;
  }
  .store-home .stat-item p {
    font-size: .52rem;
    line-height: 1.25;
    font-weight: 600;
  }
}

/* ===== Mobile v33: hero con imagen + secciones banner/soporte más limpias ===== */
@media (max-width: 767px) {
  .store-home .home-hero {
    min-block-size: 78svh;
    align-items: flex-end;
    padding: calc(var(--header-height) + 24px) 0 44px;
    background-image: linear-gradient(180deg, rgba(4,18,27,.10) 0%, rgba(4,18,27,.30) 40%, rgba(4,18,27,.82) 100%), var(--section-mobile-image, var(--section-image, url("../img/mobile/banners/hero-piscina-premium.jpg")));
    background-size: cover;
    background-position: center;
  }
  .store-home .home-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.1rem, 9vw, 2.9rem);
  }

  .store-home .home-full-banner {
    width: calc(100% - 28px);
    min-height: auto;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(3, 70, 123, .16);
    background-image: linear-gradient(180deg, rgba(3,70,123,.72) 0%, rgba(3,70,123,.48) 55%, rgba(3,70,123,.72) 100%), var(--section-mobile-image, var(--section-image, url("../img/mobile/banners/equipamiento-premium.jpg")));
    background-position: center;
  }
  .store-home .home-full-banner .home-banner-inner {
    padding: 34px 24px;
    text-align: center;
  }
  .store-home .home-full-banner h2 {
    max-width: none;
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 6.5vw, 2rem);
  }
  .store-home .home-full-banner p:not(.section-kicker) {
    max-width: none;
    margin-bottom: 20px;
    font-size: .92rem;
    line-height: 1.55;
  }
  .store-home .home-full-banner .home-banner-btn {
    min-height: 48px;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .store-home .home-support-section {
    width: calc(100% - 28px);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(3, 70, 123, .16);
    background-color: #0a2a45;
    background-image: linear-gradient(180deg, rgba(4,18,27,.45) 0%, rgba(4,18,27,.88) 100%), var(--section-mobile-image, var(--section-image, url("../img/mobile/banners/mantenimiento-piscina.jpg")));
    background-size: cover;
    background-position: center;
  }
  .store-home .home-support-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 40px 36px;
  }
  .support-copy {
    text-align: center;
  }
  .support-copy h2 {
    max-width: none;
    margin: 14px auto 12px;
    font-size: clamp(1.55rem, 6.8vw, 2.05rem);
    line-height: 1.08;
  }
  .support-copy p:not(.section-kicker) {
    max-width: none;
    margin: 0 auto 22px;
    font-size: .94rem;
  }
  .support-advice-btn {
    min-height: 48px;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
  .support-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .support-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
  }
  .support-card strong {
    font-size: 1rem;
  }
  .support-card span {
    font-size: .88rem;
  }
}

/* ===== Mobile v35: CTA usa imagen mobile ===== */
@media (max-width: 767px) {
  .cta-section {
    background: var(--section-mobile-image, var(--section-image, #fff)) center / cover no-repeat;
  }
}

/* ===== Mobile v36: footer centrado ===== */
.footer-complaints {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 12px;
}
.footer-complaints img {
  width: 30px;
  height: auto;
  border-radius: 5px;
}
.footer-complaints a {
  margin-top: 0;
}
@media (max-width: 767px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }
  .site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .site-footer .footer-description {
    max-width: 420px;
    margin-inline: auto;
  }
  .site-footer h3 {
    margin-bottom: 14px;
  }
  .site-footer a {
    margin-top: 10px;
  }
  .site-footer .footer-contact {
    align-items: center;
    text-align: center;
  }
  .site-footer .footer-contact-row {
    justify-content: center;
  }
.footer-advice-button {
  margin-inline: auto;
}
.footer-complaints {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.footer-complaints img {
  width: 40px;
  height: auto;
  border-radius: 6px;
}
.footer-complaints a {
  margin-top: 0;
}
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 14px;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-bottom-links a {
    padding-left: 12px;
  }
}

/* ===== Mobile v39: catálogo (productos.php) — header, botón categorías y hero ===== */
@media (max-width: 767px) {
  /* Header: el botón de filtros alineado a la izquierda del logo. */
  .catalog-page .nav-pill-layout {
    gap: 10px;
  }
  .catalog-page .catalog-filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    order: 0;
    width: auto;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    box-shadow: 0 10px 24px rgba(2,35,63,.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .catalog-page .catalog-filter-trigger svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
  }
  .catalog-page .catalog-filter-trigger::after {
    content: "Categorías";
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  .catalog-page .site-header.is-solid .catalog-filter-trigger,
  .catalog-page.catalog-filter-open .catalog-filter-trigger {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.10);
    color: #fff;
  }

  /* Drawer de categorías: cabecera con cierre limpio y contenido más legible. */
  .catalog-page .shop-sidebar {
    width: min(92vw, 400px);
  }
  .mobile-filter-drawer-head {
    min-height: 64px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0a4d8f 0%, #03467b 55%, #02305a 100%);
  }
  .mobile-filter-drawer-head strong {
    font-size: .98rem;
  }
  .mobile-filter-drawer-head small {
    font-size: .66rem;
  }
  .mobile-filter-drawer-head button {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  .catalog-page .catalog-filter-box {
    min-height: calc(100dvh - 64px);
  }
  .catalog-page .catalog-filter-box .filter-category-link {
    min-height: 46px;
  }

  /* Hero del catálogo: imagen mobile como fondo y menos texto. */
  .catalog-page .hero-section.catalog-hero-split {
    min-height: 52svh !important;
    padding: calc(var(--header-height) + 18px) 0 30px !important;
    align-items: flex-end;
  }
  .catalog-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    background-image: linear-gradient(180deg, rgba(3,70,123,.40) 0%, rgba(3,70,123,.55) 45%, rgba(3,70,123,.92) 100%), var(--section-mobile-image, var(--section-image));
    background-position: center;
  }
  .catalog-hero-copy {
    width: calc(100% - 32px) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    text-align: left;
  }
  .catalog-page .catalog-hero-copy h1 {
    max-width: none !important;
    color: #fff !important;
    font-size: clamp(1.7rem, 7.5vw, 2.4rem) !important;
  }
  .catalog-hero-subtitle {
    color: rgba(255,255,255,.85) !important;
    font-size: 1.05rem !important;
    font-weight: 800;
    text-transform: none;
  }
  .catalog-hero-copy .hero-description {
    display: none;
  }
  .catalog-hero-actions {
    margin-top: 16px;
  }
  .catalog-hero-actions .button {
    min-height: 46px;
    padding-inline: 20px;
    font-size: .88rem;
  }
  .catalog-hero-actions .catalog-hero-catalog {
    border-color: #ffd43b;
    background: #ffd43b;
    color: var(--color-primary);
  }
  .catalog-hero-actions .catalog-hero-whatsapp {
    color: #fff;
    border-color: rgba(255,255,255,.32);
    background: rgba(255,255,255,.12);
  }
  .catalog-hero-actions .catalog-hero-whatsapp svg {
    fill: #fff;
  }
}

/* ===== Mobile v41: catálogo — toolbar, categorías y tarjetas limpias ===== */
@media (max-width: 767px) {
  .catalog-toolbar-products {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 14px;
  }
  .catalog-toolbar-meta h2 {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }
  .catalog-toolbar-meta .catalog-count-note {
    margin-top: 4px;
    font-size: .8rem;
  }
  .catalog-sort-form {
    width: 100%;
    justify-content: space-between;
  }
  .catalog-sort-form label {
    font-size: .8rem;
  }
  .catalog-sort-form select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 62%;
    min-height: 40px;
    font-size: .82rem;
  }

  /* Strip de categorías: scroll horizontal limpio con borde inferior. */
  .catalog-category-strip {
    gap: 6px;
    margin: 0 -10px 18px;
    padding: 2px 10px 10px;
    border-bottom: 1px solid #eef3f8;
  }
  .catalog-category-pill {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: .72rem;
  }

  /* Tarjetas: precio en una línea y botón Agregar más claro. */
  .catalog-product-grid {
    gap: 10px;
  }
  .catalog-product-grid .product-card {
    border-radius: 16px;
  }
  .catalog-product-grid .product-info {
    padding: 10px !important;
  }
  .catalog-product-grid .product-bottom {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding-top: 8px !important;
  }
  .catalog-product-grid .price-stack {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  .catalog-product-grid .product-bottom strong {
    font-size: clamp(.84rem, 4vw, .98rem) !important;
  }
  .catalog-product-grid .price-stack small {
    font-size: .56rem !important;
  }
  .catalog-product-grid .product-bottom button {
    min-height: 38px !important;
    font-size: .74rem !important;
    font-weight: 800;
  }
}

/* ===== Mobile v42: mi cuenta (account-page) sin degradado del header ===== */
body.account-page.light-header .site-header,
body.account-page.light-header .site-header.is-solid {
  color: #fff !important;
  background: #0a4d8f !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
}
body.account-page.light-header .site-header .nav-links a,
body.account-page.light-header .site-header .nav-icon,
body.account-page.light-header .site-header .menu-button {
  color: #fff !important;
}
body.account-page.light-header .site-header .nav-pill-container {
  border-color: rgba(255, 255, 255, .20) !important;
  background: rgba(255, 255, 255, .10) !important;
}
body.account-page .inner-main {
  padding-top: calc(var(--header-height) + var(--spacing-unit) * 2.75) !important;
}

@media (max-width: 767px) {
  body.account-page .inner-main {
    padding-top: calc(var(--header-height) + var(--spacing-unit) * 2) !important;
  }
  .account-layout {
    display: flex;
    flex-direction: column;
  }
  .account-forms {
    order: 2;
  }
  .account-orders {
    order: 1;
  }
  .account-hero {
    gap: 18px;
    margin-top: 14px;
    padding: 22px 18px;
    border-radius: 22px;
    background:
      radial-gradient(120% 90% at 88% 8%, rgba(45, 168, 216, .55), transparent 46%),
      linear-gradient(132deg, #03467b 0%, #06598f 100%);
  }
  .account-hero-content {
    gap: 16px;
    align-items: center;
  }
  .account-avatar {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
  }
  .account-avatar svg { width: 30px; height: 30px; }
  .account-hero h1 {
    margin-top: calc(var(--spacing-unit) * .5);
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }
  .account-hero-content p:last-child {
    margin-top: calc(var(--spacing-unit) * .75);
    font-size: .9rem;
  }
  .account-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .account-hero-actions .button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  .account-hero-actions .button:last-child {
    grid-column: 1 / -1;
  }

  .account-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 0 26px;
  }
  .account-stat {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 6px;
    border-radius: 16px;
  }
  .account-stat-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .account-stat-icon svg { width: 22px; height: 22px; }
  .account-stat-value { font-size: 1.1rem; }
  .account-stat strong { margin-top: 3px; font-size: .74rem; }
  .account-stat p { display: none; }

  .account-layout {
    gap: 30px;
    padding-bottom: var(--section-space);
  }
  .account-forms .account-form {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .account-form .button {
    margin-top: calc(var(--spacing-unit) * 1.75);
  }
  .account-forms .account-form input {
    min-height: 46px;
  }
  .account-form-links {
    justify-content: flex-start;
    gap: 18px;
  }

  .account-order-card {
    padding: 16px 15px;
    border-radius: 16px;
  }
  .account-order-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
  .account-order-info h3 { font-size: .95rem; }
  .account-order-total { gap: 5px; }
  .account-order-total strong { font-size: 1.05rem; }
  .account-order-total .mini-button {
    min-height: 34px;
    padding-inline: 14px;
  }
}

/* ============================================================
   LEGAL COMPLIANCE — Cookies (banner/modal), consentimiento y avisos
   ============================================================ */
.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 1200;
}
.cookie-box {
  max-width: 640px;
  margin-inline: auto;
  padding: calc(var(--spacing-unit) * 2.5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-hover);
}
.cookie-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}
.cookie-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}
.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cookie-actions .button {
  flex: 1 1 auto;
  min-height: 44px;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(3, 70, 123, 0.45);
}
.cookie-modal-box {
  inline-size: 100%;
  max-inline-size: none;
  max-height: 60vh;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 24px) clamp(16px, 5vw, 48px) calc(16px + env(safe-area-inset-bottom));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--color-surface);
  box-shadow: 0 -12px 28px rgba(3, 70, 123, 0.18);
}
.cookie-modal-box .cookie-title {
  font-size: 1rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 4px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.form-check input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--color-accent);
  inline-size: 16px;
  block-size: 16px;
}
.form-check a {
  color: var(--color-accent);
  text-decoration: underline;
}
.auth-only-form .form-check {
  margin-block: 10px;
}

.footer-complaints-note {
  margin: 8px 0 0;
  max-width: 260px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 860px;
  margin: 24px auto 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(45, 168, 216, 0.35);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  background: #f4fbff;
}
.legal-notice svg {
  flex: 0 0 22px;
  inline-size: 22px;
  block-size: 22px;
  color: var(--color-accent);
  margin-top: 2px;
}
.legal-notice p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.legal-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}
.legal-table th {
  background: rgba(3, 70, 123, 0.06);
  color: var(--color-primary);
}
.legal-table tr:last-child td {
  border-bottom: none;
}

/* ===== Libro de Reclamaciones — Diseño refinado ===== */

/* Contenedor principal del formulario */
.legal-card.legal-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  border: none;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 2px 20px rgba(3, 70, 123, .06), 0 0 0 1px rgba(3, 70, 123, .04);
}

/* Encabezado del formulario */
.legal-card .form-card-head {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}
.legal-card .form-card-head .section-kicker {
  color: var(--color-accent);
  margin-bottom: 6px;
}
.legal-card .form-card-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--color-primary-dark);
  font-weight: 800;
  letter-spacing: -.02em;
}

/* Selector de tipo — estilo píldora limpio */
.form-group-tipo {
  margin-bottom: calc(var(--spacing-unit) * 4);
}
.form-group-tipo > .form-group-label {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  color: var(--color-text);
  font-size: .88rem;
  font-weight: 700;
}
.tipo-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tipo-opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid rgba(3, 70, 123, .10);
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s ease;
  background: #fff;
}
.tipo-opcion:hover {
  border-color: rgba(45, 168, 216, .30);
  background: rgba(45, 168, 216, .02);
}
.tipo-opcion:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(3, 70, 123, .03);
  box-shadow: 0 0 0 3px rgba(3, 70, 123, .06);
}
.tipo-opcion input[type="radio"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.tipo-opcion-label strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
}
.tipo-opcion-label small {
  display: block;
  margin-top: 1px;
  color: var(--color-muted);
  font-size: .78rem;
  line-height: 1.4;
  font-weight: 500;
}

/* Fieldsets — separadores sutiles sin bordes pesados */
.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 calc(var(--spacing-unit) * 3.5);
}
.form-fieldset legend {
  display: block;
  width: 100%;
  padding: 0 0 calc(var(--spacing-unit) * 1.5);
  margin-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 1px solid rgba(3, 70, 123, .07);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Campos del formulario — más espacio, más claridad */
.form-fieldset label {
  margin-top: calc(var(--spacing-unit) * 2.25);
  margin-bottom: 6px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: .01em;
}
.form-fieldset input[type="text"],
.form-fieldset input[type="email"],
.form-fieldset input[type="tel"],
.form-fieldset input[type="number"],
.form-fieldset textarea,
.form-fieldset select {
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid rgba(3, 70, 123, .12);
  border-radius: 10px;
  background: #fafbfd;
  color: var(--color-text);
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-fieldset input:focus,
.form-fieldset textarea:focus,
.form-fieldset select:focus {
  background: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45, 168, 216, .10);
}
.form-fieldset input::placeholder,
.form-fieldset textarea::placeholder {
  color: rgba(3, 70, 123, .30);
  font-weight: 500;
}
.form-fieldset textarea {
  min-height: 110px;
  line-height: 1.65;
  resize: vertical;
}

/* Fila de dos columnas */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Input con prefijo S/ */
.input-con-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(3, 70, 123, .12);
  border-radius: 10px;
  background: #fafbfd;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.input-con-prefix:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45, 168, 216, .10);
  background: #fff;
}
.input-con-prefix input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 44px;
}
.input-prefix {
  padding: 0 12px 0 14px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--color-primary);
  white-space: nowrap;
  user-select: none;
}

/* Checkbox del representante */
.form-representante-toggle {
  margin: calc(var(--spacing-unit) * 1) 0 calc(var(--spacing-unit) * 3);
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(45, 168, 216, .04);
  border: 1px solid rgba(45, 168, 216, .10);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  min-height: auto;
  flex-shrink: 0;
}

/* Contador de caracteres */
.char-count {
  display: block;
  margin-top: 4px;
  font-size: .75rem;
  color: rgba(3, 70, 123, .35);
  text-align: right;
}

/* Términos — card sutil */
.form-terminos {
  margin: calc(var(--spacing-unit) * 3) 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(3, 70, 123, .02);
  border: 1px solid rgba(3, 70, 123, .06);
}
.form-terminos .checkbox-label {
  font-size: .82rem;
  color: rgba(3, 70, 123, .65);
  line-height: 1.6;
}

.required { color: #c53030; font-weight: 600; }

/* Botón de envío — proporcionado, no gigante */
.legal-card > .button-primary,
.legal-card > button[type="submit"] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: calc(var(--spacing-unit) * 3);
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Datos del proveedor — informativo, no intrusivo */
.proveedor-info-card {
  margin-top: calc(var(--spacing-unit) * 1);
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(3, 70, 123, .02);
  border: 1px solid rgba(3, 70, 123, .05);
}
.proveedor-info-card h3 {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.proveedor-info-card .reclamacion-resumen-tabla th {
  background: transparent;
  font-size: .82rem;
  padding: 5px 8px;
}
.proveedor-info-card .reclamacion-resumen-tabla td {
  font-size: .85rem;
  padding: 5px 8px;
  border-bottom-color: rgba(3, 70, 123, .05);
}

/* ===== Pantalla de confirmación ===== */
.reclamacion-confirmacion {
  max-width: 680px;
  margin: 0 auto;
}
.reclamacion-confirmacion-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.reclamacion-confirmacion-icono {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e7f6ec, #d4f0de);
  color: #1a7a3a;
}
.reclamacion-confirmacion-icono svg { width: 24px; height: 24px; }
.reclamacion-confirmacion-header h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  font-weight: 800;
  letter-spacing: -.02em;
}
.reclamacion-confirmacion-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: .92rem;
  line-height: 1.5;
}
.reclamacion-codigo-destacado {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .8px;
}

/* Tarjetas de resumen — limpias, sin exceso de borde */
.reclamacion-resumen {
  margin-bottom: 14px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(3, 70, 123, .06);
  background: #fff;
}
.reclamacion-resumen h3 {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.reclamacion-resumen-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.reclamacion-resumen-tabla th {
  text-align: left;
  padding: 7px 10px 7px 0;
  width: 35%;
  font-weight: 600;
  color: rgba(3, 70, 123, .55);
  vertical-align: top;
  border: none;
  background: transparent;
}
.reclamacion-resumen-tabla td {
  padding: 7px 0;
  color: var(--color-text);
  border: none;
  vertical-align: top;
}
.reclamacion-resumen-tabla tr + tr th,
.reclamacion-resumen-tabla tr + tr td {
  border-top: 1px solid rgba(3, 70, 123, .05);
}

/* Acciones de confirmación — botones proporcionados */
.reclamacion-acciones-confirmacion {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.reclamacion-acciones-confirmacion .button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
}

/* Formulario de copia */
.reclamacion-form-copia {
  max-width: 380px;
  margin-top: 16px;
  padding: 20px;
  border-radius: 14px;
}
.reclamacion-form-copia h3 {
  margin: 0 0 12px;
  font-size: .9rem;
  color: var(--color-primary-dark);
}
.reclamacion-form-copia label {
  font-size: .82rem;
}
.reclamacion-form-copia .button {
  min-height: 40px;
  font-size: .85rem;
}

/* Aviso legal al pie */
.reclamacion-aviso-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(3, 70, 123, .06);
  font-size: .78rem;
  color: rgba(3, 70, 123, .45);
  line-height: 1.65;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 620px) {
  .legal-card.legal-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .tipo-selector { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .reclamacion-confirmacion-header { flex-direction: column; gap: 12px; }
  .reclamacion-acciones-confirmacion { flex-direction: column; }
  .reclamacion-acciones-confirmacion .button { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .cookie-banner {
    inset-inline: 10px;
    bottom: 10px;
  }
  .cookie-actions .button {
    flex: 1 1 100%;
  }
}

