/* =========================================================
   HOME · macOS TAHOE STYLE
   Liquid Glass · vivid color · floating squircles
   Used only on index.html (.hpx)
   ========================================================= */

.hpx {
  --hpx-ink:        var(--c-text);
  --hpx-ink-soft:   var(--c-text-soft);
  --hpx-muted:      var(--c-text-muted);
  --hpx-bg:         var(--c-bg);
  --hpx-surface:    var(--c-surface);
  --hpx-surface-2:  var(--c-surface-2);

  --hpx-accent:     #0a84ff;       /* Tahoe system blue */
  --hpx-purple:     #b573e8;       /* tahoe purple */
  --hpx-pink:       #ff6fb5;
  --hpx-orange:     #ff9b59;
  --hpx-cyan:       #5ac8fa;
  --hpx-mint:       #4cc38a;

  --hpx-glass-light: color-mix(in srgb, #fff 72%, transparent);
  --hpx-glass-strong: color-mix(in srgb, #fff 84%, transparent);
  --hpx-glass-tint:  color-mix(in srgb, var(--hpx-purple) 12%, color-mix(in srgb, #fff 70%, transparent));
  --hpx-glass-border: rgba(255, 255, 255, 0.55);
  --hpx-inner-hi:    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --hpx-inner-lo:    inset 0 -1px 0 rgba(15, 22, 35, 0.06);

  --hpx-r-card:      26px;
  --hpx-r-tile:      22px;
  --hpx-r-pill:      999px;

  --hpx-shadow-sm: 0 4px 14px -4px rgba(15, 22, 35, 0.10);
  --hpx-shadow-md: 0 18px 40px -16px rgba(15, 22, 35, 0.18), 0 4px 14px -4px rgba(15, 22, 35, 0.06);
  --hpx-shadow-lg: 0 32px 80px -24px rgba(15, 22, 35, 0.25), 0 8px 24px -8px rgba(15, 22, 35, 0.10);
}

[data-mode="dark"] .hpx {
  --hpx-glass-light:  color-mix(in srgb, #2a2d36 70%, transparent);
  --hpx-glass-strong: color-mix(in srgb, #2a2d36 86%, transparent);
  --hpx-glass-tint:   color-mix(in srgb, var(--hpx-purple) 16%, color-mix(in srgb, #2a2d36 64%, transparent));
  --hpx-glass-border: rgba(255, 255, 255, 0.10);
  --hpx-inner-hi:    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --hpx-inner-lo:    inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  --hpx-shadow-sm: 0 6px 20px -4px rgba(0, 0, 0, 0.35);
  --hpx-shadow-md: 0 22px 50px -16px rgba(0, 0, 0, 0.50), 0 6px 18px -4px rgba(0, 0, 0, 0.30);
  --hpx-shadow-lg: 0 38px 90px -24px rgba(0, 0, 0, 0.55), 0 10px 28px -8px rgba(0, 0, 0, 0.35);
}

/* Tipografía macOS-style (system sans) */
.hpx, .hpx h1, .hpx h2, .hpx h3, .hpx h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ─────── Display y headings ─────── */
.hpx-display {
  font-size: clamp(40px, 6.6vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--hpx-ink);
  margin: 0;
}
.hpx-display em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(110deg, var(--hpx-purple), var(--hpx-pink), var(--hpx-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hpx-script {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(110deg, var(--hpx-cyan), var(--hpx-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hpx-h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--hpx-ink);
  margin: 0;
}
.hpx-h2 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--hpx-accent), var(--hpx-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hpx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hpx-muted);
  margin-bottom: 14px;
}
.hpx-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hpx-purple), var(--hpx-accent));
  box-shadow: 0 0 8px rgba(181, 115, 232, 0.6);
}

.hpx-lead {
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.6;
  color: var(--hpx-ink-soft);
  max-width: 56ch;
  margin: 18px 0 0;
}

/* ─────── Botones tahoe ─────── */
.hpx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--hpx-r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform .25s var(--ease-soft),
              box-shadow .25s var(--ease-soft);
}
.hpx-btn svg { width: 15px; height: 15px; transition: transform .25s var(--ease-soft); }
.hpx-btn:hover svg { transform: translateX(3px); }
.hpx-btn:active { transform: translateY(0) scale(0.98); }

.hpx-btn-dark {
  background: linear-gradient(180deg, #2a9bff 0%, #0a84ff 50%, #0070e0 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 8px 22px -4px rgba(10, 132, 255, 0.55),
    0 2px 6px rgba(10, 132, 255, 0.30);
}
.hpx-btn-dark:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 12px 32px -4px rgba(10, 132, 255, 0.65),
    0 4px 10px rgba(10, 132, 255, 0.40);
}

.hpx-btn-ghost {
  background: var(--hpx-glass-light);
  color: var(--hpx-ink);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    var(--hpx-inner-hi),
    var(--hpx-inner-lo),
    0 4px 12px rgba(15, 22, 35, 0.06);
  border: 1px solid var(--hpx-glass-border);
}
.hpx-btn-ghost:hover {
  transform: translateY(-1px);
  background: var(--hpx-glass-strong);
}

.hpx-link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hpx-ink);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--hpx-r-pill);
  background: var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
  transition: gap .2s, transform .2s, box-shadow .25s;
}
.hpx-link-arrow svg { width: 14px; height: 14px; }
.hpx-link-arrow:hover { gap: 12px; transform: translateY(-1px); box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md); }

/* ─────── Section heads ─────── */
.hpx-section-head { margin-bottom: 32px; max-width: 880px; }
.hpx-section-head-row {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  max-width: none;
  margin-bottom: 28px;
}

/* ═════════════════════════════════════════════════════════
   1 · HERO TAHOE — vivid, layered glass, floating tiles
   ═════════════════════════════════════════════════════════ */
.hpx-hero {
  margin-top: 16px;
  position: relative;
  padding: 16px 0 24px;
}

.hpx-hero-canvas {
  position: relative;
  border-radius: 32px;
  padding: 56px 56px 48px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 12% 18%, color-mix(in srgb, var(--hpx-cyan) 28%, transparent) 0%, transparent 60%),
    radial-gradient(55% 60% at 90% 12%, color-mix(in srgb, var(--hpx-purple) 30%, transparent) 0%, transparent 62%),
    radial-gradient(70% 70% at 80% 90%, color-mix(in srgb, var(--hpx-pink) 22%, transparent) 0%, transparent 64%),
    radial-gradient(45% 45% at 18% 88%, color-mix(in srgb, var(--hpx-orange) 22%, transparent) 0%, transparent 60%),
    color-mix(in srgb, #fff 50%, transparent);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(15, 22, 35, 0.04),
    var(--hpx-shadow-lg);
}
[data-mode="dark"] .hpx-hero-canvas {
  background:
    radial-gradient(60% 70% at 12% 18%, color-mix(in srgb, var(--hpx-cyan) 22%, transparent) 0%, transparent 60%),
    radial-gradient(55% 60% at 90% 12%, color-mix(in srgb, var(--hpx-purple) 28%, transparent) 0%, transparent 62%),
    radial-gradient(70% 70% at 80% 90%, color-mix(in srgb, var(--hpx-pink) 18%, transparent) 0%, transparent 64%),
    radial-gradient(45% 45% at 18% 88%, color-mix(in srgb, var(--hpx-orange) 18%, transparent) 0%, transparent 60%),
    rgba(28, 30, 38, 0.6);
}

.hpx-hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: var(--hpx-r-pill);
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hpx-ink);
}
.hpx-hero-meta .hpx-no { color: var(--hpx-accent); font-weight: 700; }
.hpx-hero-meta .hpx-meta-text { color: var(--hpx-muted); font-weight: 500; }
.hpx-hero-meta .hpx-divider { display: none; }

