/* AppH landing page — plain CSS, dark theme matching the AppH brand kit
   (connector-glyph purple #6C5CFF/#8878FF, Inter + Space Grotesk, near-black
   oklch background). No build step. */

:root {
  --bg: oklch(14% 0.012 264);
  --bg-2: oklch(17% 0.012 264);
  --card: oklch(18% 0.012 264);
  --border: oklch(100% 0 0 / 0.1);
  --border-2: oklch(100% 0 0 / 0.16);
  --text: oklch(96% 0.004 260);
  --text-dim: oklch(78% 0.01 260);
  --text-dimmer: oklch(60% 0.01 260);
  --purple: #6c5cff;
  --purple-2: #8878ff;
  --radius: 16px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--purple);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 96px 0;
}
@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple-2);
  margin-bottom: 12px;
  display: block;
}

/* ---- Nav ---- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: oklch(14% 0.012 264 / 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.lang-switch {
  display: flex;
  gap: 4px;
}
.lang-switch button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dimmer);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}
.lang-switch button[aria-current="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  #nav-toggle {
    display: block;
  }
}

/* ---- Hero ---- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    oklch(45% 0.16 292 / 0.35),
    transparent 70%
  );
  pointer-events: none;
}
.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple-2);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.08;
  max-width: 820px;
}
.hero p.lede {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-dim);
  max-width: 620px;
  margin-top: 22px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 8px 28px rgba(108, 92, 255, 0.35);
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat n {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}
.hero-stat span {
  font-size: 13px;
  color: var(--text-dimmer);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}
.hero-visual {
  position: relative;
  width: 420px;
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    oklch(45% 0.16 292 / 0.3),
    transparent 72%
  );
  pointer-events: none;
  z-index: 1;
}
.hero-visual canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-visual canvas.is-ready {
  opacity: 1;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
}

/* ---- Services ---- */
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.section-head p {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 16px;
}
#services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.svc-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.svc-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: linear-gradient(155deg, oklch(24% 0.05 292), var(--card));
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-2);
}
.svc-icon svg {
  width: 20px;
  height: 20px;
}
.svc-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.svc-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---- Process ---- */
.process-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 640px;
}
.process-line {
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-2), var(--border) 85%);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
}
.process-step:first-child {
  padding-top: 0;
}
.process-step:last-child {
  padding-bottom: 0;
}
.process-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--purple-2);
  background: var(--bg);
  color: var(--purple-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.process-content h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.process-content p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ---- AppManager feature panel ---- */
.am-panel {
  background: linear-gradient(155deg, oklch(20% 0.03 292), var(--card));
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .am-panel {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}
.am-panel h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 16px;
}
.am-panel > div:first-child p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 24px;
}
.am-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.am-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  align-items: flex-start;
}
.am-features li::before {
  content: "→";
  color: var(--purple-2);
  flex: none;
}
.am-visual {
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: oklch(12% 0.02 264);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.am-visual .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}

/* Orchestration diagram — AppM as the hub coordinating apps/modules/agents/human.
   Inline SVG, dots travel the connectors to read as live coordination. This IS
   the page's core message (the "lubricant"), so it replaces the abstract kanban. */
.am-orch-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-orch { width: 100%; max-width: 340px; height: auto; }
.am-orch-node circle {
  fill: oklch(18% 0.03 292);
  stroke: var(--border-2);
  stroke-width: 1;
}
.am-orch-node text {
  fill: var(--text-dim);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
}
.am-orch-core {
  fill: oklch(24% 0.07 292);
  stroke: var(--purple-2);
  stroke-width: 1.5;
}
.am-orch-core-t {
  fill: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.am-orch-core-s {
  fill: var(--purple-2);
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
@media (prefers-reduced-motion: reduce) {
  .am-orch animateMotion { display: none; }
}

/* Mini kanban mockup — stands in for a product screenshot without faking one. */
.am-mock {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.am-mock-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.am-mock-col-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dimmer);
  text-transform: uppercase;
}
.am-mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.am-mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.am-mock-card .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border-2);
}
.am-mock-card .bar.w60 {
  width: 60%;
}
.am-mock-card .bar.w40 {
  width: 40%;
}
.am-mock-card.active {
  border-color: rgba(108, 92, 255, 0.45);
  background: linear-gradient(155deg, oklch(22% 0.05 292), var(--card));
  box-shadow: 0 8px 20px rgba(108, 92, 255, 0.2);
}
.am-mock-card.active .bar {
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
}
.am-mock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: oklch(20% 0.02 264 / 0.8);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
}
.am-mock-badge svg {
  width: 12px;
  height: 9.6px;
}

