/* ==========================================================================
   Toqmi — Realismo Visual y Materiales Físicos (capa aditiva)
   Stack 100% estático · Sin dependencias externas · Solo Plus Jakarta Sans + IBM Plex
   Compatible con --mx, --my, --sheen-op y .is-scrolled (toqmi-motion)
   Regla de blindaje: todo pseudo-elemento y capa decorativa lleva pointer-events: none
   ========================================================================== */

:root {
  /* Variables dinámicas de luz especular (fallback limpio en reposo) */
  --mx: 50%;
  --my: 24%;
  --sheen-op: 0;

  /* Tokens arquitectónicos Toqmi */
  --tq-indigo: #1E1B4B;
  --tq-indigo-deep: #121033;
  --tq-indigo-mid: #2A266A;
  --tq-indigo-soft: #E9EBF7;
  --tq-cyan: #22D3EE;
  --tq-cyan-ink: #0E7490;
  --tq-ink: #191642;
  --tq-muted: #4A4D6D;
  --tq-border: rgba(30, 27, 75, 0.11);
  --tq-border-strong: rgba(30, 27, 75, 0.22);

  /* Sombras multicapa físicamente calibradas */
  --tq-shadow-sm:
    0 1px 2px rgba(18, 16, 51, 0.05),
    0 4px 12px -4px rgba(18, 16, 51, 0.09);
  --tq-shadow-md:
    0 1px 2px rgba(18, 16, 51, 0.06),
    0 10px 24px -10px rgba(18, 16, 51, 0.13),
    0 22px 46px -24px rgba(18, 16, 51, 0.18);
  --tq-shadow-lg:
    0 2px 4px rgba(18, 16, 51, 0.08),
    0 18px 36px -14px rgba(18, 16, 51, 0.22),
    0 38px 76px -30px rgba(18, 16, 51, 0.30);
  --tq-shadow-device:
    0 2px 6px rgba(9, 11, 24, 0.24),
    0 20px 38px -12px rgba(14, 16, 38, 0.36),
    0 52px 96px -28px rgba(14, 16, 38, 0.54);
  --tq-shadow-card-phys:
    0 1px 2px rgba(15, 17, 36, 0.16),
    0 12px 26px -8px rgba(15, 17, 36, 0.26),
    0 28px 50px -20px rgba(15, 17, 36, 0.22);

  /* Curva de transición calibrada */
  --tq-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Prevención estricta de desbordamiento horizontal preservando position: sticky */
html,
body {
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

.lp {
  overflow-x: clip;
  --muted: var(--tq-muted);
  --line: #DCDFF0;
  --soft: #E5E8F5;
  background:
    radial-gradient(65% 42% at 86% 0%, rgba(34, 211, 238, 0.09), transparent 62%),
    radial-gradient(60% 38% at 14% 4%, rgba(30, 27, 75, 0.07), transparent 60%),
    var(--bg);
}

/* ==========================================================================
   1. JERARQUÍA TIPOGRÁFICA (Plus Jakarta Sans + IBM Plex + tabular-nums)
   ========================================================================== */

.lp h1,
.lp h2,
.lp h3,
.hub-c h3,
.lp-logo,
#designer .step > h2,
#pdesigner .pbody > h2,
.ctop .brand h2 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.lp h1 {
  letter-spacing: -0.032em;
  line-height: 1.02;
}

.lp h2 {
  letter-spacing: -0.024em;
  line-height: 1.09;
}

.lp h3,
.hub-c h3 {
  letter-spacing: -0.016em;
}

.lp-lead,
.lp-sl,
.lp-faq p,
.step > .intro,
.pbody .intro {
  max-width: 65ch;
}

/* Cifras, precios y contadores con alineación tabular nítida */
.lp-price,
.hub-pr b,
.lp-tramos li b,
.lp-cifra,
.plan-price,
.send-price b,
.pz-q output,
.kpi b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Datos técnicos, códigos de pedido, RUT y estados en IBM Plex Mono */
.mono,
.count,
.cpill,
.specs b,
.pv-stats span,
.done-box .pedido,
.lp-ft .legal span:first-child {
  font-variant-numeric: tabular-nums;
}

.done-box .pedido {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0.04em;
  border: 1px solid rgba(29, 122, 75, 0.22);
}

/* ==========================================================================
   2. HEADER Y SEPARACIÓN AL HACER SCROLL (.lp-h / .is-scrolled)
   ========================================================================== */

.lp-h {
  background: color-mix(in srgb, var(--bg) 78%, rgba(255, 255, 255, 0.45));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(30, 27, 75, 0.07);
  box-shadow: none;
  transition:
    background-color 220ms var(--tq-ease),
    border-color 220ms var(--tq-ease),
    box-shadow 220ms var(--tq-ease);
}

.lp-h.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border-bottom-color: rgba(30, 27, 75, 0.14);
}

.lp-logo {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.028em;
}

/* Sello de marca esmaltado índigo con bisel físico */
.lp-logo i.tq,
.brand-mark.toqmi {
  background: linear-gradient(148deg, #2D2973 0%, #1E1B4B 56%, #121033 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 1px rgba(0, 0, 0, 0.42),
    0 4px 12px -4px rgba(18, 16, 51, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.20);
}

.lp-prod a,
.lp-nav a {
  transition: color 160ms ease, background-color 160ms ease;
}

.lp-prod a.on {
  color: var(--tq-indigo);
  box-shadow: inset 0 -2.5px 0 var(--tq-indigo);
}

/* Botón «Mi pedido» — blindado, nítido y táctil */
.lp-mp {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(30, 27, 75, 0.18);
  color: var(--tq-indigo);
  box-shadow: 0 1px 2px rgba(18, 16, 51, 0.05);
  transition:
    transform 180ms var(--tq-ease),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms var(--tq-ease);
}

.lp-mp:hover {
  background: #FFFFFF;
  border-color: var(--tq-indigo);
  box-shadow: var(--tq-shadow-sm);
  transform: translateY(-1px);
}

.lp-menu-p {
  border-color: var(--tq-border);
  box-shadow: var(--tq-shadow-lg);
}

/* ==========================================================================
   3. HERO Y ESCENARIO DE PRODUCTO
   ========================================================================== */

.lp-hero {
  position: relative;
  background:
    radial-gradient(54% 68% at 84% 20%, rgba(34, 211, 238, 0.14), transparent 66%),
    radial-gradient(52% 66% at 80% 34%, rgba(30, 27, 75, 0.13), transparent 72%);
}

.lp-eye {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 27, 75, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px -4px rgba(18, 16, 51, 0.12);
}

.lp-tag {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 27, 75, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--tq-shadow-sm);
}

.lp-bul svg {
  color: var(--tq-cyan-ink);
}

/* ==========================================================================
   4. BISEL METÁLICO REALISTA EN SMARTPHONE (.lp-phone y .phone)
   ========================================================================== */

.lp-phone,
.phone {
  position: relative;
  background:
    linear-gradient(
      148deg,
      #343946 0%,
      #161922 24%,
      #0B0D13 55%,
      #1A1E29 84%,
      #313644 100%
    );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.30),
    inset 0 -1px 1.5px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(10, 12, 22, 0.85),
    var(--tq-shadow-device);
  isolation: isolate;
}

