/* ===== Design tokens ===== */
:root {
  --bg: #05060a;
  --bg-elevated: #090b12;
  --bg-space: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(76, 120, 255, 0.16), transparent),
              radial-gradient(ellipse 60% 40% at 85% 15%, rgba(255, 255, 255, 0.05), transparent);
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-bg-hover: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-hover: rgba(140, 175, 255, 0.4);

  --text: #f5f6f9;
  --text-secondary: #9aa1b4;
  /* Lightened from #5c6272 (3.3:1 on --bg, fails WCAG AA) to 4.86:1 —
     same muted blue-grey hue, just legible for footer/eyebrow/marquee text. */
  --text-dim: #747c92;

  --accent: #7fb1ff;
  --accent-strong: #a7c8ff;
  --accent-dim: rgba(127, 177, 255, 0.14);
  --accent-glow: rgba(127, 177, 255, 0.55);

  --font: 'Inter', -apple-system, 'SF Pro Display', 'Plus Jakarta Sans', BlinkMacSystemFont, sans-serif;
  --container: 1160px;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Stops Chrome/Android from auto-inflating font sizes inside narrow columns
   (hits the file-explorer's small monospace text hardest) — every size on
   this site is already intentional, so disable the browser's guesswork */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ===== Page entrance: black screen -> logo pulse -> reveals the hero ===== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: intro-overlay-out 3.1s var(--ease) forwards;
}

.intro-overlay img {
  width: 168px;
  height: 168px;
  animation: logo-boot-pulse 1.3s var(--ease) 0.25s both;
}

.intro-wordmark {
  font-family: var(--font);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0;
  animation: intro-wordmark-in 0.7s var(--ease) 0.55s forwards;
}

@keyframes intro-overlay-out {
  0%, 68% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes logo-boot-pulse {
  0% { filter: drop-shadow(0 0 0 rgba(167, 200, 255, 0)); transform: scale(0.75); opacity: 0.25; }
  55% { filter: drop-shadow(0 0 22px var(--accent-glow)); transform: scale(1.18); opacity: 1; }
  100% { filter: drop-shadow(0 0 6px var(--accent-glow)); transform: scale(1); opacity: 1; }
}

@keyframes intro-wordmark-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-space);
  pointer-events: none;
  z-index: 0;
  animation: bg-breathe 26s var(--ease) infinite;
}

@keyframes bg-breathe {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 1.5%) scale(1.06); }
}