.hpx-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
  margin-bottom: 32px;
}
.hpx-hero-text { max-width: 640px; }
.hpx-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}

/* Stage de productos — flotando con glass containers */
.hpx-hero-stage {
  position: relative;
  height: 480px;
}
.hpx-stage-figure {
  position: absolute;
  margin: 0;
  padding: 8px;
  border-radius: var(--hpx-r-tile);
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow:
    var(--hpx-inner-hi),
    var(--hpx-inner-lo),
    var(--hpx-shadow-lg);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
  overflow: hidden;
}
.hpx-stage-figure img {
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  background: #f5efe6;
}
.hpx-stage-figure figcaption {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hpx-ink);
  letter-spacing: -0.005em;
}
.hpx-stage-figure figcaption span {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 3px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--hpx-purple), var(--hpx-accent));
  color: #fff;
  box-shadow: 0 2px 6px rgba(10, 132, 255, 0.35);
}
.hpx-stage-1 {
  width: 56%;
  top: 0; right: 0;
  z-index: 3;
  transform: rotate(3deg);
}
.hpx-stage-2 {
  width: 46%;
  bottom: 0; left: 0;
  z-index: 2;
  transform: rotate(-5deg);
}
.hpx-stage-3 {
  width: 36%;
  top: 18%; left: 30%;
  z-index: 1;
  transform: rotate(7deg);
  opacity: 0.95;
}
.hpx-stage-figure:hover {
  transform: rotate(0) translateY(-8px);
  z-index: 5;
}

