/* ═══════════════════════════════════════════════════════════════════════════
   NEXO STUDIO — Design tokens
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --brand-violet: oklch(62% 0.27 285);
  --brand-violet-2: oklch(75% 0.20 305);
  --brand-cyan: oklch(78% 0.16 220);
  --brand-violet-glow: oklch(62% 0.27 285 / 0.45);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── DARK (default) ─────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #06060e;
  --bg-elev: #0b0b18;
  --bg-elev-2: #111121;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.14);
  --text: #f0eff8;
  --text-muted: rgba(240, 239, 248, 0.62);
  --text-subtle: rgba(240, 239, 248, 0.32);
  --grid-line: rgba(255, 255, 255, 0.045);
  --glow-1: oklch(62% 0.27 285 / 0.22);
  --glow-2: oklch(78% 0.16 220 / 0.12);
  --glow-3: oklch(75% 0.20 305 / 0.14);
  --code-bg: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

/* ── LIGHT ──────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f6f5fb;
  --bg-elev: #ffffff;
  --bg-elev-2: #fbfaff;
  --surface: rgba(7, 7, 15, 0.025);
  --surface-hi: rgba(7, 7, 15, 0.05);
  --border: rgba(7, 7, 15, 0.08);
  --border-hi: rgba(7, 7, 15, 0.16);
  --text: #08081a;
  --text-muted: rgba(8, 8, 26, 0.62);
  --text-subtle: rgba(8, 8, 26, 0.40);
  --grid-line: rgba(7, 7, 15, 0.05);
  --glow-1: oklch(62% 0.27 285 / 0.18);
  --glow-2: oklch(78% 0.16 220 / 0.14);
  --glow-3: oklch(75% 0.20 305 / 0.14);
  --code-bg: rgba(7, 7, 15, 0.04);
  color-scheme: light;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET / BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-wrap: pretty;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .heading { font-family: var(--font-display); letter-spacing: -0.02em; }

button { font: inherit; cursor: pointer; }
a { color: inherit; }

img { display: block; max-width: 100%; }

/* Selection */
::selection { background: var(--brand-violet); color: white; }

/* ═══════════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════════ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  height: 64px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s, border-color 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img { width: 32px; height: 32px; flex-shrink: 0; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-logo-text-dim { color: var(--text-muted); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-hi);
}
.theme-toggle svg { width: 16px; height: 16px; transition: opacity 0.3s, transform 0.4s var(--ease-out); position: absolute; }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 1px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 999px;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--brand-violet);
  color: #fff;
}

.nav-cta {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.92; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 110px clamp(20px, 5vw, 80px) 32px;
  overflow: hidden;
  isolation: isolate;
  gap: clamp(28px, 4vw, 56px);
}

/* ── Ambient lighting ────────────────────────────────────────────── */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  display: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
}
.hero-glow-1 {
  width: 680px; height: 680px;
  background: var(--glow-1);
  top: -10%; left: -10%;
  animation: glow-drift-1 14s ease-in-out infinite;
}
.hero-glow-2 {
  width: 600px; height: 600px;
  background: var(--glow-2);
  bottom: -15%; right: -10%;
  animation: glow-drift-2 18s ease-in-out infinite;
}
.hero-glow-3 {
  width: 480px; height: 480px;
  background: var(--glow-3);
  top: 40%; right: 30%;
  animation: glow-drift-3 22s ease-in-out infinite;
}
@keyframes glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.08); }
}
@keyframes glow-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(40px, -50px) scale(1.05); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, var(--bg) 90%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}

/* ── Hero stages (variants) ─────────────────────────────────────── */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
[data-hero-variant="pipeline"] .hero-stage[data-variant="pipeline"],
[data-hero-variant="constellation"] .hero-stage[data-variant="constellation"],
[data-hero-variant="orbit"] .hero-stage[data-variant="orbit"] {
  display: flex;
}

#pipeline-canvas, #constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Orbit variant ──────────────────────────────────────────────── */
.orbit-scene {
  position: relative;
  width: min(900px, 92vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
}

.orbit-core {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-core-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px var(--brand-violet-glow));
  animation: orbit-pulse 4s ease-in-out infinite;
}
@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px var(--brand-violet-glow)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 50px var(--brand-violet-glow)); }
}
.orbit-core-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brand-violet);
  opacity: 0;
  animation: orbit-ring-expand 3s ease-out infinite;
}
.orbit-core-pulse-2 { animation-delay: 1.5s; }
@keyframes orbit-ring-expand {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--border);
  animation: orbit-rotate linear infinite;
}
.orbit-ring-1 {
  width: 36%;
  height: 36%;
  animation-duration: 32s;
}
.orbit-ring-2 {
  width: 62%;
  height: 62%;
  animation-duration: 50s;
  animation-direction: reverse;
}
.orbit-ring-3 {
  width: 88%;
  height: 88%;
  border-color: transparent;
  background: radial-gradient(circle, transparent 49%, var(--border) 49.5%, var(--border) 50%, transparent 50.5%);
  animation-duration: 80s;
}
@keyframes orbit-rotate {
  to { transform: rotate(360deg); }
}

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-50%) rotate(calc(-1 * var(--angle)));
  margin-top: 0;
  animation: orbit-counter-rotate 32s linear infinite reverse;
}
.orbit-ring-2 .orbit-node { animation-duration: 50s; animation-direction: normal; }
.orbit-node-md { width: 64px; height: 64px; }
.orbit-node-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: 0 0 24px color-mix(in srgb, var(--brand-violet) 20%, transparent);
}
@keyframes orbit-counter-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg) translateY(-50%) rotate(-360deg); }
}

/* ── Hero content ────────────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
  animation: fade-up 0.8s var(--ease-out) both;
  backdrop-filter: blur(10px);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: oklch(78% 0.18 145);
  border-radius: 50%;
  box-shadow: 0 0 10px oklch(78% 0.18 145 / 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-title-line { display: block; animation: fade-up 0.9s var(--ease-out) both; }
.hero-title-line:nth-child(2) { animation-delay: 0.08s; }
.hero-title-accent {
  background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-violet-2) 45%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: fade-up 0.9s 0.08s var(--ease-out) both, gradient-pan 8s ease-in-out infinite;
}
@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 660px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 36px;
  animation: fade-up 0.9s 0.18s var(--ease-out) both;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.9s 0.26s var(--ease-out) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 0 0 1px var(--text), 0 12px 32px -8px color-mix(in srgb, var(--brand-violet) 60%, transparent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--text), 0 16px 40px -8px color-mix(in srgb, var(--brand-violet) 80%, transparent);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-hi);
}
.btn-ghost:hover {
  background: var(--surface-hi);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.hero-marks {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 36px);
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  animation: fade-up 0.9s 0.36s var(--ease-out) both;
}
.hero-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-mark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--brand-violet-2);
  flex-shrink: 0;
}
.hero-mark-icon svg {
  width: 100%;
  height: 100%;
}
.hero-mark-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.hero-mark-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: fade-up 1.2s 0.8s var(--ease-out) both;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--brand-violet), transparent);
  animation: scroll-line 2.5s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STRIP (logos marquee)
   ═══════════════════════════════════════════════════════════════════════════ */

#strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.strip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.strip-pulse {
  width: 7px; height: 7px;
  background: var(--brand-violet);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-violet);
  animation: pulse-dot 2s ease-in-out infinite;
}
.strip-marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.strip-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.strip-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.strip-dot {
  width: 4px; height: 4px;
  background: var(--brand-violet);
  border-radius: 50%;
  opacity: 0.6;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS — generic layout
   ═══════════════════════════════════════════════════════════════════════════ */

section { padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 80px); position: relative; }

.section-head { margin-bottom: clamp(48px, 7vw, 72px); max-width: 720px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-violet);
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-violet) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-violet) 8%, transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2) 60%, var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title .accent.accent-2 {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  max-width: 560px;
  text-wrap: pretty;
}
.section-head.center .section-desc { margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCTOS
   ═══════════════════════════════════════════════════════════════════════════ */

#productos { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 36px 32px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
}

.product-card-bg {
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.55;
  transition: opacity 0.4s;
}
.product-card-crm .product-card-bg {
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--brand-violet) 18%, transparent), transparent 55%),
    radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--brand-violet-2) 14%, transparent), transparent 55%);
}
.product-card-ag .product-card-bg {
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--brand-cyan) 16%, transparent), transparent 55%),
    radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--brand-violet-2) 14%, transparent), transparent 55%);
}
.product-card:hover .product-card-bg { opacity: 0.85; }

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.product-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hi);
}
.product-icon svg { width: 22px; height: 22px; }
.product-icon-crm {
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  color: var(--brand-violet-2);
  border-color: color-mix(in srgb, var(--brand-violet) 28%, transparent);
}
.product-icon-ag {
  background: color-mix(in srgb, var(--brand-cyan) 14%, transparent);
  color: var(--brand-cyan);
  border-color: color-mix(in srgb, var(--brand-cyan) 28%, transparent);
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-violet) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 24%, transparent);
  color: var(--brand-violet-2);
}
.product-tag-ag {
  background: color-mix(in srgb, var(--brand-cyan) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-cyan) 24%, transparent);
  color: var(--brand-cyan);
}

.product-name {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.product-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 480px;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}
.check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-violet) 22%, transparent);
  border: 1px solid var(--brand-violet);
  position: relative;
  flex-shrink: 0;
}
.check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--brand-violet);
  border-bottom: 1.5px solid var(--brand-violet);
  transform: translate(-50%, -65%) rotate(-45deg);
}
.check-2 {
  background: color-mix(in srgb, var(--brand-cyan) 22%, transparent);
  border-color: var(--brand-cyan);
}
.check-2::after { border-color: var(--brand-cyan); }

/* Product preview frames */
.product-preview {
  margin-top: auto;
  margin-bottom: 24px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.product-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.product-preview::after {
  content: '';
  position: absolute;
  top: 7px; left: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-subtle);
  box-shadow: 14px 0 0 var(--text-subtle), 28px 0 0 var(--text-subtle);
  z-index: 2;
}

/* CRM preview kanban */
.product-preview-crm {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 36px 14px 16px;
  min-height: 220px;
}
.crm-prev-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.crm-prev-col-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.crm-prev-bar {
  height: 3px;
  background: var(--c);
  border-radius: 99px;
  width: 100%;
}
.crm-prev-col-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.crm-prev-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}
.crm-prev-count {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-subtle);
  background: var(--surface-hi);
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 16px;
  text-align: center;
}
.crm-prev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: transform 0.3s var(--ease-out);
}
.crm-prev-card-drag {
  border-color: var(--brand-violet);
  background: color-mix(in srgb, var(--brand-violet) 12%, var(--surface));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-violet) 40%, transparent);
  transform: rotate(-2deg) translateX(0);
  animation: drag-card 4s ease-in-out infinite;
}
@keyframes drag-card {
  0%, 100% { transform: rotate(-2deg) translate(0, 0); }
  50% { transform: rotate(-2deg) translate(3px, -1px); }
}
.crm-prev-av {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-violet);
  flex-shrink: 0;
  border: 1.5px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}