/* Soft light that follows the cursor across the dark sections — mouse-only,
   JS updates --mx/--my on mousemove. Off entirely on touch and reduced-motion. */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 15%), rgba(127, 177, 255, 0.12), transparent 70%);
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-spotlight { display: none; }
  body::before { animation: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

section { padding: 130px 0; position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 7px 16px;
  border-radius: 8px;
  margin-bottom: 22px;
}

h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

h2 { font-size: clamp(28px, 3.6vw, 44px); }

.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head p.lead { color: var(--text-secondary); font-size: 16px; margin-top: 14px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary { background: #ffffff; color: #08090d; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -6px rgba(255, 255, 255, 0.35); }

.btn-ghost { background: rgba(255, 255, 255, 0.02); color: var(--text); border-color: var(--card-border); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--card-border-hover); background: rgba(255, 255, 255, 0.05); }

.btn-whatsapp { background: #25D366; color: #08090d; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.45); background: #2fe075; }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ===== Glass card base ===== */
.glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.glass:hover { border-color: var(--card-border-hover); background: var(--card-bg-hover); box-shadow: 0 0 40px -12px var(--accent-glow); }

/* ===== Header ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; flex-shrink: 0; }
.brand img { width: 26px; height: 26px; }
header .brand img { width: 34px; height: 34px; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px 8px 8px 26px;
}

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-secondary); }
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.lang-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  width: 38px; height: 38px;
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero { padding: 190px 0 100px; text-align: center; overflow: hidden; }

/* Generative canvas layer — soft floating data points behind the hero,
   drawn by motion.js. Sits under the watermark/text (z-index 0), same
   accent blue as the rest of the site. Reduced-motion users get one static
   frame instead of the animated loop (drawn once in motion.js, no CSS
   animation involved here so there's nothing to disable). */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-watermark-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  z-index: 0;
  pointer-events: none;
}

.hero-watermark {
  display: block;
  width: 100%;
  opacity: 0.045;
  filter: blur(0.5px);
}

/* Soft wave of light that sweeps across the watermark every few seconds —
   masked to the logo's own shape (via the same PNG as a mask) so the glow
   only shows through the mark itself, not a rectangle around it. */
.hero-watermark-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  background-size: 300% 100%;
  -webkit-mask-image: url("assets/logo-transparent.png");
  mask-image: url("assets/logo-transparent.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mix-blend-mode: screen;
  animation: hero-shine-sweep 18s ease-in-out infinite;
}

@keyframes hero-shine-sweep {
  0%, 45% { background-position: -140% 0; }
  65%, 100% { background-position: 140% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-watermark-wrap::after { animation: none; opacity: 0; }
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(38px, 6vw, 72px);
  max-width: 900px;
  margin: 0 auto 26px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Starts hidden — Motion (motion.js) fades + slides it up once the intro
     splash fades, same sync point the splash itself already used. */
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 { opacity: 1; transform: none; }
}

.hero .lead {
  position: relative;
  z-index: 1;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  /* Starts hidden — Motion fades + slides it up right after the title,
     staggered ~100ms behind (motion.js). */
  opacity: 0;
  transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  .hero .lead { opacity: 1; transform: none; }
}

.hero-ctas { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Stack marquee ===== */
.stack {
  padding: 56px 0 18px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.stack .eyebrow { margin-bottom: 30px; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  animation: marquee 28s linear infinite;
}

/* Pause the scroll while the visitor is looking at a logo — otherwise it
   scrolls away from the cursor before the hover (size + color) is visible */
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), transform 0.3s var(--ease);
  transform-origin: center;
}

.marquee-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--text-dim); transition: color 0.25s var(--ease); }
.marquee-item:hover { color: var(--text); transform: scale(1.22); position: relative; z-index: 2; }
.marquee-item:hover svg { color: var(--brand, var(--accent-strong)); }

/* Icons that use a real multi-color mark (gradient fill or multiple flat
   brand colors) instead of currentColor: dim via opacity at rest so they
   match the muted look of the single-tone icons, full color on hover */
.marquee-item svg.grad-icon { opacity: 0.5; transition: opacity 0.25s var(--ease); }
.marquee-item:hover svg.grad-icon { opacity: 1; }

/* Claude Code's mark is a raster logo, not an svg we can recolor with
   currentColor — same dim-at-rest/full-on-hover treatment as grad-icon */
.marquee-item img { width: 22px; height: 22px; flex-shrink: 0; object-fit: contain; opacity: 0.5; transition: opacity 0.25s var(--ease); }
.marquee-item:hover img { opacity: 1; }

/* ===== Company Brain ===== */
.brain-section { padding-top: 90px; padding-bottom: 50px; overflow: hidden; }
.modules-section { padding-top: 40px; }
.how-section { padding-bottom: 40px; }
.pricing-section { padding-top: 50px; }

.brain-panel {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.brain-panel::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, var(--accent-dim), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ---- Interactive file explorer (VS Code-style mockup) ---- */
.explorer-frame {
  --ex-bg: #0d1117;
  --ex-panel: #161b22;
  --ex-titlebar: #010409;
  --ex-border: #30363d;
  --ex-text: #e6edf3;
  --ex-text-sec: #8b949e;
  --ex-text-muted: #6e7681;
  --ex-accent: #8b7cf6;
  --ex-green: #3fb950;
  --ex-font: 'SF Mono', Menlo, Consolas, monospace;
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ex-border);
  background: var(--ex-bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.explorer-titlebar {
  background: var(--ex-titlebar);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.explorer-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }

.explorer-titlebar-label {
  margin-left: 8px;
  color: var(--ex-text-muted);
  font-size: 12px;
  font-family: var(--ex-font);
}

.explorer-body { display: flex; min-height: 400px; }

.explorer-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--ex-panel);
  border-right: 1px solid var(--ex-border);
  padding: 14px 0;
  overflow-y: auto;
}

.explorer-sb-title {
  color: var(--ex-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 16px 10px;
  font-family: var(--ex-font);
}

.explorer-tree { font-family: var(--ex-font); font-size: 13px; color: var(--ex-text-sec); }

.ex-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 40px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.ex-row:hover { background: rgba(255, 255, 255, 0.04); }
.ex-row.ex-file.active { background: rgba(139, 124, 246, 0.14); color: var(--ex-text); }
.ex-row:focus-visible { outline: 1px solid var(--ex-accent); outline-offset: -1px; }

.ex-arrow {
  color: var(--ex-text-muted);
  font-size: 10px;
  width: 10px;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.15s var(--ease);
}

.ex-arrow.open { transform: rotate(90deg); }

.ex-children { max-height: 0; overflow: hidden; transition: max-height 0.2s var(--ease); }
.ex-children.open { max-height: 300px; }

.ex-row.ex-file { padding-left: 34px; }
.ex-row.ex-sub { padding-left: 30px; }
.ex-row.ex-sub2 { padding-left: 48px; }

.ex-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.explorer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--ex-bg); }

