/* ==========================================================================
   SasoFlow — Design System
   Concepto: "Agenda en calma". Lienzo claro, mucho aire, un solo acento de
   marca (verde petróleo) reservado para producto, estados y confirmaciones.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca — Verde petróleo */
  --brand-50:  #EFF7F5;
  --brand-100: #D7EDE8;
  --brand-200: #B0DCD3;
  --brand-300: #7FC4B7;
  --brand-400: #48A697;
  --brand-500: #1A8877;
  --brand-600: #0C6E63;
  --brand-700: #0A5A51;
  --brand-800: #094943;
  --brand-900: #073B36;

  /* Tinta / neutros fríos */
  --ink-950: #070B0F;
  --ink-900: #0D1319;
  --ink-800: #18212B;
  --ink-700: #2B3947;
  --ink-600: #475769;
  --ink-500: #667889;
  --ink-400: #8C9CAB;
  --ink-300: #B4C0CB;

  /* Superficies */
  --bg:        #FFFFFF;
  --bg-soft:   #F7F8FA;
  --bg-warm:   #FBFAF8;
  --bg-ink:    #0B1116;

  /* Bordes */
  --line:      #E5E9EE;
  --line-soft: #EFF2F5;
  --line-strong: #D7DDE4;

  /* Acento cálido (uso mínimo: fricción / estado "antes") */
  --sand-50:  #FBF7F1;
  --sand-100: #F4EDE1;
  --sand-300: #DFCDB0;
  --sand-700: #8A6B41;

  /* Radios */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Sombras (muy sutiles, multicapa) */
  --sh-xs: 0 1px 2px rgba(13, 19, 25, .04);
  --sh-sm: 0 1px 2px rgba(13, 19, 25, .04), 0 2px 6px rgba(13, 19, 25, .03);
  --sh-md: 0 1px 2px rgba(13, 19, 25, .04), 0 6px 16px -4px rgba(13, 19, 25, .06);
  --sh-lg: 0 1px 2px rgba(13, 19, 25, .04), 0 12px 32px -8px rgba(13, 19, 25, .08),
           0 32px 64px -24px rgba(13, 19, 25, .10);
  --sh-brand: 0 1px 2px rgba(7, 59, 54, .16), 0 8px 24px -8px rgba(7, 59, 54, .28);

  /* Tipografía */
  /* next/font define --font-inter-tight / --font-inter cuando se usa Next.js.
     En el build estático se cae al nombre de la familia cargada por <link>. */
  --font-display: var(--font-inter-tight, "Inter Tight"), "Inter", -apple-system,
                  BlinkMacSystemFont, "Segoe UI", "Liberation Sans", Arial, sans-serif;
  --font-sans:    var(--font-inter, "Inter"), -apple-system, BlinkMacSystemFont,
                  "Segoe UI", "Liberation Sans", Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo,
                  "Liberation Mono", monospace;

  /* Layout */
  --container: 1120px;
  --container-narrow: 780px;
  --gutter: 24px;
  --section-y: clamp(76px, 8.5vw, 132px);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

button, input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
  text-wrap: balance;
}

p { text-wrap: pretty; }

ul, ol { list-style: none; padding: 0; }

::selection { background: var(--brand-200); color: var(--brand-900); }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-size: .9rem; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 550; letter-spacing: .01em;
  color: var(--brand-700); text-transform: none;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500); flex: none;
}
.section-head--center .eyebrow { justify-content: center; }

h2.section-title {
  font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.9rem);
  letter-spacing: -0.033em;
  margin-bottom: 18px;
}

.section-sub {
  font-size: clamp(1rem, .96rem + .28vw, 1.125rem);
  color: var(--ink-600);
  line-height: 1.6;
  max-width: 60ch;
}
.section-head--center .section-sub { margin-inline: auto; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 20px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 550; letter-spacing: -0.005em;
  white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--brand-600);
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { --btn-bg: var(--brand-700); }