/* Brillo especular metálico en el bisel compatible con --mx / --my */
.lp-phone::before,
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    circle 260px at var(--mx, 50%) var(--my, 20%),
    rgba(255, 255, 255, 0.34),
    rgba(34, 211, 238, 0.14) 32%,
    transparent 65%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}

/* Reflejo suave de cristal periférico sobre el chasis sin opacar el iframe */
.lp-phone .scr,
.phone .scr {
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(0, 0, 0, 0.75);
}

.phone .notch {
  background: linear-gradient(180deg, #07080C 0%, #12151E 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Detalle óptico de lente frontal en el notch */
.phone .notch::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3B82F6 0%, #172554 45%, #060812 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* ==========================================================================
   5. MOSAICO Y TARJETAS DE PRODUCTO EN PORTADA (.hub-mosaic, .hub-c, .hub-card)
   ========================================================================== */

.hub-mosaic a {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.08) 100%),
    var(--ps);
  border: 1px solid rgba(30, 27, 75, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    var(--tq-shadow-sm);
  transition:
    transform 220ms var(--tq-ease),
    box-shadow 220ms var(--tq-ease),
    border-color 220ms ease;
}

.hub-mosaic a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 200px at var(--mx, 50%) var(--my, 20%),
    rgba(255, 255, 255, 0.42),
    transparent 68%
  );
  opacity: 0.65;
  pointer-events: none;
}