.explorer-tabs { display: flex; border-bottom: 1px solid var(--ex-border); background: var(--ex-panel); }

.ex-tab {
  padding: 10px 16px;
  font-size: 12px;
  font-family: var(--ex-font);
  color: var(--ex-text-sec);
  border-right: 1px solid var(--ex-border);
}

.ex-tab.active { background: var(--ex-bg); color: var(--ex-text); border-top: 2px solid var(--ex-accent); }

.explorer-editor { padding: 24px 26px; font-family: var(--ex-font); font-size: 13px; line-height: 1.8; color: var(--ex-text-sec); flex: 1; }
.explorer-editor h4 { color: var(--ex-text); font-size: 14px; margin: 0 0 12px; font-weight: 600; }
.ex-placeholder { color: var(--ex-text-muted); font-style: italic; }

/* Typing caret for the simulated "live" editor content */
.ex-caret {
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 2px;
  background: var(--ex-text-sec);
  vertical-align: -0.15em;
  animation: caret-blink 0.9s step-end infinite;
}

.explorer-activity { width: 200px; flex-shrink: 0; background: var(--ex-panel); border-left: 1px solid var(--ex-border); padding: 14px 16px; }

.ex-act-item { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 11px; font-family: var(--ex-font); }
.ex-act-item:last-child { border-bottom: none; }

.ex-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ex-green);
  margin-top: 4px;
  flex-shrink: 0;
  animation: ex-pulse 2s infinite;
}

@keyframes ex-pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5); }
  70% { box-shadow: 0 0 0 5px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.ex-act-txt { color: var(--ex-text-sec); }
.ex-act-txt b { color: var(--ex-text); font-weight: 500; }
.ex-act-time { color: var(--ex-text-muted); display: block; margin-top: 2px; }

.explorer-statusbar {
  background: var(--ex-accent);
  padding: 7px 16px;
  font-size: 11px;
  color: #1a1330;
  font-family: var(--ex-font);
}

@media (prefers-reduced-motion: reduce) {
  .ex-pulse { animation: none; }
}

/* ===== Niche picker: chips above the file explorer that swap its whole
   tree/preview/activity feed to match the visitor's own rubro — turns the
   "Cerebro de Empresa" panel from a static mockup into something that
   demonstrably understands their negocio, not uno genérico. ===== */
.niche-picker { text-align: center; margin-bottom: 22px; }

.niche-picker-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.niche-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.niche-chip {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.niche-chip:hover { color: var(--text); border-color: var(--card-border-hover); }

.niche-chip.active {
  color: var(--accent-strong);
  border-color: var(--card-border-hover);
  background: var(--accent-dim);
}

.niche-chip:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* Brief glow right after the tree finishes rebuilding — sells "recién
   procesado" reusing the same accent-glow the rest of the page already
   uses for hover/focus, instead of inventing a new effect. */
.explorer-frame.is-rebuilding {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--card-border-hover), 0 0 50px -10px var(--accent-glow);
  transition: box-shadow 0.5s var(--ease);
}

/* Rows staggering in after a niche swap — same "llegada" language as
   .reveal, solo que rápido (180ms) para leerse como construcción, no como
   reveal de página. */
.ex-row-enter { opacity: 0; transform: translateY(6px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease); }
.ex-row-enter.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ex-row-enter { opacity: 1; transform: none; transition: none; }
  .explorer-frame.is-rebuilding { transition: none; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
}

/* ===== Modules grid (AI Business OS) ===== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== Additional service (content creation, not an automated engine) ===== */
.addon-section { padding-top: 10px; }
.addon-card { max-width: 760px; margin: 0 auto; padding: 34px 32px; text-align: center; }
.addon-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.addon-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 8px;
}