.am-mock-monitor {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: oklch(15% 0.015 264 / 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.am-mock-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc97;
  flex: none;
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18);
}
.am-mock-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  flex: none;
}
.am-mock-spark div {
  width: 3px;
  border-radius: 1.5px;
  background: var(--border-2);
}
.am-mock-spark div:nth-child(1) {
  height: 40%;
}
.am-mock-spark div:nth-child(2) {
  height: 65%;
}
.am-mock-spark div:nth-child(3) {
  height: 50%;
}
.am-mock-spark div:nth-child(4) {
  height: 80%;
  background: var(--purple-2);
}
.am-mock-spark div:nth-child(5) {
  height: 60%;
}
.am-mock-spark div:nth-child(6) {
  height: 90%;
  background: var(--purple-2);
}
.am-mock-spark div:nth-child(7) {
  height: 45%;
}
.am-mock-spark div:nth-child(8) {
  height: 70%;
}
.am-mock-spark div:nth-child(9) {
  height: 55%;
}
.am-mock-spark div:nth-child(10) {
  height: 85%;
  background: var(--purple-2);
}
.am-mock-spark div:nth-child(11) {
  height: 35%;
}
.am-mock-spark div:nth-child(12) {
  height: 65%;
}
.am-mock-monitor-label {
  font-size: 11px;
  color: var(--text-dimmer);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .am-mock {
    padding: 14px;
    gap: 8px;
  }
  .am-mock-card {
    padding: 7px;
  }
  .am-mock-badge {
    font-size: 9px;
    padding: 4px 8px 4px 6px;
  }
  .am-mock-monitor {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 8px 10px;
  }
  .am-mock-monitor-label {
    font-size: 10px;
  }
}

/* ---- Cases ---- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.case-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.case-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.case-card a {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-2);
  text-decoration: none;
}
.case-card a:hover {
  text-decoration: underline;
}

/* ---- Verticals (soluciones por sector) ---- */
.vert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.vert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.vert-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  background: linear-gradient(160deg, oklch(21% 0.03 292), var(--card));
}
.vert-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(155deg, oklch(24% 0.05 292), var(--card));
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-2);
}
.vert-icon svg { width: 20px; height: 20px; }
.vert-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.vert-card p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.cases-principle {
  margin: 30px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  padding: 18px 24px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: linear-gradient(120deg, oklch(20% 0.04 292 / 0.6), oklch(18% 0.012 264 / 0.4));
}
.cases-principle::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 3px oklch(75% 0.17 160 / 0.18);
  vertical-align: middle;
}

/* ---- Featured live demo ---- */
.demo-feature {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(150deg, oklch(19% 0.03 292), var(--card));
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.demo-feature::after {
  content: "";
  position: absolute;
  right: -60px; top: -90px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, oklch(60% 0.2 292 / 0.22), transparent 70%);
  pointer-events: none;
}
.demo-feature-body { position: relative; z-index: 1; }
.demo-feature-body h3 { font-size: 23px; margin: 10px 0; }
.demo-feature-body p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.demo-feature-body .btn { margin-top: 18px; }
.demo-note { font-size: 12px; color: var(--text-dimmer); margin-top: 12px; }

/* "War-machine" frame — the real Hospital Central dashboard in an app window,
   not an abstract mock. Screenshot captured live from apph.app/AppM/hospital. */
.demo-window {
  display: block;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  background: oklch(12% 0.02 264);
  text-decoration: none;
  box-shadow: 0 26px 70px rgba(0,0,0,0.55), 0 0 0 1px oklch(60% 0.2 292 / 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.demo-window:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 34px 90px rgba(0,0,0,0.6), 0 0 0 1px oklch(65% 0.22 292 / 0.35);
}
.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  background: oklch(16% 0.02 264);
  border-bottom: 1px solid var(--border);
}
.dw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.dw-dot:nth-child(1) { background: #ff5f57; }
.dw-dot:nth-child(2) { background: #febc2e; }
.dw-dot:nth-child(3) { background: #28c840; }
.dw-url {
  margin-left: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-dimmer);
}
.dw-live {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #3ddc97;
}
.demo-window img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .demo-feature { grid-template-columns: 1fr; }
  .demo-window { order: -1; }
}

/* ---- Concurso ---- */
.concurso-panel {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 56px;
  text-align: left;
}
.concurso-panel h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  max-width: 640px;
}
.concurso-panel p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 680px;
  margin-top: 18px;
}
.concurso-panel .btn {
  margin-top: 28px;
}
.concurso-panel .note {
  font-size: 13px;
  color: var(--text-dimmer);
  margin-top: 18px;
  max-width: 680px;
}

/* ---- FAQ ---- */
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--purple-2);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a {
  max-height: 240px;
}
.faq-a p {
  padding-bottom: 22px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 700px;
}