.crm-prev-av.av-2 { background: var(--brand-cyan); }
.crm-prev-av.av-3 { background: var(--brand-violet-2); }
.crm-prev-av.av-4 { background: oklch(70% 0.18 145); }
.crm-prev-av.av-5 { background: oklch(72% 0.18 35); }

.crm-prev-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.crm-prev-lines span {
  height: 5px;
  background: var(--surface-hi);
  border-radius: 2px;
}
.crm-prev-lines span.short { width: 60%; }

/* Chat preview (Agentes) */
.product-preview-ag {
  padding: 32px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  background-image:
    radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--brand-cyan) 4%, transparent), transparent 50%);
}

.chat-prev { display: flex; flex-direction: column; gap: 6px; }
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}
.chat-msg-in { align-self: flex-start; }
.chat-msg-out { align-self: flex-end; align-items: flex-end; }

.chat-bubble {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 7px 11px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text);
}
.chat-bubble-out {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-cyan) 18%, var(--bg-elev)), color-mix(in srgb, var(--brand-violet-2) 14%, var(--bg-elev)));
  border-radius: 12px 12px 4px 12px;
  border-color: color-mix(in srgb, var(--brand-cyan) 28%, transparent);
}
.chat-ai-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  margin-bottom: 3px;
}
.chat-meta {
  font-size: 0.62rem;
  color: var(--text-subtle);
  margin-top: 2px;
  padding: 0 4px;
}
.chat-check { color: var(--brand-cyan); }

.chat-typing {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 12px;
  align-self: flex-start;
  display: flex;
  gap: 3px;
}
.chat-typing span {
  width: 5px; height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding-top: 4px;
  transition: gap 0.2s;
}
.product-link:hover { gap: 12px; }
.product-link svg { transition: transform 0.2s; }

/* ═══════════════════════════════════════════════════════════════════════════
   REVEAL
   ═══════════════════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

#footer {
  padding: 64px clamp(20px, 5vw, 80px) 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-tag { color: var(--text-muted); font-size: 0.9rem; font-family: var(--font-mono); }
.footer-meta { color: var(--text-subtle); font-size: 0.85rem; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { color: var(--text-subtle); font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 18px;
  }
  .nav-cta { display: none; }
  .nav-tools { gap: 6px; }
  .lang-toggle { flex-shrink: 0; }
  .hero-marks { padding: 12px 16px; gap: 14px; }
  .hero-mark-num { font-size: 0.95rem; }
  .hero-mark-label { font-size: 0.68rem; }
}

@media (max-width: 480px) {
  #nav { padding: 0 14px; }
  .nav-logo-text { display: none; }
  .lang-btn { padding: 4px 7px; font-size: 0.68rem; }
  .theme-toggle { width: 30px; height: 30px; }
  .nav-tools { gap: 4px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   INTEGRACIONES
   ═══════════════════════════════════════════════════════════════════════════ */

#integraciones { padding-top: clamp(80px, 12vw, 140px); }

.modalities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto 80px;
}
@media (max-width: 900px) { .modalities { grid-template-columns: 1fr; } }

.modality-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.modality-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  background: var(--surface-hi);
}
.modality-card-mid {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-violet) 8%, var(--bg-elev)), var(--bg-elev));
  border-color: color-mix(in srgb, var(--brand-violet) 22%, transparent);
}
.modality-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 24px;
}
.modality-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 24%, transparent);
  color: var(--brand-violet-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.modality-icon svg { width: 20px; height: 20px; }
.modality-card-mid .modality-icon {
  background: color-mix(in srgb, var(--brand-cyan) 14%, transparent);
  border-color: color-mix(in srgb, var(--brand-cyan) 28%, transparent);
  color: var(--brand-cyan);
}
.modality-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.modality-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}
.modality-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Int variants */
.int-stage { display: none; }
[data-int-variant="bento"] .int-stage[data-variant="bento"],
[data-int-variant="orbit"] .int-stage[data-variant="orbit"],
[data-int-variant="workflow"] .int-stage[data-variant="workflow"] { display: block; }

/* Bento */
.int-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
}
.bento {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.bento:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-3px);
}
.bento-feat {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, color-mix(in srgb, oklch(70% 0.18 145) 12%, var(--bg-elev)), var(--bg-elev));
  border-color: color-mix(in srgb, oklch(70% 0.18 145) 22%, transparent);
  flex-direction: column;
  align-items: flex-start;
  padding: 36px;
  min-height: 320px;
  justify-content: space-between;
}
.bento-feat-2 {
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  min-height: 200px;
}
.bento-feat-3 {
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  background: linear-gradient(135deg, color-mix(in srgb, oklch(70% 0.18 30) 10%, var(--bg-elev)), var(--bg-elev));
  border-color: color-mix(in srgb, oklch(70% 0.18 30) 20%, transparent);
  min-height: 200px;
}
.bento-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bento-logo-lg { width: 80px; height: 80px; border-radius: 18px; }
.bento-logo img { width: 64%; height: 64%; object-fit: contain; }
[data-theme="dark"] .bento-feat .bento-logo img { filter: brightness(0) invert(1); }
[data-theme="light"] .bento-feat .bento-logo img { filter: brightness(0) invert(0.4) sepia(1) hue-rotate(100deg) saturate(3); }

.bento-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  margin-bottom: 8px;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.bento-feat .bento-title { font-size: 1.7rem; }
.bento-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bento-small {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  gap: 10px;
  min-height: 130px;
  justify-content: center;
}
.bento-glyph {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--c);
}
.bento-small-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.bento-small-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .int-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-feat, .bento-feat-2, .bento-feat-3 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .int-bento { grid-template-columns: 1fr; }
  .bento-feat, .bento-feat-2, .bento-feat-3 { grid-column: span 1; }
}

/* Orbit variant */
.int-orbit-scene {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.int-orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.int-orbit-core {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
}
.int-orbit-core img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px var(--brand-violet-glow));
  animation: orbit-pulse 4s ease-in-out infinite;
}
.int-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: orbit-rotate linear infinite;
}
.int-orbit-ring-inner {
  inset: 26%;
  animation-duration: 36s;
}
.int-orbit-ring-outer {
  inset: 8%;
  animation-duration: 60s;
  animation-direction: reverse;
}
.int-orbit-node {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-200px) rotate(calc(-1 * var(--angle)));
  box-shadow: 0 0 30px color-mix(in srgb, var(--brand-violet) 30%, transparent);
  animation: orbit-counter-rotate-inner 36s linear infinite reverse;
}
.int-orbit-node img { width: 60%; height: 60%; }
@keyframes orbit-counter-rotate-inner {
  to { transform: translate(-50%, -50%) rotate(360deg) translateY(-200px) rotate(-360deg); }
}
.int-orbit-chip {
  position: absolute;
  top: 50%; left: 50%;
  padding: 6px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-320px) rotate(calc(-1 * var(--angle)));
  animation: orbit-counter-rotate-outer 60s linear infinite;
}
@keyframes orbit-counter-rotate-outer {
  to { transform: translate(-50%, -50%) rotate(-360deg) translateY(-320px) rotate(360deg); }
}
@media (max-width: 720px) {
  .int-orbit-node { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-130px) rotate(calc(-1 * var(--angle))); width: 44px; height: 44px; }
  .int-orbit-chip { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-180px) rotate(calc(-1 * var(--angle))); font-size: 0.65rem; padding: 4px 8px; }
  @keyframes orbit-counter-rotate-inner { to { transform: translate(-50%, -50%) rotate(360deg) translateY(-130px) rotate(-360deg); } }
  @keyframes orbit-counter-rotate-outer { to { transform: translate(-50%, -50%) rotate(-360deg) translateY(-180px) rotate(360deg); } }
}

/* Workflow variant */
.int-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.wf-step {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  transition: all 0.3s;
  position: relative;
}
.wf-step-mid {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-violet) 14%, var(--bg-elev)), var(--bg-elev));
  border-color: var(--brand-violet);
  box-shadow: 0 0 40px color-mix(in srgb, var(--brand-violet) 30%, transparent);
}
.wf-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.wf-icon img { width: 60%; height: 60%; }
.wf-icon svg { width: 28px; height: 28px; }
.wf-icon-ai { color: var(--brand-violet-2); border-color: color-mix(in srgb, var(--brand-violet) 30%, transparent); }
.wf-icon-crm { color: var(--brand-cyan); border-color: color-mix(in srgb, var(--brand-cyan) 30%, transparent); }
.wf-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.wf-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.wf-arrow {
  flex: 0 0 60px;
  position: relative;
  height: 2px;
}
.wf-arrow-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-violet), var(--brand-cyan));
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}
.wf-arrow-line::after {
  content: '';
  position: absolute;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, white, transparent);
  animation: wf-flow 2s linear infinite;
}
@keyframes wf-flow {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DEMO
   ═══════════════════════════════════════════════════════════════════════════ */

#demo { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(40px, 6vw, 96px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 900px) {
  .demo-layout { grid-template-columns: 1fr; justify-items: center; }
}

.demo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 32px;
}
.demo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.demo-bullet {
  width: 6px; height: 6px;
  background: var(--brand-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-cyan);
}

.demo-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-suggest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.demo-suggest:hover {
  background: var(--surface-hi);
  border-color: var(--brand-violet);
  color: var(--text);
}

/* Phone frame */
.demo-phone { display: flex; justify-content: center; }
.phone-frame {
  width: 320px;
  height: 600px;
  background: var(--bg);
  border-radius: 36px;
  border: 1px solid var(--border-hi);
  box-shadow:
    0 0 0 8px var(--bg-elev),
    0 0 0 9px var(--border-hi),
    0 30px 80px -20px color-mix(in srgb, var(--brand-violet) 40%, transparent),
    0 50px 100px -30px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #000;
  border-radius: 99px;
  z-index: 10;
}
.phone-header {
  padding: 38px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-violet) 14%, var(--bg-elev)), var(--bg-elev));
  border-bottom: 1px solid var(--border);
}
.phone-back { color: var(--text-muted); font-size: 1.4rem; line-height: 1; }
.phone-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}
.phone-avatar img { width: 100%; height: 100%; object-fit: contain; }
.phone-meta { flex: 1; }
.phone-name { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.phone-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.phone-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: oklch(70% 0.18 145);
  box-shadow: 0 0 6px oklch(70% 0.18 145);
}
.phone-icons { color: var(--text-muted); }

.phone-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--brand-violet) 2%, transparent) 12px 13px),
    var(--bg-elev-2);
}
.phone-date {
  align-self: center;
  font-size: 0.7rem;
  color: var(--text-subtle);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.phone-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  animation: bubble-in 0.3s var(--ease-out);
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.phone-bubble-in {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.phone-bubble-out {
  align-self: flex-end;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-violet) 35%, var(--bg-elev)), color-mix(in srgb, var(--brand-violet-2) 25%, var(--bg-elev)));
  border: 1px solid color-mix(in srgb, var(--brand-violet) 30%, transparent);
  border-bottom-right-radius: 4px;
  color: var(--text);
}
.phone-time {
  display: block;
  font-size: 0.62rem;
  color: var(--text-subtle);
  text-align: right;
  margin-top: 2px;
}
.phone-typing {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  display: flex;
  gap: 4px;
}
.phone-typing span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}
.phone-typing span:nth-child(2) { animation-delay: 0.2s; }
.phone-typing span:nth-child(3) { animation-delay: 0.4s; }