/* ===== Creative showcase (reference video cards, lives inside .addon-section) ===== */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.creative-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.creative-thumb {
  position: relative;
  /* Real proportion of the source clips (1080x1920, 9:16) — matches from
     the first frame instead of cropping the poster into a wider box and
     then jumping to a taller one only once playback starts. */
  aspect-ratio: 9 / 16;
  max-height: 640px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(127, 177, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: aspect-ratio 0.2s var(--ease);
}

.creative-thumb:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* Real first-frame preview so the card shows what the clip actually looks
   like instead of a flat placeholder — sits behind the play button/tag,
   cropped to fill the 16:10 box even though the source clips are vertical */
.creative-thumb-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.creative-thumb.is-playing .creative-thumb-poster { display: none; }

/* Once playing, the container switches (via JS) to the video's real aspect
   ratio, so a vertical clip letterboxes instead of getting cropped */
.creative-thumb.is-playing { background: #000; cursor: default; }

.creative-video { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

.creative-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.creative-thumb:hover .creative-play { transform: scale(1.08); background: rgba(255, 255, 255, 0.16); }

.creative-play svg { width: 20px; height: 20px; margin-left: 2px; }

.creative-thumb-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(5, 6, 10, 0.6);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
}

.creative-card h3 { font-size: 16.5px; }
.creative-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ===== Casos de clientes reales ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Mismo patrón que .plans-grid: al pasar el mouse por la grilla, la card
   bajo el cursor crece y las demás se achican y apagan un poco. */
.cases-grid:hover .case-card { opacity: 0.6; transform: scale(0.95); }
.cases-grid:hover .case-card:hover { opacity: 1; transform: scale(1.06); z-index: 3; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.5); }

.case-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.case-card:hover .case-thumb img { transform: scale(1.04); }

.case-thumb-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(5, 6, 10, 0.6);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
}

.case-logo { height: 22px; width: auto; object-fit: contain; border-radius: 4px; margin-bottom: 2px; }
.case-card h3 { font-size: 17px; }
.case-card p { font-size: 13.5px; color: var(--text-secondary); }
.case-link { font-size: 13.5px; font-weight: 600; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.case-card:hover .case-link { text-decoration: underline; }

.case-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.case-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }

.module-card { padding: 30px 26px; position: relative; }

.module-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.module-card h3 { font-size: 19px; margin-bottom: 14px; }
.module-card ul { list-style: none; }
.module-card li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-top: 1px solid var(--card-border);
}
.module-card li:first-child { border-top: none; }

.module-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-dim);
  border: 1px solid var(--card-border-hover);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 20px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ===== WhatsApp Agent: chatbot vs. agente comparison + response-time highlight =====
   Two-column contrast so the "no es un chatbot" distinction lands visually,
   not just in copy. Old column reads muted/crossed-out, new column picks up
   the site's accent — same visual grammar as .plan-card.featured. */
.wa-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
  max-width: 860px;
  margin: 8px auto 0;
  text-align: left;
}

.wa-compare-col {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--card-bg);
}

.wa-compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.wa-compare-col li { font-size: 13.5px; line-height: 1.5; display: flex; gap: 8px; }

.wa-compare-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }

