/* =========================================================================
   WIWU Perú · Hoja base del sitio: tokens, botones, cabecera, buscador, ficha, canasta y portada.
   Todas las páginas fuerzan el modo claro (azul y blanco), así que los tokens de .lq ya traen los colores claros.
   ========================================================================= */

/* ---------- Tokens (modo claro: azul de marca #0d1424 y #17345f sobre blanco) ---------- */
html { background: #f7faff; }

.lq {
  --bg: #f7faff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #0d1424;
  --soft: #4c5568;
  --line: rgba(13, 20, 36, .1);
  --line-strong: rgba(13, 20, 36, .3);
  /* Placa de las fotos de producto: blanco puro para que los cases conserven su color real. */
  --tile: #ffffff;
  --accent: #17345f;
  --brand-navy: #0d1424;
  --glass: rgba(247, 250, 255, .85);
  --glow-a: rgba(80, 130, 210, .2);
  --glow-b: rgba(23, 52, 95, .08);
  --glow-c: rgba(255, 255, 255, .7);
  --word: rgba(13, 20, 36, .075);
  --shadow: 0 24px 50px rgba(13, 20, 36, .14);
  --radius: 22px;
  --radius-sm: 14px;
  /* Con viewport-fit=cover el margen lateral respeta la muesca en horizontal */
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --wrap: min(1880px, 100% - 2 * var(--gutter));
  --header-h: 68px;
}

/* ---------- Base ---------- */
/* :where() deja estas reglas sin peso para que las clases de componentes siempre ganen. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 68px) + 12px); -webkit-text-size-adjust: 100%; }
body.lq {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
:where(.lq) img, :where(.lq) video { display: block; max-width: 100%; }
:where(.lq) a { color: inherit; }
:where(.lq) button, :where(.lq) input { font: inherit; color: inherit; }
:where(.lq) button { cursor: pointer; }
:where(.lq) :is(h1, h2, h3) { margin: 0; letter-spacing: -.02em; line-height: 1.05; }
:where(.lq) p { margin: 0; }
:where(.lq) :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:where(.lq) svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.lq [hidden] { display: none !important; }
.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; }
.lq-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: .6rem 1rem; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }
.lq-skip:focus { top: 12px; }

.lq-wrap { width: var(--wrap); margin-inline: auto; }
.lq-eyebrow { color: var(--soft); }

/* Botones */
.lq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem; border: 1.5px solid transparent; border-radius: 99px;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .lq-btn:hover { transform: translateY(-1px); } }
.lq-btn--solid { background: var(--text); color: var(--bg); }
.lq-btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .lq-btn--ghost:hover { border-color: var(--text); } }
.lq-btn--block { width: 100%; white-space: normal; text-align: center; }
.lq-pill {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  min-height: 40px; padding: .5rem 1.05rem; border: 1px solid var(--line-strong); border-radius: 99px;
  background: transparent; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .lq-pill:hover { border-color: var(--text); } }
.lq-close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1;
}

/* ---------- 2 · Cabecera ---------- */
.lq-header { position: sticky; top: 0; z-index: 40; background: var(--glass); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); transition: background-color .35s ease; }
.lq-header__bar { width: var(--wrap); height: var(--header-h); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.lq-logo { display: inline-flex; align-items: center; gap: .6rem; justify-self: center; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; }
.lq-logo img { width: 34px; height: 34px; border-radius: 9px; }
.lq-nav { display: flex; align-items: center; gap: .3rem; }
.lq-nav > a { padding: .55rem .9rem; border: 0; border-radius: 99px; background: transparent; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .lq-nav > a:hover { background: var(--line); } }
.lq-actions { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; }
.lq-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.lq-icon-btn[aria-expanded="true"] { background: var(--line); }
@media (hover: hover) and (pointer: fine) { .lq-icon-btn:hover { background: var(--line); } }
.lq-cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-weight: 700; font-size: .9rem; }
.lq-cart-btn strong { position: absolute; top: 1px; right: 0; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 .3rem; border: 0; border-radius: 99px; background: var(--text); color: var(--bg); font-size: .66rem; font-weight: 800; line-height: 1; }
.lq-cart-btn.is-bump strong { animation: lq-bump .45s ease; }
@keyframes lq-bump { 40% { transform: scale(1.3); } }