.phone-input {
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  gap: 8px;
  align-items: center;
}
.phone-input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s;
}
.phone-input input:focus { border-color: var(--brand-violet); }
.phone-input button {
  width: 36px; height: 36px;
  background: var(--brand-violet);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.phone-input button:hover { transform: scale(1.06); box-shadow: 0 0 20px var(--brand-violet-glow); }
.phone-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════════════════
   STACK
   ═══════════════════════════════════════════════════════════════════════════ */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr; } }

.stack-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: all 0.3s;
}
.stack-cat:hover { border-color: var(--border-hi); background: var(--surface-hi); }
.stack-cat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.stack-items { display: flex; flex-direction: column; gap: 10px; }
.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}
.stack-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROCESO
   ═══════════════════════════════════════════════════════════════════════════ */

#proceso { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-line {
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, var(--brand-violet), var(--brand-cyan), transparent);
  opacity: 0.35;
}

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.3s;
  position: relative;
}
.process-step:hover { border-color: var(--border-hi); background: var(--surface-hi); transform: translateX(4px); }

.process-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--brand-violet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--brand-violet-2);
  box-shadow: 0 0 16px color-mix(in srgb, var(--brand-violet) 40%, transparent);
  position: relative;
  z-index: 1;
}

.process-content { flex: 1; }
.process-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brand-violet-2);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.process-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VS / COMPARATIVA
   ═══════════════════════════════════════════════════════════════════════════ */

.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 800px) { .vs-grid { grid-template-columns: 1fr; } }

.vs-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}
.vs-col-good {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-violet) 12%, var(--bg-elev)), var(--bg-elev));
  border-color: color-mix(in srgb, var(--brand-violet) 30%, transparent);
  box-shadow: 0 20px 60px -20px color-mix(in srgb, var(--brand-violet) 40%, transparent);
}
.vs-head { margin-bottom: 24px; }
.vs-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}
.vs-label-bad {
  background: color-mix(in srgb, oklch(60% 0.2 30) 14%, transparent);
  color: oklch(78% 0.16 30);
  border: 1px solid color-mix(in srgb, oklch(60% 0.2 30) 24%, transparent);
}
.vs-label-good {
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  color: var(--brand-violet-2);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 28%, transparent);
}
.vs-label-good img { width: 16px; height: 16px; }

.vs-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.vs-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.vs-cross, .vs-check-2 {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 1px;
}
.vs-cross {
  background: color-mix(in srgb, oklch(60% 0.2 30) 14%, transparent);
  border: 1px solid color-mix(in srgb, oklch(60% 0.2 30) 30%, transparent);
}
.vs-cross::before, .vs-cross::after {
  content: '';
  position: absolute;
  width: 9px; height: 1.5px;
  background: oklch(70% 0.16 30);
  border-radius: 1px;
}
.vs-cross::before { transform: rotate(45deg); }
.vs-cross::after { transform: rotate(-45deg); }
.vs-check-2 {
  background: color-mix(in srgb, var(--brand-violet) 18%, transparent);
  border: 1px solid var(--brand-violet);
}
.vs-check-2::after {
  content: '';
  width: 7px; height: 4px;
  border-left: 1.5px solid var(--brand-violet-2);
  border-bottom: 1.5px solid var(--brand-violet-2);
  transform: rotate(-45deg) translateY(-1px);
}
.vs-col-bad li { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   CASOS
   ═══════════════════════════════════════════════════════════════════════════ */

.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .casos-grid { grid-template-columns: 1fr; }
}

.caso {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s;
}
.caso:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-3px);
}
.caso-feat {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-violet) 10%, var(--bg-elev)), var(--bg-elev));
  border-color: color-mix(in srgb, var(--brand-violet) 22%, transparent);
}
.caso-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.caso-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brand-violet-2);
  text-transform: uppercase;
}
.caso-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 99px;
}
.caso-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.caso-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.caso-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
}
.caso-metric {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 28px;
  align-items: flex-end;
}
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MISIÓN
   ═══════════════════════════════════════════════════════════════════════════ */

#mision { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .mission-layout { grid-template-columns: 1fr; }
  .mission-visual { order: -1; max-width: 400px; margin: 0 auto; }
}

.values {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}
.value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.value-dot {
  width: 8px; height: 8px;
  background: var(--brand-violet);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-violet);
  flex-shrink: 0;
  margin-top: 9px;
}
.value strong {
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.value p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

.mission-visual {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.mission-graph { width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item.open {
  border-color: var(--brand-violet);
  background: color-mix(in srgb, var(--brand-violet) 6%, var(--surface));
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.005em;
}
.faq-chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--brand-violet-2);
  transition: transform 0.3s var(--ease-out);
}
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-a div {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  font-family: var(--font-body);
}
.faq-item.open .faq-a { max-height: 280px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════════════════════════════ */

#contacto {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--brand-violet) 12%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-direct {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin: 24px 0 32px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all 0.2s;
}
.contact-direct:hover {
  border-color: var(--brand-violet);
  background: var(--surface-hi);
  transform: translateY(-2px);
}
.contact-direct-icon {
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-violet-2);
}
.contact-direct-text { display: flex; flex-direction: column; gap: 1px; }
.contact-direct-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.contact-direct-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-features { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-feature { display: flex; gap: 14px; align-items: flex-start; }
.contact-feature-icon {
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--brand-violet) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 24%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-violet-2);
}
.contact-feature-icon svg { width: 17px; height: 17px; }
.contact-feature strong {
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}
.contact-feature p { font-size: 0.85rem; color: var(--text-muted); }

.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-violet) 40%, transparent), transparent 50%, color-mix(in srgb, var(--brand-cyan) 30%, transparent));
  -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-subtle); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-violet);
  background: var(--surface-hi);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-violet) 18%, transparent);
}
.form-group select option { background: var(--bg-elev); color: var(--text); }
.form-group textarea { min-height: 110px; resize: vertical; }

.form-submit {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 0 0 1px var(--text), 0 12px 32px -8px color-mix(in srgb, var(--brand-violet) 50%, transparent);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--text), 0 16px 40px -8px color-mix(in srgb, var(--brand-violet) 70%, transparent);
}
.form-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER SIGNATURE
   ═══════════════════════════════════════════════════════════════════════════ */

.footer-signature {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}
.footer-signature a {
  color: var(--brand-violet-2);
  text-decoration: none;
  font-weight: 500;
}
.footer-signature a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   TWEAKS PANEL (vanilla, only when activated by host)
   ═══════════════════════════════════════════════════════════════════════════ */

#tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 18px;
  z-index: 999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  font-family: var(--font-body);
  display: none;
  backdrop-filter: blur(20px);
}
#tweaks-panel.visible { display: block; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tweaks-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.tweaks-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
}
.tweaks-section { margin-bottom: 14px; }
.tweaks-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.tweaks-segments {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.tweaks-seg {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.tweaks-seg.active {
  background: var(--brand-violet);
  color: white;
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO HOOK (animated diagram with real Nexo logo at center)
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-hook {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: clamp(280px, 38vh, 380px);
  margin: 0 auto;
  z-index: 1;
  animation: fade-up 1s 0.5s var(--ease-out) both;
}

#particle-canvas,
#pipeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hook-node {
  position: absolute;
  left: calc(var(--x, 0.5) * 100%);
  top: calc(var(--y, 0.5) * 100%);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: hook-node-in 0.7s var(--ease-out) both;
}
.hook-node-l { animation-delay: 0.6s; }
.hook-node-r { animation-delay: 0.7s; }
@keyframes hook-node-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Bare floating icon — no card container */
.hook-node-icon {
  width: 54px;
  height: 54px;
  padding: 5px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(139,92,246,0.40));
  transition: filter 0.3s;
}
.hook-node-icon-svg {
  width: 54px;
  height: 54px;
  padding: 5px;
}
/* Per-node glow colors matching data-rgb */
.hook-node[data-rgb="37,211,102"] .hook-node-icon {
  filter: drop-shadow(0 0 14px rgba(37,211,102,0.65));
}
.hook-node[data-rgb="220,60,60"] .hook-node-icon {
  filter: drop-shadow(0 0 14px rgba(220,60,60,0.60));
}
.hook-node[data-rgb="200,185,155"] .hook-node-icon {
  filter: drop-shadow(0 0 12px rgba(200,185,155,0.55));
}
.hook-node[data-rgb="167,139,250"] .hook-node-icon-svg {
  filter: drop-shadow(0 0 16px rgba(167,139,250,0.70));
}
.hook-node[data-rgb="6,182,212"] .hook-node-icon-svg {
  filter: drop-shadow(0 0 16px rgba(6,182,212,0.70));
}
.hook-node[data-rgb="139,92,246"] .hook-node-icon-svg {
  filter: drop-shadow(0 0 16px rgba(139,92,246,0.70));
}

/* Keep card styles for any legacy uses */
.hook-node-card {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.hook-node-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand-violet) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hook-node-card img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}
.hook-node-card svg {
  width: 22px;
  height: 22px;
}

.hook-node-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Center: real Nexo logo */
.hook-center {
  position: absolute;
  left: calc(var(--x, 0.5) * 100%);
  top: calc(var(--y, 0.5) * 100%);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: hook-center-in 0.9s 0.5s var(--ease-out) both;
}
@keyframes hook-center-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.hook-center-img {
  position: relative;
  width: 128px; height: 128px;
  z-index: 2;
  animation: hook-pulse 2.6s ease-in-out infinite;
}
@keyframes hook-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 22px color-mix(in srgb, var(--brand-violet) 55%, transparent));
  }
  50% {
    transform: scale(1.07);
    filter: drop-shadow(0 0 44px color-mix(in srgb, var(--brand-violet) 90%, transparent));
  }
}
.hook-center-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hook-center-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding: 4px 12px;
  background: color-mix(in srgb, var(--brand-violet) 14%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--brand-violet) 30%, transparent);
  border-radius: 999px;
}

@media (max-width: 720px) {
  .hero-hook { height: 280px; }
  .hook-node-icon,
  .hook-node-icon-svg { width: 44px; height: 44px; }
  .hook-node-card { width: 42px; height: 42px; }
  .hook-node-card svg { width: 18px; height: 18px; }
  .hook-center-img,
  .hook-center-rings { width: 80px; height: 80px; }
  .hook-node-label { font-size: 0.62rem; }
  .hook-center-name { font-size: 0.72rem; padding: 3px 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEXO SHOWCASE (unified product card)
   ═══════════════════════════════════════════════════════════════════════════ */

#producto { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.nexo-showcase {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: 40px;
  isolation: isolate;
  overflow: hidden;
}
.nexo-showcase-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top left, color-mix(in srgb, var(--brand-violet) 18%, transparent), transparent 50%),
    radial-gradient(ellipse at bottom right, color-mix(in srgb, var(--brand-cyan) 16%, transparent), transparent 50%);
  opacity: 0.7;
}