.hub-mosaic a:hover {
  border-color: rgba(30, 27, 75, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--tq-shadow-md);
}

.hub-mosaic a:not(.tq-tilt):hover {
  transform: translateY(-3px);
}

.hub-c,
.hub-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFF 100%);
  border: 1px solid var(--tq-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--tq-shadow-md);
  transition:
    transform 240ms var(--tq-ease),
    box-shadow 240ms var(--tq-ease),
    border-color 220ms ease;
}

.hub-c::before,
.hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 340px at var(--mx, 50%) var(--my, 18%),
    rgba(34, 211, 238, 0.08),
    transparent 62%
  );
  opacity: calc(0.35 + var(--sheen-op, 0) * 0.65);
  pointer-events: none;
  z-index: 2;
}

.hub-c:hover,
.hub-card:hover {
  border-color: rgba(30, 27, 75, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    var(--tq-shadow-lg);
}

.hub-c:not(.tq-tilt):hover,
.hub-card:not(.tq-tilt):hover {
  transform: translateY(-4px);
}

.hub-art {
  position: relative;
  background: linear-gradient(145deg, #17153C 0%, #24205B 100%);
  border-bottom: 1px solid rgba(30, 27, 75, 0.08);
}

/* Proporción 4:3 exacta cuando la tarjeta muestra fotografía real */
.hub-art:has(img) {
  aspect-ratio: 4 / 3;
}

.hub-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 22%, transparent 78%, rgba(18, 16, 51, 0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 1;
}

.hub-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 420ms var(--tq-ease);
}

.hub-c:hover .hub-art img,
.hub-card:hover .hub-art img {
  transform: scale(1.035);
}

.hub-k {
  color: var(--tq-cyan-ink);
}

.hub-pr b {
  color: var(--tq-indigo);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   6. MATERIALES FÍSICOS: COMPARACIÓN (.lp-vs), PLANES (.lp-plan) Y FINAL CTA
   ========================================================================== */

.lp-vs > div {
  position: relative;
  overflow: hidden;
}

.lp-vs .old {
  background: linear-gradient(180deg, #F4F5FB 0%, #ECEEF7 100%);
  border: 1px solid rgba(30, 27, 75, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Tarjeta destacada: acabado PVC satinado + metal anodizado índigo profundo */
.lp-vs .new {
  background:
    repeating-linear-gradient(
      128deg,
      rgba(255, 255, 255, 0.016) 0px,
      rgba(255, 255, 255, 0.016) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(145deg, #2B266D 0%, #1E1B4B 52%, #131135 100%);
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    var(--tq-shadow-lg);
}

.lp-vs .new::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 360px at var(--mx, 78%) var(--my, 18%),
    rgba(34, 211, 238, 0.18),
    rgba(255, 255, 255, 0.07) 35%,
    transparent 68%
  );
  pointer-events: none;
}

.lp-vs .new li svg {
  color: var(--tq-cyan);
  opacity: 1;
}

/* Tarjetas de planes (.lp-plan) */
.lp-plan {
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  border: 1px solid var(--tq-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--tq-shadow-md);
  transition:
    transform 220ms var(--tq-ease),
    box-shadow 220ms var(--tq-ease),
    border-color 200ms ease;
}

.lp-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 320px at var(--mx, 50%) var(--my, 16%),
    rgba(30, 27, 75, 0.055),
    transparent 62%
  );
  pointer-events: none;
}

.lp-plan.hi {
  border: 2px solid var(--tq-indigo);
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F6FC 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 4px rgba(30, 27, 75, 0.06),
    var(--tq-shadow-lg);
}

.lp-plan.hi::before {
  background: radial-gradient(
    circle 340px at var(--mx, 75%) var(--my, 14%),
    rgba(34, 211, 238, 0.12),
    rgba(30, 27, 75, 0.04) 40%,
    transparent 68%
  );
  pointer-events: none;
}

.lp-rib {
  background: linear-gradient(135deg, #2B266D 0%, #1E1B4B 100%);
  border: 1px solid rgba(34, 211, 238, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px -8px rgba(18, 16, 51, 0.65);
}

.lp-plan li svg {
  color: var(--tq-cyan-ink);
}

/* Tarjetas de segmentos, confianza, testimonios y empresas */
.lp-seg,
.lp-trust div,
.lp-ts figure,
.lp-emp .box,
.lp-tramos {
  border-color: var(--tq-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    var(--tq-shadow-sm);
}

.lp-inc i,
.lp-steps li::before {
  background: linear-gradient(148deg, #2D2973 0%, #1E1B4B 62%, #131135 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 6px 14px -6px rgba(18, 16, 51, 0.45);
  pointer-events: none;
}

.lp-faq summary::after {
  pointer-events: none;
}

/* Cierre CTA final — acabado arquitectónico oscuro con halo cian sutil */
.lp-final {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(142deg, #282468 0%, #1E1B4B 52%, #110F30 100%);
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    var(--tq-shadow-lg);
}

.lp-final::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(62% 90% at 50% 0%, rgba(34, 211, 238, 0.16), transparent 65%),
    radial-gradient(45% 70% at 88% 100%, rgba(34, 211, 238, 0.10), transparent 65%);
  pointer-events: none;
}

.lp-final > * {
  position: relative;
  z-index: 1;
}

.lp-final .lb.p {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F4FC 100%);
  color: var(--tq-indigo);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 12px 28px -12px rgba(0, 0, 0, 0.55);
}

.lp-final .lb.p:hover {
  background: #FFFFFF;
  filter: none;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 16px 32px -12px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   7. GALERÍA DE FOTOS REALES (.lp-gal)
   ========================================================================== */

.lp-gal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* Si una página de producto muestra 1 foto destacada, la enmarca en proporción editorial limpia */
.lp-gal:has(> :only-child) {
  grid-template-columns: minmax(0, 760px);
}

.lp-gal figure {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--tq-indigo-deep);
  border: 1px solid var(--tq-border);
  box-shadow: var(--tq-shadow-md);
}

.lp-gal figure::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 2;
}

.lp-gal img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
  background: #17153C;
  border: 1px solid var(--tq-border);
  box-shadow: var(--tq-shadow-md);
  transition:
    transform 320ms var(--tq-ease),
    box-shadow 320ms var(--tq-ease);
}

.lp-gal figure img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lp-gal img:hover {
  transform: translateY(-3px);
  box-shadow: var(--tq-shadow-lg);
}

.lp-gal figure:hover img {
  transform: scale(1.025);
  box-shadow: none;
}

/* ==========================================================================
   8. BOTONES TÁCTILES (.lb y .btn)
   ========================================================================== */

.lb {
  transition:
    transform 180ms var(--tq-ease),
    box-shadow 180ms var(--tq-ease),
    background-color 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.lb.p {
  position: relative;
  background: linear-gradient(155deg, #292568 0%, #1E1B4B 58%, #15133A 100%);
  border-color: rgba(34, 211, 238, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 4px rgba(18, 16, 51, 0.16),
    0 14px 28px -14px rgba(18, 16, 51, 0.72);
}

.lb.p:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 8px rgba(18, 16, 51, 0.18),
    0 18px 34px -14px rgba(18, 16, 51, 0.78);
}

.lb.p:active {
  transform: translateY(0) scale(0.985);
}

.lb.s {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FD 100%);
  border-color: rgba(30, 27, 75, 0.18);
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 1px 3px rgba(18, 16, 51, 0.06);
}

.lb.s:hover {
  background: #FFFFFF;
  border-color: var(--tq-indigo);
  transform: translateY(-1px);
  box-shadow: var(--tq-shadow-sm);
}

.lb.s:active {
  transform: translateY(0) scale(0.985);
}

.btn {
  transition:
    transform 160ms var(--tq-ease),
    box-shadow 160ms var(--tq-ease),
    border-color 160ms ease,
    background-color 160ms ease,
    filter 160ms ease;
}

.btn.primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 6px 16px -8px rgba(15, 45, 55, 0.55);
}

.btn.primary:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 22px -10px rgba(15, 45, 55, 0.65);
}

.btn:active:not([disabled]) {
  transform: scale(0.985);
}

/* ==========================================================================
   9. ACABADOS FÍSICOS EN EL DISEÑADOR (.phys, .phys-card, .preview-frame, .card-box)
   ========================================================================== */

#designer .panel,
#pdesigner .panel {
  box-shadow: var(--tq-shadow-md);
  border-color: color-mix(in srgb, var(--line) 88%, var(--ink) 12%);
}

#designer .card-box,
#pdesigner .card-box,
.card-box {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 8px -4px rgba(18, 16, 51, 0.08);
}

/* Bandeja arquitectónica de vista previa física (Frente / Reverso en Canvas) */
.phys {
  gap: 18px;
}

.phys figure,
.preview-frame {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(85% 75% at 50% 18%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(158deg, var(--panel-2) 0%, color-mix(in srgb, var(--panel-2) 78%, var(--line)) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    var(--tq-shadow-sm);
  overflow: hidden;
}

/* Reflejo especular de PVC mate / metal cepillado sobre la vista previa física */
.phys figure::before,
.preview-frame::before,
.phys-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(
      circle 240px at var(--mx, 35%) var(--my, 22%),
      rgba(255, 255, 255, 0.32),
      rgba(34, 211, 238, 0.06) 36%,
      transparent 66%
    );
  opacity: calc(0.55 + var(--sheen-op, 0) * 0.45);
  pointer-events: none;
  z-index: 2;
}

/* Relieve tipo grabado láser sutil en bordes de tarjeta física */
.phys canvas,
.phys-card {
  position: relative;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(18, 16, 51, 0.14),
    var(--tq-shadow-card-phys);
  transition:
    transform 240ms var(--tq-ease),
    box-shadow 240ms var(--tq-ease);
}

.phys figure:hover canvas {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(18, 16, 51, 0.18),
    0 2px 4px rgba(15, 17, 36, 0.18),
    0 18px 34px -10px rgba(15, 17, 36, 0.30),
    0 34px 58px -22px rgba(15, 17, 36, 0.24);
}

.phys figcaption {
  position: relative;
  z-index: 3;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
}

/* Clases utilitarias de acabados físicos (PVC mate, brillo satinado, metal cepillado) */
.tq-mat-pvc-matte {
  position: relative;
  background: linear-gradient(148deg, #25225C 0%, #18163E 58%, #100E2B 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px rgba(0, 0, 0, 0.48),
    var(--tq-shadow-card-phys);
}

.tq-mat-pvc-matte::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 260px at var(--mx, 50%) var(--my, 24%),
    rgba(255, 255, 255, 0.14),
    transparent 62%
  );
  pointer-events: none;
}

.tq-mat-metal-brushed {
  position: relative;
  background:
    repeating-linear-gradient(
      92deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      rgba(0, 0, 0, 0.03) 1px,
      rgba(0, 0, 0, 0.03) 2.5px
    ),
    linear-gradient(135deg, #D5D9E4 0%, #A9B0C4 46%, #E4E7F0 72%, #949CB2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 1px rgba(18, 16, 51, 0.35),
    var(--tq-shadow-card-phys);
}

.tq-mat-metal-brushed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    transparent 20%,
    rgba(255, 255, 255, 0.42) 48%,
    transparent 70%
  );
  pointer-events: none;
}

/* Tarjetas interactivas del configurador (planes, temas, layouts, fuentes, piezas) */
.plan,
.theme,
.layout,
.fontpair,
.pz-row {
  transition:
    transform 180ms var(--tq-ease),
    border-color 180ms ease,
    box-shadow 180ms var(--tq-ease),
    background-color 180ms ease;
}

.plan li::before {
  pointer-events: none;
}

.plan:hover,
.theme:hover,
.layout:hover,
.fontpair:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: var(--tq-shadow-sm);
}