/* ─────────────────────────────────────────────────────────
   Stack random de cartas en el hero — animación loop
   Cada carta cae con rotación y offset random sobre el centro.
   ───────────────────────────────────────────────────────── */
.fan-stage {
  position: absolute;
  inset: 0;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fan-card {
  --fan-w: 290px;
  --fan-x: 0px;
  --fan-y: 0px;
  --fan-rot: 0deg;
  --fan-scale: 1;
  position: absolute;
  width: var(--fan-w);
  margin: 0;
  padding: 12px;
  border-radius: 26px;
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow:
    var(--hpx-inner-hi),
    0 28px 52px -18px rgba(15, 22, 35, 0.45);
  transform-origin: 50% 50%;
  opacity: 0;
  animation: fan-card-drop 3.8s cubic-bezier(.34, 1.20, .55, 1) both;
}
.fan-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: #f5efe6;
}
.fan-card figcaption {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 8px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hpx-ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fan-card .fan-tag {
  flex-shrink: 0;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--hpx-purple), var(--hpx-accent));
  color: #fff;
  box-shadow: 0 2px 6px rgba(10, 132, 255, 0.35);
}

/* Entrada: cae desde arriba con leve giro y aterriza en su offset random */
@keyframes fan-card-drop {
  0% {
    transform: translate(0, -180px) rotate(calc(var(--fan-rot) * -0.4)) scale(0.85);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform:
      translate(var(--fan-x), var(--fan-y))
      rotate(var(--fan-rot))
      scale(var(--fan-scale));
    opacity: 1;
  }
}

/* Salida: todas las cartas se desplazan juntas hacia la derecha y se desvanecen.
   El animation-delay se anula (todas se mueven en sincro) y el animation-duration
   se respeta — todas tardan lo mismo. */
.fan-stage--out .fan-card {
  animation: fan-card-slide-out 2.2s cubic-bezier(.55, 0, .3, 1) forwards !important;
  animation-delay: 0s !important;
}
@keyframes fan-card-slide-out {
  0% {
    transform:
      translate(var(--fan-x), var(--fan-y))
      rotate(var(--fan-rot))
      scale(var(--fan-scale));
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform:
      translate(calc(var(--fan-x) + 780px), var(--fan-y))
      rotate(calc(var(--fan-rot) + 6deg))
      scale(var(--fan-scale));
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .fan-card { --fan-w: 220px; padding: 10px; border-radius: 22px; }
  .fan-card figcaption { font-size: 12.5px; padding: 11px 5px 3px; }
}
@media (max-width: 600px) {
  .fan-card { --fan-w: 175px; padding: 8px; border-radius: 18px; }
  .fan-card figcaption { font-size: 11.5px; padding: 9px 4px 2px; }
}

/* Strip de stats — pills glass */
.hpx-hero-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  background: var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
}
.hpx-hero-strip > div {
  padding: 14px 8px;
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  transition: background-color .25s;
}
.hpx-hero-strip > div:hover {
  background: color-mix(in srgb, #fff 50%, transparent);
}
.hpx-hero-strip strong {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hpx-ink);
  line-height: 1;
}
.hpx-hero-strip span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hpx-muted);
  margin-top: 8px;
}

/* ═════════════════════════════════════════════════════════
   2 · MANIFESTO — pillars como squircle glass tiles
   ═════════════════════════════════════════════════════════ */
.hpx-manifesto {
  margin-top: 56px;
  padding: 16px 0;
}
.hpx-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.hpx-pillar {
  padding: 28px 26px 26px;
  border-radius: var(--hpx-r-card);
  background: var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow:
    var(--hpx-inner-hi),
    var(--hpx-inner-lo),
    var(--hpx-shadow-sm);
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
  position: relative;
  overflow: hidden;
}
.hpx-pillar::before {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pillar-color, var(--hpx-accent)) 35%, transparent), transparent 65%);
  pointer-events: none;
  filter: blur(20px);
  transition: opacity .3s, transform .4s var(--ease-soft);
  opacity: 0.55;
}
.hpx-pillar:nth-child(1) { --pillar-color: var(--hpx-purple); }
.hpx-pillar:nth-child(2) { --pillar-color: var(--hpx-cyan); }
.hpx-pillar:nth-child(3) { --pillar-color: var(--hpx-mint); }
.hpx-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--hpx-inner-hi), var(--hpx-inner-lo), var(--hpx-shadow-md);
}
.hpx-pillar:hover::before { opacity: 0.85; transform: scale(1.15); }
.hpx-pillar-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pillar-color) 80%, #fff) 0%, var(--pillar-color) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 10px -2px color-mix(in srgb, var(--pillar-color) 50%, transparent);
}
.hpx-pillar h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--hpx-ink);
  line-height: 1.2;
  margin: 0 0 10px;
}
.hpx-pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hpx-ink-soft);
  margin: 0 0 14px;
}
.hpx-pillar-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pillar-color, var(--hpx-accent));
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.hpx-pillar:hover .hpx-pillar-link { gap: 8px; }

