@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/inter-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/inter-500.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/inter-600.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/inter-700.ttf") format("truetype");
}

:root {
  --ink: #101b2b;
  --ink-soft: #465b6b;
  --green: #244837;
  --cream: #f2efe9;
  --paper: #f7f3ed;
  --soft: #eee8e1;
  --line: #d9d1c8;
  --sage: #c8d3cc;
  --sage-light: rgba(238, 232, 225, 0.68);
  --gold: #a14f25;
  --gold-soft: #efe0d6;
  --clay: #914a3d;
  --glass: rgba(247, 243, 237, 0.82);
  --glass-line: rgba(255, 255, 255, 0.62);
  --shadow: 0 28px 74px rgba(16, 27, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 14px 34px rgba(16, 27, 43, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  --radius-lg: 18px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #faf7f2; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #faf7f2;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.origin-page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  color: #0f172a;
  background: #faf7f2;
  pointer-events: none;
  user-select: none;
}

.origin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, 100vw);
  height: 130px;
  margin: 0 auto;
  padding: 0 20px 0 32px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.055);
}

.origin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.origin-brand img {
  width: 60px;
  height: 54px;
  object-fit: contain;
}

.origin-brand span,
.origin-brand strong,
.origin-brand small { display: block; }

.origin-brand strong {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
}

.origin-brand small {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.origin-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.origin-menu { display: none; }

.origin-hero {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  height: min(662px, 68vh);
  margin: 34.6px auto 0;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(90deg, #faf7f2 35%, rgba(250, 247, 242, 0) 69%),
    url("https://santiagogarciavargas.com/wp-content/uploads/2026/09/hero-inicio-nueva.png") right center / contain no-repeat,
    #faf7f2;
  box-shadow: 0 14px 38px -8px rgba(15, 23, 42, 0.16);
}

.origin-hero-copy {
  position: absolute;
  top: 132px;
  left: 32px;
  width: 613px;
}

.origin-hero-copy h2 {
  width: 613px;
  margin: 0;
  color: #0f172a;
  font: 600 56px/1.08 "Inter", sans-serif;
  letter-spacing: normal;
}

.origin-hero-copy h2 em {
  color: #9a5a24;
  font-style: normal;
}

.origin-hero-copy p {
  width: 613px;
  margin: 24px 0 0;
  color: #0f172a;
  font: 400 18px/1.5 "Inter", sans-serif;
}

.origin-hero-button {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  margin-top: 38px;
  padding: 16px 24px;
  border-radius: 12px;
  color: #faf7f2;
  background: #0f172a;
  font: 500 18px/1 "Inter", sans-serif;
}

.agent-overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 1px 0;
  background: rgba(16, 27, 43, 0.09);
  -webkit-backdrop-filter: blur(3px) saturate(1.04);
  backdrop-filter: blur(3px) saturate(1.04);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.48; }

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 64px));
  margin: 32px auto;
  overflow: clip;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.58), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06) 48%),
    rgba(247, 243, 237, 0.82);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.06);
  backdrop-filter: blur(24px) saturate(1.06);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 clamp(24px, 4.5vw, 58px);
  border-bottom: 1px solid rgba(16, 27, 43, 0.1);
  background: rgba(247, 243, 237, 0.68);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
  backdrop-filter: blur(20px) saturate(1.06);
}