.nexo-showcase-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.nexo-showcase-logo {
  width: 64px;
  height: 64px;
}
.nexo-showcase-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2) 60%, var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nexo-showcase-tag {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* Modules: two columns with bridge in between */
.nexo-modules {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .nexo-modules { grid-template-columns: 1fr; }
  .nexo-module-bridge { transform: rotate(90deg); height: 80px; margin: -16px auto; }
}

.nexo-module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s var(--ease-out);
}
.nexo-module:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
}
.nexo-module-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.nexo-module-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-hi);
}
.nexo-module-icon svg { width: 22px; height: 22px; }
.nexo-module-icon-crm {
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  border-color: color-mix(in srgb, var(--brand-violet) 28%, transparent);
  color: var(--brand-violet-2);
}
.nexo-module-icon-ag {
  background: color-mix(in srgb, var(--brand-cyan) 14%, transparent);
  border-color: color-mix(in srgb, var(--brand-cyan) 28%, transparent);
  color: var(--brand-cyan);
}
.nexo-module-title h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nexo-module-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.nexo-module-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.nexo-module-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nexo-module-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

/* Bridge between modules */
.nexo-module-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 80px;
}
.bridge-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 6px 0;
}
@media (max-width: 900px) {
  .bridge-label { writing-mode: horizontal-tb; transform: rotate(-90deg) translateY(-10px); }
}
.bridge-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-violet) 60%, transparent), color-mix(in srgb, var(--brand-cyan) 60%, transparent));
  border-radius: 1px;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}
.bridge-pulse {
  position: absolute;
  left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, white, transparent);
  animation: bridge-flow 2s linear infinite;
}
@keyframes bridge-flow {
  0% { top: -40%; }
  100% { top: 100%; }
}

.nexo-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICIOS DEL ESTUDIO
   ═══════════════════════════════════════════════════════════════════════════ */

.srv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 1100px) { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .srv-grid { grid-template-columns: 1fr; } }

.srv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.srv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-violet), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.srv-card:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-3px);
}
.srv-card:hover::before { opacity: 1; }

.srv-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 24%, transparent);
  color: var(--brand-violet-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.srv-icon svg { width: 22px; height: 22px; }

.srv-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.srv-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.srv-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT LOGO BG (for monochrome logos that need contrast)
   ═══════════════════════════════════════════════════════════════════════════ */

.bento-logo-light {
  background: #ffffff;
  border-color: rgba(0,0,0,0.05);
}
[data-theme="dark"] .bento-feat .bento-logo img,
[data-theme="light"] .bento-feat .bento-logo img { filter: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   INT-GRID — uniform integration cards
   ═══════════════════════════════════════════════════════════════════════════ */

.int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 1000px) { .int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .int-grid { grid-template-columns: 1fr; } }

/* Combined logos card (Hermes + Open Claw side-by-side) */
.int-card-logos-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.int-card-logos-row .int-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}
.int-card-logos-row .int-card-logo img,
.int-card-logos-row .int-card-logo svg {
  width: 36px;
  height: 36px;
}

.int-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.25s var(--ease-out);
  min-height: 168px;
  text-align: center;
}
.int-card:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-3px);
}

.int-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
}
.int-card-logo img,
.int-card-logo svg {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.int-card-logo-img {
  background: transparent;
  border: none;
}
.int-card-logo-glyph {
  background: transparent;
  border: none;
  color: var(--c);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.int-card-logo-glyph span { display: block; }

.int-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.int-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--text);
}
.int-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODALITY 03 logos — transparent, well-spaced
   ═══════════════════════════════════════════════════════════════════════════ */

.modality-logos {
  display: flex;
  gap: 18px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
  align-items: center;
}
.modality-logo {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.modality-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modality-logo-glyph {
  background: transparent;
  border: none;
  color: var(--c);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEXO VERTICALS strip
   ═══════════════════════════════════════════════════════════════════════════ */

.nexo-verticals {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.nexo-verticals-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.nexo-verticals-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vertical-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.2s;
}
.vertical-chip:hover {
  border-color: var(--brand-violet);
  background: color-mix(in srgb, var(--brand-violet) 8%, var(--bg));
}
.vertical-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-violet-2);
  flex-shrink: 0;
}
.vertical-icon svg { width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO HOOK consistency: all node cards use the SAME white backdrop
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO HOOK transparent node cards — same dimensions across L and R columns
   ═══════════════════════════════════════════════════════════════════════════ */

.hook-node-card {
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  color: var(--brand-violet-2);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.hook-node-card::before {
  display: none;
}
.hook-node-card img,
.hook-node-card svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.hook-node-card-icon svg {
  /* stroke-based icons need slightly bigger render for visual parity with raster logos */
  width: 38px;
  height: 38px;
}

/* Card con imagen (ej. nexo-icon.png) */
.hook-node-card-img {
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  overflow: hidden;
}
.hook-node-card-img img {
  width: 62%;
  height: 62%;
}

/* Card con icono filled coloreado */
.hook-node-card-colored {
  background: color-mix(in srgb, var(--icon-color, var(--brand-violet)) 14%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--icon-color, var(--brand-violet)) 35%, transparent);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18), 0 0 16px color-mix(in srgb, var(--icon-color, var(--brand-violet)) 20%, transparent);
  color: var(--icon-color, var(--brand-violet));
  overflow: hidden;
}
.hook-node-card-colored svg {
  width: 26px;
  height: 26px;
}

/* Ambient floating dots for the canvas background (added via canvas) — visual only */


/* ═══════════════════════════════════════════════════════════════════════════
   STRIP MARQUEE — real logos scrolling
   ═══════════════════════════════════════════════════════════════════════════ */

#strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.strip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.strip-pulse {
  width: 7px; height: 7px;
  background: oklch(78% 0.18 145);
  border-radius: 50%;
  box-shadow: 0 0 8px oklch(78% 0.18 145);
  animation: pulse-dot 2s ease-in-out infinite;
}
.strip-marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.strip-track {
  display: flex;
  gap: 36px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.strip-track:hover { animation-play-state: paused; }

.strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.strip-item > span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.strip-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.strip-logo-img {
  background: transparent;
  border: none;
}
.strip-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.strip-logo-text {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--c);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
}

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

@media (max-width: 700px) {
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Hermes face needs a soft halo in dark mode for contrast (white face on dark bg) */
[data-theme="dark"] .hook-node-card:has(img[src*="hermes"]) {
  background: radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 60%);
  border-radius: 50%;
}
[data-theme="dark"] .strip-logo-img:has(img[src*="hermes"]) {
  background: radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 60%);
  border-radius: 50%;
}
[data-theme="dark"] .int-card-logos-row .int-card-logo:has(img[src*="hermes"]) {
  background: radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 60%);
  border-radius: 50%;
}
[data-theme="dark"] .modality-logo:has(img[src*="hermes"]) {
  background: radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 60%);
  border-radius: 50%;
}

[data-theme="dark"] img[src*="hermes-dark"] {
  filter: invert(1);
}

.int-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 4px;
  margin-bottom: 6px;
  text-align: center;
  max-width: 200px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING CHAT FAB
   ═══════════════════════════════════════════════════════════════════════════ */

.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(70% 0.18 145), oklch(60% 0.20 155));
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35), 0 0 30px color-mix(in srgb, oklch(70% 0.18 145) 35%, transparent);
  z-index: 200;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  animation: fab-pulse 3s ease-in-out infinite;
}
.fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.45), 0 0 40px color-mix(in srgb, oklch(70% 0.18 145) 50%, transparent);
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35), 0 0 30px color-mix(in srgb, oklch(70% 0.18 145) 35%, transparent); }
  50% { box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35), 0 0 50px color-mix(in srgb, oklch(70% 0.18 145) 60%, transparent); }
}

.fab svg {
  width: 30px;
  height: 30px;
  position: absolute;
  transition: opacity 0.25s, transform 0.3s var(--ease-out);
}
.fab .fab-icon-close { width: 24px; height: 24px; }
.fab .fab-icon-chat { opacity: 1; }
.fab .fab-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.fab.open .fab-icon-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.fab.open .fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.fab.open { animation: none; background: linear-gradient(135deg, oklch(58% 0.27 285), oklch(48% 0.27 285)); }

.fab-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: oklch(72% 0.18 35);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px oklch(72% 0.18 35);
}
.fab.open .fab-badge { display: none; }

/* Panel */
.fab-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 130px);
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  z-index: 199;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.fab-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.fab-panel-head {
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-violet) 14%, var(--bg-elev)), var(--bg-elev));
  border-bottom: 1px solid var(--border);
}
.fab-panel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}
.fab-panel-avatar img { width: 100%; height: 100%; object-fit: contain; }
.fab-panel-meta { flex: 1; }
.fab-panel-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}
.fab-panel-status {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.fab-panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(70% 0.18 145);
  box-shadow: 0 0 6px oklch(70% 0.18 145);
}
.fab-panel-close {
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.fab-panel-close:hover { color: var(--text); background: var(--surface-hi); }

.fab-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--brand-violet) 2%, transparent) 12px 13px),
    var(--bg-elev-2);
}
.fab-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
  animation: bubble-in 0.3s var(--ease-out);
}
.fab-bubble-in {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.fab-bubble-out {
  align-self: flex-end;
  background: linear-gradient(135deg, color-mix(in srgb, oklch(70% 0.18 145) 30%, var(--bg-elev)), color-mix(in srgb, oklch(60% 0.20 155) 24%, var(--bg-elev)));
  border: 1px solid color-mix(in srgb, oklch(70% 0.18 145) 30%, transparent);
  border-bottom-right-radius: 4px;
}
.fab-time {
  display: block;
  font-size: 0.64rem;
  color: var(--text-subtle);
  text-align: right;
  margin-top: 2px;
}
.fab-typing {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  display: flex;
  gap: 4px;
}
.fab-typing span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}
.fab-typing span:nth-child(2) { animation-delay: 0.2s; }
.fab-typing span:nth-child(3) { animation-delay: 0.4s; }

.fab-panel-input {
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  gap: 8px;
  align-items: center;
}
.fab-panel-input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.fab-panel-input input:focus { border-color: oklch(70% 0.18 145); }
.fab-panel-input button {
  width: 36px;
  height: 36px;
  background: oklch(70% 0.18 145);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.fab-panel-input button:hover { transform: scale(1.06); }
.fab-panel-input button:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 460px) {
  .fab { right: 14px; bottom: 14px; }
  .fab-panel { right: 14px; bottom: 80px; left: 14px; width: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHONE INPUT with country flag
   ═══════════════════════════════════════════════════════════════════════════ */

.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  overflow: visible;
}
.phone-input-wrap:focus-within {
  border-color: var(--brand-violet);
  background: var(--surface-hi);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-violet) 18%, transparent);
}
.phone-country {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 6px 10px 10px;
  border-right: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-bottom: none;
  position: relative;
  flex-shrink: 0;
}
.phone-country-flag {
  font-size: 1rem;
  line-height: 1;
}
.phone-country-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.phone-country-chev {
  width: 10px;
  height: 10px;
  color: var(--text-muted);
}
.phone-input-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  box-shadow: none !important;
}
.phone-input-wrap input:focus {
  box-shadow: none !important;
  background: transparent !important;
}