/* ═════════════════════════════════════════════════════════
   3 · FEATURE / SPOTLIGHT — glass split
   ═════════════════════════════════════════════════════════ */
.hpx-feature {
  margin-top: 56px;
  padding: 32px;
  border-radius: 32px;
  background: var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md);
}
.hpx-feature-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.hpx-feature-meta .hpx-eyebrow { margin-bottom: 0; }
.hpx-feature-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hpx-purple) 50%, transparent), transparent);
  border-radius: 2px;
}
.hpx-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.hpx-feature-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--hpx-r-card);
  overflow: hidden;
  background: linear-gradient(135deg, var(--g1, #1e3a8a), var(--g2, #0d1428));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    var(--hpx-shadow-lg);
}
.hpx-feature-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hpx-feature-mark {
  position: absolute;
  top: 18px; left: 18px;
  padding: 8px 14px;
  border-radius: var(--hpx-r-pill);
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: var(--hpx-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
}
.hpx-feature-content {
  max-width: none; width: 100%;
  display: flex; flex-direction: column;
  gap: 18px;
  height: 100%;
}
.hpx-feature-actions { margin-top: auto; }
.hpx-feature-badge {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  padding: 6px 14px;
  border-radius: var(--hpx-r-pill);
  background: linear-gradient(135deg, var(--hpx-purple), var(--hpx-accent));
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--hpx-purple) 50%, transparent);
}
.hpx-feature-cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hpx-muted);
  margin-bottom: 6px;
}
.hpx-feature-name {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--hpx-ink);
  margin: 0 0 12px;
}
.hpx-feature-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--hpx-ink-soft);
  margin: 0 0 20px;
}
/* Precio en bloque tipo card (como la página de detalle) */
.hpx-feature-price-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
}
.hpx-feature-price-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
  color: var(--hpx-muted);
}
.hpx-feature-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--hpx-ink);
  margin: 0;
}
.hpx-feature-price small {
  font-size: 13px;
  color: var(--hpx-muted);
  font-weight: 500;
  margin-left: 6px;
}
.hpx-feature-notes {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0;
}
.hpx-feature-notes .chip,
.hpx-feature-notes > * {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 11px;
  border-radius: var(--hpx-r-pill);
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hpx-glass-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--hpx-ink-soft);
  box-shadow: var(--hpx-inner-hi);
}
/* Punto de color en cada chip (ciclando la gama) */
.hpx-feature-notes .chip .chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
  background: var(--ico-1-solid);
}
.hpx-feature-notes .chip:nth-child(2) .chip-dot { background: var(--ico-5-solid); }
.hpx-feature-notes .chip:nth-child(3) .chip-dot { background: var(--ico-6-solid); }
.hpx-feature-notes .chip:nth-child(4) .chip-dot { background: var(--ico-3-solid); }
.hpx-feature-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═════════════════════════════════════════════════════════
   4 · CATEGORÍAS — squircle glass cards con tints
   ═════════════════════════════════════════════════════════ */
.hpx-cats-section {
  margin-top: 56px;
  padding: 16px 0;
}
.hpx-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hpx-cat {
  padding: 28px 24px;
  border-radius: var(--hpx-r-card);
  background: var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--hpx-ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 240px;
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.hpx-cat::before {
  content: "";
  position: absolute;
  top: -50%; right: -40%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cat-color, var(--hpx-accent)) 45%, transparent), transparent 65%);
  filter: blur(24px);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-soft);
  z-index: -1;
}
.hpx-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md);
}
.hpx-cat:hover::before { opacity: 0.95; transform: scale(1.2); }
.hpx-cat-1 { --cat-color: var(--hpx-purple); }
.hpx-cat-2 { --cat-color: var(--hpx-mint); }
.hpx-cat-3 { --cat-color: var(--hpx-pink); }
.hpx-cat-4 { --cat-color: var(--hpx-orange); }
.hpx-cat-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 80%, #fff) 0%, var(--cat-color) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 12px -2px color-mix(in srgb, var(--cat-color) 50%, transparent);
}
.hpx-cat h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--hpx-ink);
  line-height: 1.2;
  margin: 0 0 10px;
}
.hpx-cat p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hpx-ink-soft);
  margin: 0 0 auto;
}
.hpx-cat-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 18px;
  padding: 5px 11px;
  border-radius: var(--hpx-r-pill);
  background: var(--hpx-glass-strong);
  border: 1px solid var(--hpx-glass-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--cat-color, var(--hpx-accent));
  box-shadow: var(--hpx-inner-hi);
}