.wa-compare-old {
  border-color: rgba(255, 99, 99, 0.22);
  background: linear-gradient(180deg, rgba(255, 99, 99, 0.07), rgba(255, 255, 255, 0.015) 45%);
  box-shadow: 0 0 40px -20px rgba(255, 99, 99, 0.4);
}
.wa-compare-old .wa-compare-label { color: #ff9b9b; }
.wa-compare-old li { color: var(--text-secondary); }
.wa-compare-old li::before { content: "✕"; color: #ff8080; flex-shrink: 0; }

.wa-compare-new {
  border-color: var(--card-border-hover);
  background: linear-gradient(180deg, var(--accent-dim), rgba(255, 255, 255, 0.015) 45%);
  box-shadow: 0 0 40px -18px var(--accent-glow);
}
.wa-compare-new .wa-compare-label { color: var(--accent-strong); }
.wa-compare-new li { color: var(--text); }
.wa-compare-new li::before { content: "✓"; color: var(--accent-strong); flex-shrink: 0; }

.wa-compare-vs {
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ===== WhatsApp Agent live demo — reemplaza el checklist de la columna
   "nueva" de .wa-compare por un chat que de verdad funciona, para que el
   contraste con la columna vieja sea mostrar-vs-contar, no dos listas. ===== */
.wa-demo { display: flex; flex-direction: column; gap: 12px; }

.wa-demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.wa-demo-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-strong);
  border: 1px solid var(--card-border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

.wa-demo-header-text { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.4; }
.wa-demo-header-text strong { color: var(--text); font-size: 13.5px; font-weight: 600; }
.wa-demo-header-text span { color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.wa-demo-header-text span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #25D366; flex-shrink: 0; }

.wa-demo-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.wa-bubble { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; }

.wa-bubble-user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.wa-bubble-agent {
  align-self: flex-start;
  background: var(--accent-dim);
  color: var(--text);
  border: 1px solid rgba(140, 175, 255, 0.18);
  border-bottom-left-radius: 4px;
}

.wa-bubble-typing { display: flex; gap: 4px; padding: 12px 14px; align-items: center; }
.wa-bubble-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-strong);
  animation: wa-typing-bounce 1.1s ease-in-out infinite;
}
.wa-bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-bubble-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wa-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.wa-demo-input { display: flex; gap: 8px; }

.wa-demo-input input {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
}

.wa-demo-input input::placeholder { color: var(--text-dim); }
.wa-demo-input input:focus { outline: none; border-color: var(--card-border-hover); }

.wa-demo-send {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--card-border-hover);
  background: var(--accent-dim);
  color: var(--accent-strong);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.wa-demo-send:hover { background: rgba(127, 177, 255, 0.22); }
.wa-demo-send:active { transform: scale(0.94); }

.wa-demo-suggestions { display: flex; gap: 8px; flex-wrap: wrap; }

.wa-demo-chip {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.wa-demo-chip:hover { color: var(--text); border-color: var(--card-border-hover); }

@media (prefers-reduced-motion: reduce) {
  .wa-bubble-typing span { animation: none; opacity: 0.8; }
}

.wa-highlight {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 860px;
  margin: 28px auto 0;
  padding: 22px 26px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  text-align: left;
}

.wa-highlight-stat { flex-shrink: 0; text-align: center; }
.wa-highlight-stat strong { display: block; font-size: 30px; color: var(--accent-strong); line-height: 1; }
.wa-highlight-stat span { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 6px; max-width: 110px; }
.wa-highlight p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0; padding-left: 24px; border-left: 1px solid var(--card-border); }

/* ===== Promise / ROI ===== */
.promise { text-align: center; }

.promise h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  max-width: 740px;
  margin: 0 auto 50px;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.roi-card { padding: 30px 24px; text-align: left; }
.roi-card strong { display: block; font-size: 22px; margin-bottom: 8px; color: var(--accent-strong); }
.roi-card span { color: var(--text-secondary); font-size: 14px; }

.promise-note {
  margin: 26px auto 0;
  font-size: 13.5px;
  color: var(--text-dim);
}
.promise-note a { color: var(--accent-strong); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.promise-note a:hover { border-bottom-color: var(--accent-strong); }

/* ===== Founder =====
   Deliberately NOT a glass card in a centered grid — every other section on
   the page is "centered eyebrow → centered title → row of cards", and this
   one disappeared into that rhythm. Asymmetric two-column, left-aligned,
   photo floating on a color glow instead of boxed — reads as a person,
   not another template block. */
.founder-wrap {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 64px;
  align-items: center;
}

.founder-photo-wrap { position: relative; }

.founder-photo-wrap::before {
  content: "";
  position: absolute;
  top: -10%; left: -14%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(127, 177, 255, 0.35), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.founder-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
}

.founder-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
.founder-body h2 { font-size: clamp(26px, 3vw, 34px); }
.founder-body .lead { font-size: 15px; max-width: 560px; margin: 0; color: var(--text-secondary); }
.founder-body .btn { align-self: flex-start; margin-top: 4px; }

/* ===== How it works ===== */
.steps-wrap { position: relative; }

.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}

/* 3-step variant — reused for the WhatsApp Agent flow, same visual
   language (line + traveling dot + pulsing step numbers) as "Cómo funciona" */
.steps-3 { grid-template-columns: repeat(3, 1fr); }

/* Icon centered on the midpoint of its own line segment instead of flush
   left at the column start — text below stays left-aligned, untouched. */
.steps-3 .step-num { margin-left: auto; margin-right: auto; }

.section-cta { display: flex; justify-content: center; margin-top: 40px; }

.steps-line {
  position: absolute;
  top: 20px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--card-border-hover) 15%, var(--card-border-hover) 85%, transparent);
  overflow: visible;
}

.flow-dot {
  position: absolute;
  top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 12px 3px var(--accent-glow);
  animation: flow-move 9s linear infinite;
}

@keyframes flow-move {
  0% { left: 8%; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}

.step { position: relative; padding-right: 16px; text-align: left; }

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--card-border-hover);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  animation: pulse-ring 9s var(--ease) infinite;
}

/* Icon per step instead of a number — same circle, same pulse */
.step-num svg { width: 18px; height: 18px; flex-shrink: 0; }