.phone-country-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.3);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  min-width: 200px;
  display: none;
}
.phone-country-menu.open { display: block; }
.phone-country-menu button {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
}
.phone-country-menu button:hover { background: var(--surface-hi); }
.phone-country-menu .pc-name { flex: 1; color: var(--text-muted); font-size: 0.85rem; }
.phone-country-menu .pc-code { color: var(--text-subtle); font-family: var(--font-mono); font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   INT-CARD interactive
   ═══════════════════════════════════════════════════════════════════════════ */

.int-card {
  cursor: pointer;
  outline: none;
}
.int-card:focus-visible {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-violet) 25%, transparent);
}
.int-card[role="button"]::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-hi);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23a78bfa" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg>');
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}
.int-card:hover[role="button"]::after,
.int-card:focus-visible[role="button"]::after {
  opacity: 1;
  transform: translateX(0);
}
.int-card { position: relative; }

/* ═══════════════════════════════════════════════════════════════════════════
   INT MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.int-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.int-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.int-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.int-modal-panel {
  position: relative;
  max-width: 520px;
  width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  margin: 40px auto 0;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 36px 32px 32px;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s var(--ease-out);
  box-shadow: 0 40px 80px -10px rgba(0,0,0,0.5);
}
.int-modal.open .int-modal-panel {
  transform: scale(1) translateY(0);
}

.int-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.int-modal-close:hover { background: var(--surface-hi); color: var(--text); }

.int-modal-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.int-modal-logos {
  display: flex;
  gap: 6px;
  align-items: center;
}
.int-modal-logos > div {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.int-modal-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.int-modal-logos svg {
  width: 32px;
  height: 32px;
}
.int-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.int-modal-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  margin-top: 2px;
}
.int-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 22px;
}
.int-modal-section { margin-bottom: 18px; }
.int-modal-section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.int-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.int-modal-list li {
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.int-modal-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-violet);
  margin-top: 8px;
  flex-shrink: 0;
}
.int-modal-list-check li::before {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: color-mix(in srgb, oklch(70% 0.18 145) 18%, transparent);
  border: 1px solid oklch(70% 0.18 145);
  position: relative;
}
.int-modal-list-check li::after {
  content: '';
  width: 5px;
  height: 3px;
  border-left: 1.5px solid oklch(75% 0.18 145);
  border-bottom: 1.5px solid oklch(75% 0.18 145);
  position: absolute;
  margin-left: 4px;
  margin-top: 5px;
  transform: rotate(-45deg);
}
.int-modal-list-check li { position: relative; }

.int-modal-cta {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════════════════════════════ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.portfolio-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3), 0 0 30px color-mix(in srgb, var(--brand-violet) 12%, transparent);
}

.portfolio-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.04);
}
.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Badge "Próximamente" — esquina superior derecha del thumb */
.portfolio-badge-soon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(139, 92, 246, 0.92);
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
  backdrop-filter: blur(8px);
}


.portfolio-meta {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
}
.portfolio-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.portfolio-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 6px;
  transition: gap 0.2s;
}
.portfolio-card:hover .portfolio-link { gap: 10px; }

#hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FIXES — hero hook + product previews
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  .hero-hook {
    height: 300px;
    max-width: 100%;
  }
  .hook-node-icon,
  .hook-node-icon-svg {
    width: 40px;
    height: 40px;
  }
  .hook-node-card {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .hook-node-card img,
  .hook-node-card svg {
    width: 24px;
    height: 24px;
  }
  .hook-node-label {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }
  .hook-center-img,
  .hook-center-rings {
    width: 76px;
    height: 76px;
  }
  .hook-center-name {
    font-size: 0.68rem;
    padding: 3px 9px;
  }
  .hook-node-card::before { display: none; }

  /* Tighten positions on mobile so nodes don't overlap center logo */
  .hook-node-l { transform: translate(-50%, -50%) scale(0.95); }
  .hook-node-r { transform: translate(-50%, -50%) scale(0.95); }
}

@media (max-width: 480px) {
  .hero-hook { height: 260px; }
  .hook-node-card { width: 34px; height: 34px; border-radius: 8px; }
  .hook-node-card img,
  .hook-node-card svg { width: 20px; height: 20px; }
  .hook-node-label { font-size: 0.52rem; }
  .hook-center-img,
  .hook-center-rings { width: 54px; height: 54px; }
  .hook-center-name { font-size: 0.62rem; padding: 2px 8px; }

  /* Pull nodes slightly toward center to leave room for labels */
  .hook-node-l[data-pos-x="0.14"] { --x: 0.10; }
  .hook-node-r[data-pos-x="0.86"] { --x: 0.90; }
}

/* Product card previews — keep them readable on small screens */
@media (max-width: 720px) {
  .nexo-showcase {
    padding: 24px 18px;
  }
  .product-preview-crm {
    padding: 30px 8px 12px;
    gap: 6px;
    min-height: 180px;
  }
  .crm-prev-col {
    padding: 6px;
    gap: 6px;
  }
  .crm-prev-lbl {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }
  .crm-prev-card {
    padding: 5px;
    gap: 5px;
  }
  .crm-prev-av {
    width: 14px;
    height: 14px;
  }
  .crm-prev-lines span { height: 4px; }

  .product-preview-ag {
    padding: 30px 10px 12px;
    min-height: 180px;
  }
  .chat-bubble {
    font-size: 0.72rem;
    padding: 6px 9px;
  }
  .chat-ai-tag { font-size: 0.55rem; }
  .chat-meta { font-size: 0.55rem; }
  .chat-msg { max-width: 88%; }

  .nexo-module {
    padding: 22px 18px;
  }
  .nexo-module-title h4 { font-size: 1.25rem; }
  .nexo-module-icon { width: 38px; height: 38px; }
  .nexo-module-icon svg { width: 18px; height: 18px; }
  .nexo-module-desc { font-size: 0.9rem; }

  .nexo-showcase-head {
    margin-bottom: 24px;
    padding-bottom: 20px;
    gap: 12px;
  }
  .nexo-showcase-logo { width: 48px; height: 48px; }
  .nexo-showcase-name { font-size: 2rem; }
  .nexo-showcase-tag { font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .nexo-showcase { padding: 20px 14px; }
  .product-preview-crm {
    /* Stack columns vertically on very small screens */
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .crm-prev-col:not(:first-child) {
    /* Show only first column to avoid cramping */
    display: none;
  }
  .crm-prev-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .crm-prev-col-head { flex: 1 0 100%; }
  .crm-prev-card { flex: 1 1 calc(50% - 3px); min-width: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FIXES — second pass (aggressive)
   ═══════════════════════════════════════════════════════════════════════════ */

/* HERO HOOK: switch to compact 3-row stacked layout on narrow screens */
@media (max-width: 720px) {
  .hero-hook {
    height: auto !important;
    min-height: 360px;
    max-width: 100% !important;
    padding: 16px 0;
  }
  /* Pull nodes inward so logo isn't pressed against them */
  .hook-node-l[data-pos-x] { --x: 0.08; }
  .hook-node-r[data-pos-x] { --x: 0.92; }
  .hero-hook .hook-node-card {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px;
  }
  .hero-hook .hook-node-card img,
  .hero-hook .hook-node-card svg {
    width: 22px;
    height: 22px;
  }
  .hero-hook .hook-node-label {
    font-size: 0.55rem;
    letter-spacing: 0.03em;
    max-width: 70px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
  .hook-center-img,
  .hook-center-rings {
    width: 58px !important;
    height: 58px !important;
  }
  .hook-center-name {
    font-size: 0.62rem !important;
    padding: 2px 8px !important;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 100px 12px 28px;
  }
  .hero-hook {
    min-height: 300px;
    padding: 8px 0;
  }
  .hero-hook .hook-node-card {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px;
  }
  .hero-hook .hook-node-card img,
  .hero-hook .hook-node-card svg {
    width: 18px;
    height: 18px;
  }
  .hero-hook .hook-node-label {
    font-size: 0.5rem;
    max-width: 56px;
  }
  .hook-center-img,
  .hook-center-rings {
    width: 50px !important;
    height: 50px !important;
  }
  .hook-center-name {
    font-size: 0.56rem !important;
    padding: 2px 6px !important;
  }
}

/* PRODUCT — Nexo Showcase modules */
@media (max-width: 720px) {
  #producto { padding: 60px 16px 60px; }
  .nexo-showcase {
    padding: 22px 14px !important;
    border-radius: 18px;
  }
  .nexo-showcase-head {
    margin-bottom: 22px !important;
    padding-bottom: 18px !important;
    gap: 12px !important;
  }
  .nexo-showcase-logo { width: 42px !important; height: 42px !important; }
  .nexo-showcase-name { font-size: 1.8rem !important; }
  .nexo-showcase-tag { font-size: 0.68rem !important; }
  .nexo-modules { gap: 18px !important; }
  .nexo-module { padding: 20px 16px !important; }
  .nexo-module-icon { width: 36px !important; height: 36px !important; }
  .nexo-module-icon svg { width: 18px; height: 18px; }
  .nexo-module-title h4 { font-size: 1.2rem !important; }
  .nexo-module-label { font-size: 0.6rem !important; }
  .nexo-module-desc { font-size: 0.88rem !important; }

  /* CRM kanban preview: keep 3 cols but shrink */
  .product-preview-crm {
    padding: 30px 8px 12px !important;
    gap: 6px !important;
    min-height: 0 !important;
  }
  .product-preview-crm .crm-prev-col {
    padding: 6px !important;
    gap: 4px !important;
    overflow: hidden;
  }
  .product-preview-crm .crm-prev-lbl {
    font-size: 0.46rem !important;
    letter-spacing: 0.02em !important;
  }
  .product-preview-crm .crm-prev-card {
    padding: 4px !important;
    gap: 4px !important;
  }
  .product-preview-crm .crm-prev-av {
    width: 12px !important;
    height: 12px !important;
  }
  .product-preview-crm .crm-prev-lines span {
    height: 3px !important;
  }

  /* Agentes chat preview */
  .product-preview-ag {
    padding: 30px 12px 12px !important;
    min-height: 0 !important;
  }
  .chat-prev .chat-bubble {
    font-size: 0.72rem !important;
    padding: 6px 9px !important;
  }
  .chat-prev .chat-ai-tag {
    font-size: 0.54rem !important;
  }
  .chat-prev .chat-meta {
    font-size: 0.54rem !important;
  }
}

@media (max-width: 480px) {
  .product-preview-crm {
    /* On very small screens stack columns vertically, show all 3 */
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .crm-prev-col:not(:first-child) { display: flex !important; }
  .crm-prev-col {
    flex-direction: column !important;
    gap: 4px !important;
  }
}

/* DEMO SECTION — phone + info */
@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: center;
  }
}

@media (max-width: 720px) {
  #demo {
    padding: 64px 16px 64px;
  }
  .demo-info {
    text-align: center;
  }
  .demo-info .section-title { font-size: 1.8rem; }
  .demo-info .section-desc { font-size: 0.94rem; }
  .demo-list { align-items: center; }
  .demo-list li { font-size: 0.88rem; }
  .demo-suggestions { justify-content: center; }
  .demo-suggest {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* Phone scales down */
  .phone-frame {
    width: 280px !important;
    height: 540px !important;
    box-shadow:
      0 0 0 6px var(--bg-elev),
      0 0 0 7px var(--border-hi),
      0 20px 50px -15px color-mix(in srgb, var(--brand-violet) 40%, transparent),
      0 30px 60px -20px rgba(0,0,0,0.6) !important;
  }
  .phone-header { padding: 32px 12px 10px !important; }
  .phone-name { font-size: 0.84rem; }
  .phone-status { font-size: 0.66rem; }
  .phone-bubble { font-size: 0.78rem; padding: 7px 11px; }
}

@media (max-width: 480px) {
  .phone-frame {
    width: calc(100vw - 60px) !important;
    max-width: 280px;
    height: 500px !important;
    border-radius: 32px;
  }
  .phone-notch {
    width: 70px;
    height: 18px;
    top: 10px;
  }
}

/* CONTACT FORM phone country selector */
@media (max-width: 480px) {
  .contact-form-wrap {
    padding: 24px 18px !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .phone-country {
    padding: 10px 4px 10px 8px !important;
  }
  .phone-country-flag { font-size: 0.9rem !important; }
  .phone-country-code { font-size: 0.72rem !important; }
  .phone-input-wrap input {
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
  }
}

/* GENERAL section padding tightening on mobile */
@media (max-width: 480px) {
  section { padding-left: 16px !important; padding-right: 16px !important; }
  .section-title { font-size: 1.7rem !important; }
  .section-desc { font-size: 0.9rem !important; }
  .section-eyebrow { font-size: 0.62rem !important; padding: 3px 9px !important; }
}

@media (max-width: 720px) {
  .phone-input button {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0;
    aspect-ratio: 1;
  }
  .phone-input button svg {
    width: 16px;
    height: 16px;
  }
  .phone-input input {
    min-width: 0;
    flex: 1 1 auto;
  }
  .phone-input {
    padding: 8px !important;
    gap: 6px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEXO BANNER — promotes the product on the landing
   ═══════════════════════════════════════════════════════════════════════════ */

#nexo-banner {
  padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 80px);
}

.nexo-banner-card {
  position: relative;
  display: block;
  max-width: 1300px;
  margin: 0 auto;
  border: 1px solid var(--border-hi);
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-violet) 14%, var(--bg-elev)) 0%,
    color-mix(in srgb, var(--brand-violet-2) 8%, var(--bg-elev)) 60%,
    color-mix(in srgb, var(--brand-cyan) 12%, var(--bg-elev)) 100%);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  isolation: isolate;
}
.nexo-banner-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-violet);
  box-shadow: 0 32px 80px -20px color-mix(in srgb, var(--brand-violet) 40%, transparent);
}