/* ═════════════════════════════════════════════════════════
   5 · BESTSELLERS
   ═════════════════════════════════════════════════════════ */
.hpx-bestsellers {
  margin-top: 56px;
  padding: 16px 0;
}

/* ═════════════════════════════════════════════════════════
   6 · B2B — glass canvas con badge flotante
   ═════════════════════════════════════════════════════════ */
.hpx-b2b {
  margin-top: 56px;
}
.hpx-b2b-canvas {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--hpx-purple) 22%, transparent) 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--hpx-cyan) 22%, transparent) 0%, transparent 60%),
    var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md);
}
.hpx-b2b-image {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--hpx-r-card);
  overflow: hidden;
  background: var(--hpx-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    var(--hpx-shadow-lg);
}
.hpx-b2b-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hpx-b2b-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow:
    var(--hpx-inner-hi),
    var(--hpx-shadow-lg);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
}
.hpx-b2b-badge strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--hpx-purple), var(--hpx-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.hpx-b2b-badge span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--hpx-muted);
}
.hpx-b2b-content { max-width: 540px; }
.hpx-checklist {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.hpx-checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  box-shadow: none;
  font-size: 14px;
  color: var(--hpx-ink);
}
.hpx-checklist .ck {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2a9bff 0%, #0a84ff 60%, #0070e0 100%);
  display: grid; place-items: center;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 6px rgba(10, 132, 255, 0.40);
}
.hpx-checklist .ck::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}
.hpx-checklist strong { font-weight: 700; }

/* ═════════════════════════════════════════════════════════
   7 · QUOTE — glass card con gradient mark
   ═════════════════════════════════════════════════════════ */