.step:nth-child(1) .step-num { animation-delay: 0s; }
.step:nth-child(2) .step-num { animation-delay: 1.5s; }
.step:nth-child(3) .step-num { animation-delay: 3s; }
.step:nth-child(4) .step-num { animation-delay: 4.5s; }
.step:nth-child(5) .step-num { animation-delay: 6s; }
.step:nth-child(6) .step-num { animation-delay: 7.5s; }

@keyframes pulse-ring {
  0%, 83%, 100% { box-shadow: 0 0 0 0 rgba(127, 177, 255, 0); border-color: var(--card-border-hover); }
  86% { box-shadow: 0 0 0 6px rgba(127, 177, 255, 0.18); border-color: var(--accent-strong); }
  92% { box-shadow: 0 0 0 0 rgba(127, 177, 255, 0); border-color: var(--card-border-hover); }
}

.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-secondary); }

/* ===== Pricing ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.plan-card:hover { box-shadow: 0 0 50px -10px var(--accent-glow), inset 0 0 0 1px var(--card-border-hover); }

.plan-card.featured {
  border-color: var(--card-border-hover);
  background: linear-gradient(180deg, var(--accent-dim), rgba(255, 255, 255, 0.015) 45%);
  transform: translateY(-10px);
  box-shadow: 0 0 60px -14px var(--accent-glow);
}

/* Premium flagship (PriorityOS) — warm gold instead of the site's blue accent,
   so it reads as a distinct top tier rather than competing with "featured" */
.plan-card.premium {
  border-color: rgba(232, 196, 108, 0.3);
  background: linear-gradient(180deg, rgba(232, 196, 108, 0.07), rgba(255, 255, 255, 0.015) 45%);
  box-shadow: 0 0 40px -16px rgba(232, 196, 108, 0.35);
}

.plan-card.premium:hover {
  border-color: rgba(232, 196, 108, 0.55);
  box-shadow: 0 0 60px -14px rgba(232, 196, 108, 0.5);
}