/* ---- Contact / Acceso ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.contact-main h2,
.acceso-side h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 16px;
}
.contact-main p,
.acceso-side p {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 16px;
}
.acceso-side {
  background: linear-gradient(155deg, oklch(20% 0.03 292), var(--card));
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 40px;
}
.acceso-side .btn {
  margin-top: 26px;
}
.acceso-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acceso-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  align-items: flex-start;
}
.acceso-features li::before {
  content: "→";
  color: var(--purple-2);
  flex: none;
}

.channel-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 520px) {
  .channel-cards {
    grid-template-columns: 1fr;
  }
}
.channel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.channel-card:hover {
  border-color: var(--purple-2);
  transform: translateY(-2px);
}
.channel-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(20% 0.03 292);
  color: var(--purple-2);
  margin-bottom: 4px;
}
.channel-icon svg {
  width: 18px;
  height: 18px;
}
.channel-card h3 {
  font-size: 15px;
  font-weight: 600;
}
.channel-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}
.channel-value {
  font-size: 13px;
  color: var(--purple-2);
  font-weight: 600;
  word-break: break-word;
}

/* ---- Footer ---- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-grid h4 {
  font-size: 13px;
  color: var(--text-dimmer);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-grid a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--text);
}
.footer-tagline {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 14px;
  max-width: 260px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dimmer);
  flex-wrap: wrap;
  gap: 12px;
}

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

/* ---- Cookie banner ---- */
#cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: -400px;
  max-width: 480px;
  margin: 0 auto;
  background: oklch(16% 0.012 264 / 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 22px 24px;
  z-index: 9500;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: bottom 0.35s ease;
}
#cookie-banner.show {
  bottom: 16px;
}
#cookie-banner h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
#cookie-banner p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}
#cookie-banner p a {
  color: var(--purple-2);
  text-decoration: underline;
}
.ck-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ck-actions button {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
#ck-accept-all {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
}
#ck-refuse {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
}

/* ---- Privacy section ---- */
#privacidad {
  background: var(--bg-2);
}
#privacidad .wrap {
  max-width: 760px;
}
#privacidad p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
}

/* ── Precalificación IA (triage demo) ───────────────────────────────── */
.triage-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
  align-items: stretch;
}
.triage-panel,
.triage-result {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.triage-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.triage-step-label:not(:first-child) {
  margin-top: 24px;
}
.triage-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.triage-verticals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.triage-vert {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.triage-vert svg {
  width: 16px;
  height: 16px;
}
.triage-vert:hover {
  color: var(--text);
  border-color: var(--purple-2);
}
.triage-vert[aria-selected="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}
.triage-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.triage-example {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px dashed var(--border-2);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.triage-example:hover {
  color: var(--text);
  border-color: var(--purple-2);
  border-style: solid;
}
.triage-form {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.triage-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.triage-input:focus {
  outline: none;
  border-color: var(--purple-2);
}
.triage-run {
  flex: none;
  white-space: nowrap;
}
/* result column */
.triage-result {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.triage-result-empty {
  margin: auto;
  text-align: center;
  color: var(--text-dimmer);
  font-size: 14px;
}
.triage-orb {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.triage-orb span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple-2);
  opacity: 0.35;
  animation: triage-orb 1.3s ease-in-out infinite;
}
.triage-orb span:nth-child(2) { animation-delay: 0.18s; }
.triage-orb span:nth-child(3) { animation-delay: 0.36s; }
@keyframes triage-orb {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}
/* analyzing state */
.triage-analyzing {
  margin: auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
.triage-scan {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, transparent, var(--purple-2), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: triage-scan 0.9s linear infinite;
}
@keyframes triage-scan {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}
/* result card */
.triage-card {
  animation: triage-in 0.35s ease both;
}
@keyframes triage-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.triage-card-motivo {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 4px;
}
.triage-card-motivo-v {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 18px;
}
.triage-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.triage-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.triage-row-k {
  font-size: 13px;
  color: var(--text-dimmer);
  flex: none;
}
.triage-row-v {
  font-size: 14px;
  color: var(--text);
  text-align: right;
  font-weight: 500;
}
.triage-prio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.triage-prio::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.triage-prio.urgent { color: oklch(70% 0.19 20); background: oklch(70% 0.19 20 / 0.14); }
.triage-prio.high   { color: oklch(78% 0.16 55); background: oklch(78% 0.16 55 / 0.14); }
.triage-prio.normal { color: oklch(80% 0.13 200); background: oklch(80% 0.13 200 / 0.14); }
.triage-prio.low    { color: oklch(78% 0.02 260); background: oklch(78% 0.02 260 / 0.12); }
/* decision block */
.triage-decision {
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-2);
  background: var(--bg);
}
.triage-decision-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.triage-decision-head svg { width: 18px; height: 18px; flex: none; }
.triage-decision.wait    .triage-decision-head { color: oklch(80% 0.13 200); }
.triage-decision.redirect .triage-decision-head { color: oklch(78% 0.16 55); }
.triage-decision.resolve .triage-decision-head { color: oklch(76% 0.17 150); }
.triage-decision-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.triage-decision-body strong { color: var(--text); font-weight: 600; }
.triage-resolve-cta {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}
.triage-resolve-done {
  margin-top: 12px;
  font-size: 13px;
  color: oklch(76% 0.17 150);
  display: none;
}
.triage-disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-dimmer);
  line-height: 1.6;
  max-width: 760px;
}
@media (max-width: 820px) {
  .triage-demo { grid-template-columns: 1fr; }
}
