@font-face {
  font-family: "YouthDisplay";
  src: url("assets/fonts/Youth_Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "InstrumentSans";
  src: url("assets/fonts/instrument-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "InstrumentSans";
  src: url("assets/fonts/instrument-sans-bold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrainsMono";
  src: url("assets/fonts/jetbrains-mono-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-alt: #EEF1F6;
  --studio: #070B14;
  --studio-surface: #0E1526;
  --ink: #0F172A;
  --ink-muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --cobalt: #2563EB;
  --cobalt-hover: #1D4ED8;
  --ice: #60A5FA;
  --ok: #10B981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "InstrumentSans", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#scroll-progress {
  position: fixed;
  top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--cobalt), #38BDF8);
  z-index: 200;
  transition: width 40ms linear;
}

.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

.mono-kicker {
  display: inline-block;
  font-family: "JetBrainsMono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 8px;
}

/* SCROLL REVEAL PROGRESIVO */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0ms),
              transform 620ms cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* TOPBAR */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, border-color 220ms ease;
}
.topbar.scrolled { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--line); }
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "YouthDisplay", sans-serif; font-size: 1.05rem;
  color: #FFFFFF; text-decoration: none;
}
.topbar.scrolled .brand { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 7px; background: var(--cobalt); color: #FFFFFF; font-size: 0.78rem;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: rgba(248, 250, 252, 0.75); text-decoration: none;
  font-size: 0.88rem; font-weight: 600; transition: color 160ms ease;
}
.nav-links a:hover { color: #FFFFFF; }
.topbar.scrolled .nav-links a { color: var(--ink-muted); }
.topbar.scrolled .nav-links a:hover { color: var(--ink); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 9px; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}
.btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.btn-cobalt { background: var(--cobalt); color: #FFFFFF; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35); }
.btn-cobalt:hover { background: var(--cobalt-hover); }
.btn-glass { background: rgba(255, 255, 255, 0.07); color: #F8FAFC; border-color: rgba(255, 255, 255, 0.16); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); }

/* HERO STUDIO */
.hero-studio {
  position: relative;
  padding: 96px 0 0;
  background: radial-gradient(1200px 620px at 72% 28%, #102046 0%, var(--studio) 65%);
  color: #F8FAFC;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-cursor-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(520px circle at var(--hx, 65%) var(--hy, 40%), rgba(59, 130, 246, 0.2), transparent 65%);
}
.hero-stage-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px;
  align-items: center; padding: 28px 24px 52px;
}

.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.79rem; color: #CBD5E1; margin-bottom: 20px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGlow 2.2s infinite;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: "YouthDisplay", sans-serif;
  font-size: clamp(2.6rem, 5.4vw, 4.7rem);
  line-height: 0.99; letter-spacing: -0.03em; margin-bottom: 18px;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 4px; }
.line-inner {
  display: inline-block; transform: translateY(108%); opacity: 0;
  animation: lineSlideUp 700ms cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) forwards;
}
@keyframes lineSlideUp { to { transform: translateY(0); opacity: 1; } }
.reveal-line {
  opacity: 0; transform: translateY(14px);
  animation: fadeSlideUp 650ms cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) forwards;
}
@keyframes fadeSlideUp { to { opacity: 1; transform: translateY(0); } }

.accent-line { position: relative; color: var(--ice); }
.kinetic-word { display: inline-block; transition: opacity 220ms ease, transform 220ms ease; }
.kinetic-word.is-swapping { opacity: 0; transform: translateY(10px); }
.hero-underline { position: absolute; left: 0; bottom: -4px; width: 100%; height: 12px; pointer-events: none; }
.hero-underline path {
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: drawUnderline 900ms cubic-bezier(0.22, 1, 0.36, 1) 420ms forwards;
}
@keyframes drawUnderline { to { stroke-dashoffset: 0; } }