.nexo-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--brand-violet) 25%, transparent), transparent 50%),
    radial-gradient(ellipse at bottom left, color-mix(in srgb, var(--brand-cyan) 18%, transparent), transparent 55%);
  pointer-events: none;
}

.nexo-banner-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.nexo-banner-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 6vw, 64px);
}
@media (max-width: 820px) {
  .nexo-banner-content { grid-template-columns: 1fr; }
  .nexo-banner-right { display: none; }
}

.nexo-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--brand-violet) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 35%, transparent);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  margin-bottom: 22px;
}
.nexo-banner-eyebrow img { width: 18px; height: 18px; }

.nexo-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 18px;
}
.nexo-banner-title .accent {
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2) 50%, var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nexo-banner-desc {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 22px;
}

.nexo-banner-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.nexo-banner-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: var(--surface);
}

.nexo-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  padding: 12px 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), gap 0.2s;
}
.nexo-banner-card:hover .nexo-banner-cta {
  gap: 12px;
}

/* Banner mock (CRM + chat collage) */
.nexo-banner-right {
  position: relative;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-mock {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.banner-mock-bar {
  height: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  position: relative;
}
.banner-mock-bar::before {
  content: '';
  position: absolute;
  top: 9px; left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-subtle);
  box-shadow: 14px 0 0 var(--text-subtle), 28px 0 0 var(--text-subtle);
}
.banner-mock-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}
.banner-mock-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 130px;
}
.banner-mock-col-head {
  height: 3px;
  background: var(--c);
  border-radius: 99px;
  margin-bottom: 4px;
}
.banner-mock-card {
  height: 18px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.banner-mock-card-drag {
  border-color: var(--brand-violet);
  background: color-mix(in srgb, var(--brand-violet) 20%, var(--surface));
  transform: rotate(-2deg);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-violet) 40%, transparent);
  animation: drag-card 4s ease-in-out infinite;
}
.banner-mock-chat {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.5);
  transform: rotate(2deg);
}
.banner-mock-bubble {
  height: 10px;
  border-radius: 6px;
  display: block;
}
.banner-mock-bubble.in {
  background: var(--surface-hi);
  width: 80%;
  align-self: flex-start;
}
.banner-mock-bubble.out {
  background: linear-gradient(90deg, var(--brand-violet), var(--brand-cyan));
  width: 70%;
  align-self: flex-end;
}
.banner-mock-bubble.short { width: 50%; }

/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */


.portfolio-client {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}
.portfolio-client strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT PAGE — Nexo hero + planes
   ═══════════════════════════════════════════════════════════════════════════ */

.product-hero {
  min-height: 70vh !important;
  padding: 120px clamp(20px, 5vw, 80px) 60px !important;
  text-align: center;
  align-items: center !important;
  justify-content: center !important;
}
.product-hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-hero .title-logo {
  width: 1.05em;
  height: 1.05em;
  margin-right: 12px;
  vertical-align: -0.18em;
  filter: drop-shadow(0 0 20px color-mix(in srgb, var(--brand-violet) 50%, transparent));
  display: inline-block;
}
.product-hero .hero-title-line { display: inline-flex; align-items: center; justify-content: center; }
.product-hero .hero-title {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.product-hero-marks {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 4vw, 36px);
  padding: 12px 22px;
  margin: 36px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  align-self: center;
}

/* Product page nav: back-to-studio link + active state */
.nav-back-studio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.2s;
  margin-right: 12px;
}
.nav-back-studio:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface-hi);
}
.nav-back-studio svg {
  width: 13px;
  height: 13px;
}
.nav-product .nav-logo { margin-left: 0; }
.nav-logo-product .nav-logo-text {
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2) 50%, var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 720px) {
  .nav-back-studio span { display: none; }
  .nav-back-studio { padding: 6px; }
}

/* PLANES */
#planes {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 480px; } }

.plan-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s var(--ease-out);
}
.plan-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.plan-card-featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-violet) 14%, var(--bg-elev)), var(--bg-elev));
  border-color: var(--brand-violet);
  box-shadow: 0 20px 60px -10px color-mix(in srgb, var(--brand-violet) 40%, transparent);
  transform: translateY(-6px);
}
.plan-card-featured:hover { transform: translateY(-10px); }

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-violet);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-violet) 50%, transparent);
}
.plan-head { display: flex; flex-direction: column; gap: 4px; }
.plan-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.plan-tag { color: var(--text-muted); font-size: 0.88rem; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.plan-currency {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.plan-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-period {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text);
  line-height: 1.45;
}
.plan-features .check { margin-top: 2px; flex-shrink: 0; }

.plan-cta { width: 100%; justify-content: center; }

.plans-foot {
  text-align: center;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.plans-foot a {
  color: var(--brand-violet-2);
  text-decoration: none;
  font-weight: 500;
}
.plans-foot a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   FLOW DIAGRAM — n8n-style canvas with branching paths
   ═══════════════════════════════════════════════════════════════════════════ */

.flow-diagram {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 1240 / 720;
  padding: 0;
}

.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.flow-path {
  stroke-dasharray: 6 8;
  stroke-dashoffset: 100;
  animation: flow-dash 4s linear infinite;
}
@keyframes flow-dash {
  to { stroke-dashoffset: 0; }
}

.flow-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Position each node by its CSS vars, scaled relative to the 1200x580 viewport */
.flow-node {
  position: absolute;
  left: calc(var(--fx) / 1240 * 100%);
  top: calc(var(--fy) / 720 * 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  z-index: 2;
  width: 170px;
  text-align: center;
  transform: translateX(-50%);
}
.flow-node-dot {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--border-hi);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.flow-node-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--node-glow, color-mix(in srgb, var(--brand-violet) 30%, transparent));
  filter: blur(14px);
  z-index: -1;
  opacity: 0.6;
}
.flow-node-dot img { width: 64%; height: 64%; object-fit: contain; position: relative; z-index: 1; }
.flow-node-dot svg { width: 26px; height: 26px; color: var(--brand-violet-2); position: relative; z-index: 1; }

.flow-node-dot-wa { --node-glow: oklch(70% 0.18 145); border-color: color-mix(in srgb, oklch(70% 0.18 145) 40%, transparent); }
.flow-node-dot-ai {
  --node-glow: var(--brand-violet);
  border-color: var(--brand-violet);
  background: radial-gradient(circle at center, color-mix(in srgb, var(--brand-violet) 22%, var(--bg)), var(--bg));
}
.flow-node-dot-ai svg { color: white; animation: ai-spin 8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }

.flow-node-dot-cal { --node-glow: var(--brand-violet-2); border-color: color-mix(in srgb, var(--brand-violet-2) 40%, transparent); }
.flow-node-dot-cal svg { color: var(--brand-violet-2); }
.flow-node-dot-confirm { --node-glow: oklch(70% 0.18 145); border-color: color-mix(in srgb, oklch(70% 0.18 145) 50%, transparent); }
.flow-node-dot-confirm svg { color: oklch(75% 0.18 145); }
.flow-node-dot-chat { --node-glow: var(--brand-cyan); border-color: color-mix(in srgb, var(--brand-cyan) 40%, transparent); }
.flow-node-dot-chat svg { color: var(--brand-cyan); }
.flow-node-dot-handoff { --node-glow: oklch(72% 0.18 35); border-color: color-mix(in srgb, oklch(72% 0.18 35) 40%, transparent); }
.flow-node-dot-handoff svg { color: oklch(78% 0.18 35); }
.flow-node-dot-crm {
  --node-glow: var(--brand-violet);
  border-color: var(--brand-violet);
  background: radial-gradient(circle at center, color-mix(in srgb, var(--brand-violet) 22%, var(--bg)), var(--bg));
}

.flow-node-info {
  background: transparent;
  padding: 0;
}
.flow-node-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  margin-bottom: 4px;
}
.flow-node-tag-router {
  background: color-mix(in srgb, var(--brand-violet) 18%, transparent);
  border-color: color-mix(in srgb, var(--brand-violet) 35%, transparent);
  color: var(--brand-violet-2);
}
.flow-node-tag-output {
  background: color-mix(in srgb, var(--brand-violet) 18%, transparent);
  border-color: color-mix(in srgb, var(--brand-violet) 35%, transparent);
  color: var(--brand-violet-2);
}
.flow-node-tag-handoff {
  background: color-mix(in srgb, oklch(72% 0.18 35) 18%, transparent);
  border-color: color-mix(in srgb, oklch(72% 0.18 35) 35%, transparent);
  color: oklch(78% 0.18 35);
}
.flow-node-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 2px;
}
.flow-node-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Trigger node — entry point, slight bigger */
.flow-node-trigger .flow-node-dot,
.flow-node-router .flow-node-dot,
.flow-node-output .flow-node-dot {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}
.flow-node-router .flow-node-dot,
.flow-node-output .flow-node-dot {
  box-shadow: 0 0 30px color-mix(in srgb, var(--brand-violet) 50%, transparent), 0 8px 24px rgba(0,0,0,0.25);
}