/* Buscador */
.lq-search { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.lq-search__inner { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 1.2rem 0 1.4rem; }
.lq-search__field { display: flex; align-items: center; gap: .7rem; padding: 0 1.1rem; border: 1.5px solid var(--line-strong); border-radius: 99px; background: var(--bg); }
.lq-search__field svg { flex: none; width: 20px; height: 20px; color: var(--soft); }
.lq-search__field input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font-size: 1rem; outline: none; }
.lq-search__results { display: grid; gap: .3rem; margin-top: .8rem; }
.lq-search__results:empty { display: none; }
.lq-result { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .45rem; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.lq-result:focus-visible { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .lq-result:hover { background: var(--surface-2); } }
.lq-result img { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--tile); object-fit: contain; }
.lq-result strong { display: block; font-size: .95rem; }
.lq-result small { color: var(--soft); font-size: .8rem; }
.lq-search__all { justify-self: start; margin-top: .4rem; }
.lq-search__none { padding: .6rem .4rem; color: var(--soft); }
.lq-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(5, 8, 15, .45); }

/* ---------- 3 · Hero ---------- */
.lq-hero {
  position: relative;
  /* La primera capa funde el borde inferior con el fondo de la sección de categorías */
  background:
    linear-gradient(to bottom, transparent 72%, var(--bg)),
    radial-gradient(50% 60% at 78% 40%, var(--glow-a), transparent 70%),
    radial-gradient(40% 45% at 12% 62%, var(--glow-b), transparent 70%),
    radial-gradient(35% 40% at 40% 10%, var(--glow-c), transparent 70%),
    var(--bg);
}
.lq-hero__word {
  position: absolute; left: 50%; bottom: .04em; transform: translateX(-50%);
  font-size: clamp(7rem, 30vw, 30rem); font-weight: 800; line-height: .8; letter-spacing: -.02em;
  color: var(--word); pointer-events: none; user-select: none; white-space: nowrap;
}
.lq-hero__inner {
  position: relative; width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 1fr auto;
  align-items: center; column-gap: 2rem;
}
.lq-hero__copy { grid-column: 1; grid-row: 1 / span 2; display: grid; align-content: center; max-width: 36rem; }
.lq-hero h1 { font-weight: 700; line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.lq-hero__lead { max-width: 30rem; color: var(--soft); }
.lq-hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.lq-hero__stage { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.lq-hero__stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--surface-2), transparent 68%); opacity: .9;
}
.lq-hero__product {
  position: absolute; inset: 6% 10%; width: 80%; height: 88%; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
  opacity: 0; transform: translateY(24px) scale(.96);
  transition: opacity .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.lq-hero__product.is-active { opacity: 1; transform: none; }

/* ---------- Diálogos ---------- */
.lq-dialog { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; }
.lq-dialog::backdrop { background: rgba(5, 8, 15, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lq-dialog[open] { animation: lq-fade .25s ease; }
@keyframes lq-fade { from { opacity: 0; } }

/* Ficha rápida */
.lq-quick { width: min(1060px, 100% - 24px); margin: auto; }

.lq-quick h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; padding-right: 2rem; }

.lq-qty { display: inline-flex; align-items: center; height: 48px; border: 1.5px solid var(--line-strong); border-radius: 99px; }
.lq-qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 1.15rem; }
.lq-qty input { width: 40px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.lq-qty input::-webkit-inner-spin-button, .lq-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lq-qty--sm { height: 36px; }
.lq-qty--sm button { width: 32px; font-size: 1rem; }
.lq-qty--sm input { width: 32px; font-size: .9rem; }

/* Canasta */
.lq-cart { height: 100%; width: min(440px, 100%); margin: 0 0 0 auto; }
.lq-cart[open] { animation: lq-slide .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes lq-slide { from { transform: translateX(40px); opacity: 0; } }
.lq-cart__panel { display: flex; flex-direction: column; height: 100%; background: var(--surface); }
.lq-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.3rem 1rem; border-bottom: 1px solid var(--line); }
.lq-cart__head h2 { margin-top: .3rem; font-size: 1.7rem; font-weight: 700; }
.lq-cart__items { flex: 1; overflow-y: auto; padding: .4rem 1.3rem; }
.lq-cart__items:empty { display: none; }
.lq-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.lq-line > img { width: 64px; height: 64px; border-radius: 12px; background: var(--tile); object-fit: contain; }
.lq-line strong { display: block; font-size: .95rem; line-height: 1.2; }
.lq-line small { color: var(--soft); font-size: .78rem; }
.lq-line__ctrl { display: grid; justify-items: end; gap: .3rem; }
.lq-line__remove { padding: 0; border: 0; background: none; color: var(--soft); font-size: .78rem; text-decoration: underline; }
@media (pointer: coarse) {
  .lq-qty--sm { height: 44px; }
  .lq-qty--sm button { width: 44px; }
  .lq-qty--sm input { width: 36px; }
  .lq-line__remove { min-height: 44px; padding: 0 .5rem; font-size: .85rem; }
}
.lq-cart__empty { flex: 1; display: grid; align-content: center; justify-items: center; gap: .6rem; padding: 2rem 1.5rem; text-align: center; }
.lq-cart__empty p { color: var(--soft); max-width: 28ch; }
.lq-cart__empty .lq-btn { margin-top: .6rem; }
.lq-cart__foot { display: grid; gap: .8rem; padding: 1.1rem 1.3rem calc(1.3rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.lq-cart__total { display: flex; justify-content: space-between; font-weight: 700; }
.lq-cart__foot small { color: var(--soft); font-size: .78rem; line-height: 1.4; }
.lq-cart__foot .lq-btn { background: #25d366; color: #07351e; }
.lq-cart__foot .lq-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* Aviso flotante */
.lq-toast { position: fixed; left: 50%; z-index: 60; max-width: calc(100% - 32px); padding: .75rem 1.2rem; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.lq-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Aparición al desplazar */
.js .lq [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .lq [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lq { --header-h: 60px; }
  
  
  
  
}

@media (max-width: 640px) {
  .lq-logo span { font-size: 1rem; }
}

@media (max-width: 360px) {
  .lq-logo span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lq *, .lq *::before, .lq *::after { animation: none !important; transition: none !important; }
  .js .lq [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   Portada a pantalla completa: cabecera + portada = una pantalla, sin mover la rueda.
   Se adapta a iPhone, iPad y Mac (vertical y horizontal) con unidades de viewport pequeño (svh).
   ========================================================================= */
.lq { --hero-h: calc(100vh - var(--header-h) - 1px); }
@supports (height: 100svh) { .lq { --hero-h: calc(100svh - var(--header-h) - 1px); } }
.lq-hero { display: grid; overflow: hidden; overflow: clip; min-height: var(--hero-h); }
.lq-hero__inner {
  box-sizing: border-box; min-height: var(--hero-h); align-self: stretch;
  padding: clamp(.8rem, 3svh, 2.6rem) 0 clamp(.8rem, 3svh, 2.4rem);
}
.lq-hero__copy { gap: clamp(.7rem, 2.4svh, 1.3rem); }
.lq-hero h1 { font-size: clamp(2.2rem, min(5.6vw, 9.2svh), 6.4rem); }
.lq-hero__lead { font-size: clamp(.95rem, min(1.3vw, 2.6svh), 1.15rem); }
.lq-hero__stage { height: auto; min-height: 0; align-self: stretch; }

/* Monitores grandes (iMac, Studio Display, Pro Display): el contenido crece con la pantalla */
@media (min-width: 1700px) {
  .lq-hero__inner { width: var(--wrap); }
  .lq-hero h1 { font-size: clamp(3rem, min(5.2vw, 9.2svh), 8rem); }
  .lq-hero__lead { font-size: clamp(1.1rem, min(1vw, 2.6svh), 1.5rem); max-width: 36rem; }
  .lq-hero__copy { max-width: 46rem; }
}

/* Celulares y tablets en vertical: se apila texto, producto y tarjeta dentro de la misma pantalla */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .lq-hero__inner { display: flex; flex-direction: column; align-items: stretch; row-gap: clamp(.6rem, 1.8svh, 1.2rem); padding-bottom: calc(clamp(1rem, 3svh, 1.8rem) + env(safe-area-inset-bottom, 0px)); }
  .lq-hero__copy { max-width: none; gap: clamp(.55rem, 1.6svh, 1rem); }
  .lq-hero h1 { font-size: clamp(2rem, min(11.5vw, 6.4svh), 4.4rem); }
  .lq-hero__lead { max-width: 34rem; }
  .lq-hero__stage { flex: 1 1 0; min-height: clamp(120px, 24svh, 560px); }
}
/* Pantallas bajas (iPhone SE, 8, mini): se oculta el texto de apoyo para que todo quepa */
@media (max-height: 740px) and (max-width: 900px), (max-height: 740px) and (max-aspect-ratio: 1/1) {
  .lq-hero__lead { display: none; }
}
/* Celular en horizontal: vuelve a dos columnas compactas */
@media (orientation: landscape) and (max-height: 560px) {
  .lq-hero__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: 1fr auto; column-gap: 1.5rem; align-items: center; padding: .6rem 0 calc(.8rem + env(safe-area-inset-bottom, 0px)); }
  .lq-hero__copy { grid-column: 1; grid-row: 1 / span 2; }
  .lq-hero__stage { grid-column: 2; grid-row: 1 / span 2; flex: none; min-height: 0; }
  .lq-hero h1 { font-size: clamp(1.5rem, min(5.6vw, 11svh), 3rem); }
  .lq-hero__lead { display: none; }
}

/* =========================================================================
   Cabecera estilo LARQ: enlaces a la izquierda, marca al centro, enlaces + íconos a la derecha.
   La canasta es solo un ícono con una pequeña burbuja con la cantidad.
   ========================================================================= */
.lq-nav--right { margin-right: .4rem; }
@media (hover: hover) and (pointer: fine) { .lq-cart-btn:hover { background: var(--line); } }
.lq-cart-btn__label { display: none; }
.lq-cart-btn svg { display: block; width: 25px; height: 25px; }
.lq-icon-btn svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .lq-nav--right { display: none; }
}

/* Logotipo WIWU (texto) en la cabecera */
.lq-logo--word img { width: auto; height: 26px; border-radius: 0; }
@media (max-width: 900px) { .lq-logo--word img { height: 22px; } }

/* Velo de fondo del buscador en escritorio: más tenue */
@media (min-width: 901px) {
  .lq-scrim { background: rgba(5, 8, 15, .12); }
}

/* =========================================================================
   Portada en celular y tablet vertical: brillo centrado detrás del producto, botones parejos
   y la tarjeta flotando sobre la base del producto en lugar de un bloque aparte.
   ========================================================================= */
@media (max-aspect-ratio: 1/1) {
  .lq-hero {
    background:
      linear-gradient(to bottom, transparent 80%, var(--bg)),
      radial-gradient(75% 38% at 50% 64%, var(--glow-a), transparent 72%),
      radial-gradient(60% 30% at 0% 0%, var(--glow-c), transparent 70%),
      var(--bg);
  }
  .lq-hero__word { display: none; }
  .lq-hero h1 { font-size: clamp(2rem, min(10.4vw, 5.6svh), 4rem); }
  .lq-hero__lead { font-size: clamp(.92rem, 3.9vw, 1.05rem); line-height: 1.5; }
  .lq-hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; max-width: 460px; }
  .lq-hero__ctas .lq-btn { min-height: 48px; padding-inline: .8rem; font-size: .92rem; }
  .lq-hero__stage::before { width: auto; height: 96%; max-width: 96%; }
  .lq-hero__product { inset: 4% 14%; width: 72%; height: 92%; }
}

/* Sin barra inferior en celular: WhatsApp pasa a la cabecera, entre el buscador y la canasta */
.lq-wa-btn svg { stroke-width: 2; }

/* =========================================================================
   Portada: 3 cases AS-203 flotando con luces alrededor.
   Las luces usan los mismos colores que la bienvenida (azul de marca #17345f y brillo #4d74b8).
   ========================================================================= */
.lq-hero__stage { container-type: size; }
/* Escena 4:3 centrada que siempre cabe completa en el escenario */
.lq-scene { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 4 / 3; transform: translate(-50%, -50%); }
@supports (width: 1cqh) { .lq-scene { width: min(100cqw, 133.3cqh); } }
.lq-scene--orbits { pointer-events: none; z-index: 0; }
.lq-scene--front { z-index: 3; }
.lq-hero__product { z-index: 1; }
.lq-hero__product.lq-hero__trio { inset: 0; width: 100%; height: 100%; filter: none; }
.lq-hero__trio .lq-scene { position: absolute; }

/* Cases flotando, cada uno a su ritmo */
.lq-trio__case {
  position: absolute; height: auto; max-width: none;
  filter: drop-shadow(0 22px 26px rgba(13, 20, 36, .26));
  transform: rotate(var(--r)); animation: lqFloat var(--fd) ease-in-out infinite alternate; animation-delay: var(--fdl);
}
.lq-trio__case--left { left: 12%; top: 17%; width: 21%; z-index: 1; --r: -21deg; --fd: 6.4s; --fdl: -1.2s; }
.lq-trio__case--right { left: 62%; top: 17%; width: 25.5%; z-index: 1; --r: 3deg; --fd: 7.2s; --fdl: -3s; }
.lq-trio__case--center { left: 35.5%; top: 0%; width: 29%; z-index: 2; --r: -4deg; --fd: 5.6s; --fdl: 0s; filter: drop-shadow(0 28px 34px rgba(60, 10, 25, .34)); }
@keyframes lqFloat {
  from { transform: translateY(-2.2%) rotate(var(--r)); }
  to { transform: translateY(2.2%) rotate(calc(var(--r) + 2deg)); }
}

/* Luces que dan vueltas alrededor de los cases (sin puntos): pasan por detrás arriba y por delante abajo.
   Mismos colores del modo claro de la bienvenida: azul de marca #17345f y brillo #4d74b8. */
.lq-lights { display: block; width: 100%; height: 100%; overflow: visible; }
.lq-ring { filter: drop-shadow(0 0 .7px #4d74b8) drop-shadow(0 0 2px rgba(77, 116, 184, .75)); }
.lq-ring__trail { fill: none; stroke: #17345f; stroke-width: .2; opacity: .2; }
.lq-ring__spark {
  fill: none; stroke: #4d74b8; stroke-width: .6; stroke-linecap: round;
  stroke-dasharray: var(--dash); stroke-dashoffset: 0;
  animation: lqRing var(--dur) linear infinite;
}
.lq-ring__spark--rev { animation-direction: reverse; }
@keyframes lqRing { to { stroke-dashoffset: -100; } }
/* Sin tarjeta: en vertical la composición crece para llenar el espacio (los cases quedan dentro de la pantalla; los anillos pueden salirse por los lados) */
@supports (width: 1cqh) {
  @media (max-aspect-ratio: 1/1) { .lq-scene { width: min(108cqw, 133.3cqh); } }
}

/* Cabecera: zona izquierda (la casita que pone audiencia.js) */
.lq-header__left { justify-self: start; display: flex; align-items: center; }
/* =========================================================================
   Accesibilidad (revisión 2026-10-26): contraste del ícono de WhatsApp, áreas táctiles de 44 px,
   puntos de avance con zona táctil amplia.
   ========================================================================= */
.lq-wa-btn { color: #1a9e4f; }
@media (hover: hover) and (pointer: fine) { .lq-wa-btn:hover { background: rgba(26, 158, 79, .12); } }

/* Bienvenida: nombres de región legibles en celular y botón de cierre de 44 px */
.wm .lq-close { width: 44px; height: 44px; }

/* =========================================================================
   Accesibilidad (auditoría 2026-10-26, segunda ronda)
   ========================================================================= */
/* Bordes de botones secundarios con contraste 3:1 */
.lq-btn--ghost { border-color: rgba(13, 20, 36, .55); }
/* Buscador: el campo se marca cuando tiene el foco */
.lq-search__field:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px rgba(77, 116, 184, .35); }
/* Zonas táctiles de 44 px en el logo y "Nosotros" */
.lq-logo, .lq-nav > a { min-height: 44px; }
.lq-nav > a { display: inline-flex; align-items: center; }

/* =========================================================================
   Categorías "Elige cómo te conectas": encabezado centrado y 4 tarjetas con foto.
   Toda la tarjeta es un enlace (abre WhatsApp con la categoría). En celular se deslizan de lado.
   ========================================================================= */
.cx { position: relative; overflow: hidden; padding: clamp(1.6rem, 4vw, 3.2rem) 0 clamp(2.4rem, 5vw, 4rem); background: var(--bg); }
.cx::before, .cx::after {
  content: ""; position: absolute; top: 0; width: min(42vw, 620px); height: 300px; pointer-events: none;
  background-image: radial-gradient(rgba(13, 20, 36, .16) 1.4px, transparent 1.8px); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent); mask-image: radial-gradient(closest-side, #000 20%, transparent);
}
.cx::before { left: -8vw; }
.cx::after { right: -8vw; }
.cx__head { position: relative; z-index: 1; display: grid; justify-items: center; margin-bottom: clamp(1rem, 2.2vw, 1.8rem); text-align: center; }
.cx__title { margin: 0; font-size: clamp(2rem, 4.2vw, 3.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.cx__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 1.1vw, 1rem); }
.cx__card {
  --pad: clamp(1rem, 1.7vw, 1.6rem);
  position: relative; display: block; overflow: hidden; aspect-ratio: 894 / 1124; border-radius: 18px; isolation: isolate;
  background: #edf2f9; color: var(--text); text-decoration: none; box-shadow: 0 10px 30px rgba(13, 20, 36, .08);
  transition: box-shadow 220ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)), transform 220ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)); -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .cx__card:hover { box-shadow: 0 18px 40px rgba(13, 20, 36, .14); transform: translateY(-3px); } }
.cx__card:active { transform: scale(.985); }
.cx__card:focus-visible { outline: 2px solid #4d74b8; outline-offset: 3px; }
.cx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)); }
@media (hover: hover) and (pointer: fine) { .cx__card:hover .cx__img { transform: scale(1.04); } }
/* Velo claro firme abajo, solo donde va el texto, para que se lea sobre la foto */
.cx__card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(244, 247, 252, .97) 0%, rgba(244, 247, 252, .9) 20%, rgba(244, 247, 252, .45) 32%, rgba(244, 247, 252, 0) 44%); }
.cx__copy { position: absolute; z-index: 2; left: var(--pad); right: calc(var(--pad) + 52px + .8rem); bottom: var(--pad); display: grid; gap: .3rem; }
.cx__name { font-size: clamp(1.25rem, 1.85vw, 1.85rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.cx__text { font-size: clamp(.9rem, 1.05vw, 1.02rem); line-height: 1.35; color: #4c5568; text-wrap: pretty; }

/* Puntitos del carrusel: solo en celular, donde las tarjetas se deslizan */
.cx__dots { display: none; }
.cx__dot { display: grid; place-items: center; width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cx__dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(13, 20, 36, .28); transition: width .25s ease, background-color .25s ease; }
.cx__dot[aria-current="true"]::before { width: 22px; background: var(--text); }
.cx__dot:focus-visible { outline: 2px solid #4d74b8; outline-offset: -6px; border-radius: 99px; }

/* Tablet: 2 x 2 */
@media (max-width: 900px) {
  .cx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Celular: tarjetas que se deslizan de lado, con la siguiente asomando */
@media (max-width: 560px) {
  .cx__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    width: 100%; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .cx__grid::-webkit-scrollbar { display: none; }
  .cx__card { flex: 0 0 80%; scroll-snap-align: start; }
  .cx__dots { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: .35rem; }
  .cx::before, .cx::after { width: 70vw; height: 220px; }
}

/* =========================================================================
   Botón "Agregar" de las tarjetas de producto (lo usa destacados.js).
   ========================================================================= */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; flex: 1; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 99px; background: var(--text); color: #fff; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; }
.sh-btn.is-done { background: #1a9e4f; }
.sh-btn:focus-visible { outline: 2px solid #4d74b8; outline-offset: 2px; }
