/* ==========================================================================
   kern.ia — landing page
   Dirección visual: modo oscuro estilo Linear, tokens extraídos 1:1 de
   linear.app y adaptados al acento de marca kern.ia (ver PLAN-DISENO-LANDING-KERN-IA.md)
   ========================================================================== */

:root {
  --bg: #08090A;
  --surface: #161718;
  --surface-faint: rgba(255, 255, 255, 0.02);
  --surface-2: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.07);
  --border-soft: rgba(255, 255, 255, 0.045);
  --fg: #F7F8F8;
  --muted: #8A8F98;
  --muted-2: #5D6169;

  --accent: #7FA0C2;
  --accent-strong: #A9C4DE;
  --accent-dim: rgba(127, 160, 194, 0.13);
  --good: #5FBE94;
  --good-dim: rgba(95, 190, 148, 0.12);
  --caution: #C2A25C;
  --caution-dim: rgba(194, 162, 92, 0.14);

  --font-sans: 'Inter', -apple-system, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-pill: 100px;
  --wrap: 1120px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #0A0B0C;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.divider { height: 1px; background: var(--border-soft); border: none; }

/* ---------- shared text bits ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.mono { font-family: var(--font-mono); }

.badge-owned {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--good);
  background: var(--good-dim);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.badge-ai {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.illustrative {
  font-size: 11px;
  color: var(--muted-2);
  font-style: italic;
}

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: #0A0B0C;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-strong); color: #0A0B0C; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.18); color: var(--fg); }

/* ---------- panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.panel-faint {
  background: var(--surface-faint);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--muted);
}
.chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s ease;
}
.site-header.is-scrolled { background: rgba(8, 9, 10, 0.92); }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a:not(.btn-primary) { color: var(--muted); }
.nav-links a:not(.btn-primary):hover { color: var(--fg); }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--fg); }

/* ---------- hero ---------- */
.hero { padding-top: 96px; padding-bottom: 56px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-faint);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 5px 14px 5px 6px;
  margin-bottom: 28px;
}
.hero-badge .tag {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.hero-badge .txt { font-size: 13px; color: var(--muted); }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 56px);
  line-height: 1.06;
  max-width: 820px;
}
.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 600px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- hero-demo (animated "así te lee la IA" loop) ---------- */
.hero-demo { margin-top: 56px; padding: 0; overflow: hidden; }
.hero-demo-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border-soft);
}
.hero-demo-dots { display: flex; gap: 7px; align-items: center; }
.hd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.hero-demo-viewport { position: relative; aspect-ratio: 16/8.2; background: var(--bg); }
.hd-phase {
  position: absolute; inset: 0; padding: 24px 26px;
  display: flex; flex-direction: column; opacity: 0;
}
.hd-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.hd-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }

/* Phase A — así te lee hoy la IA */
#hdA { animation: hdPhaseA 40s infinite; }
#hdA .hd-tag { color: var(--caution); }
#hdA .hd-tag::before { background: var(--caution); }
.hd-site-block { flex: 1; display: flex; gap: 16px; }
.hd-site-preview { flex: 1.1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; position: relative; }
.hd-site-preview .hd-bar { height: 7px; border-radius: 3px; background: rgba(255,255,255,0.1); margin-bottom: 8px; }
.hd-site-preview .hd-bar.w60 { width: 60%; }
.hd-site-preview .hd-bar.w40 { width: 40%; }
.hd-site-preview .hd-bar.img { height: 40px; border-radius: 5px; background: rgba(255,255,255,0.06); margin: 9px 0; }
.hd-noise span {
  position: absolute; font-family: var(--font-mono); font-size: 9.5px; color: var(--caution);
  background: var(--caution-dim); border: 1px solid rgba(194,162,92,0.3); padding: 2px 5px; border-radius: 4px;
}
.hd-read-panel { flex: 0.85; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 13px; display: flex; flex-direction: column; gap: 7px; }
.hd-read-panel .hd-line { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }
.hd-score-big { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--caution); margin-top: auto; }
.hd-score-big small { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--muted-2); }
.hd-score-cap { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* Phase B — kern.ia escaneando */
#hdB { animation: hdPhaseB 40s infinite; }
#hdB .hd-tag { color: var(--accent-strong); }
#hdB .hd-tag::before { background: var(--accent); }
.hd-extract-block { flex: 1; display: flex; gap: 16px; position: relative; }
.hd-beam {
  position: absolute; left: 0; right: 0; height: 54px;
  background: linear-gradient(180deg, transparent, rgba(127,160,194,0.28), transparent);
  animation: hdSweep 40s infinite;
}
.hd-entity-list { display: flex; flex-direction: column; gap: 8px; flex: 0.9; justify-content: center; }
.hd-entity-chip {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-strong);
  background: var(--accent-dim); border: 1px solid rgba(127,160,194,0.3);
  padding: 6px 9px; border-radius: 6px; opacity: 0; transform: translateX(-6px);
}
#hdChip1 { animation: hdChipIn 40s infinite; }
#hdChip2 { animation: hdChipIn 40s infinite; animation-delay: .3s; }
#hdChip3 { animation: hdChipIn 40s infinite; animation-delay: .6s; }
#hdChip4 { animation: hdChipIn 40s infinite; animation-delay: .9s; }

