/* 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;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ok: #5ad59a;
  --human: #ffb454;
  --header-bg: oklch(14% 0.012 264 / 0.85);
  --term-bg: #0d0c15;
  /* Spacing scale (design-reference/apph-redesign-mockup-v3.html token
     system, item (d) of the 2026-07-28 mockup approval) — applied to the
     shared nav/header chrome and, as of the 2026-07-29 OWNER-OVERRIDE-LANDING
     pass, to every value elsewhere in this shared shell (hero/cards/footer)
     that matched the 8-value scale exactly (footer padding/gap, section-head
     margin, vert-grid gap). Most of the hero/card/footer spacing uses a
     finer-grained scale (14/18/20/22/26px etc.) that predates this token
     system and doesn't map onto it without changing actual pixel values —
     left as-is on purpose rather than force-fit, see TASKS.md for the
     follow-up if the owner wants the token scale itself extended instead.
     Same across light/dark, spacing never changes with theme. */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
}

/* Light theme override — persisted via #theme-toggle (landing.js
   initThemeToggle), localStorage key "apph_theme", falls back to
   prefers-color-scheme when nothing saved. Same token names as :root
   above (never rename them), just re-pointed to light values. Contrast
   checked for WCAG AA (>=4.5:1) on body text: --text #1B1830 on --bg
   #F7F6FB is ~15.4:1, --text-dim #5D5975 on --bg is ~7.3:1. */
[data-theme="light"] {
  --bg: #f7f6fb;
  --bg-2: #efedf7;
  --card: #ffffff;
  --border: #e0dcef;
  --border-2: #cfc9e8;
  --text: #1b1830;
  --text-dim: #5d5975;
  --text-dimmer: #7d7994;
  --purple: #6c5ce7;
  --purple-2: #5a4bd4;
  --ok: #1e9e63;
  --human: #b26a00;
  --header-bg: rgba(247, 246, 251, 0.85);
  --term-bg: #14122a;
}

/* A few feature panels (.am-panel, .acceso-side, .demo-feature,
   .vert-card:hover) keep a deliberately dark gradient background in
   BOTH themes -- only var(--card) at the gradient's far end follows
   the theme, the near end is a fixed dark oklch value. In dark theme
   that's consistent with --text/--text-dim being light colors. In
   light theme those same variables flip to dark-on-light colors
   (correct everywhere else on the page), which read as near-invisible
   dark-on-dark specifically inside these still-dark panels (owner
   report 2026-07-30, screenshot of .am-panel). Fix: re-declare the
   text tokens back to their dark-theme values, scoped to just these
   panels under light theme -- nothing about the dark theme, the
   panels' own background, or any other element on the page changes. */