.brand { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.brand-symbol { width: 52px; height: 46px; object-fit: contain; opacity: 0.82; }
.brand-copy { min-width: 0; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--green); font-size: 22px; font-weight: 600; line-height: 1.06; letter-spacing: 0.01em; }
.brand small { margin-top: 3px; color: var(--ink); font-size: 8px; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.return-home {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 24px rgba(16, 27, 43, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font: 300 30px/1 "Inter", sans-serif;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.return-home:hover,
.return-home:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 11px 28px rgba(16, 27, 43, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  outline: 2px solid rgba(161, 79, 37, 0.42);
  outline-offset: 3px;
}

main { padding: 0 clamp(24px, 4.5vw, 58px); }

.pilot-badge, .privacy-state {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(247, 243, 237, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(14px) saturate(1.03);
  backdrop-filter: blur(14px) saturate(1.03);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  padding: 72px 0 58px;
}

.eyebrow, .step-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; font-family: inherit; font-weight: 600; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(44px, 4.4vw, 56px); line-height: 1.08; letter-spacing: normal; }
h1 em { color: var(--gold); font-style: normal; font-weight: 600; }
h2 { margin-bottom: 10px; font-size: clamp(27px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.025em; }
h3 { margin-bottom: 8px; font-size: 21px; letter-spacing: -0.015em; }

.hero-lead { max-width: 590px; margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.5; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: var(--ink-soft); font-size: 13px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--gold); font-weight: 700; }
.privacy-disclosure {
  max-width: 620px;
  margin-top: 22px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  color: var(--ink-soft);
  background: rgba(247, 243, 237, 0.48);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px) saturate(1.03);
  backdrop-filter: blur(14px) saturate(1.03);
}
.privacy-disclosure summary { padding: 13px 16px; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.privacy-disclosure-body { padding: 0 16px 16px; font-size: 12px; }
.privacy-disclosure-body p { margin: 0 0 9px; }
.privacy-disclosure-body ul { margin: 0 0 10px; padding-left: 18px; }
.privacy-disclosure-body li { margin: 6px 0; }
.privacy-disclosure-body a { color: var(--gold); font-weight: 700; }

.voice-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  color: #f7f4ed;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.11), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(36, 72, 55, 0.68);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px) saturate(1.03);
  backdrop-filter: blur(14px) saturate(1.03);
}
.voice-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.voice-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.voice-card h2 { margin-bottom: 0; }
.voice-card .step-label { color: #e4b08f; }
.status-dot { width: 11px; height: 11px; margin-top: 9px; border-radius: 50%; background: #87938e; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05); }
.status-dot.live { background: #8fd7b0; box-shadow: 0 0 0 7px rgba(143, 215, 176, 0.12); }

.agent-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}
.agent-progress-copy span,
.agent-progress-copy strong,
.agent-progress-copy small { display: block; }
.agent-progress-copy span { color: #e4b08f; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.agent-progress-copy strong { margin-top: 3px; color: #fff; font-size: 14px; }
.agent-progress-copy small { margin-top: 2px; color: #c8d3cd; font-size: 11px; line-height: 1.35; }
.agent-progress-track { display: flex; gap: 5px; padding-bottom: 3px; }
.agent-progress-track span { width: 19px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); transition: background 180ms ease; }
.agent-progress-track span.done { background: rgba(228, 176, 143, 0.52); }
.agent-progress-track span.current { background: #f2ede4; }

.voice-orb {
  --voice-level: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin: 28px auto 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 237, 228, 0.16), rgba(228, 176, 143, 0.08) 48%, transparent 62%);
  isolation: isolate;
  transition: border-color 450ms ease, box-shadow 450ms ease;
}
.voice-orb::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgba(221, 235, 227, 0.12);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.92);
}
.voice-orb[data-voice-state="preparing"]::before,
.voice-orb[data-voice-state="listening"]::before {
  opacity: 0.72;
  animation: voice-breathe 2.8s ease-in-out infinite;
}
.voice-orb[data-voice-state="speaking"] {
  border-color: rgba(233, 187, 127, 0.3);
  box-shadow: 0 0 34px rgba(233, 187, 127, calc(0.08 + var(--voice-level) * 0.1));
}
.voice-orb[data-voice-state="speaking"]::before {
  opacity: calc(0.48 + var(--voice-level) * 0.34);
  transform: scale(calc(0.96 + var(--voice-level) * 0.035));
}
.voice-mark {
  position: relative;
  width: 104px;
  height: 104px;
}
.voice-mark::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 104px;
  height: 92px;
  background: #f2ede4;
  -webkit-mask: url("/santiago-garcia-icono-cabecera.webp") center / contain no-repeat;
  mask: url("/santiago-garcia-icono-cabecera.webp") center / contain no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 5px 12px rgba(16, 27, 43, 0.22));
  transform: translateY(-2px);
  transition: opacity 350ms ease, filter 350ms ease, transform 350ms ease;
}
.voice-mark-symbol {
  display: block;
  width: 104px;
  height: 92px;
  object-fit: contain;
  opacity: 0;
}
.voice-mouth {
  position: absolute;
  left: 31px;
  top: 90px;
  width: 42px;
  height: 15px;
  overflow: visible;
  opacity: 0.22;
  transform: scaleY(0.42);
  transform-origin: 50% 25%;
  transition: opacity 220ms ease, transform 90ms linear;
}
.voice-mouth path {
  fill: none;
  stroke: rgba(228, 176, 143, 0.96);
  stroke-width: 2.1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 4px rgba(16, 27, 43, 0.24));
}
.voice-orb[data-voice-state="preparing"] .voice-mark::before { opacity: 0.78; }
.voice-orb[data-voice-state="listening"] .voice-mark::before { animation: logo-breathe 2.8s ease-in-out infinite; }
.voice-orb[data-voice-state="listening"] .voice-mouth { opacity: 0.32; }
.voice-orb[data-voice-state="speaking"] .voice-mark::before {
  opacity: 0.96;
  filter: drop-shadow(0 6px 15px rgba(16, 27, 43, 0.28));
}
.voice-orb[data-voice-state="speaking"] .voice-mouth {
  opacity: calc(0.58 + var(--voice-level) * 0.34);
  transform: scaleX(calc(0.96 + var(--voice-level) * 0.035)) scaleY(calc(0.42 + var(--voice-level) * 0.82));
}
@keyframes voice-breathe {
  0%, 100% { opacity: 0.42; transform: scale(0.92); }
  50% { opacity: 0.78; transform: scale(1); }
}
@keyframes logo-breathe {
  0%, 100% { opacity: 0.82; transform: translateY(-2px) scale(0.985); }
  50% { opacity: 0.94; transform: translateY(-2px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .voice-orb::before,
  .voice-mark::before { animation: none !important; }
  .voice-mouth { transition: opacity 220ms ease; }
}

.status { min-height: 24px; margin: 0 0 20px; text-align: center; color: #e7ede9; font-size: 14px; }
.stage-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 20px;
  padding: 13px 15px;
  border: 1px solid rgba(233, 187, 127, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
}
.stage-timer[hidden] { display: none; }
.stage-timer span, .stage-timer small { display: block; }
.stage-timer span { color: #f5ead8; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.stage-timer small { margin-top: 2px; color: #bfcac5; font-size: 11px; }
.stage-timer strong { flex: 0 0 auto; color: #efc5aa; font: 600 24px/1 "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.agent-action-dock {
  margin: 0 -14px -14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(239, 245, 240, 0.94);
  box-shadow: 0 14px 30px rgba(16, 27, 43, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
  backdrop-filter: blur(16px) saturate(1.04);
}
.voice-card:not([data-flow-step="1"]) .access-fields { display: none; }
.access-fields label:not(.consent-row) { display: block; margin-bottom: 6px; color: var(--green); font-size: 13px; font-weight: 700; }
.access-fields input[type="password"] {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(36, 72, 55, 0.2);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}
.access-fields input[type="password"]:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 72, 55, 0.1); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 18px; color: var(--ink-soft); font-size: 12px; }
.consent-row input { margin-top: 3px; accent-color: var(--green); }
.primary-actions { display: grid; gap: 9px; }

.button {
  min-height: 48px;
  padding: 11px 18px;
  border: 0;
  border-radius: 13px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:not(:disabled):hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 8px 22px rgba(16, 27, 43, 0.18); }
.voice-card .button-primary,
.voice-card .button-danger { color: #fff; background: var(--green); box-shadow: 0 8px 22px rgba(36, 72, 55, 0.2); }
.voice-card .button-secondary { border-color: rgba(36, 72, 55, 0.28); color: var(--green); background: rgba(255, 255, 255, 0.36); }
.agent-action-dock .button:disabled { display: none; }
.button-danger { color: #fff; background: var(--clay); }
.button-secondary { border: 1px solid rgba(23, 52, 45, 0.2); color: var(--ink); background: transparent; }
.button-privacy { border: 1px solid rgba(145, 74, 61, 0.3); color: #71382f; background: rgba(255, 255, 255, 0.34); }
.button-wide { width: 100%; margin-top: 18px; }
.mic-icon { display: inline-block; width: 10px; height: 16px; margin-right: 9px; border: 2px solid currentColor; border-radius: 8px; vertical-align: -3px; }

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: rgba(247, 243, 237, 0.56);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
  backdrop-filter: blur(18px) saturate(1.04);
}
.process-strip article { display: flex; gap: 16px; padding: 26px 30px; border-right: 1px solid rgba(16, 27, 43, 0.1); }
.process-strip article:last-child { border-right: 0; }
.process-strip article > span { color: var(--gold); font: 600 16px/1 "Inter", sans-serif; }
.process-strip strong, .process-strip small { display: block; }
.process-strip small { margin-top: 3px; color: var(--ink-soft); }

.value-demo-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-md);
  background: rgba(247, 243, 237, 0.5);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
  backdrop-filter: blur(16px) saturate(1.04);
}
.value-demo-note .eyebrow { margin: 2px 0 0; }
.value-demo-note > p:last-child { max-width: 820px; margin: 0; color: var(--ink-soft); }

.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 72px 0; }
.transcript-panel, .map-placeholder, .decision-map {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.58), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06) 48%),
    var(--glass);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(24px) saturate(1.06);
  backdrop-filter: blur(24px) saturate(1.06);
}
.transcript-panel { padding: 28px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading h2 { font-size: 29px; }
.transcript { min-height: 330px; max-height: 520px; overflow: auto; margin-top: 16px; padding: 18px; border-radius: var(--radius-md); background: var(--sage-light); }
.empty-state { display: grid; place-items: center; align-content: center; min-height: 294px; color: var(--ink-soft); text-align: center; }
.empty-state span { font: 400 54px/1 "Inter", sans-serif; color: var(--sage); }
.bubble { max-width: 88%; margin-bottom: 13px; padding: 11px 14px; border-radius: 16px; }
.bubble strong { display: block; margin-bottom: 3px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble.user { margin-left: auto; border-bottom-right-radius: 4px; color: #fff; background: var(--ink); }
.bubble.assistant { border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--paper); }
.manual-note { margin-top: 15px; color: var(--ink-soft); font-size: 13px; }
.manual-note summary { cursor: pointer; }
.note-editor { display: grid; gap: 9px; margin-top: 10px; }
.note-editor textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); }