.btn--secondary {
  --btn-bg: #fff;
  --btn-fg: var(--ink-800);
  --btn-bd: var(--line-strong);
  box-shadow: var(--sh-xs);
}
.btn--secondary:hover { --btn-bd: var(--ink-300); box-shadow: var(--sh-sm); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-700);
  --btn-bd: transparent;
}
.btn--ghost:hover { --btn-bg: var(--bg-soft); transform: none; }

.btn--lg { height: 52px; padding-inline: 26px; font-size: 1rem; border-radius: 12px; }
.btn--sm { height: 38px; padding-inline: 15px; font-size: .875rem; }
.btn--block { width: 100%; }

.btn--onDark {
  --btn-bg: #fff;
  --btn-fg: var(--ink-900);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.4);
}
.btn--onDarkGhost {
  --btn-bg: transparent;
  --btn-fg: rgba(255,255,255,.92);
  --btn-bd: rgba(255,255,255,.22);
}
.btn--onDarkGhost:hover { --btn-bd: rgba(255,255,255,.42); --btn-bg: rgba(255,255,255,.06); }

.btn .ic { width: 16px; height: 16px; flex: none; }
.btn--lg .ic { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav[data-stuck="true"] {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.86);
}
.nav__inner {
  height: 64px; display: flex; align-items: center; gap: 28px;
}

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 1.075rem; font-weight: 650; letter-spacing: -0.03em;
  color: var(--ink-900); flex: none;
}
.logo__img { height: 26px; width: auto; display: block; flex: none; }

.nav__links {
  display: flex; align-items: center; gap: 4px; margin-left: 8px;
}
.nav__link {
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 480; color: var(--ink-600);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav__link:hover { color: var(--ink-900); background: var(--bg-soft); }

.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; width: 40px; height: 40px; align-items: center;
  justify-content: center; border: 1px solid var(--line);
  background: #fff; border-radius: var(--r-sm); cursor: pointer;
}
.nav__toggle svg { width: 18px; height: 18px; color: var(--ink-800); }

.nav__mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px var(--gutter) 20px;
}
.nav__mobile a.nav__link {
  display: block; padding: 12px 4px; font-size: 1rem;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
}
.nav__mobile a.nav__link:hover { background: transparent; }
.nav__mobile .btn { margin-top: 16px; }
.nav[data-open="true"] .nav__mobile { display: block; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 6vw, 88px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 48% at 50% 0%, rgba(12,110,99,.075) 0%, rgba(12,110,99,0) 68%),
    radial-gradient(38% 40% at 82% 12%, rgba(72,166,151,.07) 0%, rgba(72,166,151,0) 70%);
}
.hero__grid {
  position: absolute; inset: 0 0 auto 0; height: 520px; z-index: 0;
  pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(72% 62% at 50% 0%, #000 0%, transparent 78%);
}
.hero .container { position: relative; z-index: 1; }

.hero__copy { max-width: 880px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 13px 0 9px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-full); box-shadow: var(--sh-xs);
  font-size: .8125rem; font-weight: 500; color: var(--ink-600);
  margin-bottom: 26px;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(26,136,119,.16);
  flex: none;
}

h1.hero__title {
  font-size: clamp(2.2rem, 1.5rem + 2.9vw, 3.4rem);
  line-height: 1.075;
  letter-spacing: -0.036em;
  font-weight: 600;
  margin-bottom: 22px;
  text-wrap: balance;
}
h1.hero__title em {
  font-style: normal;
  color: var(--brand-700);
}

.hero__sub {
  font-size: clamp(1.0625rem, .99rem + .42vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 26px;
  font-size: .875rem; color: var(--ink-500);
}
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--brand-500); flex: none; }

/* --------------------------------------------------------------------------
   7. Showcase (mockups)
   -------------------------------------------------------------------------- */
.showcase {
  margin-top: clamp(48px, 6vw, 76px);
  position: relative;
}
.showcase__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, #FDFDFE 0%, #F6F8F9 100%);
  padding: clamp(16px, 2.4vw, 30px);
  box-shadow: var(--sh-lg);
}
.showcase__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}