.send-box {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: var(--tq-shadow-sm);
}

.sheet {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Ajuste limpio para modo oscuro en el Diseñador */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phys figure,
  :root:not([data-theme="light"]) .preview-frame {
    background:
      radial-gradient(85% 75% at 50% 18%, rgba(109, 185, 200, 0.08), transparent 70%),
      linear-gradient(158deg, #161B23 0%, #10141A 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow);
  }
  :root:not([data-theme="light"]) .card-box {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

:root[data-theme="dark"] .phys figure,
:root[data-theme="dark"] .preview-frame {
  background:
    radial-gradient(85% 75% at 50% 18%, rgba(109, 185, 200, 0.08), transparent 70%),
    linear-gradient(158deg, #161B23 0%, #10141A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow);
}

:root[data-theme="dark"] .card-box {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   10. COMPARADOR DE PRECIOS (.tq-compare), FOOTER SOCIAL (.lp-soc) Y CONFIANZA (.tq-trust-bar)
   ========================================================================== */

#lp-planes,
.tq-compare {
  scroll-margin-top: 84px;
}

.tq-cmp-wrap {
  margin-top: 32px;
  background: var(--card, #FFFFFF);
  border: 1px solid var(--tq-border);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    var(--tq-shadow-md);
  overflow: hidden;
}

/* Variante tabla semántica */
.tq-compare table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tq-compare thead th {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--tq-muted);
  letter-spacing: 0.01em;
  padding: 14px 20px;
  background: #F4F5FB;
  border-bottom: 1px solid var(--tq-border);
}

.tq-compare tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--tq-border);
  vertical-align: middle;
  font-size: 15px;
  color: var(--tq-ink);
}

.tq-compare tbody tr:last-child td {
  border-bottom: 0;
}

.tq-compare tbody tr {
  transition: background-color 160ms ease;
}

.tq-compare tbody tr:hover {
  background: rgba(233, 235, 247, 0.38);
}

/* Variante grilla / filas comparativas (.tq-cmp-grid / .tq-cmp-row) */
.tq-cmp-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.4fr) minmax(0, 0.95fr) auto;
  gap: 16px;
  align-items: center;
  padding: 13px 22px;
  background: #F4F5FB;
  border-bottom: 1px solid var(--tq-border);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--tq-muted);
}