.hero-sub { font-size: 1.08rem; color: #CBD5E1; max-width: 44ch; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* NÚCLEO INTERACTIVO CLICKEABLE */
.hero-core-wrap { perspective: 1200px; }
.hero-core-card {
  background: rgba(13, 21, 39, 0.76);
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 18px; padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, -6deg));
  transition: transform 80ms linear, border-color 200ms ease;
}
.core-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.core-dot { width: 8px; height: 8px; border-radius: 50%; background: #38BDF8; box-shadow: 0 0 12px #38BDF8; }
.core-label { font-family: "JetBrainsMono", monospace; font-size: 0.68rem; letter-spacing: 0.08em; color: #93C5FD; }

.core-flow { display: grid; gap: 4px; }
.core-node {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: inherit;
  transition: background 180ms ease, border-color 180ms ease, transform 160ms ease;
}
.core-node:hover { transform: translateX(4px); border-color: rgba(96, 165, 250, 0.45); }
.core-node.is-active {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}
.node-idx { font-family: "JetBrainsMono", monospace; font-size: 0.75rem; font-weight: 700; color: #60A5FA; }
.core-node strong { display: block; font-size: 0.92rem; color: #FFFFFF; }
.core-node small { display: block; font-size: 0.78rem; color: #94A3B8; }
.node-chevron { margin-left: auto; font-size: 1.1rem; color: #60A5FA; transition: transform 160ms ease; }
.core-node.is-active .node-chevron { transform: translateX(3px); color: #FFFFFF; }

.core-connector {
  height: 16px; width: 2px; margin-left: 22px;
  background: rgba(96, 165, 250, 0.25); position: relative; overflow: hidden;
}
.core-connector span {
  position: absolute; top: -8px; left: 0; width: 2px; height: 10px;
  background: #38BDF8; animation: pulseDown 1.4s linear infinite;
}
@keyframes pulseDown {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(24px); opacity: 0; }
}

.core-detail-bar {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(7, 11, 20, 0.65); border: 1px solid rgba(96, 165, 250, 0.24);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.core-detail-bar p { font-size: 0.82rem; color: #CBD5E1; line-height: 1.4; }
.core-cta {
  font-family: "JetBrainsMono", monospace; font-size: 0.74rem;
  color: #60A5FA; text-decoration: none; font-weight: 600; white-space: nowrap;
}
.core-cta:hover { color: #FFFFFF; }

/* TICKER HERO */
.hero-ticker {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden; padding: 12px 0;
}
.ticker-track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  font-family: "JetBrainsMono", monospace; font-size: 0.74rem; letter-spacing: 0.09em; color: #94A3B8;
  animation: tickerScroll 28s linear infinite;
}
.ticker-track i { font-style: normal; color: var(--cobalt); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* BENTO ARQUITECTÓNICO CON AIRE SUPERIOR */
.bento-band {
  background: var(--bg);
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
}
.bento-section-intro { margin-bottom: 24px; }
.bento-section-intro h2 {
  font-family: "YouthDisplay", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: -0.025em;
}
.bento-architectural {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.05);
}
.bcell {
  position: relative; background: var(--surface); padding: 26px 28px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: background 180ms ease;
}
.bcell:hover { background: #FAFBFD; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, -220px) var(--my, -220px), rgba(37, 99, 235, 0.09), transparent 60%);
}
.bcell-profile {
  grid-column: span 2; grid-row: span 2;
  display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: stretch;
}
.profile-photo-wrap { height: 100%; min-height: 220px; }
.profile-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border-radius: 12px; display: block;
}
.profile-info { display: flex; flex-direction: column; justify-content: center; }
.bcell-profile h3 { font-family: "YouthDisplay", sans-serif; font-size: 1.42rem; letter-spacing: -0.02em; }
.bento-role { font-size: 0.92rem; font-weight: 600; color: var(--cobalt); margin: 3px 0 8px; }
.bento-desc { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row span {
  font-family: "JetBrainsMono", monospace; font-size: 0.7rem; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--ink-muted); background: var(--bg);
}

.stat-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sparkline { width: 88px; height: 30px; flex-shrink: 0; }
.stat-mono { display: block; font-family: "YouthDisplay", sans-serif; font-size: 1.85rem; color: var(--ink); }
.bcell-stat strong { display: block; font-size: 0.94rem; margin: 6px 0 3px; }
.bcell-stat p { font-size: 0.84rem; color: var(--ink-muted); }

.bcell-action { display: flex; flex-direction: column; justify-content: space-between; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.action-row strong { font-size: 1rem; }
.arrow-circle {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 0.88rem; flex-shrink: 0;
  transition: transform 160ms ease;
}
.bcell-action:hover .arrow-circle { transform: translate(2px, -2px); }
.bcell-action p { font-size: 0.84rem; color: var(--ink-muted); }

.bcell-cobalt { background: var(--studio); color: #FFFFFF; }
.bcell-cobalt:hover { background: var(--studio-surface); }
.bcell-cobalt .mono-kicker { color: var(--ice); }
.bcell-cobalt p { color: #CBD5E1; }
.bcell-cobalt .arrow-circle { border-color: rgba(255, 255, 255, 0.25); color: #FFFFFF; }

.draw-svg path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 850ms cubic-bezier(0.22, 1, 0.36, 1); }
.draw-svg.is-drawn path { stroke-dashoffset: 0; }

/* SECCIÓN 1: SANDBOX OSCURO DE APPS REALES */
.demos-sandbox {
  background: radial-gradient(900px 460px at 18% 12%, #132248 0%, #090E1A 65%);
  color: #F8FAFC;
  padding: 84px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.section-head-dark { margin-bottom: 24px; }
.sandbox-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.38);
  font-family: "JetBrainsMono", monospace; font-size: 0.7rem; color: #34D399;
  margin-bottom: 12px;
}
.section-head-dark h2 { font-family: "YouthDisplay", sans-serif; font-size: clamp(1.7rem, 2.9vw, 2.3rem); letter-spacing: -0.025em; }
.section-head-dark p { color: #CBD5E1; margin-top: 6px; max-width: 62ch; }

.demo-selector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.tab-card-dark {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: 15px 17px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04); color: #E2E8F0; cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.tab-card-dark:hover { transform: translateY(-2px); border-color: rgba(96, 165, 250, 0.45); }
.tab-card-dark.active {
  background: var(--cobalt); color: #FFFFFF; border-color: #60A5FA;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.38);
}
.tab-num {
  font-family: "JetBrainsMono", monospace; font-size: 0.78rem;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.1); color: #93C5FD; font-weight: 700;
}
.tab-card-dark.active .tab-num { background: rgba(7, 11, 20, 0.35); color: #FFFFFF; }
.tab-card-dark strong { display: block; font-size: 0.96rem; margin-bottom: 2px; }
.tab-card-dark small { display: block; font-size: 0.8rem; color: #94A3B8; }
.tab-card-dark.active small { color: #E0E7FF; }
.tab-card-dark:focus-visible,
.demo-guide-step:focus-visible,
.chrome-action:focus-visible { outline: 2px solid #7DD3FC; outline-offset: 3px; }

.demo-guide {
  display: grid; grid-template-columns: minmax(190px, 0.9fr) minmax(0, 3fr) auto;
  align-items: center; gap: 16px;
  margin: 0 0 20px; padding: 15px 18px;
  border: 1px solid rgba(125, 211, 252, 0.2); border-left: 3px solid #34D399;
  border-radius: 14px; background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}
.demo-guide-heading { min-width: 0; }
.demo-guide-kicker { display: block; margin-bottom: 4px; color: #6EE7B7; font-family: "JetBrainsMono", monospace; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; }
.demo-guide-heading p { color: #CBD5E1; font-size: 0.82rem; line-height: 1.45; }
.demo-guide-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.demo-guide-step {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  padding: 6px 10px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 9px;
  background: rgba(255, 255, 255, 0.045); color: #E2E8F0; cursor: pointer;
  font: inherit; font-size: 0.76rem; line-height: 1.3; text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}
.demo-guide-step:hover { transform: translateY(-1px); border-color: rgba(125, 211, 252, 0.55); }
.demo-guide-step[aria-pressed="true"] { border-color: rgba(52, 211, 153, 0.5); background: rgba(16, 185, 129, 0.12); color: #D1FAE5; }
.guide-step-check { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border: 1px solid rgba(148, 163, 184, 0.4); border-radius: 50%; color: #94A3B8; font-family: "JetBrainsMono", monospace; font-size: 0.62rem; font-weight: 700; }
.demo-guide-step[aria-pressed="true"] .guide-step-check { border-color: #34D399; background: #34D399; color: #052E2B; }
.demo-guide-progress { justify-self: end; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: #A7F3D0; font-family: "JetBrainsMono", monospace; font-size: 0.66rem; white-space: nowrap; }

.device-stage { display: none; }
.device-stage.active {
  display: block;
  animation: sandboxEnter 250ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
@keyframes sandboxEnter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chrome-desktop {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.48);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.chrome-desktop:hover, .chrome-desktop:focus-within { border-color: rgba(96, 165, 250, 0.65); box-shadow: 0 28px 64px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(96, 165, 250, 0.14), 0 0 30px rgba(56, 189, 248, 0.12); }
.chrome-dark { background: #0B1120; }
.chrome-bar {
  min-height: 48px; padding: 7px 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  background: #F4F4F5; border-bottom: 1px solid var(--line);
}
.chrome-dark .chrome-bar { background: #131C31; border-bottom-color: rgba(255, 255, 255, 0.1); color: #CBD5E1; }
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #D4D4D8; }
.chrome-url { flex: 1 1 135px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "JetBrainsMono", monospace; font-size: 0.74rem; color: var(--ink-muted); }
.chrome-dark .chrome-url { color: #94A3B8; }
.chrome-badge { font-family: "JetBrainsMono", monospace; font-size: 0.7rem; color: #059669; font-weight: 700; }
.chrome-dark .chrome-badge { color: #34D399; }
.chrome-live-prompt { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid rgba(5, 150, 105, 0.25); border-radius: 999px; background: rgba(16, 185, 129, 0.09); color: #047857; font-size: 0.69rem; font-weight: 700; white-space: nowrap; }
.chrome-dark .chrome-live-prompt { border-color: rgba(52, 211, 153, 0.24); background: rgba(16, 185, 129, 0.12); color: #6EE7B7; }
.chrome-live-dot { position: relative; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14); }
.chrome-live-dot::after { position: absolute; inset: -4px; border: 1px solid rgba(16, 185, 129, 0.6); border-radius: 50%; content: ""; animation: demoPulse 1.8s ease-out infinite; }
@keyframes demoPulse { 0% { opacity: 0.7; transform: scale(0.55); } 100% { opacity: 0; transform: scale(1.75); } }
.chrome-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.chrome-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; padding: 5px 8px; border: 1px solid rgba(15, 23, 42, 0.14); border-radius: 7px; background: #FFFFFF; color: #1E293B; cursor: pointer; font: inherit; font-size: 0.69rem; font-weight: 700; white-space: nowrap; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.chrome-action:hover { transform: translateY(-1px); border-color: rgba(37, 99, 235, 0.45); background: #EFF6FF; }
.chrome-action > span { font-size: 0.9rem; line-height: 1; }
.chrome-dark .chrome-action { border-color: rgba(148, 163, 184, 0.2); background: #1E293B; color: #E2E8F0; }
.chrome-dark .chrome-action:hover { border-color: rgba(96, 165, 250, 0.5); background: #26364F; }
.demo-iframe { width: 100%; border: 0; display: block; }
.iframe-desktop { height: 560px; }

.chrome-phone-wrap { display: grid; grid-template-columns: 390px 1fr; gap: 36px; align-items: center; }
.chrome-phone {
  width: 390px; padding: 12px; border-radius: 34px;
  background: #020617; border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.52);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.chrome-phone:hover, .chrome-phone:focus-within { border-color: rgba(96, 165, 250, 0.65); box-shadow: 0 28px 64px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(96, 165, 250, 0.14), 0 0 30px rgba(56, 189, 248, 0.12); }
.phone-notch { display: flex; justify-content: center; padding-bottom: 8px; }
.phone-notch span { width: 88px; height: 6px; border-radius: 99px; background: #334155; }
.chrome-phone-bar { min-height: 40px; flex-wrap: nowrap; justify-content: space-between; gap: 5px; padding: 2px 1px 10px; border: 0; background: transparent; }
.chrome-phone-bar .chrome-live-prompt { gap: 5px; padding: 5px 7px; border-color: rgba(52, 211, 153, 0.24); background: rgba(16, 185, 129, 0.12); color: #6EE7B7; font-size: 0.64rem; }
.chrome-phone-bar .chrome-actions { gap: 4px; }
.chrome-phone-bar .chrome-action { min-height: 29px; padding: 5px 6px; font-size: 0.63rem; }
.iframe-phone { height: 560px; border-radius: 22px; background: #FFFBF5; }
.phone-aside-dark .mono-kicker { color: var(--ice); }
.phone-aside-dark h3 { font-family: "YouthDisplay", sans-serif; font-size: 1.6rem; margin-bottom: 10px; color: #FFFFFF; }
.phone-aside-dark p { color: #CBD5E1; margin-bottom: 14px; }
.phone-aside-dark ul { padding-left: 18px; color: #94A3B8; display: grid; gap: 6px; }

/* SECCIÓN 2: CASOS LIMPIOS EN 3 COLUMNAS SIN RECORTES */
.cases-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.cases-inner { padding: 80px 24px; }
.section-head-editorial { margin-bottom: 26px; }
.section-head-editorial h2 { font-family: "YouthDisplay", sans-serif; font-size: clamp(1.65rem, 2.8vw, 2.25rem); letter-spacing: -0.025em; }
.section-head-editorial p { color: var(--ink-muted); margin-top: 6px; max-width: 62ch; }

/* SECCIÓN 2: CASOS INTERACTIVOS (SELECTOR IMPACTO + DOSSIER EDITORIAL) */
.cases-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.cases-inner { padding: 84px 24px; }
.section-head-editorial { margin-bottom: 26px; }
.section-head-editorial h2 { font-family: "YouthDisplay", sans-serif; font-size: clamp(1.65rem, 2.8vw, 2.25rem); letter-spacing: -0.025em; }
.section-head-editorial p { color: var(--ink-muted); margin-top: 6px; max-width: 62ch; }

.cases-selector-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 20px;
}
.case-tab-btn {
  text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: 14px;
  background: var(--bg); border: 1.5px solid var(--line);
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.case-tab-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.45);
}
.case-tab-btn.active {
  background: var(--studio);
  color: #FFFFFF;
  border-color: var(--cobalt);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}
.case-tab-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.case-tab-idx {
  font-family: "JetBrainsMono", monospace; font-size: 0.69rem;
  letter-spacing: 0.06em; color: var(--cobalt); font-weight: 700;
}
.case-tab-btn.active .case-tab-idx { color: var(--ice); }
.case-tab-arrow {
  font-size: 0.95rem; color: var(--ink-muted);
  transition: transform 160ms ease, color 160ms ease;
}
.case-tab-btn.active .case-tab-arrow { transform: translateX(3px); color: #FFFFFF; }
.case-tab-metric {
  display: block; font-family: "YouthDisplay", sans-serif;
  font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 4px;
}
.case-tab-sub {
  display: block; font-size: 0.82rem; color: var(--ink-muted);
}
.case-tab-btn.active .case-tab-sub { color: #CBD5E1; }

.case-dossier { display: none; }
.case-dossier.active {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.06);
  animation: sandboxEnter 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.case-dossier-copy {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.dossier-badge {
  display: inline-block; font-family: "JetBrainsMono", monospace;
  font-size: 0.72rem; color: var(--cobalt); margin-bottom: 6px;
}
.dossier-header h3 {
  font-family: "YouthDisplay", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em; line-height: 1.18;
}
.dossier-kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.dkpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.dkpi strong {
  display: block; font-family: "YouthDisplay", sans-serif;
  font-size: 1.65rem; color: var(--cobalt); letter-spacing: -0.02em;
}
.dkpi span { font-size: 0.8rem; color: var(--ink-muted); }

.dossier-blocks { display: grid; gap: 12px; }
.dblock {
  background: var(--surface); border-left: 3px solid var(--cobalt);
  border-radius: 0 10px 10px 0; padding: 12px 16px;
}
.dblock-label {
  display: block; font-family: "JetBrainsMono", monospace;
  font-size: 0.68rem; font-weight: 700; color: var(--cobalt);
  letter-spacing: 0.08em; margin-bottom: 4px;
}
.dblock p { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.5; }

.dossier-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.btn-zoom-case {
  padding: 9px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; transition: border-color 150ms ease, background 150ms ease;
}
.btn-zoom-case:hover { border-color: var(--cobalt); background: #EFF6FF; }

.case-dossier-media {
  position: relative;
  background: #0B1120;
  border-radius: 14px;
  padding: 14px;
  display: grid; place-items: center;
  min-height: 340px; max-height: 430px;
  overflow: hidden; cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.14);
}
.case-dossier-media img {
  width: 100%; height: 100%; max-height: 400px;
  object-fit: contain; display: block; border-radius: 8px;
  transition: transform 240ms ease;
}
.case-dossier-media:hover img { transform: scale(1.025); }
.media-zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(7, 11, 20, 0.85); color: #E2E8F0;
  font-family: "JetBrainsMono", monospace; font-size: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* GALERÍA SIN RECORTAR TEXTOS */
.section-space { padding: 80px 24px; }
.sector-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill-btn {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-muted); font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: all 140ms ease;
}
.pill-btn.active, .pill-btn:hover { background: var(--cobalt); color: #FFFFFF; border-color: var(--cobalt); }

.masonry-grid { columns: 3 290px; column-gap: 16px; }
.m-card {
  position: relative; break-inside: avoid; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.m-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1); }
.m-card.is-hidden { display: none; }
.m-img-box { background: #0B1120; display: grid; place-items: center; }
.m-img-box img { width: 100%; height: auto; display: block; }
.reel-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(7, 11, 20, 0.88); color: #FFFFFF;
  font-family: "JetBrainsMono", monospace; font-size: 0.7rem;
}
.m-caption { padding: 12px 14px; }
.m-caption span { display: block; font-size: 0.74rem; color: var(--cobalt); font-weight: 600; }
.m-caption strong { font-size: 0.95rem; }

/* MÉTODO CLARO + WHATSAPP CON MOVIMIENTO */
.method-studio { background: var(--surface-alt); border-top: 1px solid var(--line); padding: 80px 0; }
.method-grid-editorial { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 24px; align-items: stretch; }
.method-steps-col h2 { font-family: "YouthDisplay", sans-serif; font-size: 1.85rem; margin-bottom: 18px; }
.step-rail { display: grid; gap: 12px; }
.step-card {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 180ms ease, transform 160ms ease, box-shadow 180ms ease;
}
.step-card:hover { transform: translateX(4px); border-color: rgba(37, 99, 235, 0.45); }
.step-card.is-active {
  border-color: var(--cobalt);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.1);
}
.step-num { font-family: "JetBrainsMono", monospace; font-size: 0.9rem; color: var(--cobalt); font-weight: 700; padding-top: 2px; }
.step-card strong { display: block; font-size: 1rem; color: var(--ink); }
.step-card p { font-size: 0.9rem; color: var(--ink-muted); margin-top: 4px; line-height: 1.45; }

.cta-studio-card {
  position: relative; overflow: hidden;
  background: radial-gradient(500px 300px at 80% 10%, #172B5E 0%, var(--studio) 70%);
  color: #FFFFFF; border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid rgba(96, 165, 250, 0.28);
}
.cta-live-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(16, 185, 129, 0.4);
  font-family: "JetBrainsMono", monospace; font-size: 0.68rem; color: #34D399;
  margin-bottom: 14px;
}
.cta-studio-card h3 { font-family: "YouthDisplay", sans-serif; font-size: 1.6rem; margin-bottom: 10px; }
.cta-studio-card p { color: #CBD5E1; margin-bottom: 22px; font-size: 0.95rem; }
.cta-stack { display: grid; gap: 10px; }

.btn-whatsapp-pulse {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF; font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.42);
}
.btn-whatsapp-pulse::after {
  content: "";
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: shimmerSweep 3.2s ease-in-out infinite;
}
@keyframes shimmerSweep {
  0%, 40% { left: -120%; }
  100% { left: 160%; }
}
.wa-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #BBF7D0;
  box-shadow: 0 0 0 0 rgba(187, 247, 208, 0.8);
  animation: pulseGlow 1.8s infinite;
}

.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 22px 0; font-size: 0.82rem; color: var(--ink-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* LIGHTBOX */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(7, 11, 20, 0.82); backdrop-filter: blur(5px); }
.lb-dialog { position: relative; z-index: 2; max-width: 760px; width: 100%; background: var(--surface); border-radius: 14px; overflow: hidden; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(7, 11, 20, 0.85); color: #FFFFFF; cursor: pointer; }
.lb-media { background: var(--studio); display: grid; place-items: center; max-height: 70vh; }
.lb-media img { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.lb-info { padding: 16px 20px; }
.lb-info h3 { font-family: "YouthDisplay", sans-serif; font-size: 1.15rem; margin-bottom: 4px; }
.lb-info p { font-size: 0.9rem; color: var(--ink-muted); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-stage-grid { grid-template-columns: 1fr; padding-bottom: 24px; }
  .bento-architectural { grid-template-columns: 1fr 1fr; }
  .bcell-profile { grid-column: span 2; grid-row: span 1; }
  .demo-selector-grid { grid-template-columns: 1fr; }
  .demo-guide { grid-template-columns: minmax(0, 1fr) auto; }
  .demo-guide-heading { grid-column: 1 / -1; }
  .demo-guide-list { grid-column: 1; }
  .demo-guide-progress { grid-column: 2; grid-row: 2; }
  .chrome-phone-wrap { grid-template-columns: 1fr; justify-items: center; }
  .cases-selector-strip { grid-template-columns: 1fr; }
  .case-dossier.active { grid-template-columns: 1fr; padding: 20px; }
  .method-grid-editorial { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bento-architectural { grid-template-columns: 1fr; }
  .bcell-profile { grid-column: span 1; grid-template-columns: 1fr; }
  .chrome-phone { width: 100%; max-width: 360px; }
  .demo-guide { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .demo-guide-heading, .demo-guide-list, .demo-guide-progress { grid-column: 1; grid-row: auto; }
  .demo-guide-list { display: grid; grid-template-columns: 1fr; }
  .demo-guide-progress { justify-self: start; }
  .chrome-bar { gap: 7px; padding: 8px 10px; }
  .chrome-bar .chrome-url { flex-basis: 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