.showcase__note {
  margin-top: 14px; text-align: center;
  font-size: .78rem; color: var(--ink-400);
}

/* ---- Chat card ---- */
.chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 460px;
}
.chat__head {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.chat__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-700));
  color: #fff; display: grid; place-items: center;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
}
.chat__who { min-width: 0; }
.chat__name {
  font-size: .9rem; font-weight: 560; color: var(--ink-900);
  letter-spacing: -0.01em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat__status {
  font-size: .74rem; color: var(--ink-500);
  display: inline-flex; align-items: center; gap: 5px;
}
.chat__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-400);
}
.chat__channel {
  margin-left: auto; flex: none;
  font-size: .68rem; font-weight: 550; letter-spacing: .02em;
  color: var(--ink-500); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 3px 9px;
}

.chat__body {
  flex: 1; padding: 18px 16px; display: flex; flex-direction: column; gap: 11px;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 1px 1px, rgba(13,19,25,.045) 1px, transparent 0) 0 0 / 18px 18px,
    var(--bg-warm);
  overflow: hidden;
}

.bubble {
  max-width: 86%;
  padding: 9px 13px 8px;
  border-radius: 14px;
  font-size: .875rem;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--sh-xs);
}
.bubble--in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--ink-800);
}
.bubble--out {
  align-self: flex-end;
  background: var(--brand-600);
  border-bottom-right-radius: 5px;
  color: #fff;
  box-shadow: 0 1px 2px rgba(7,59,54,.2);
}
.bubble__time {
  display: block; margin-top: 3px;
  font-size: .66rem; letter-spacing: .01em;
  opacity: .62; text-align: right;
}
.bubble--in .bubble__time { color: var(--ink-500); opacity: .85; }
.bubble--out .bubble__time { color: rgba(255,255,255,.82); }
.bubble__time svg { width: 13px; height: 13px; display: inline-block;
  vertical-align: -2px; margin-left: 3px; }

.chat__slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.slot {
  font-size: .78rem; font-weight: 550; letter-spacing: -0.005em;
  padding: 4px 10px; border-radius: var(--r-full);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}
.slot--picked {
  background: #fff; color: var(--brand-800); border-color: #fff;
  font-weight: 600;
}

.chat__foot {
  border-top: 1px solid var(--line-soft);
  background: #fff;
  padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
}
.chat__input {
  flex: 1; height: 34px; border-radius: var(--r-full);
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 14px;
  font-size: .82rem; color: var(--ink-400);
}
.chat__send {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--brand-600); display: grid; place-items: center;
}
.chat__send svg { width: 15px; height: 15px; color: #fff; }

.typing { display: inline-flex; gap: 3px; align-items: center; height: 12px; }
.typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-300);
  animation: typing 1.25s var(--ease) infinite;
}
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2.5px); }
}

/* ---- Agenda card ---- */
.agenda {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.agenda__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
}
.agenda__title {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 600; color: var(--ink-900);
  letter-spacing: -0.02em;
}
.agenda__date { font-size: .78rem; color: var(--ink-500); }
.agenda__sync {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 500; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-full); padding: 4px 10px; white-space: nowrap;
}
.agenda__sync svg { width: 12px; height: 12px; flex: none; }

.agenda__cols {
  display: grid; grid-template-columns: 58px 1fr;
  flex: 1; padding: 12px 18px 18px;
}
.agenda__times { display: flex; flex-direction: column; }
.agenda__time {
  height: 52px; font-size: .72rem; color: var(--ink-400);
  font-variant-numeric: tabular-nums; padding-top: 0; line-height: 1;
  transform: translateY(-5px);
}
.agenda__track { position: relative; border-left: 1px solid var(--line-soft); }
.agenda__line {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--line-soft);
}
.agenda__now {
  position: absolute; left: -4px; right: 0; height: 1px;
  background: var(--brand-400); opacity: .55;
}
.agenda__now::before {
  content: ""; position: absolute; left: -3px; top: -3px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500);
}