.tq-cmp-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.tq-cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.4fr) minmax(0, 0.95fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--tq-border);
  transition: background-color 160ms ease;
}

.tq-cmp-row:last-child {
  border-bottom: 0;
}

.tq-cmp-row:hover {
  background: rgba(233, 235, 247, 0.38);
}

.tq-cmp-name,
.tq-cmp-prod b {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--tq-indigo);
  line-height: 1.25;
}

.tq-cmp-price {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tq-indigo);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1.25;
}

.tq-cmp-price small,
.tq-cmp-sub {
  display: block;
  font-family: 'IBM Plex Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--tq-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.tq-cmp-inc,
.tq-cmp-for {
  font-size: 14.5px;
  color: var(--tq-muted);
  line-height: 1.45;
}

.tq-compare .lb.sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

/* Íconos sociales del footer perfectamente centrados (anula padding inline de .lp-ft a) */
.lp-soc {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.lp-ft .lp-soc a,
.lp-soc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  line-height: 0;
  border-radius: 12px;
  border: 1px solid var(--tq-border);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FD 100%);
  color: var(--tq-indigo);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 1px 3px rgba(18, 16, 51, 0.06);
  transition:
    transform 180ms var(--tq-ease),
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms var(--tq-ease);
}

.lp-ft .lp-soc a svg,
.lp-soc a svg {
  width: 19px;
  height: 19px;
  display: block;
  flex: none;
}