[data-theme="light"] .am-panel,
[data-theme="light"] .acceso-side,
[data-theme="light"] .demo-feature,
[data-theme="light"] .vert-card:hover {
  --text: oklch(96% 0.004 260);
  --text-dim: oklch(78% 0.01 260);
  --text-dimmer: oklch(60% 0.01 260);
}
body {
  transition:
    background 0.25s,
    color 0.25s;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  /* The closed mobile nav drawer (position:fixed + transform:translateX(100%))
     sits inside header.site-nav, which has backdrop-filter — that makes the
     header the containing block for its fixed descendants instead of the
     viewport, so the drawer's off-screen position ends up doubling the
     page's real scrollable width (confirmed: scrollWidth was exactly 2x
     innerWidth at every width <=1280px). overflow-x:hidden here is the
     standard, safe fix regardless of which element causes it. */
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}
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: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
/* ---- Console strip — operator-console motif (mockup v3, phase 3) ---- */
.console-strip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dimmer);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.console-strip .wrap {
  display: flex;
  gap: 28px;
  height: 30px;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.console-strip .wrap::-webkit-scrollbar {
  display: none;
}
.console-strip .dot {
  color: var(--ok);
  margin-right: 2px;
}
.console-strip .hu {
  color: var(--human);
}
@media (max-width: 640px) {
  .console-strip .cs-item-3 {
    display: none;
  }
}
/* The nav row needs more horizontal room than body sections: French labels
   (longest of the 4 languages: "Pré-qualification IA", "Programme Partner")
   plus the lang switcher and CTA button add up to ~1088px on their own, and
   the shared .wrap max-width (1180px, -48px padding = 1132px content box)
   left near-zero gap between the logo and the first link at EVERY viewport
   width, including wide desktop (the cap never grows past 1180 regardless
   of screen size) — logo and "Pré-qualification IA" rendered touching. */
header.site-nav .wrap {
  max-width: 1320px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* flex `gap` is a MINIMUM: space-between only adds space on top of it, it
     never collapses gap to 0 the way space-between alone does when content
     overflows the container — this is what stops the logo from gluing to
     the first nav link at in-between viewport widths (see comment above). */
  gap: var(--space-24);
  height: 72px;
}
.nav-logo-text {
  font-size: 19px;
}
.nav-links {
  display: flex;
  gap: 22px;
  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 var(--space-16);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.nav-connexion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-8) var(--space-16) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600 !important;
  color: var(--text) !important;
}
.nav-connexion:hover {
  border-color: var(--purple);
  color: var(--purple) !important;
}
.lang-switch {
  display: flex;
  gap: 4px;
}
.lang-switch [data-lang],
.lang-switch-mobile [data-lang] {
  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;
  text-decoration: none;
  display: inline-block;
}
.lang-switch [data-lang][aria-current="true"],
.lang-switch-mobile [data-lang][aria-current="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
/* Light/dark toggle — sits next to .lang-switch in nav-links, same
   visual cluster as the language buttons (see design-reference mockup). */
#theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: none;
  transition: border-color 0.15s;
}
#theme-toggle:hover {
  border-color: var(--purple);
}
#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
/* ---- Nav dropdown ("Casos de éxito" / "Recursos") ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  white-space: nowrap;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] {
  color: var(--text);
}
.nav-dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s ease;
  flex: none;
}
.nav-dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  /* Padding-bridge pattern (mockup item (c), 2026-07-28 approval): the box
     starts flush against the toggle (top:100%, no external gap) — the old
     `calc(100% + 16px)` left a dead 16px zone the pointer had to cross with
     nothing hoverable under it, which is exactly what let a hover-intent
     mouseleave fire prematurely. The visual gap now lives INSIDE the box as
     padding-top, so the element (and its hover/click surface) is continuous
     with the toggle the whole way down. */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: var(--space-16) var(--space-8) var(--space-8);
  min-width: 230px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 10;
}
.nav-dropdown-menu.open {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-2);
  color: var(--text);
}
/* Own always-visible language button for phone/tablet — on mobile the
   full nav (incl. the lang-switch inside it) is hidden behind the
   hamburger, which made ES/EN/FR/PT invisible/undiscoverable without
   opening the menu first. This sits next to the hamburger instead. */
.lang-switch-mobile {
  display: none;
}
/* Inline nav overflow fix (owner report 2026-07-29 13:10, Playwright at
   1440px: "Connexion" cut off at the right edge). 13 top-level flex
   children (9 links/dropdowns + 4 lang buttons + theme toggle + Connexion
   + CTA) need more room than the 1280-1650px range actually has once the
   hamburger breakpoint (max-width:1280px) stops collapsing them — tighten
   gaps/font-size/padding in exactly that band instead of guessing a single
   new breakpoint number that would just move the same overflow elsewhere. */
@media (min-width: 1281px) and (max-width: 1650px) {
  header.site-nav .wrap {
    max-width: 1400px;
  }
  .nav-links {
    gap: 13px;
  }
  .nav-links a,
  .nav-dropdown-toggle {
    font-size: 13px;
  }
  .lang-switch [data-lang] {
    padding: 3px 6px;
    font-size: 11px;
  }
  .nav-connexion {
    padding: 6px var(--space-12) !important;
  }
  .nav-cta {
    padding: 8px var(--space-12);
  }
}
/* Compressed inline band (owner-validated spec, 2026-07-29 16:50 — reproduced
   via Windows display scaling 200% at 1280px CSS width, confirmed with
   Playwright + live CSS injection at 1140/1120/1024): 1024px doesn't fit even
   compressed (~180px short, measured), so the hamburger threshold stays at
   1139px — this band only covers 1140-1280px, one step below the existing
   1281-1650px compression band above. */