.plan-card.premium .plan-tag { color: #e8c46c; }

/* Solid gold instead of gradient-text — that effect is already doing a lot
   of work on the hero; repeating it here reads as "template", not "brand". */
.plan-card.premium h3 { color: #e8c46c; }

.plan-card.premium li::before { color: #e8c46c; }

.plan-card.premium .btn-ghost { border-color: rgba(232, 196, 108, 0.4); }
.plan-card.premium .btn-ghost:hover { border-color: #e8c46c; background: rgba(232, 196, 108, 0.1); }

/* Flagship row — PriorityOS gets its own full-width banner instead of
   sharing space with a small add-on, so it reads visually as the top of
   the pricing ladder rather than another item in the grid. */
.plans-grid-flagship { max-width: 1080px; margin: 26px auto 0; }

.flagship-card {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 54px 58px;
}

/* Traveling dot that runs the exact contour of the card. Sized in JS
   (sizeFlagshipRing in script.js) so the dash path always matches the
   card's real pixel perimeter — no stretching/distortion at any width. */
.flagship-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.flagship-ring-rect {
  fill: none;
  stroke: #fff6d8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 7 var(--flagship-perimeter, 900px);
  filter:
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 6px #f5dfa0)
    drop-shadow(0 0 14px #e8c46c)
    drop-shadow(0 0 24px rgba(232, 196, 108, 0.55));
  animation: flagship-ring-travel 16s linear infinite, flagship-twinkle 1.6s ease-in-out infinite;
}

@keyframes flagship-ring-travel {
  to { stroke-dashoffset: calc(-1 * var(--flagship-perimeter, 900px)); }
}

@keyframes flagship-twinkle {
  0%, 100% { stroke-width: 2.5; opacity: 0.8; }
  50% { stroke-width: 4; opacity: 1; }
}

.flagship-card > *:not(.flagship-ring):not(.flagship-watermark-clip) { position: relative; z-index: 1; }

/* Logo watermark, same trick as .hero-watermark — faint, oversized, tilted
   for a bit of dynamism. Clipped to the card's own rounded shape via the
   wrapper below, so it reads as "big logo behind glass" instead of bleeding
   messily past the edges. */
.flagship-watermark-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.flagship-watermark {
  position: absolute;
  top: 50%;
  left: 38%;
  /* Negative angle (vs. the hero's implicit upright mark) so the tip leans
     left instead of right — the "caída" of the mark is reversed. */
  transform: translate(-50%, -50%) rotate(-30deg);
  width: 960px;
  max-width: none;
  opacity: 0.055;
  pointer-events: none;
}

/* Shine sweep on this watermark was removed — the card already has the
   traveling ring light + the cursor spotlight, a third light animation
   here was too much. Logo stays as a plain static watermark. */

@media (prefers-reduced-motion: reduce) {
  .flagship-ring-rect { animation: none; opacity: 0; }
}

.flagship-body { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.flagship-body h3 { font-size: 30px; }
.flagship-body .desc { font-size: 15.5px; }

.flagship-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex-shrink: 0;
  min-width: 240px;
}

/* Formula strip inside the PriorityOS card — spells out what actually
   combines into "sistema autónomo" instead of leaving it abstract */
.flagship-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(232, 196, 108, 0.25);
  border-radius: 12px;
  background: rgba(232, 196, 108, 0.04);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.formula-item { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); white-space: nowrap; }
.formula-icon { width: 15px; height: 15px; flex-shrink: 0; object-fit: contain; }
.formula-op { color: var(--text-dim); font-weight: 600; }
.formula-result { color: #e8c46c; font-weight: 700; white-space: nowrap; }

/* Spotlight: hovering one plan card shrinks + dims its siblings, and grows
   the hovered one — same emphasis language as the tech-stack marquee hover */
.plans-grid:hover .plan-card { opacity: 0.55; transform: scale(0.94); }
.plans-grid:hover .plan-card.featured { transform: translateY(-10px) scale(0.94); }
.plans-grid:hover .plan-card:hover { opacity: 1; transform: scale(1.05); }
.plans-grid:hover .plan-card.featured:hover { transform: translateY(-10px) scale(1.05); }

.plan-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.plan-card.featured .plan-tag { color: var(--accent-strong); }

.plan-card h3 { font-size: 22px; }
.plan-card p.desc { color: var(--text-secondary); font-size: 14px; }

.plan-price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-price span { display: block; font-size: 14px; font-weight: 500; color: var(--text-dim); margin-top: 2px; }

/* No fixed number for PriorityOS on purpose — a la medida, se cotiza en la
   llamada de diagnóstico. Texto en vez del tratamiento grande de precio. */
.flagship-price-note { font-size: 15px; font-weight: 600; color: #e8c46c; max-width: 220px; line-height: 1.4; }

@keyframes price-pulse {
  0% { opacity: 0.35; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.plan-price.pulse { animation: price-pulse 0.2s var(--ease); }

.plan-note { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin-top: -8px; }

/* ---- Upsell toggle: "+ Sumar Agente de WhatsApp" ---- */
.plan-upsell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-top: 6px;
  cursor: pointer;
  user-select: none;
}

.plan-upsell-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.plan-upsell-switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.plan-upsell-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.plan-upsell-check:checked ~ .plan-upsell-switch {
  background: var(--accent-dim);
  border-color: var(--accent-strong);
}

.plan-upsell-check:checked ~ .plan-upsell-switch::before {
  transform: translateX(14px);
  background: var(--accent-strong);
}

.plan-upsell-check:focus-visible ~ .plan-upsell-switch {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.plan-upsell-label {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

.plan-upsell-check:checked ~ .plan-upsell-label { color: var(--text); }

.plan-upsell-note {
  font-size: 12px;
  color: var(--accent-strong);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.2s var(--ease), opacity 0.2s var(--ease), margin-top 0.2s var(--ease);
}

.plan-upsell-note.show { max-height: 60px; opacity: 1; margin-top: 6px; }

.plan-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.plan-card li { font-size: 13.5px; color: var(--text-secondary); display: flex; gap: 8px; }
.plan-card li::before { content: "✓"; color: var(--accent-strong); flex-shrink: 0; }

.pricing-note { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 30px; }

/* ===== Final CTA ===== */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 760px; margin: 0 auto 30px; }

/* ===== Footer ===== */
footer { padding: 64px 0 32px; border-top: 1px solid var(--card-border); }

.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; margin-bottom: 48px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-secondary); font-size: 14px; margin-top: 14px; }

.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { min-width: 140px; }
.footer-col h4 { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--text-secondary); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }

.footer-payments { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-payments-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-chip {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 30px;
  background: #fff;
  border-radius: 6px;
  padding: 5px 7px;
}
.payment-chip svg { width: 100%; height: 100%; display: block; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--card-border);
  color: var(--text-dim); font-size: 12.5px;
}

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--text-secondary); }

/* ===== Legal pages (privacidad.html, terminos.html) — plain prose,
   reuses the site's dark theme and container but skips the marketing
   chrome (hero, marquee, etc.) since these are reference pages, not pitch */
.legal-section { padding: 160px 0 100px; }
.legal-wrap { max-width: 720px; }
.legal-wrap h1 { font-size: clamp(30px, 4vw, 42px); margin: 14px 0 6px; }
.legal-updated { color: var(--text-dim); font-size: 13.5px; margin-bottom: 40px; }
.legal-wrap h2 { font-size: 19px; margin: 36px 0 12px; }
.legal-wrap p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 4px; }
.legal-wrap a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Reveal on scroll — Motion-driven (motion.js), Cerebro de Empresa /
   AI Business OS / Precios. Motion animates opacity+transform itself via
   the Web Animations API, so these just set the resting "before JS runs"
   state — no CSS transition needed here. */
.reveal-m,
.reveal-m-item { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  .reveal-m,
  .reveal-m-item { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  nav { position: relative; }
  /* .nav-pill's backdrop-filter otherwise becomes the containing block for
     .nav-links.open (nearer than nav's position:relative), so the menu's
     left:0/right:0 resolved against the pill's own narrow width instead of
     the full nav — dropped down floating and off-center over the hero. */
  .nav-pill { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links.open {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 11, 18, 0.97);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 8px 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
  }
  .nav-links.open a {
    padding: 14px 2px;
    font-size: 15px;
    border-top: 1px solid var(--card-border);
    white-space: normal;
  }
  .nav-links.open a:first-child { border-top: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps-3 { grid-template-columns: 1fr; row-gap: 28px; }
  .steps-3 .step-num { margin-left: 0; }
  .steps-line { display: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .creative-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 90px 0; }
  .hero { padding: 150px 0 80px; }
  .plan-card.featured { transform: none; }
  .founder-wrap { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo-wrap { max-width: 260px; margin: 0 auto; }
  .founder-body .lead { max-width: none; }
  .flagship-card { flex-direction: column; align-items: stretch; text-align: left; padding: 36px 30px; }
  .flagship-side { min-width: 0; width: 100%; }
  .wa-compare { grid-template-columns: 1fr; }
  .wa-compare-vs { display: none; }
  .wa-highlight { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wa-highlight p { padding-left: 0; border-left: none; }
}

@media (max-width: 768px) {
  .explorer-body { flex-direction: column; }
  .explorer-sidebar { width: 100%; max-height: 300px; border-right: none; border-bottom: 1px solid var(--ex-border); }
  .explorer-activity { width: 100%; border-left: none; border-top: 1px solid var(--ex-border); }
  .explorer-main { min-height: 200px; }
}

@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  /* Was a single stacked column — at 9:16 each card ran ~590px tall, so 3
     stacked (+copy) turned this add-on section into ~2500px of scroll on a
     phone. Horizontal scroll-snap carousel keeps the true aspect ratio
     (no crop-then-pop on play) but costs one card-height of scroll, not three. */
  .creative-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .creative-grid::-webkit-scrollbar { display: none; }
  .creative-card { flex: 0 0 82%; scroll-snap-align: start; }
  .cases-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cases-grid::-webkit-scrollbar { display: none; }
  .case-card { flex: 0 0 82%; scroll-snap-align: start; }
  .wa-demo-thread { max-height: 190px; }
  .footer-top { flex-direction: column; }
  .lang-selector { display: none; }
  .payment-chip { width: 36px; height: 24px; padding: 4px 5px; }
  .payment-icons { gap: 6px; }
}

/* ===== Reestructura 2026-10-16: 4 pasos + Pack Completo ===== */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
a.case-card { color: inherit; text-decoration: none; display: block; }

.bundle-card {
  margin-top: 18px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--accent-dim);
  background: linear-gradient(120deg, var(--accent-dim), rgba(255, 255, 255, 0.02) 60%);
}
.bundle-body { display: flex; flex-direction: column; gap: 10px; }
.bundle-body .plan-tag { align-self: flex-start; }
.bundle-prices { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; flex-shrink: 0; }
.bundle-old { font-size: 14px; color: var(--text-secondary); text-decoration: line-through; }
.bundle-new { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.bundle-new span { display: block; font-size: 14px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }

@media (max-width: 1024px) {
  .steps-4 { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 768px) {
  .bundle-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .bundle-prices { align-items: flex-start; text-align: left; }
}
@media (max-width: 540px) {
  .steps-4 { grid-template-columns: 1fr; }
}