/* Phase C — dato estructurado */
#hdC { animation: hdPhaseC 40s infinite; }
#hdC .hd-tag { color: var(--good); }
#hdC .hd-tag::before { background: var(--good); }
.hd-structured-block { flex: 1; display: flex; gap: 16px; align-items: center; }
.hd-code-card {
  flex: 1.2; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 15px; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--muted);
}
.hd-code-card .k { color: var(--accent-strong); }
.hd-code-card .v { color: var(--good); }
.hd-score-flip { flex: 0.7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.hd-score-num-wrap { position: relative; width: 100%; height: 50px; }
.hd-score-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 40px; opacity: 0;
}
#hdScoreOld { color: var(--caution); animation: hdScoreOld 40s infinite; }
#hdScoreNew { color: var(--good); animation: hdScoreNew 40s infinite; }

/* Phase D — ecosistema */
#hdD { animation: hdPhaseD 40s infinite; }
#hdD .hd-tag { color: var(--accent-strong); }
#hdD .hd-tag::before { background: var(--accent); }
.hd-graph-block { flex: 1; position: relative; }
.hd-graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hd-graph-lines .gl { stroke: rgba(127,160,194,0.4); stroke-width: 0.6; opacity: 0; animation: hdLineIn 40s infinite; }
.hd-graph-node {
  position: absolute; transform: translate(-50%,-50%);
  font-family: var(--font-mono); font-size: 10.5px; white-space: nowrap;
  color: var(--accent-strong); background: var(--accent-dim);
  border: 1px solid rgba(127,160,194,0.3); padding: 5px 10px; border-radius: 100px;
  opacity: 0; animation: hdNodeIn 40s infinite;
}
.hd-graph-node.hub { color: var(--fg); background: var(--surface-2); border-color: var(--border); font-weight: 700; font-size: 11px; }
.hd-graph-node.engine { color: var(--good); background: var(--good-dim); border-color: rgba(95,190,148,0.3); }