/* Subtle hover */
.flow-node-dot { transition: transform 0.3s var(--ease-out); }
.flow-node:hover .flow-node-dot { transform: scale(1.06); }

/* Mobile: stack the flow vertically */
@media (max-width: 900px) {
  .flow-diagram {
    aspect-ratio: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 20px 16px;
  }
  .flow-svg { display: none; }
  .flow-nodes {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .flow-node {
    position: static;
    transform: none;
    width: 100%;
    max-width: 320px;
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  .flow-node::after {
    content: '↓';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--brand-violet-2);
    font-size: 1.2rem;
  }
  .flow-node:last-child::after { display: none; }
  .flow-node { position: relative; }
  .flow-node-info { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV — Nexo product link glow (highlight the product CTA in the nav)
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-links a[href="nexo.html"] {
  position: relative;
  color: var(--text);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 38%, transparent);
  transition: all 0.3s var(--ease-out);
  isolation: isolate;
  overflow: visible;
}
.nav-links a[href="nexo.html"]::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2) 50%, var(--brand-cyan));
  filter: blur(10px);
  opacity: 0.55;
  z-index: -1;
  animation: nexo-pulse 2.8s ease-in-out infinite;
}
@keyframes nexo-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.05); }
}
.nav-links a[href="nexo.html"]:hover {
  border-color: var(--brand-violet);
  background: color-mix(in srgb, var(--brand-violet) 22%, transparent);
}
.nav-links a[href="nexo.html"]:hover::before {
  opacity: 0.95;
}

/* Flow node label width tighter to reduce overlap */
.flow-node { width: 160px; }
.flow-node-title { font-size: 0.82rem; }
.flow-node-desc { font-size: 0.7rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PROJECT DETAIL PAGES — /proyectos/*
   ═══════════════════════════════════════════════════════════════════════════ */

.proj-page {
  padding-top: 100px; /* clears fixed nav */
}

/* Breadcrumb */
.proj-breadcrumb {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 clamp(20px, 5vw, 60px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.proj-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.proj-breadcrumb a:hover { color: var(--brand-violet-2); }
.proj-breadcrumb-sep { margin: 0 8px; opacity: 0.5; }

/* Hero */
.proj-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 60px) 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .proj-hero { grid-template-columns: 1fr; gap: 40px; }
}
.proj-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  padding: 6px 14px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brand-violet) 12%, transparent);
  margin-bottom: 18px;
}
.proj-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.proj-hero-title .accent {
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proj-hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 520px;
}
.proj-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 32px;
  font-size: 0.85rem;
}
.proj-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.proj-hero-meta-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.proj-hero-meta-value { color: var(--text); font-weight: 600; }
.proj-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.proj-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  border: 1px solid transparent;
}
.proj-hero-btn-primary {
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2));
  color: #fff;
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--brand-violet) 60%, transparent);
}
.proj-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--brand-violet) 75%, transparent);
}
.proj-hero-btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.proj-hero-btn-ghost:hover {
  border-color: var(--border-hi);
  background: color-mix(in srgb, var(--brand-violet) 4%, var(--surface));
}

.proj-hero-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
  aspect-ratio: 16 / 10;
}
.proj-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section bases */
.proj-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 60px);
}
.proj-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  margin-bottom: 12px;
  display: block;
}
.proj-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 760px;
}
.proj-section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: 40px;
}

/* Challenge bullets */
.proj-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 700px) { .proj-bullets { grid-template-columns: 1fr; } }
.proj-bullet {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.proj-bullet-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-violet) 16%, transparent);
  color: var(--brand-violet-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-bullet-icon svg { width: 22px; height: 22px; }
.proj-bullet-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.proj-bullet-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Features grid */
.proj-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 900px) { .proj-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-features { grid-template-columns: 1fr; } }
.proj-feature {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.3s var(--ease-out);
}
.proj-feature:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
}
.proj-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-violet) 20%, transparent), color-mix(in srgb, var(--brand-violet-2) 15%, transparent));
  color: var(--brand-violet-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.proj-feature-icon svg { width: 24px; height: 24px; }
.proj-feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.proj-feature-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Stack badges */
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.proj-stack-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}
.proj-stack-badge:hover {
  border-color: var(--brand-violet-2);
  color: var(--brand-violet-2);
}

/* Showcase image (between sections) */
.proj-showcase {
  margin: 60px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
}
.proj-showcase img { width: 100%; height: auto; display: block; }

/* Final CTA */
.proj-cta {
  max-width: 1100px;
  margin: 40px auto 100px;
  padding: 60px clamp(28px, 5vw, 80px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-violet) 14%, var(--surface)), color-mix(in srgb, var(--brand-violet-2) 10%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--brand-violet) 25%, transparent);
  border-radius: var(--r-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.proj-cta::before {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-violet) 25%, transparent), transparent 70%);
  pointer-events: none;
}
.proj-cta-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.proj-cta-desc {
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.proj-cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Status pill (e.g. "En desarrollo") */
.proj-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(132, 204, 22, 0.14);
  color: rgb(132, 204, 22);
  border: 1px solid rgba(132, 204, 22, 0.3);
  margin-bottom: 14px;
}
.proj-status-pill.soon {
  background: rgba(139, 92, 246, 0.14);
  color: var(--brand-violet-2);
  border-color: rgba(139, 92, 246, 0.35);
}
.proj-status-pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEXO PRODUCT PAGE — "Próximamente" overrides
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero badge en modo "Próximamente" — más violeta, menos verde */
.hero-badge.hero-badge-soon {
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  border-color: color-mix(in srgb, var(--brand-violet) 40%, transparent);
  color: var(--brand-violet-2);
}
.hero-badge.hero-badge-soon .hero-badge-dot {
  background: var(--brand-violet-2);
  box-shadow: 0 0 10px color-mix(in srgb, var(--brand-violet-2) 80%, transparent);
}

/* Plan cards — badge "Próximamente" arriba a la derecha */
.plan-card { position: relative; }
.plan-soon-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brand-violet) 16%, transparent);
  color: var(--brand-violet-2);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 35%, transparent);
  z-index: 2;
}
.plan-card-featured .plan-soon-tag {
  top: 56px; /* clears the "Más popular" ribbon */
}

/* "Precio al lanzamiento" en lugar del número USD/mes */
.plan-price-tba {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 60px;
  padding: 8px 0;
}
.plan-tba-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--brand-violet) 8%, var(--surface));
  border: 1px dashed color-mix(in srgb, var(--brand-violet) 30%, transparent);
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV DROPDOWN — Nexo → Whisper / CRM
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-dropdown-wrap {
  position: relative;
  list-style: none;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, text-shadow 0.25s, box-shadow 0.3s, background 0.25s, border-color 0.25s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-wrap:hover .nav-dropdown-trigger,
.nav-dropdown-wrap:focus-within .nav-dropdown-trigger {
  color: var(--text);
}

/* Variante con glow — destaca "Nexo Apps" sobre los otros items del nav */
.nav-dropdown-trigger.nav-dropdown-trigger-glow {
  color: var(--brand-violet-2);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brand-violet) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 28%, transparent);
  text-shadow: 0 0 18px color-mix(in srgb, var(--brand-violet) 50%, transparent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-violet) 0%, transparent);
}
.nav-dropdown-trigger.nav-dropdown-trigger-glow:hover,
.nav-dropdown-wrap:hover .nav-dropdown-trigger.nav-dropdown-trigger-glow,
.nav-dropdown-wrap:focus-within .nav-dropdown-trigger.nav-dropdown-trigger-glow {
  color: var(--brand-violet-2);
  background: color-mix(in srgb, var(--brand-violet) 16%, transparent);
  border-color: color-mix(in srgb, var(--brand-violet) 55%, transparent);
  box-shadow: 0 0 28px 2px color-mix(in srgb, var(--brand-violet) 35%, transparent);
  text-shadow: 0 0 22px var(--brand-violet);
}
.nav-dropdown-chev {
  transition: transform 0.25s var(--ease-out);
  opacity: 0.7;
}
.nav-dropdown-wrap:hover .nav-dropdown-chev,
.nav-dropdown-wrap:focus-within .nav-dropdown-chev,
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* Menu — fondo SÓLIDO (no transparente) según tema */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 360px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.30), 0 8px 30px -8px rgba(124, 58, 237, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s var(--ease-out);
  z-index: 200;
}
[data-theme="dark"] .nav-dropdown-menu {
  background: #11111c;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px -16px rgba(0,0,0,0.65), 0 8px 30px -8px rgba(124, 58, 237, 0.25);
}
.nav-dropdown-menu::before {
  /* invisible bridge so the dropdown doesn't disappear when the mouse
     crosses the gap between the trigger and the menu */
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap:focus-within .nav-dropdown-menu,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Items */
.nav-dropdown-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s;
}
.nav-dropdown-item:hover {
  background: color-mix(in srgb, var(--brand-violet) 8%, transparent);
}
.nav-dropdown-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-violet) 22%, transparent), color-mix(in srgb, var(--brand-violet-2) 18%, transparent));
  color: var(--brand-violet-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-dropdown-icon svg { width: 20px; height: 20px; }

/* Variante con logo real (img) — sin gradiente, imagen ocupando todo */
.nav-dropdown-icon-img { background: transparent; padding: 0; }
.nav-dropdown-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}
.nav-dropdown-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  color: var(--text);
}
.nav-dropdown-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 3px;
}
.nav-dropdown-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.nav-dropdown-tag.tag-live {
  background: rgba(132, 204, 22, 0.16);
  color: rgb(132, 204, 22);
  border: 1px solid rgba(132, 204, 22, 0.3);
}
.nav-dropdown-tag.tag-soon {
  background: color-mix(in srgb, var(--brand-violet) 16%, transparent);
  color: var(--brand-violet-2);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 35%, transparent);
}

/* Mobile: dentro del burger menu, mostrar items inline */
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 0 16px;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-chev { display: none; }
  .nav-dropdown-trigger { pointer-events: none; cursor: default; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WAITLIST — reemplaza la sección de planes en nexo.html
   ═══════════════════════════════════════════════════════════════════════════ */

#waitlist {
  padding: 80px clamp(20px, 5vw, 60px);
  display: flex;
  justify-content: center;
}