.lp-ft .lp-soc a:hover,
.lp-soc a:hover {
  border-color: var(--tq-indigo);
  background: var(--tq-indigo);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--tq-shadow-sm);
}

/* Franja corporativa de confianza en el footer (.tq-trust-bar) */
.tq-trust-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #F5F6FC 0%, #ECEEF8 100%);
  border: 1px solid var(--tq-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--tq-ink);
  font-family: 'IBM Plex Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tq-trust-bar b,
.tq-trust-bar strong {
  color: var(--tq-indigo);
  font-weight: 700;
}

.tq-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tq-trust-bar svg {
  width: 15px;
  height: 15px;
  color: var(--tq-cyan-ink);
  flex: none;
}

/* ==========================================================================
   11. PÁGINAS LEGALES Y 404 (alcance seguro fuera de .lp y #designer)
   ========================================================================== */

body:not(:has(.lp)):not(:has(#designer)) article {
  box-shadow: var(--tq-shadow-md);
  border-color: var(--tq-border);
}

body:not(:has(.lp)):not(:has(#designer)) .tq-trust-bar {
  margin-top: 24px;
  background: #FFFFFF;
  box-shadow: var(--tq-shadow-sm);
}

body:not(:has(.lp)):not(:has(#designer)) nav a {
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--tq-ease);
}

body:not(:has(.lp)):not(:has(#designer)) nav a:hover {
  border-color: var(--tq-indigo);
  background: #FFFFFF;
  transform: translateY(-1px);
}

body:not(:has(.lp)):not(:has(#designer)) nav a[aria-current="page"] {
  background: var(--tq-indigo);
  border-color: var(--tq-indigo);
  color: #FFFFFF;
}

/* ==========================================================================
   12. RESPONSIVIDAD MÓVIL (≤ 820px / 390px) Y PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (max-width: 820px) {
  .tq-cmp-head {
    display: none;
  }

  .tq-cmp-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
  }

  .tq-compare thead {
    display: none;
  }

  .tq-compare tbody,
  .tq-cmp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tq-compare tbody tr,
  .tq-cmp-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--tq-border);
    border-radius: 18px;
    background: var(--card, #FFFFFF);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      var(--tq-shadow-sm);
  }

  .tq-compare tbody tr:last-child td,
  .tq-compare tbody td {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    border: 0;
  }

  .tq-compare tbody td[data-label]::before {
    content: attr(data-label);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--tq-muted);
    letter-spacing: 0.02em;
    pointer-events: none;
  }

  .tq-compare .lb,
  .tq-cmp-row .lb {
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  .hub-hero {
    padding-bottom: 48px;
  }

  .hub-ctas {
    gap: 10px;
  }

  .lp-wa {
    width: 50px;
    height: 50px;
    right: 14px;
    box-shadow:
      0 10px 24px -8px rgba(18, 16, 51, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .lp-ft .lp-soc a,
  .lp-soc a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .tq-trust-bar {
    padding: 12px 14px;
    font-size: 12.5px;
    gap: 4px 10px;
  }

  .lp-gal {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .phys figure,
  .preview-frame {
    padding: 12px;
  }

  .lp-phone,
  .phone {
    max-width: 100%;
  }

  .lp-final {
    padding: 40px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-h,
  .lp-mp,
  .hub-mosaic a,
  .hub-c,
  .hub-card,
  .hub-art img,
  .lp-plan,
  .lp-gal img,
  .lb,
  .btn,
  .phys canvas,
  .plan,
  .theme,
  .layout,
  .fontpair,
  .pz-row,
  .lp-ft .lp-soc a,
  .lp-soc a,
  .tq-compare tbody tr,
  .tq-cmp-row {
    transition: none !important;
  }

  .hub-c:hover,
  .hub-card:hover,
  .hub-mosaic a:hover,
  .lp-gal img:hover,
  .lp-mp:hover,
  .lb:hover,
  .btn:hover,
  .phys figure:hover canvas,
  .lp-ft .lp-soc a:hover,
  .lp-soc a:hover {
    transform: none !important;
  }
}