/* Phase E — la IA te nombra y recomienda */
#hdE { animation: hdPhaseE 40s infinite; }
#hdE .hd-tag { color: var(--good); }
#hdE .hd-tag::before { background: var(--good); }
.hd-chat-block { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hd-chat-bubble { max-width: 80%; padding: 9px 12px; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.hd-chat-bubble.user { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.hd-chat-bubble.ai { align-self: flex-end; background: var(--accent-dim); border: 1px solid rgba(127,160,194,0.3); color: var(--fg); }
.hd-chat-bubble.ai b { color: var(--accent-strong); }
.hd-cite-row { align-self: flex-end; display: flex; gap: 6px; }
.hd-cite-pill { font-family: var(--font-mono); font-size: 9.5px; color: var(--good); background: var(--good-dim); padding: 3px 8px; border-radius: 100px; }
.hd-rec-pill { font-family: var(--font-mono); font-size: 9.5px; color: var(--bg); background: var(--good); padding: 3px 8px; border-radius: 100px; font-weight: 600; }

@keyframes hdSweep {
  0%, 21%, 100% { transform: translateY(-36px); opacity: 0; }
  23% { opacity: 1; }
  36% { transform: translateY(110px); opacity: 0; }
}
@keyframes hdChipIn {
  0%, 17% { opacity: 0; transform: translateX(-6px); }
  21%, 36% { opacity: 1; transform: translateX(0); }
  40%, 100% { opacity: 0; }
}
@keyframes hdLineIn {
  0%, 54% { opacity: 0; }
  60%, 72% { opacity: 0.4; }
  78%, 100% { opacity: 0; }
}
@keyframes hdNodeIn {
  0%, 54% { opacity: 0; transform: translate(-50%,-4px); }
  60%, 72% { opacity: 1; transform: translate(-50%,0); }
  78%, 100% { opacity: 0; }
}
@keyframes hdPhaseA { 0% { opacity: 1; } 16% { opacity: 1; } 20% { opacity: 0; } 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hdPhaseB { 0%, 16% { opacity: 0; } 20%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes hdPhaseC { 0%, 36% { opacity: 0; } 40%, 56% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes hdPhaseD { 0%, 56% { opacity: 0; } 60%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes hdPhaseE { 0%, 76% { opacity: 0; } 80%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hdScoreOld { 0%, 40% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes hdScoreNew { 0%, 46% { opacity: 0; } 50%, 100% { opacity: 1; } }

@keyframes hdDotA { 0%, 16% { background: var(--caution); } 20%, 100% { background: var(--border); } }
@keyframes hdDotB { 0%, 16% { background: var(--border); } 20%, 36% { background: var(--accent); } 40%, 100% { background: var(--border); } }
@keyframes hdDotC { 0%, 36% { background: var(--border); } 40%, 56% { background: var(--good); } 60%, 100% { background: var(--border); } }
@keyframes hdDotD { 0%, 56% { background: var(--border); } 60%, 76% { background: var(--accent); } 80%, 100% { background: var(--border); } }
@keyframes hdDotE { 0%, 76% { background: var(--border); } 80%, 96% { background: var(--good); } 100% { background: var(--border); } }
#hdDotA { animation: hdDotA 40s infinite; }
#hdDotB { animation: hdDotB 40s infinite; }
#hdDotC { animation: hdDotC 40s infinite; }
#hdDotD { animation: hdDotD 40s infinite; }
#hdDotE { animation: hdDotE 40s infinite; }

@media (prefers-reduced-motion: reduce) {
  #hdA, #hdB, #hdC, #hdD, #hdE, .hd-beam, .hd-entity-chip, .hd-graph-node, .hd-graph-lines .gl,
  #hdScoreOld, #hdScoreNew, #hdDotA, #hdDotB, #hdDotC, #hdDotD, #hdDotE { animation: none !important; }
  #hdE { opacity: 1; }
  #hdScoreNew { opacity: 1; }
  #hdDotE { background: var(--good); }
}
@media (max-width: 680px) {
  .hd-site-block, .hd-extract-block, .hd-structured-block { flex-direction: column; }
  .hero-demo-viewport { aspect-ratio: 9/13.5; }
}

/* chat mockup */
.chat-intro { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.chat-panel { max-width: 620px; overflow: hidden; padding: 0; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--border-soft); }
.chat-head .dot { width: 20px; height: 20px; border-radius: 6px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; }
.chat-head span.label { font-size: 12.5px; color: var(--muted); }
.chat-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-bubble-user {
  align-self: flex-end;
  max-width: 80%;
  background: var(--surface-2);
  border-radius: 14px 14px 4px 14px;
  padding: 11px 15px;
}
.chat-bubble-user p { font-size: 13.5px; color: var(--fg); }
.chat-bubble-ai { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble-ai p { font-size: 13.5px; color: var(--fg); line-height: 1.6; }
.chat-bubble-ai strong { color: var(--fg); }
.chat-sources { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-sources .panel-faint { padding: 4px 10px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.chat-sources .badge-owned { padding: 1px 6px; }
.chat-caption { margin-top: 12px; }

/* ---------- pillars ---------- */
.pillars {
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar p:first-child { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.pillar p:last-child { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- how-it-works intro ---------- */
.steps-intro { padding-top: 72px; padding-bottom: 8px; }
.steps-intro > h2 { font-size: clamp(1.7rem, 3.5vw, 34px); margin-top: 12px; max-width: 640px; }
.steps-intro > p { font-size: 16px; color: var(--muted); margin-top: 14px; max-width: 560px; line-height: 1.55; }

/* ---------- numbered steps ---------- */
.step {
  padding-top: 80px;
  padding-bottom: 16px;
}
.step:first-of-type { padding-top: 64px; }
.step-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.step-num { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-num-index { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent); }
.step-num-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.step-info h3 { font-size: 24px; line-height: 1.25; }
.step-info > p { font-size: 14px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.substeps { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.substep { display: flex; align-items: baseline; gap: 10px; }
.substep .mono { font-size: 12px; color: var(--accent); }
.substep span:last-child { font-size: 13px; color: var(--fg); }

.step-panel { padding: 22px; min-height: 220px; }
.step-panel.no-pad { padding: 0; overflow: hidden; }

/* 1.0 analizar panel */
.entities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.entities-grid .panel-faint { padding: 14px; }
.entities-grid .k { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.entities-grid .v { font-size: 14px; color: var(--fg); }

/* 2.0 construir panel */
.translate-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 26px 20px; }
.translate-row .panel-faint.source { padding: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.translate-arrow { color: var(--accent); flex-shrink: 0; }
.translate-out { display: flex; flex-direction: column; gap: 8px; }
.translate-out .panel-faint { padding: 8px 12px; font-size: 12.5px; color: var(--fg); text-align: center; }
.translate-foot { padding: 14px 20px; border-top: 1px solid var(--border-soft); }
.translate-foot p { font-size: 12px; color: var(--muted-2); }

/* 3.0 ejecutar panel */
.prompt-list { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.prompt-item { padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.prompt-item .phase { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }
.prompt-item p { font-size: 13.5px; color: var(--fg); }
.prompt-item.is-decision {
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
}
.prompt-item.is-decision .phase { color: var(--accent); }

/* 4.0 medir panel */
.results-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border-soft); }
.results-row .cell { padding: 22px 16px; border-right: 1px solid var(--border-soft); }
.results-row .cell:last-child { border-right: none; }
.results-row .k { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.results-row .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 4vw, 28px); }
.results-row .v.good { color: var(--good); }
.domains { padding: 18px 20px; }
.domains .head { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.domain-row { display: flex; align-items: center; justify-content: space-between; padding: 3.5px 0; }
.domain-row .name { font-size: 13px; color: var(--muted); }
.domain-row .name.self { color: var(--fg); font-weight: 600; }
.domain-row .name.self .badge-owned { margin-left: 8px; }
.domain-row .rank { font-size: 12px; color: var(--muted-2); }

/* 5.0 compararte panel */
.voice-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.voice-panel-head p { font-size: 12px; color: var(--muted); }
.voice-bars { display: flex; flex-direction: column; gap: 14px; }
.voice-bar-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.voice-bar-label .name { color: var(--muted); }
.voice-bar-label .name.self { color: var(--fg); font-weight: 600; }
.voice-bar-label .val { color: var(--muted); }
.voice-bar-label .val.self { color: var(--accent); }
.voice-bar-track { height: 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.voice-bar-fill { height: 100%; background: rgba(255, 255, 255, 0.28); transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.voice-bar-fill.self { background: var(--accent); }
.is-visible .voice-bar-fill { transform: scaleX(1); }
.voice-foot { font-size: 12px; color: var(--muted-2); margin-top: 18px; line-height: 1.5; }

/* ---------- promise ---------- */
.promise-block { padding-top: 64px; padding-bottom: 64px; }
.promise-panel { padding: 36px 40px; background: var(--surface-faint); }
.promise-panel p { font-size: 20px; line-height: 1.5; color: var(--fg); max-width: 760px; }
.promise-panel strong { color: var(--fg); }

/* ---------- comparison ---------- */
.comparison { padding-bottom: 80px; }
.comparison h2 { font-size: 30px; margin-top: 12px; margin-bottom: 28px; }
.comparison-table-wrap { overflow-x: auto; }
.comparison-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.comparison-table th, .comparison-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-soft);
}
.comparison-table thead th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}
.comparison-table thead th.highlight { color: var(--accent); }
.comparison-table tbody th { color: var(--muted); font-weight: 400; }
.comparison-table td.highlight { color: var(--fg); font-weight: 600; }
.comparison-table tbody tr:last-child td, .comparison-table tbody tr:last-child th { border-bottom: none; }

/* ---------- testimonial ---------- */
.testimonial-block { padding-bottom: 80px; }
.testimonial-panel { padding: 44px; }
.testimonial-panel p { font-size: 22px; line-height: 1.5; color: var(--fg); max-width: 760px; }
.testimonial-panel cite { display: block; margin-top: 20px; font-size: 14px; color: var(--muted); font-style: normal; }

/* ---------- pricing ---------- */
.pricing-block { padding-bottom: 80px; }
.pricing-block h2 { font-size: 30px; margin-top: 12px; margin-bottom: 28px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card { padding: 32px; }
.price-card.is-founder { border-color: var(--accent); }
.price-card .plan-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.price-card.is-founder .plan-label { color: var(--accent); }
.price-card .price-amount { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.price-card .price-amount .amount { font-family: var(--font-display); font-weight: 800; font-size: 42px; color: var(--fg); }
.price-card:not(.is-founder) .price-amount .amount { color: var(--muted); }
.price-card .price-amount .period { font-size: 14px; color: var(--muted); }
.price-card .price-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.price-card .divider { margin: 22px 0; }
.price-features { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--fg); }
.price-features span::before { content: '·'; color: var(--accent); margin-right: 6px; }
.price-card .price-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.price-cta { margin-top: 24px; width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-block { padding-bottom: 100px; }
.faq-block h2 { font-size: 30px; margin-top: 12px; margin-bottom: 28px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item { background: var(--bg); padding: 18px 20px; }
.faq-item summary {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* ---------- agendar (Calendario de Google embebido) ---------- */
.schedule-block { padding-bottom: 100px; }
.schedule-block h2 { font-size: 30px; margin-top: 12px; margin-bottom: 20px; }
.schedule-intro { max-width: 680px; }
.schedule-intro .lead { font-size: 15px; color: var(--muted); line-height: 1.65; }
.schedule-signature { margin-top: 14px; font-size: 13px; color: var(--muted-2); line-height: 1.6; }
.schedule-signature strong { color: var(--muted); font-weight: 600; }

.schedule-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0 24px;
}
.schedule-item { border-top: 1px solid var(--border-soft); padding-top: 14px; }
.schedule-item .n { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.schedule-item strong { display: block; font-size: 14.5px; color: var(--fg); font-weight: 600; margin-bottom: 4px; }
.schedule-item span { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* El widget de Google es claro: se enmarca como tarjeta y no se intenta oscurecer.
   El marco se dibuja a 940x642 —el ancho mínimo con el que Google muestra el
   primer día con cupo, y el alto con el que cabe entero, pie incluido— y se
   presenta al 85%, que es lo que evita que se coma media pantalla. Sólo aparece
   sobre 1040px de viewport (ver initSchedule en main.js); más abajo manda el
   botón, porque ahí Google ya no alcanza a dibujar un día con horas libres. */
.schedule-embed {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  width: 799px;
  height: 546px;
  margin: 0 auto;
}
.schedule-embed iframe {
  display: block;
  width: 940px;
  height: 642px;
  border: 0;
  transform: scale(0.85);
  transform-origin: 0 0;
}
.schedule-fallback { margin-top: 12px; font-size: 12.5px; color: var(--muted-2); text-align: center; }

/* Por defecto —móvil, pantallas medianas y sin JavaScript— manda el botón; el
   iframe sólo aparece cuando main.js confirma pantalla ancha y le pone el src. */
.schedule-embed, .schedule-fallback { display: none; }
.schedule-block.has-embed .schedule-embed,
.schedule-block.has-embed .schedule-fallback { display: block; }
.schedule-block.has-embed .schedule-cta { display: none; }

/* ---------- contact / hubspot ---------- */
.contact-block { padding-bottom: 90px; }
.contact-panel { padding: 40px; text-align: center; background: var(--surface-faint); }
.contact-panel h2 { font-size: 32px; max-width: 560px; margin: 0 auto; }
.contact-panel .lead { font-size: 15px; color: var(--muted); margin-top: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }
.contact-panel .btn-primary { margin-top: 26px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.contact-actions .btn-ghost { margin-top: 26px; }

.hubspot-form-block { padding-bottom: 90px; }
.hubspot-form-block h3 { font-size: 20px; margin-bottom: 8px; }
.hubspot-form-block > .wrap > p { font-size: 14px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hubspot-embed {
  max-width: 480px;
  padding: 28px;
  background: var(--fg);
  overflow: hidden;
}

/* ---------- footer ---------- */
.site-footer .wrap.footer-top {
  padding-top: 32px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--fg); }
.footer-logo span { color: var(--accent); }
.footer-address { font-size: 12.5px; color: var(--muted-2); text-align: right; }
.site-footer .wrap.footer-bottom { padding-bottom: 40px; }
.site-footer .wrap.footer-bottom p { font-size: 11.5px; color: var(--muted-2); }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.reveal-delay { transition-delay: 0.08s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .voice-bar-fill { transform: scaleX(1); transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .step-grid { grid-template-columns: 1fr; gap: 24px; }
  .step-info { max-width: 640px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a:not(.btn-primary) { width: 100%; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); }
  .nav-cta { margin: 12px 18px; }

  .pillars { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
  .translate-row { grid-template-columns: 1fr; }
  .translate-arrow { transform: rotate(90deg); margin: 0 auto; }
  .results-row { grid-template-columns: 1fr; }
  .results-row .cell { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .results-row .cell:last-child { border-bottom: none; }
  .footer-address { text-align: left; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .entities-grid { grid-template-columns: 1fr; }
  .price-card { padding: 24px; }
  .testimonial-panel { padding: 28px; }
  .testimonial-panel p { font-size: 19px; }
  .promise-panel { padding: 28px 24px; }
  .promise-panel p { font-size: 17px; }
  .contact-panel { padding: 28px 20px; }
  .hubspot-embed { padding: 20px; }
}

/* ==========================================================================
   Secciones tomadas de la postulación al Premio a la Innovación CPCC 2026:
   tecnología, visibilidad vs. cita, los cuatro eslabones, caso real,
   cómo se construye y origen. Prefijo por bloque para no pisar lo anterior.
   ========================================================================== */

/* ---------- franja de tecnología ---------- */
.tech-strip { padding-top: 8px; padding-bottom: 56px; }
.tech-strip-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.tech-group { padding: 22px 26px; }
.tech-group .eyebrow { display: block; color: var(--muted); margin-bottom: 18px; }
.tech-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.tech-logos img { height: 30px; width: auto; }
.tech-logos img.claude { height: 28px; }
.tech-group p.tech-cap { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

/* ---------- visibilidad vs. cita ---------- */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.term-card { padding: 24px; }
.term-card .term { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.term-card p:last-child { font-size: 14px; color: var(--muted); line-height: 1.6; }
.term-card.is-accent { border-color: rgba(127, 160, 194, 0.35); }
.question-callout {
  margin-top: 16px;
  padding: 22px 26px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.question-callout q { font-size: 17px; font-weight: 600; color: var(--fg); quotes: '«' '»'; }
.question-callout span { font-size: 13px; color: var(--muted); max-width: 360px; }

/* ---------- los cuatro eslabones ---------- */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
  counter-reset: link;
}
.chain-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.chain-card .n { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.chain-card h3 { font-size: 16px; }
.chain-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.chain-state {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.chain-state.live { color: var(--good); background: var(--good-dim); }
.chain-state.half { color: var(--caution); background: var(--caution-dim); }
.chain-state.none { color: var(--muted); background: var(--surface-2); }
.steps-intro > p.chain-note { font-size: 13px; color: var(--muted-2); margin-top: 16px; max-width: 760px; line-height: 1.6; }

.audit-block { margin-top: 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: stretch; }
.audit-text { padding: 26px; }
.audit-text h3 { font-size: 19px; margin-bottom: 10px; }
.audit-text p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.audit-text p + p { margin-top: 10px; }
.audit-table-wrap { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.audit-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); padding: 14px 18px; border-bottom: 1px solid var(--border-soft); }
.audit-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); color: var(--muted); }
.audit-table tr:last-child td { border-bottom: none; }
.audit-table td:first-child { color: var(--fg); }
.audit-table td.idx { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--fg); }

/* ---------- caso real ---------- */
.case-panel { padding: 32px; margin-top: 32px; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.case-head img { height: 22px; width: auto; }
.case-head span { font-size: 12px; color: var(--muted-2); }
.case-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-stat { padding: 20px 22px; }
.case-stat .v { color: var(--fg); font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; margin-bottom: 8px; }
.case-stat p:last-child { font-size: 14px; color: var(--muted); line-height: 1.5; }
.funnel-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.funnel-rows { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 130px 1fr 56px; gap: 14px; align-items: center; font-size: 13.5px; }
.funnel-row .track { height: 8px; background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; }
.funnel-row .fill { height: 100%; background: var(--accent); border-radius: var(--radius-pill); }
.funnel-row .pct { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.case-insight { font-size: 15px; color: var(--fg); margin-top: 20px; line-height: 1.6; max-width: 760px; }
.case-rivals { margin-top: 24px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.case-rivals .rival { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--fg); background: var(--surface-2); border: 1px solid var(--border-soft); padding: 2px 8px; border-radius: var(--radius-sm); margin: 2px 4px 2px 0; }
.case-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted-2); line-height: 1.6; }
.case-foot a { white-space: nowrap; }

/* ---------- cómo se construye ---------- */
.build-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 32px; }
.build-text { padding: 28px; }
.build-text img { height: 26px; width: auto; margin-bottom: 20px; }
.build-text h3 { font-size: 16px; margin-top: 18px; margin-bottom: 6px; }
.build-text h3:first-of-type { margin-top: 0; }
.build-text p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.build-stats { display: grid; gap: 12px; }
.build-stat { padding: 20px 22px; }
.build-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 28px; margin-bottom: 4px; }
.build-stat p:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.steps-intro > p.build-close { font-size: 17px; color: var(--fg); margin-top: 24px; max-width: 760px; line-height: 1.55; }

/* ---------- origen ---------- */
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.origin-card { padding: 28px; }
.origin-card img { height: 56px; width: auto; margin-bottom: 18px; }
.origin-card h3 { font-size: 17px; margin-bottom: 8px; }
.origin-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.reach-list { display: grid; gap: 0; }
.reach-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.reach-item:last-child { border-bottom: none; }
.reach-item .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 2px; }
.reach-item strong { display: block; font-size: 14.5px; color: var(--fg); font-weight: 600; }
.reach-item span { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .tech-strip-grid, .audit-block, .build-grid, .origin-grid { grid-template-columns: 1fr; }
  .schedule-list { grid-template-columns: repeat(2, 1fr); }
  .chain-grid { grid-template-columns: repeat(2, 1fr); }
  .terms-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .chain-grid, .case-stats { grid-template-columns: 1fr; }
  .schedule-list { grid-template-columns: 1fr; gap: 0; }
  .schedule-item { padding: 14px 0; }
  .case-panel { padding: 22px 18px; }
  .funnel-row { grid-template-columns: 104px 1fr 48px; gap: 10px; font-size: 13px; }
  .tech-logos { gap: 28px; }
  .tech-logos img { height: 24px; }
  .audit-table th, .audit-table td { padding: 12px; }
}