.waitlist-card {
  position: relative;
  max-width: 880px;
  width: 100%;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-violet) 14%, var(--surface)),
    color-mix(in srgb, var(--brand-violet-2) 10%, var(--surface))
  );
  border: 1px solid color-mix(in srgb, var(--brand-violet) 30%, transparent);
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 80px -24px color-mix(in srgb, var(--brand-violet) 35%, transparent);
}

.waitlist-glow {
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 200%;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--brand-violet) 28%, transparent) 0%,
    transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.waitlist-eyebrow {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  background: color-mix(in srgb, var(--brand-violet) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 40%, transparent);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  z-index: 1;
}

.waitlist-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  z-index: 1;
}
.waitlist-title .accent {
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-left: 0.3ch;
}

.waitlist-desc {
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 36px;
  z-index: 1;
}

.waitlist-perks {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  text-align: left;
  margin: 0 auto 40px;
  max-width: 700px;
  padding: 0;
  z-index: 1;
}
@media (max-width: 700px) { .waitlist-perks { grid-template-columns: 1fr; } }
.waitlist-perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text);
}
.waitlist-perk-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-violet) 18%, transparent);
  color: var(--brand-violet-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.waitlist-perk-icon svg { width: 14px; height: 14px; }

.waitlist-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  z-index: 1;
}

.waitlist-foot {
  position: relative;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.88rem;
  z-index: 1;
}
.waitlist-foot a {
  color: var(--brand-violet-2);
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in srgb, var(--brand-violet) 50%, transparent);
  transition: color 0.2s;
}
.waitlist-foot a:hover { color: var(--text); }

/* Showcase caption (bajo .proj-showcase img) */
.proj-showcase-caption {
  margin: 16px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 720px;
  padding: 0 20px;
}
.proj-showcase-caption strong { color: var(--text); font-weight: 600; }

/* Gallery vertical de 3 imágenes con caption (CRM preview) */
.proj-gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 32px;
}
.proj-gallery-item {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
}
.proj-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}
.proj-gallery-item figcaption {
  padding: 18px 24px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  background: color-mix(in srgb, var(--brand-violet) 4%, var(--surface));
  border-top: 1px solid var(--border);
}
.proj-gallery-item figcaption strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG — index + posts + sidebar tweets de X
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-page { padding-top: 100px; }

/* Hero del blog */
.blog-hero {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 32px clamp(20px, 5vw, 60px) 24px;
  text-align: center;
}
.blog-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  padding: 6px 14px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brand-violet) 12%, transparent);
  margin-bottom: 16px;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.blog-hero-title .accent {
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-violet-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.blog-hero-desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

/* Layout 2 columnas: posts + sidebar */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}
@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
}

/* Grid de posts */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .blog-list { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
}
.blog-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(0,0,0,0.25);
}
.blog-card-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-violet) 25%, var(--surface)), color-mix(in srgb, var(--brand-violet-2) 18%, var(--surface)));
  position: relative;
  overflow: hidden;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  align-self: flex-start;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-card-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.blog-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  margin-bottom: 14px;
}
.blog-sidebar-title svg { width: 16px; height: 16px; }
.blog-sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-violet-2);
  text-decoration: none;
  margin-top: 12px;
  border-bottom: 1px dotted color-mix(in srgb, var(--brand-violet) 40%, transparent);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.blog-sidebar-link:hover { color: var(--text); }

/* X embed timeline container */
.blog-twitter-container {
  max-height: 540px;
  overflow: hidden;
  border-radius: 12px;
}

/* Post individual */
.blog-post-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
}
@media (max-width: 900px) {
  .blog-post-layout { grid-template-columns: 1fr; }
}
.blog-post-article { min-width: 0; }
.blog-post-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  padding: 5px 12px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brand-violet) 12%, transparent);
  margin-bottom: 14px;
}
.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.blog-post-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-post-meta-author img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-violet) 25%, var(--surface)), color-mix(in srgb, var(--brand-violet-2) 18%, var(--surface)));
}
.blog-post-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Article typography */
.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.blog-post-body p { margin-bottom: 1.2em; }
.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2em 0 0.6em;
  line-height: 1.2;
}
.blog-post-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.6em 0 0.5em;
  line-height: 1.3;
}
.blog-post-body ul, .blog-post-body ol { margin: 0 0 1.4em 1.4em; }
.blog-post-body li { margin-bottom: 0.5em; }
.blog-post-body strong { color: var(--text); font-weight: 600; }
.blog-post-body a {
  color: var(--brand-violet-2);
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in srgb, var(--brand-violet) 50%, transparent);
}
.blog-post-body a:hover { color: var(--text); }
.blog-post-body blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--brand-violet);
  background: color-mix(in srgb, var(--brand-violet) 6%, transparent);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}
.blog-post-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: color-mix(in srgb, var(--brand-violet) 10%, var(--surface));
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand-violet-2);
}

/* Back-to-blog link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.blog-back:hover { color: var(--brand-violet-2); }

/* Twitter widget skeleton + fallback */
.tw-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: color-mix(in srgb, var(--brand-violet) 4%, var(--surface));
  border-radius: 12px;
  z-index: 0;
}
.blog-twitter-container { position: relative; min-height: 200px; }
.blog-twitter-container .twitter-timeline,
.blog-twitter-container iframe {
  position: relative;
  z-index: 1;
}
.tw-skel-line {
  height: 12px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brand-violet) 8%, transparent) 0%,
    color-mix(in srgb, var(--brand-violet) 18%, transparent) 50%,
    color-mix(in srgb, var(--brand-violet) 8%, transparent) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: tw-shimmer 1.6s ease-in-out infinite;
}
.tw-skel-line.short { width: 60%; }
@keyframes tw-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tw-fallback {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 14px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--brand-violet) 6%, transparent);
  border-radius: 8px;
  border-left: 2px solid color-mix(in srgb, var(--brand-violet) 40%, transparent);
}
.tw-fallback a {
  color: var(--brand-violet-2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted color-mix(in srgb, var(--brand-violet) 50%, transparent);
}
.tw-fallback a:hover { color: var(--text); }

/* Footer social icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-violet) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 22%, transparent);
  color: var(--text-muted);
  transition: all 0.22s var(--ease-out);
}
.footer-social a:hover {
  color: #fff;
  background: var(--brand-violet);
  border-color: var(--brand-violet);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand-violet) 50%, transparent);
}
.footer-social a svg { width: 16px; height: 16px; }

/* ─── X feed rendering (custom, via RSSHub) ─── */
.tw-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  position: relative;
}
.tw-tweet {
  display: block;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--brand-violet) 5%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s var(--ease-out);
}
.tw-tweet:hover {
  border-color: color-mix(in srgb, var(--brand-violet) 40%, transparent);
  background: color-mix(in srgb, var(--brand-violet) 9%, var(--surface));
  transform: translateY(-1px);
}
.tw-tweet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.74rem;
}
.tw-tweet-handle {
  color: var(--brand-violet-2);
  font-weight: 600;
  font-family: var(--font-mono);
}
.tw-tweet-time {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.tw-tweet-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Cuando .tw-feed tiene contenido (no skeleton), sacar el min-height fijo */
.tw-feed:has(.tw-tweet) { min-height: 0; }

/* Fallback inline cuando ninguna fuente del feed responde */
.tw-fallback-inline {
  padding: 16px;
  background: color-mix(in srgb, var(--brand-violet) 6%, transparent);
  border-radius: 10px;
  border-left: 2px solid color-mix(in srgb, var(--brand-violet) 40%, transparent);
  text-align: center;
}
.tw-fallback-inline p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.4;
}
.tw-fallback-inline a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-violet-2);
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in srgb, var(--brand-violet) 50%, transparent);
  padding-bottom: 2px;
}
.tw-fallback-inline a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG STREAM — sección "Lo último en X" con tweet cards grandes
   ═══════════════════════════════════════════════════════════════════════════ */

/* Layout sin sidebar (1 col full-width) */
.blog-layout-full {
  grid-template-columns: 1fr !important;
}
.blog-layout-full .blog-list {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .blog-layout-full .blog-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-layout-full .blog-list { grid-template-columns: 1fr; }
}

.blog-post-layout-full {
  grid-template-columns: 1fr !important;
  max-width: 760px;
}

/* Stream section */
.blog-stream {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 60px clamp(20px, 5vw, 60px) 80px;
  border-top: 1px solid var(--border);
}
.blog-stream-head {
  text-align: center;
  margin-bottom: 36px;
}
.blog-stream-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-violet-2);
  padding: 6px 14px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brand-violet) 12%, transparent);
  margin-bottom: 14px;
}
.blog-stream-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.blog-stream-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* Stream grid */
.blog-stream-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .blog-stream-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-stream-grid { grid-template-columns: 1fr; } }

/* Tweet skeleton card (mientras carga) */
.tw-skeleton-card {
  background: color-mix(in srgb, var(--brand-violet) 5%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  animation: tw-shimmer 1.6s ease-in-out infinite;
  background: linear-gradient(110deg,
    color-mix(in srgb, var(--brand-violet) 5%, var(--surface)) 30%,
    color-mix(in srgb, var(--brand-violet) 14%, var(--surface)) 50%,
    color-mix(in srgb, var(--brand-violet) 5%, var(--surface)) 70%);
  background-size: 200% 100%;
}

/* Tweet card (después de render) */
.tw-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s var(--ease-out);
}
.tw-card:hover {
  border-color: color-mix(in srgb, var(--brand-violet) 40%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(0,0,0,0.25), 0 0 24px -8px color-mix(in srgb, var(--brand-violet) 30%, transparent);
}
.tw-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-violet) 25%, var(--surface)), color-mix(in srgb, var(--brand-violet-2) 18%, var(--surface)));
}
.tw-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease-out);
}
.tw-card:hover .tw-card-image img { transform: scale(1.04); }
.tw-card-image-placeholder {
  position: relative;
}
.tw-card-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 48px; height: 48px;
  transform: translate(-50%, -50%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.5)"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>') center / contain no-repeat;
  opacity: 0.4;
}
.tw-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tw-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
}
.tw-card-handle {
  color: var(--brand-violet-2);
  font-weight: 600;
  font-family: var(--font-mono);
}
.tw-card-time {
  color: var(--text-muted);
}
.tw-card-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
  margin: 0;
}
.tw-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--brand-violet-2);
  margin-top: 4px;
  transition: gap 0.2s;
}
.tw-card:hover .tw-card-link { gap: 9px; }

/* Stream footer (botón Seguinos en X) */
.blog-stream-foot {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Fallback inline cuando el stream falla (override del feedEl que ahora es grid) */
.blog-stream-grid .tw-fallback-inline {
  grid-column: 1 / -1;
  padding: 40px;
}

/* ═══ Post: bloque "También publicado en X" ═══ */
.post-x-link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 40px 0 24px;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--brand-violet) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-violet) 28%, transparent);
  border-radius: var(--r-lg);
}
.post-x-link svg {
  color: var(--brand-violet-2);
  flex-shrink: 0;
  margin-top: 2px;
}
.post-x-link strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 4px;
}
.post-x-link a {
  color: var(--brand-violet-2);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in srgb, var(--brand-violet) 50%, transparent);
  padding-bottom: 1px;
}
.post-x-link a:hover { color: var(--text); }