@media (min-width: 1140px) and (max-width: 1280px) {
  header.site-nav .wrap {
    max-width: 1280px;
  }
  .nav-links {
    gap: 8px;
  }
  .nav-links a,
  .nav-dropdown-toggle {
    font-size: 0.76rem;
    padding: 4px 1px;
    white-space: nowrap;
  }
  .nav-links .lang-switch {
    display: flex;
    gap: 2px;
  }
  .lang-switch [data-lang] {
    padding: 3px 5px;
    font-size: 0.62rem;
  }
  .lang-switch-mobile {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-logo-text {
    font-size: 1.05rem;
  }
}
@media (max-width: 1139px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    /* Explicit viewport-relative height, not "inset ... 0" auto-sizing:
       header.site-nav has backdrop-filter, which makes it the containing
       block for fixed descendants, so top/bottom alone were being solved
       against the header's own ~72px box (menu rendered ~64px tall) instead
       of the real viewport. vh/dvh units always measure the true viewport
       regardless of containing block, so they route around that. */
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    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-links .lang-switch {
    /* duplicated by .lang-switch-mobile below, avoid showing it twice */
    display: none;
  }
  #nav-toggle {
    display: block;
  }
  .lang-switch-mobile {
    display: flex;
    gap: 4px;
    margin-right: 4px;
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 4px 0;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    /* no hover bridge needed here (mobile is click-only, no pointer
       traversal to protect) — reset the desktop bridge's padding-top back
       to a plain symmetric 8px so mobile doesn't inherit extra whitespace
       it has no functional reason for. */
    padding-top: var(--space-8);
    margin-top: var(--space-8);
    box-shadow: none;
    border-color: var(--border);
  }
}

/* ---- 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 {
  display: block;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.hero-stat:hover,
.hero-stat:focus-visible {
  opacity: 0.7;
}
.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 460px;
  gap: 56px;
  align-items: center;
}
.hero-visual {
  position: relative;
  width: 460px;
  height: 460px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
/* Live pre-qualification demo card — glass panel over the brain canvas
   (mockup 2026-07-28 13:05 point (a): "la tarjeta de demo del hero pasa a
   cristal... para que el cerebro se vea a traves y alrededor"). Sits over
   the LOWER part of the box so the brain still reads through the top. */