.event {
  position: absolute; left: 10px; right: 6px;
  border-radius: var(--r-sm); padding: 8px 11px;
  font-size: .78rem; line-height: 1.35; overflow: hidden;
}
.event--muted {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-300);
  color: var(--ink-500);
}
.event--new {
  background: linear-gradient(180deg, var(--brand-50), #fff);
  border: 1px solid var(--brand-200);
  border-left: 3px solid var(--brand-600);
  box-shadow: 0 6px 18px -8px rgba(7,59,54,.35);
  color: var(--brand-900);
}
.event__title { font-weight: 600; color: inherit; letter-spacing: -0.01em; }
.event--muted .event__title { color: var(--ink-600); }
.event__meta { font-size: .72rem; opacity: .82; }
.event__tag {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 5px; font-size: .66rem; font-weight: 550;
  color: var(--brand-700); background: #fff;
  border: 1px solid var(--brand-200); border-radius: var(--r-full);
  padding: 2px 8px;
}
.event__tag svg { width: 10px; height: 10px; }

.agenda__foot {
  border-top: 1px solid var(--line-soft);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--ink-500);
  background: var(--bg-warm);
}
.agenda__foot svg { width: 15px; height: 15px; color: var(--brand-500); flex: none; }

/* Reproducción escalonada de la demo */
.play > * { opacity: 0; transform: translateY(8px); }
.play.is-live > * {
  animation: pop .5s var(--ease-out) forwards;
}
@keyframes pop {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   8. Tira de capacidades
   -------------------------------------------------------------------------- */
.capstrip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding-block: 22px;
}
.capstrip__list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 38px;
}
.capstrip__item {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .875rem; font-weight: 480; color: var(--ink-600);
}
.capstrip__item svg { width: 16px; height: 16px; color: var(--brand-500); flex: none; }

/* --------------------------------------------------------------------------
   9. Cards genéricas
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--sh-xs);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease),
              border-color .25s var(--ease);
}
.card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card__icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
}
.card__icon svg { width: 18px; height: 18px; color: var(--brand-600); }
.card__title {
  font-size: 1.0125rem; font-weight: 600; color: var(--ink-900);
  letter-spacing: -0.02em; margin-bottom: 7px;
  text-wrap: balance;
}
.card__text { font-size: .9125rem; color: var(--ink-600); line-height: 1.6; }

/* --------------------------------------------------------------------------
   10. Problema
   -------------------------------------------------------------------------- */
.problem__grid { gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; }
.problem__item {
  background: #fff; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.problem__num {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--sand-700); background: var(--sand-50);
  border: 1px solid var(--sand-100); border-radius: var(--r-xs);
  padding: 2px 7px; align-self: flex-start;
}
.problem__title {
  font-family: var(--font-display); font-size: 1.0125rem; font-weight: 600;
  color: var(--ink-900); letter-spacing: -0.02em;
}
.problem__text { font-size: .9125rem; color: var(--ink-600); }

.problem__note {
  margin-top: 26px; display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--r-md);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  font-size: .9375rem; color: var(--brand-900);
}
.problem__note svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; margin-top: 2px; }

/* --------------------------------------------------------------------------
   11. Cómo funciona
   -------------------------------------------------------------------------- */
.steps { position: relative; }
.steps__line {
  position: absolute; top: 26px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%,
              var(--line-strong) 88%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: left; }
.step__badge {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center; position: relative;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.step__badge svg { width: 21px; height: 21px; color: var(--brand-600); }
.step__n {
  position: absolute; top: -7px; right: -7px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--ink-900); color: #fff;
  font-size: .68rem; font-weight: 600; display: grid; place-items: center;
  font-family: var(--font-display); letter-spacing: 0;
}
.step__title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--ink-900); letter-spacing: -0.022em; margin-bottom: 8px;
}
.step__text { font-size: .9125rem; color: var(--ink-600); line-height: 1.6; }

/* --------------------------------------------------------------------------
   12. Demo section
   -------------------------------------------------------------------------- */