.map-placeholder { display: grid; place-items: center; align-content: center; min-height: 540px; padding: 50px; text-align: center; }
.map-placeholder p { max-width: 430px; margin: 0; color: var(--ink-soft); }
.map-symbol { position: relative; width: 120px; height: 90px; margin-bottom: 24px; }
.map-symbol span { position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); border-radius: 50%; background: var(--paper); }
.map-symbol span:nth-child(1) { left: 49px; top: 0; }
.map-symbol span:nth-child(2) { left: 3px; bottom: 0; }
.map-symbol span:nth-child(3) { right: 3px; bottom: 0; }
.map-symbol span:nth-child(4) { left: 49px; bottom: 0; background: var(--gold-soft); }
.map-symbol::before, .map-symbol::after { content: ""; position: absolute; left: 21px; right: 21px; top: 48px; height: 1px; background: var(--gold); transform: rotate(28deg); }
.map-symbol::after { transform: rotate(-28deg); }

.continuation-gate {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 0 0 42px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.58), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06) 48%),
    var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.06);
  backdrop-filter: blur(24px) saturate(1.06);
}
.continuation-gate[hidden], .choice-actions[hidden], .payment-panel[hidden] { display: none; }
.gate-copy p:not(.eyebrow), .payment-panel > p { color: var(--ink-soft); }
.choice-actions, .payment-panel { padding: 24px; border: 1px solid rgba(255, 255, 255, 0.56); border-radius: var(--radius-md); background: rgba(238, 232, 225, 0.48); box-shadow: var(--shadow-soft); }
.agent-action-dock .choice-actions,
.agent-action-dock .payment-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
.agent-action-dock .choice-actions > p { color: var(--green); }
.agent-action-dock .choice-actions > div { display: grid; gap: 8px; }
.agent-action-dock .payment-panel h3 { color: var(--green); font-size: 23px; }
.agent-action-dock .payment-panel > p { color: var(--ink-soft); }
.agent-action-dock .payment-panel .eyebrow { color: var(--gold); }
.agent-action-dock .button-wide { margin-top: 10px; }
.choice-actions > p { margin-top: 0; }
.choice-actions > div { display: grid; gap: 10px; }
.payment-panel .eyebrow { margin-bottom: 6px; }
.payment-panel h3 { font-size: 28px; }
.payment-panel label { display: block; margin: 18px 0 6px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.payment-code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.payment-code-row input {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
}
.payment-status { min-height: 42px; margin: 12px 0 0; font-size: 12px; }
.simulation-note {
  padding: 12px 14px;
  border-left: 4px solid #c58a24;
  border-radius: 10px;
  color: #68470c !important;
  background: #fff7e6;
  font-weight: 650;
}

.decision-map { margin-bottom: 72px; padding: clamp(26px, 5vw, 58px); }
.map-top { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.map-top h2 { max-width: 720px; font-size: clamp(34px, 5vw, 56px); }
.map-top p { max-width: 760px; color: var(--ink-soft); font-size: 18px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-actions .button { white-space: nowrap; }
.map-delivery-note {
  max-width: 340px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(23, 52, 45, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.orientation-card { margin: 30px 0; padding: 26px; border-radius: var(--radius-md); color: #fff; background: var(--green); }
.orientation-card small { color: #e9bb7f; letter-spacing: 0.12em; text-transform: uppercase; }
.orientation-card h3 { margin: 7px 0; font-size: 30px; }
.orientation-card p { margin: 0; color: #dbe3df; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.map-card { padding: 24px; border: 1px solid rgba(255, 255, 255, 0.68); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.52); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.map-card.full { grid-column: 1 / -1; }
.map-card p { color: var(--ink-soft); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chip-list li { padding: 7px 11px; border-radius: 999px; background: var(--sage-light); font-size: 13px; }
.finding-list, .clean-list { margin: 0; padding: 0; list-style: none; }
.finding-list li { padding: 13px 0; border-top: 1px solid var(--line); }
.finding-list li:first-child { border-top: 0; }
.finding-list strong { display: flex; justify-content: space-between; gap: 10px; }
.finding-list small { display: block; margin-top: 4px; color: var(--ink-soft); }
.status-tag { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; font: 700 10px/1.3 -apple-system, sans-serif; text-transform: uppercase; }
.status-tag.favorable { color: #275840; background: #dcece2; }
.status-tag.tension { color: #854536; background: #f2ded9; }
.status-tag.unknown { color: #765823; background: #f3e8ce; }
.status-tag.neutral { color: #4f625c; background: #e7ece9; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scenario { padding: 20px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 15px; background: rgba(255, 255, 255, 0.58); }
.scenario dl { margin: 14px 0 0; }
.scenario dt { margin-top: 10px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.scenario dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; }
.clean-list li { position: relative; margin: 9px 0; padding-left: 21px; color: var(--ink-soft); }
.clean-list li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }
.map-footer-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.privacy-map-note { display: block; margin-top: 8px; color: #315544; font-weight: 600; }

footer { display: flex; justify-content: space-between; gap: 40px; margin: 0 clamp(24px, 4.5vw, 58px); padding: 30px 0 42px; border-top: 1px solid rgba(23, 52, 45, 0.13); color: var(--ink-soft); font-size: 12px; }
footer p { margin: 0; }

.loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 32px, 1280px); margin: 16px auto; }
  .hero, .workspace, .continuation-gate { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .voice-card { max-width: 620px; }
  .process-strip { grid-template-columns: 1fr; }
  .process-strip article, .process-strip article:first-child { padding: 20px 24px; border-right: 0; border-bottom: 1px solid rgba(16, 27, 43, 0.1); }
  .process-strip article:last-child { border-bottom: 0; }
  .value-demo-note { grid-template-columns: 1fr; gap: 8px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .map-top { display: block; }
  .map-actions { margin-top: 18px; }
}

@media (max-width: 620px) {
  .agent-overlay { padding: 0; }
  .origin-header {
    width: 100%;
    height: 84px;
    padding: 0 24px 0 28px;
  }
  .origin-brand { gap: 10px; }
  .origin-brand img { width: 30px; height: 27px; }
  .origin-brand strong { font-size: 18px; line-height: 1.15; }
  .origin-brand small { font-size: 6px; }
  .origin-navigation { display: none; }
  .origin-menu {
    display: grid;
    align-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 12px;
  }
  .origin-menu i { display: block; height: 2px; background: #0f172a; }
  .origin-hero {
    width: calc(100% - 48px);
    height: 564px;
    margin-top: 32px;
    background: #faf7f2;
  }
  .origin-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 242px;
    border-radius: 28px;
    background: url("https://santiagogarciavargas.com/wp-content/uploads/2026/09/hero-inicio-nueva.png") center / cover no-repeat;
  }
  .origin-hero-copy { top: 32px; left: 32px; width: calc(100% - 64px); z-index: 1; }
  .origin-hero-copy h2 { width: 100%; font-size: 36px; line-height: 1.08; }
  .origin-hero-copy p { width: 100%; margin-top: 18px; font-size: 17px; line-height: 1.5; }
  .origin-hero-button {
    position: absolute;
    top: 304px;
    left: -18px;
    z-index: 2;
    min-height: 34px;
    margin: 0;
    padding: 11px 12px;
    border-radius: 999px;
    font-size: 12px;
  }
  .page-shell { width: calc(100% - 20px); margin: 10px auto; border-radius: 17px; }
  .site-header { min-height: 68px; padding: 0 15px; }
  main { padding: 0 15px; }
  .brand { gap: 9px; }
  .brand-symbol { width: 42px; height: 38px; }
  .brand strong { font-size: 18px; }
  .brand small { margin-top: 2px; font-size: 6px; }
  .header-actions { gap: 8px; }
  .pilot-badge { display: none; }
  .return-home { width: 40px; height: 40px; flex-basis: 40px; font-size: 27px; }
  .hero { gap: 34px; padding: 42px 0; }
  h1 { font-size: 36px; line-height: 1.08; }
  .voice-card, .transcript-panel, .decision-map { padding: 22px; }
  .agent-progress { grid-template-columns: 1fr; gap: 10px; }
  .agent-progress-track span { flex: 1; width: auto; }
  .agent-action-dock { margin: 0 -10px -10px; padding: 15px; }
  .workspace { padding: 46px 0; }
  .section-heading { display: block; }
  .privacy-state { display: inline-block; margin-bottom: 10px; }
  .map-placeholder { min-height: 390px; padding: 30px; }
  .map-grid { grid-template-columns: 1fr; }
  .payment-code-row { grid-template-columns: 1fr; }
  .map-card.full { grid-column: auto; }
  footer { display: block; margin: 0 15px; }
  footer p + p { margin-top: 8px; }
}

@media print {
  body { background: #fff; }
  .site-header, .hero, .process-strip, .workspace, footer, .map-actions { display: none !important; }
  .page-shell { width: 100%; }
  .decision-map { display: block !important; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .map-card, .orientation-card, .scenario { break-inside: avoid; }
}

/* Sesión sin historial visible: la memoria temporal sigue disponible para el mapa. */
#workspace {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  padding: 48px 0;
}
#workspace .transcript { display: none; }
#workspace .transcript-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#workspace .manual-note,
#workspace #mapButton { margin-top: 0; }
#workspace .map-placeholder { min-height: 320px; }
@media (max-width: 900px) {
  #workspace { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  #workspace { gap: 16px; padding: 32px 0; }
  #workspace .map-placeholder { min-height: 260px; }
}

#workspace .section-heading { display: block; }
#workspace .privacy-state { display: inline-block; margin-top: 10px; }

/* Presentación comercial del piloto junto al hero. */
.hero-label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-label-row .eyebrow { margin: 0; }
.hero-demo-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; color: #315641; background: #e9eee8; font-size: 10px; font-weight: 700; letter-spacing: 0.065em; text-transform: uppercase; }
.hero-demo-note { max-width: 620px; margin-top: 24px; padding: 20px 24px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: rgba(247, 243, 237, 0.72); box-shadow: var(--shadow-soft); }
.hero-demo-note .eyebrow { margin: 0 0 8px; }
.hero-demo-note p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.hero-copy .trust-row { margin-top: 24px; }
@media (max-width: 620px) {
  .hero-demo-badge { font-size: 9px; }
  .hero-demo-note { margin-top: 20px; padding: 17px 19px; }
  .hero-demo-note p:last-child { font-size: 14px; }
}