.hero-demo {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  background: color-mix(in srgb, var(--card) 62%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.hero-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.hero-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: hero-demo-pulse 2s infinite;
  flex: none;
}
.hero-demo-q {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 12px;
}
.hero-demo-cursor {
  display: inline-block;
  width: 6px;
  height: 1em;
  background: var(--purple-2);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: hero-demo-pulse 1s infinite;
}
.hero-demo-route {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}
.hero-demo-route .k {
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-demo-route .arrow {
  color: var(--text-dimmer);
  margin: 0 6px;
}
.hero-demo-route .v {
  color: var(--text-dim);
}
.hero-demo-route .hu {
  color: var(--human);
  font-weight: 600;
}
@keyframes hero-demo-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-demo-dot,
  .hero-demo-cursor {
    animation: none;
  }
}
@media (max-width: 1080px) {
  .hero-demo-route div {
    display: flex;
    flex-wrap: wrap;
  }
}
.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;
}
.hero-visual-mobile {
  display: none;
}
.hero-demo-mobile {
  display: none;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .hero-visual-mobile {
    display: block;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--card);
    object-fit: cover;
  }
  /* Compact stacked copy of .hero-demo for <900px — the desktop card lives
     inside .hero-visual (display:none above), so without this the "pieza
     central" the owner asked for (2026-07-29 visual audit) never existed
     on mobile at all, only the ambient video did. */
  .hero-demo-mobile {
    display: block;
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 14px auto 0;
    background: var(--card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero-visual-mobile {
    display: none;
  }
}

/* ---- Services ---- */
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-48);
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.section-head p {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 16px;
}
.triage-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(108, 92, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.triage-cta-btn:hover,
.triage-cta-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108, 92, 255, 0.45);
}
.triage-fullscreen-link {
  display: inline-block;
  margin-top: 12px;
  margin-left: 12px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
}
.triage-fullscreen-link:hover {
  color: var(--purple-2);
}
.triage-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.triage-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.triage-qr-chat {
  width: 100%;
}
.triage-qr-imgwrap {
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  line-height: 0;
}
.triage-qr-imgwrap img {
  display: block;
  width: 120px;
  height: 120px;
}
.triage-qr-caption {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 260px;
}
.triage-qr-fallback-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(108, 92, 255, 0.15);
  color: var(--purple-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.triage-qr-fallback-link:hover {
  background: rgba(108, 92, 255, 0.25);
}
#services-grid,
#capabilities-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);
}
a.svc-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.svc-card.svc-escape {
  border-style: dashed;
  border-color: var(--border-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.svc-card.svc-escape h3 {
  font-size: 15.5px;
}
.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;
}
.cases-group {
  display: flex;
  flex-direction: column;
}
.cases-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-2);
  margin: 0 0 10px;
}
.cases-group .case-card {
  flex: 1;
}
.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;
}
.cases-detail {
  margin-top: 56px;
}
.cases-detail-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 10px 0 12px;
}
.cases-detail-lead {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 640px;
  margin-bottom: 24px;
}

/* ---- Verticals (soluciones por sector) ---- */
.vert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-16);
}
.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;
}

/* ---- Sector picker ("Choisissez votre secteur") ---- */
.sector-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.sector-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-2);
  text-decoration: none;
}
.sector-links a:hover {
  text-decoration: underline;
}
.vert-card.sector-escape {
  border-style: dashed;
  border-color: var(--border-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vert-card.sector-escape h3 {
  font-size: 15.5px;
}
.vert-card.sector-escape .sector-links a {
  font-size: 13.5px;
}

/* ---- Testimonials (real client reviews, submitted from the Client Portal) ---- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.testi-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--border-2);
}
.testi-star-on {
  color: #f5a623;
}
.testi-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 12px;
}
.testi-author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.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: var(--space-64) 0 var(--space-32);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.3fr;
  gap: var(--space-32);
  margin-bottom: var(--space-48);
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-nl-row {
  display: flex;
  gap: 6px;
}
.footer-nl-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
.footer-nl-row input:focus {
  outline: none;
  border-color: var(--purple-2);
}
.footer-nl-row button {
  flex: none;
  border: none;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
}
.footer-nl-consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-dimmer);
  cursor: pointer;
}
.footer-nl-consent input {
  margin-top: 2px;
  flex: none;
}
.footer-nl-msg {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 14px;
}
.footer-nl-msg.ok {
  color: #6fcf97;
}
.footer-nl-msg.err {
  color: #e0704d;
}
.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: 16px;
  max-width: 480px;
  margin: 0 auto;
  /* Theme-aware surface, not a hardcoded dark color — the old fixed
     oklch(16%...) value stayed dark under [data-theme="light"] while
     h3/p used var(--text)/var(--text-dim) (which flip to dark colors in
     light mode), so the title read as dark-on-dark and was illegible
     (owner report 2026-07-29 13:10). */
  background: color-mix(in srgb, var(--card) 92%, transparent);
  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);
  /* transform, not bottom: animating `bottom` is non-composited and forces
     a layout recalculation every frame, which showed up as a real 0.21
     mobile CLS hit (Core Web Vitals / Google mobile ranking signal) on
     every first-time visit, since this banner shows on every new session
     (see performance trace 2026-07-29 18:xx). translateY is GPU-composited
     and produces the identical visual slide-up with zero layout cost. */
  transform: translateY(432px);
  transition: transform 0.35s ease;
}
#cookie-banner.show {
  transform: translateY(0);
}
/* >=640px: a centered bottom sheet reads as a modal blocking the hero's
   center content — move it to a discreet bottom-LEFT corner (never
   bottom-right: the "Parler à Chichi" chat FAB/panel lives at
   right:22px/bottom:22px, z-index 9998-9999 — a right-anchored banner sat
   directly under it, owner report 2026-07-29 13:10). Mobile keeps the
   centered sheet (no room for a corner card on a narrow screen, and the
   chat FAB there is small enough not to collide). */