.demo__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.demo__heading {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem);
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.demo__intro { font-size: 1rem; color: var(--ink-600); }

.demo__points { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.demo__point { display: flex; gap: 14px; }
.demo__point-ic {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--sh-xs);
}
.demo__point-ic svg { width: 16px; height: 16px; color: var(--brand-600); }
.demo__point h3 {
  font-size: .9875rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em;
}
.demo__point p { font-size: .9125rem; color: var(--ink-600); }

.demo__result {
  margin-top: 28px; padding: 16px 18px;
  border: 1px solid var(--brand-100); background: var(--brand-50);
  border-radius: var(--r-md);
  display: flex; gap: 13px; align-items: flex-start;
}
.demo__result > svg {
  width: 19px; height: 19px; color: var(--brand-600); flex: none; margin-top: 2px;
}
.demo__result-title {
  font-weight: 600; color: var(--brand-900); letter-spacing: -0.015em;
}
.demo__result-text { font-size: .9125rem; color: var(--brand-800); opacity: .85; }

/* --------------------------------------------------------------------------
   13. Beneficios
   -------------------------------------------------------------------------- */
.benefits__grid { gap: 16px; }

/* --------------------------------------------------------------------------
   14. No es solo un chatbot
   -------------------------------------------------------------------------- */
.compare {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(20px, 3vw, 40px); align-items: start;
}
.msgs { display: flex; flex-direction: column; gap: 12px; }
.msg {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--sh-xs);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px;
  align-items: center;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.msg:hover { border-color: var(--brand-200); box-shadow: var(--sh-sm); }
.msg__quote {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 550; color: var(--ink-900);
  letter-spacing: -0.022em;
}
.msg__arrow { color: var(--brand-500); display: grid; place-items: center; }
.msg__arrow svg { width: 15px; height: 15px; }
.msg__what { font-size: .89rem; color: var(--ink-600); }

.notbot__list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.notbot__item { display: flex; gap: 11px; font-size: .9375rem; color: var(--ink-600); }
.notbot__item svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; margin-top: 3px; }
.notbot__item b { color: var(--ink-900); font-weight: 560; }

/* --------------------------------------------------------------------------
   15. Seguridad / control humano
   -------------------------------------------------------------------------- */