.hpx-quote {
  margin-top: 56px;
  padding: 56px 32px;
  border-radius: 32px;
  background:
    radial-gradient(70% 80% at 50% 0%, color-mix(in srgb, var(--hpx-purple) 14%, transparent) 0%, transparent 65%),
    var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md);
  text-align: center;
  position: relative;
}
.hpx-quote-mark {
  font-size: 130px;
  line-height: 0.5;
  display: inline-block;
  background: linear-gradient(135deg, var(--hpx-purple), var(--hpx-accent), var(--hpx-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  height: 50px;
  user-select: none;
  font-weight: 700;
}
.hpx-quote-text {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--hpx-ink);
  max-width: 800px;
  margin: 16px auto 28px;
  padding: 0;
  border: 0;
}
.hpx-quote-text em {
  font-style: normal;
  background: linear-gradient(110deg, var(--hpx-purple), var(--hpx-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hpx-quote-cite {
  display: flex; flex-direction: column;
  font-style: normal;
  font-size: 12.5px;
  color: var(--hpx-muted);
  letter-spacing: 0.04em;
}
.hpx-quote-cite strong {
  display: block;
  color: var(--hpx-ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

/* ═════════════════════════════════════════════════════════
   8 · APLICACIONES — glass tiles con icono colored
   ═════════════════════════════════════════════════════════ */
.hpx-apps-section {
  margin-top: 56px;
  padding: 16px 0;
}
.hpx-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.hpx-app {
  padding: 22px 18px;
  border-radius: 20px;
  background: var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
  text-align: center;
  text-decoration: none;
  color: var(--hpx-ink);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  transition: transform .2s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.hpx-app:hover {
  transform: translateY(-3px);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md);
}
.hpx-app .icon {
  width: 40px; height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hpx-purple) 90%, #fff) 0%, var(--hpx-accent) 100%);
  color: #fff;
  margin-bottom: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 10px -2px color-mix(in srgb, var(--hpx-accent) 40%, transparent);
}
.hpx-app:nth-child(2n) .icon { background: linear-gradient(180deg, color-mix(in srgb, var(--hpx-cyan) 90%, #fff), var(--hpx-cyan)); }
.hpx-app:nth-child(3n) .icon { background: linear-gradient(180deg, color-mix(in srgb, var(--hpx-pink) 90%, #fff), var(--hpx-pink)); }
.hpx-app:nth-child(4n) .icon { background: linear-gradient(180deg, color-mix(in srgb, var(--hpx-orange) 90%, #fff), var(--hpx-orange)); }
.hpx-app:nth-child(5n) .icon { background: linear-gradient(180deg, color-mix(in srgb, var(--hpx-mint) 90%, #fff), var(--hpx-mint)); }
.hpx-app .label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hpx-ink);
}
.hpx-app small {
  font-size: 11px;
  color: var(--hpx-muted);
  letter-spacing: 0.02em;
}

/* ═════════════════════════════════════════════════════════
   9 · DIARIO — glass cards layered
   ═════════════════════════════════════════════════════════ */
.hpx-journal {
  margin-top: 56px;
  padding: 16px 0;
}
.hpx-journal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.hpx-journal-feature {
  text-decoration: none;
  color: var(--hpx-ink);
  display: flex; flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background: var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.hpx-journal-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md);
}
.hpx-journal-feature .cover {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.hpx-journal-pill {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 11px;
  background: linear-gradient(135deg, #635bff 0%, #8a7bff 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -6px rgba(99,91,255,.7);
}
.hpx-journal-pill--inline {
  position: static;
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 9.5px;
  box-shadow: none;
}
.hpx-journal-feature .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.hpx-journal-feature:hover .cover img { transform: scale(1.04); }
.hpx-journal-feature .body {
  padding: 24px 28px 26px;
}
.hpx-journal-feature .meta,
.hpx-journal-mini .meta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  padding: 4px 10px;
  border-radius: var(--hpx-r-pill);
  background: var(--hpx-glass-strong);
  border: 1px solid var(--hpx-glass-border);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hpx-ink-soft);
  margin-bottom: 12px;
  box-shadow: var(--hpx-inner-hi);
}
.hpx-journal-feature h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0 0 10px;
}
.hpx-journal-feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hpx-ink-soft);
  margin: 0 0 14px;
}
.hpx-journal-feature .more,
.hpx-journal-mini .more {
  display: inline-flex; align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hpx-accent);
}

.hpx-journal-list {
  display: flex; flex-direction: column;
  gap: 12px;
}
.hpx-journal-mini {
  display: flex; flex-direction: row; align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--hpx-glass-light);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-sm);
  text-decoration: none;
  color: var(--hpx-ink);
  transition: transform .2s, box-shadow .25s;
  flex: 1;
}
.hpx-journal-mini .mini-thumb {
  width: 128px; height: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--hpx-glass-strong);
}
.hpx-journal-mini .mini-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hpx-journal-mini .mini-body {
  display: flex; flex-direction: column;
  gap: 7px; flex: 1; min-width: 0;
}
.hpx-journal-mini--all {
  flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 8px;
}
.hpx-journal-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md);
}
.hpx-journal-mini h4 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.014em;
  margin: 0;
}
.hpx-journal-mini--all {
  background: linear-gradient(135deg, var(--hpx-purple), var(--hpx-accent));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 12px 32px -8px color-mix(in srgb, var(--hpx-purple) 50%, transparent);
}
.hpx-journal-mini--all .meta {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.hpx-journal-mini--all h4,
.hpx-journal-mini--all .more { color: #fff; }

/* ═════════════════════════════════════════════════════════
   10 · CIERRE DUAL — glass panels con gradient
   ═════════════════════════════════════════════════════════ */
.hpx-final {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hpx-final-panel {
  padding: 36px 36px 32px;
  border-radius: 28px;
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  border: 1px solid var(--hpx-glass-border);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-md);
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.hpx-final-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--hpx-inner-hi), var(--hpx-shadow-lg);
}
.hpx-final-b2b {
  background:
    radial-gradient(80% 100% at 100% 100%, color-mix(in srgb, var(--hpx-cyan) 50%, transparent) 0%, transparent 60%),
    radial-gradient(80% 100% at 0% 0%, color-mix(in srgb, var(--hpx-purple) 60%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, #1f1f2e, #14141d);
  color: #fff;
}
.hpx-final-b2b h3,
.hpx-final-b2b p { color: #fff !important; }
.hpx-final-b2b p { opacity: 0.85; }
.hpx-final-b2b .hpx-final-no { color: rgba(255, 255, 255, 0.85); }

/* Versión light del panel B2B */
[data-mode="light"] .hpx-final-b2b,
html:not([data-mode="dark"]) .hpx-final-b2b {
  background:
    radial-gradient(80% 100% at 100% 100%, color-mix(in srgb, var(--hpx-cyan) 28%, transparent) 0%, transparent 60%),
    radial-gradient(80% 100% at 0% 0%, color-mix(in srgb, var(--hpx-purple) 32%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, #f5f6fa, #e9ecf3);
  color: var(--hpx-ink);
  border-color: rgba(15, 22, 35, 0.08);
}
[data-mode="light"] .hpx-final-b2b h3,
html:not([data-mode="dark"]) .hpx-final-b2b h3,
[data-mode="light"] .hpx-final-b2b p,
html:not([data-mode="dark"]) .hpx-final-b2b p { color: var(--hpx-ink) !important; }
[data-mode="light"] .hpx-final-b2b p,
html:not([data-mode="dark"]) .hpx-final-b2b p { opacity: 0.75; }
[data-mode="light"] .hpx-final-b2b .hpx-final-no,
html:not([data-mode="dark"]) .hpx-final-b2b .hpx-final-no {
  background: rgba(15, 22, 35, 0.06);
  color: var(--hpx-ink);
  border: 1px solid rgba(15, 22, 35, 0.08);
}
[data-mode="light"] .hpx-final-b2b .hpx-final-cta,
html:not([data-mode="dark"]) .hpx-final-b2b .hpx-final-cta {
  background: rgba(15, 22, 35, 0.85);
  color: #fff;
  border-color: rgba(15, 22, 35, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
[data-mode="light"] .hpx-final-b2b .hpx-final-cta:hover,
html:not([data-mode="dark"]) .hpx-final-b2b .hpx-final-cta:hover {
  background: rgba(15, 22, 35, 0.95);
}
.hpx-final-retail {
  background:
    radial-gradient(80% 100% at 0% 100%, color-mix(in srgb, var(--hpx-orange) 45%, transparent) 0%, transparent 60%),
    radial-gradient(80% 100% at 100% 0%, color-mix(in srgb, var(--hpx-pink) 40%, transparent) 0%, transparent 60%),
    var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  color: var(--hpx-ink);
}
.hpx-final-no {
  display: inline-flex;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--hpx-r-pill);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  align-self: flex-start;
  margin-bottom: auto;
}
.hpx-final-retail .hpx-final-no {
  background: var(--hpx-glass-strong);
  border: 1px solid var(--hpx-glass-border);
  color: var(--hpx-ink);
}
.hpx-final-panel h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 22px 0 10px;
}
.hpx-final-panel p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0 0 22px;
  max-width: 38ch;
}
.hpx-final-cta {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 11px 20px;
  border-radius: var(--hpx-r-pill);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: gap .2s, background-color .2s;
  border: 1px solid;
}
.hpx-final-panel:hover .hpx-final-cta { gap: 12px; }
.hpx-final-cta svg { width: 14px; height: 14px; }
.hpx-final-b2b .hpx-final-cta {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.hpx-final-retail .hpx-final-cta {
  background: linear-gradient(180deg, #2a9bff 0%, #0a84ff 60%, #0070e0 100%);
  color: #fff;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 12px rgba(10, 132, 255, 0.35);
}

/* ═════════════════════════════════════════════════════════
   NEWSLETTER override
   ═════════════════════════════════════════════════════════ */
.hpx-newsletter {
  margin-top: 56px !important;
  border-radius: 32px;
}
.hpx-newsletter h2 {
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.025em;
}

/* ═════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hpx-hero-canvas { padding: 36px 28px 32px; border-radius: 28px; }
  .hpx-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hpx-hero-stage { height: 360px; max-width: 540px; margin: 0 auto; width: 100%; }
  .hpx-feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .hpx-b2b-canvas { grid-template-columns: 1fr; gap: 40px; padding: 32px; }
  .hpx-b2b-image { max-width: 480px; margin: 0 auto; }
  .hpx-pillars { grid-template-columns: 1fr; }
  .hpx-cats { grid-template-columns: repeat(2, 1fr); }
  .hpx-apps { grid-template-columns: repeat(3, 1fr); }
  .hpx-journal-grid { grid-template-columns: 1fr; }
  .hpx-final { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hpx-hero-canvas { padding: 28px 20px 26px; border-radius: 24px; }
  .hpx-hero-stage { height: 300px; }
  .hpx-hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hpx-hero-strip > div:nth-child(5) { grid-column: 1 / -1; }
  .hpx-cats { grid-template-columns: 1fr; }
  .hpx-apps { grid-template-columns: repeat(2, 1fr); }
  .hpx-feature { padding: 22px; border-radius: 26px; }
  .hpx-quote { padding: 40px 24px; }
  .hpx-quote-mark { font-size: 90px; height: 38px; }
  .hpx-final-panel { padding: 28px 24px; min-height: 220px; }
}

/* ═════════════════════════════════════════════════════════
   HERO V2 · Bento editorial
   Layout: [badge pill] / [copy | bento 3×3] / [stats strip]
   ═════════════════════════════════════════════════════════ */

/* Section outer — aura de color como fondo, sin caja */
.hpx-hero-v2 {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 0;
  padding: 8px 0 0;
  position: relative;
  isolation: isolate;
}

/* Gradiente de fondo (aura Tahoe) sin borde visible */
.hpx-hero-v2::before {
  content: "";
  position: absolute;
  inset: -120px -80px 0;
  background:
    radial-gradient(58% 55% at 90% 15%, color-mix(in srgb, var(--hpx-purple) 28%, transparent) 0%, transparent 65%),
    radial-gradient(48% 52% at 10% 75%, color-mix(in srgb, var(--hpx-cyan)   22%, transparent) 0%, transparent 62%),
    radial-gradient(42% 48% at 65% 92%, color-mix(in srgb, var(--hpx-pink)   18%, transparent) 0%, transparent 60%),
    radial-gradient(36% 40% at 22% 10%, color-mix(in srgb, var(--hpx-orange) 16%, transparent) 0%, transparent 58%);
  pointer-events: none;
  z-index: -1;
}

/* 2-col grid: texto | bento */
.hpx-v2-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}

/* ── Bento grid ──────────────────────────────────────────
   3 col × 3 rows:
   [  Card 1 (col 1, rows 1-3)  ] [ Card 2 ] [ Card 3 ]
   [                             ] [ Card 4 ] [ Card 5 ]
   [                             ] [ Card 6 (cols 2-3)  ]
   ────────────────────────────────────────────────────── */
.hpx-bento {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 9px;
  height: 500px;
  position: relative;
}

/* Aura detrás de la grilla */
.hpx-bento::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(70% 80% at 30% 50%, color-mix(in srgb, var(--hpx-purple) 18%, transparent) 0%, transparent 65%),
    radial-gradient(60% 65% at 80% 20%, color-mix(in srgb, var(--hpx-cyan)   16%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  border-radius: 32px;
}

/* Grid placement */
.hpx-bento-card--main  { grid-column: 1; grid-row: 1 / 4; }
.hpx-bento-card--wide  { grid-column: 2 / 4; grid-row: 3; }

/* ── Cada card ── */
.hpx-bento-card {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hpx-glass-border);
  box-shadow:
    var(--hpx-inner-hi),
    var(--hpx-inner-lo),
    var(--hpx-shadow-sm);
  display: flex;
  flex-direction: column;
  margin: 0;
  transition: transform .3s var(--ease-soft, cubic-bezier(.22,1,.26,1)),
              box-shadow .3s var(--ease-soft, cubic-bezier(.22,1,.26,1));
}
.hpx-bento-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--hpx-inner-hi), var(--hpx-inner-lo), var(--hpx-shadow-md);
  z-index: 3;
}
.hpx-bento-card img {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

/* Figcaption — frosted glass bar al fondo */
.hpx-bento-card figcaption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 9px;
  background: var(--hpx-glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--hpx-glass-border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hpx-ink);
  letter-spacing: -0.005em;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Card principal: figcaption más generosa */
.hpx-bento-card--main figcaption {
  padding: 12px 14px 13px;
  font-size: 13px;
}
/* Badge de número */
.hpx-bento-card figcaption span {
  display: inline-block;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 3px 7px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--hpx-purple), var(--hpx-accent));
  color: #fff;
  box-shadow: 0 2px 5px color-mix(in srgb, var(--hpx-accent) 40%, transparent);
}

/* Card wide (6): imagen cubre solo 42% del ancho, resto es caption */
.hpx-bento-card--wide {
  flex-direction: row;
}
.hpx-bento-card--wide img {
  width: 42%;
  max-width: 42%;
  flex: none;
  border-radius: 0;
}
.hpx-bento-card--wide figcaption {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  border-top: none;
  border-left: 1px solid var(--hpx-glass-border);
  padding: 14px 16px;
  font-size: 13px;
  white-space: normal;
}
.hpx-bento-card--wide figcaption span {
  font-size: 9.5px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hpx-v2-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hpx-bento {
    height: 420px;
  }
}
@media (max-width: 720px) {
  .hpx-bento {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    height: 340px;
  }
  .hpx-bento-card--main  { grid-column: 1; grid-row: 1 / 4; }
  .hpx-bento-card:nth-child(4),
  .hpx-bento-card:nth-child(5) { display: none; }
  .hpx-bento-card--wide  { grid-column: 2; grid-row: 3; flex-direction: column; }
  .hpx-bento-card--wide img { width: 100%; max-width: 100%; flex: 1; }
  .hpx-bento-card--wide figcaption {
    border-left: none;
    border-top: 1px solid var(--hpx-glass-border);
    flex-direction: row;
  }
  .hpx-v2-inner { gap: 20px; }
  .hpx-hero-v2 { gap: 18px; }
}