@media (min-width: 640px) {
  #cookie-banner {
    left: 20px;
    right: auto;
    max-width: 360px;
    margin: 0;
  }
}
#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;
  text-decoration: none;
  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 {
  /* min 44px touch target (a11y/kiosk requirement) — 12px vertical padding
     + ~1.4 line-height on 13px text clears it without changing the visual
     density much. */
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px dashed var(--border-2);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  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;
  }
}

/* ---- Reserva de turismo (public live booking widget) ---- */
.tb-widget {
  margin-top: 32px;
}
.tb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tb-empty,
.tb-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dimmer);
  font-size: 14px;
  padding: 30px 0;
}
.tb-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;
}
.tb-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.tb-card-name {
  font-size: 17px;
  margin-bottom: 6px;
}
.tb-card-meeting {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.tb-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.tb-card-price {
  font-weight: 700;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", sans-serif;
}
.tb-card-slots {
  font-size: 12.5px;
  color: var(--purple-2);
  font-weight: 600;
  margin-bottom: 16px;
}
.tb-book-btn {
  width: 100%;
  justify-content: center;
}
.tb-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tb-input {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  width: 100%;
}
.tb-input:focus {
  outline: none;
  border-color: var(--purple-2);
}
.tb-textarea {
  resize: vertical;
  min-height: 60px;
}
.tb-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.tb-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.tb-result {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.tb-result-ok {
  background: oklch(76% 0.17 150 / 0.12);
  border: 1px solid oklch(76% 0.17 150 / 0.35);
  color: oklch(88% 0.1 150);
}
.tb-result-error {
  background: oklch(70% 0.19 30 / 0.12);
  border: 1px solid oklch(70% 0.19 30 / 0.35);
  color: oklch(88% 0.1 30);
}

/* ---- Reserva de spa (public live booking widget) ---- */
.sb-widget {
  margin-top: 32px;
  max-width: 520px;
}
.sb-empty,
.sb-loading {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 14px;
  padding: 30px 0;
}
.sb-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sb-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.sb-input {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  width: 100%;
}
.sb-input:focus {
  outline: none;
  border-color: var(--purple-2);
}
.sb-textarea {
  resize: vertical;
  min-height: 60px;
}
.sb-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.sb-reschedule-row {
  margin-top: 18px;
  flex-direction: row;
  padding: 14px;
}
.sb-reschedule-row .sb-input {
  flex: 1;
}
.sb-reschedule-row .sb-submit-btn {
  width: auto;
  margin-top: 0;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .sb-reschedule-row {
    flex-direction: column;
  }
}
.sb-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.sb-result {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 520px;
}
.sb-result-ok {
  background: oklch(76% 0.17 150 / 0.12);
  border: 1px solid oklch(76% 0.17 150 / 0.35);
  color: oklch(88% 0.1 150);
}
.sb-result-error {
  background: oklch(70% 0.19 30 / 0.12);
  border: 1px solid oklch(70% 0.19 30 / 0.35);
  color: oklch(88% 0.1 30);
}

/* ---- AppManager terminal — operator-console motif (mockup v3, phase 3) ---- */
.am-terminal {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  background: var(--term-bg);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 18px 20px;
  color: #e9e7f2;
  max-width: 30rem;
}
.am-terminal .c {
  color: #8e8aa3;
}
.am-terminal .ok {
  color: var(--ok);
}
.am-terminal .hu {
  color: var(--human);
}