.safety { background: var(--bg-ink); color: rgba(255,255,255,.72); }
.safety h2.section-title { color: #fff; }
.safety .eyebrow { color: var(--brand-300); }
.safety .eyebrow::before { background: var(--brand-400); }
.safety .section-sub { color: rgba(255,255,255,.62); }
.safety__grid { gap: 1px; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); overflow: hidden; }
.safety__item { background: var(--bg-ink); padding: 26px 24px; }
.safety__item h3 {
  color: #fff; font-size: 1.0125rem; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 9px; display: flex; align-items: center; gap: 10px;
}
.safety__item h3 svg { width: 17px; height: 17px; color: var(--brand-300); flex: none; }
.safety__item p { font-size: .9125rem; color: rgba(255,255,255,.62); line-height: 1.6; }
.safety__foot {
  margin-top: 24px; font-size: .84rem; color: rgba(255,255,255,.56);
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   16. Para quién es
   -------------------------------------------------------------------------- */
.audience__grid { gap: 14px; }
.aud {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; text-align: left; box-shadow: var(--sh-xs);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.aud:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.aud svg { width: 19px; height: 19px; color: var(--brand-600); margin-bottom: 12px; }
.aud__title { font-family: var(--font-display); font-size: .975rem; font-weight: 600;
  color: var(--ink-900); letter-spacing: -0.02em; margin-bottom: 4px; }
.aud__text { font-size: .855rem; color: var(--ink-500); line-height: 1.55; }

.audience__more {
  margin-top: 22px; padding: 20px 22px; border-radius: var(--r-md);
  border: 1px dashed var(--line-strong); background: var(--bg-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.audience__more p { font-size: .9125rem; color: var(--ink-600); }
.audience__more b { color: var(--ink-900); font-weight: 560; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: .8rem; font-weight: 500; color: var(--ink-600);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-full); padding: 4px 11px;
}

/* --------------------------------------------------------------------------
   17. CTA final
   -------------------------------------------------------------------------- */
.finalcta { padding-block: clamp(64px, 7vw, 104px); }
.finalcta__box {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, #0E2A28 0%, #08211F 46%, #071A19 100%);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 68px);
  text-align: center;
  box-shadow: var(--sh-lg);
}
.finalcta__box::after {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 320px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(72,166,151,.22), transparent 70%);
  pointer-events: none;
}
.finalcta__grid {
  position: absolute; inset: 0; opacity: .28; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%);
}
.finalcta__inner { position: relative; z-index: 1; }
.finalcta h2 {
  color: #fff; font-size: clamp(1.85rem, 1.3rem + 2.3vw, 2.85rem);
  letter-spacing: -0.035em; margin-bottom: 18px;
}
.finalcta p {
  color: rgba(255,255,255,.66); font-size: clamp(1rem, .96rem + .3vw, 1.125rem);
  max-width: 56ch; margin: 0 auto 34px;
}
.finalcta__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.finalcta__note {
  margin-top: 26px; font-size: .84rem; color: rgba(255,255,255,.55);
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq__layout {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.faq__list {
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 4px; background: none; border: 0; cursor: pointer;
  text-align: left; font-family: var(--font-display);
  font-size: 1.0125rem; font-weight: 550; color: var(--ink-900);
  letter-spacing: -0.022em;
  transition: color .18s var(--ease);
}
.faq__q:hover { color: var(--brand-700); }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  width: 22px; height: 22px; flex: none; position: relative;
  border-radius: 50%; border: 1px solid var(--line-strong);
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              transform .25s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 50% 5px auto 5px; height: 1.5px;
  background: var(--ink-600); border-radius: 2px; transform: translateY(-50%);
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.faq__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--brand-600); border-color: var(--brand-600); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: translateY(-50%) rotate(0deg); }
.faq__a {
  padding: 0 60px 22px 4px;
  font-size: .9375rem; color: var(--ink-600); line-height: 1.65;
  animation: faqIn .3s var(--ease-out);
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }

h2.section-title.faq__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.faq__sub { margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 52px 34px; background: #fff; }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px; padding-bottom: 36px;
}
.footer__brand p {
  margin-top: 14px; font-size: .9125rem; color: var(--ink-500);
  max-width: 38ch;
}
.footer__colTitle {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px;
}
.footer__col li + li { margin-top: 9px; }
.footer__col a {
  font-size: .9125rem; color: var(--ink-600);
  transition: color .15s var(--ease);
}
.footer__col a:hover { color: var(--brand-700); }
.footer__bottom {
  border-top: 1px solid var(--line-soft); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  align-items: center; justify-content: space-between;
  font-size: .84rem; color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   20. Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .showcase__inner { grid-template-columns: 1fr; }
  .chat { min-height: 0; }
  .demo__layout { grid-template-columns: 1fr; }
  .faq__layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__line { display: none; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 76px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .showcase__frame { padding: 12px; border-radius: 20px; }
  .problem__grid { border-radius: var(--r-md); }
  .safety__grid { border-radius: var(--r-md); }
  .faq__a { padding-right: 20px; }
  .finalcta__buttons .btn { flex: 1 1 100%; }
  .capstrip__list { gap: 10px 20px; }
  .capstrip__item { font-size: .8125rem; }
  .agenda__cols { grid-template-columns: 50px 1fr; padding-inline: 14px; }
  .agenda__sync { font-size: .68rem; padding: 3px 8px; }
  h1.hero__title { font-size: 2.05rem; letter-spacing: -0.032em; }
}

/* --------------------------------------------------------------------------
   22. Preferencias del sistema
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .play > * { opacity: 1; transform: none; }
}

@media print {
  .nav, .finalcta, .hero__glow, .hero__grid { display: none; }
}
