/* ==========================================================================
   FocusFlow — Landing styles
   Sistema visual heredado de la app (spike/frontend/src/app.css):
   neumorfismo refinado, un solo azul, luz arriba-izquierda, Inter.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f8f8f8;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --surface-3: #eaecef;
  --accent: #2563eb;
  --primary: var(--accent);
  --primary-hover: color-mix(in srgb, var(--accent) 88%, #000);
  --primary-active: color-mix(in srgb, var(--accent) 76%, #000);
  --primary-soft: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --primary-soft-2: color-mix(in srgb, var(--accent) 42%, #fff);
  --success: #059669;
  --success-bg: #d1fae5;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --text-1: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --border: #e7e9ec;

  --font: "Inter", "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;

  --shadow-raised:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    -6px -6px 14px rgba(255, 255, 255, 0.95),
    6px 6px 14px rgba(31, 41, 55, 0.08);
  --shadow-raised-lg:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    -12px -12px 24px rgba(255, 255, 255, 0.9),
    12px 12px 24px rgba(31, 41, 55, 0.1);
  --shadow-inset:
    inset 4px 4px 10px rgba(31, 41, 55, 0.06),
    inset -4px -4px 10px rgba(255, 255, 255, 0.85);
  --shadow-inset-sm:
    inset 2px 2px 5px rgba(31, 41, 55, 0.05),
    inset -2px -2px 5px rgba(255, 255, 255, 0.8);
  --e1: 0 4px 8px -2px rgba(31, 41, 55, 0.08), 0 2px 4px -2px rgba(31, 41, 55, 0.06);
  --e2: 0 10px 20px -4px rgba(31, 41, 55, 0.12), 0 4px 8px -4px rgba(31, 41, 55, 0.08);
  --e3: 0 18px 36px -6px rgba(31, 41, 55, 0.18), 0 8px 16px -8px rgba(31, 41, 55, 0.12);

  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 250ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
}

[data-theme="dark"] {
  --bg: #16181e;
  --surface: #1e2129;
  --surface-2: #262a34;
  --surface-3: #2c313c;
  --accent: #3b82f6;
  --primary: var(--accent);
  --primary-hover: color-mix(in srgb, var(--accent) 78%, #fff);
  --primary-active: color-mix(in srgb, var(--accent) 70%, #000);
  --primary-soft: color-mix(in srgb, var(--accent) 20%, transparent);
  --primary-soft-2: color-mix(in srgb, var(--accent) 55%, transparent);
  --success: #34d399;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #fbbf24;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --text-1: #f3f4f6;
  --text-2: #a6adbb;
  --text-3: #6b7280;
  --border: #333845;

  --shadow-raised:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    -6px -6px 14px rgba(0, 0, 0, 0.3),
    6px 6px 14px rgba(0, 0, 0, 0.55);
  --shadow-raised-lg:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    -12px -12px 24px rgba(0, 0, 0, 0.35),
    12px 12px 24px rgba(0, 0, 0, 0.6);
  --shadow-inset:
    inset 4px 4px 10px rgba(0, 0, 0, 0.4),
    inset -4px -4px 10px rgba(255, 255, 255, 0.03);
  --shadow-inset-sm:
    inset 2px 2px 5px rgba(0, 0, 0, 0.35),
    inset -2px -2px 5px rgba(255, 255, 255, 0.03);
  --e1: 0 4px 8px -2px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --e2: 0 10px 20px -4px rgba(0, 0, 0, 0.55), 0 4px 8px -4px rgba(0, 0, 0, 0.45);
  --e3: 0 18px 36px -6px rgba(0, 0, 0, 0.6), 0 8px 16px -8px rgba(0, 0, 0, 0.5);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
img { max-width: 100%; }
a { color: var(--primary); }
::selection { background: var(--primary-soft-2); color: var(--text-1); }

:focus-visible {
  outline: 2px solid var(--primary-soft-2);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  box-shadow: var(--e2);
  z-index: 200;
}
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: var(--surface-2);
  color: var(--text-1);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: var(--e1);
}
.btn:hover { background: var(--surface-3); transform: translateY(-1px); box-shadow: var(--e2); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: var(--shadow-inset-sm); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.primary:active { background: var(--primary-active); box-shadow: none; }
.btn.lg { padding: 14px 28px; font-size: 15px; border-radius: 14px; }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.arr { font-size: 15px; opacity: 0.75; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.logo-img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--primary) 55%, transparent);
  flex-shrink: 0;
}
.fl-img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--primary) 55%, transparent);
  display: block;
}
.w-logo-img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-1);
  text-decoration: none;
}
.logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--primary) 55%, transparent);
}
.nav-links {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: var(--s-3); }
.theme-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  box-shadow: var(--e1);
}
.theme-toggle:hover { color: var(--primary); transform: translateY(-1px); }
[data-theme="dark"] .i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }

/* ---------- Secciones generales ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px var(--s-6) 0;
}
.section-head { max-width: 640px; margin-bottom: var(--s-12); }
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: end;
}
.section-head .side { margin: 0 0 6px; max-width: 420px; }
.kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin: 0 0 10px;
}
h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h1 em, h2 em { font-style: normal; color: var(--primary); }
.sub { color: var(--text-2); font-size: 16px; max-width: 52ch; margin: 14px 0 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px var(--s-6) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-copy { max-width: 720px; margin: 0 auto; }
.lead {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.65;
  max-width: 56ch;
  margin: 20px auto 0;
}
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.trust { font-size: 13px; color: var(--text-3); margin: 20px 0 0; font-weight: 500; }

.hero-stage { position: relative; margin-top: 56px; padding-bottom: 40px; }

/* Frame de la app (raised, el producto es el protagonista) */
.frame {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-raised-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
}
.frame-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
}
.f-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.f-dot:first-child { background: var(--danger); opacity: 0.6; }
.f-dot:nth-child(2) { background: var(--warning); opacity: 0.6; }
.f-title { margin-left: 6px; font-weight: 600; }
.f-arrows { margin-left: auto; color: var(--text-3); letter-spacing: 4px; font-weight: 700; }
.f-today {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--r-full);
  padding: 3px 12px;
}
.frame-body { padding: 16px; }

/* Week view */
.wk { display: flex; flex-direction: column; gap: 8px; }
.wk-head { display: flex; gap: 6px; }
.wk-gutter { width: 44px; flex-shrink: 0; }
.wk-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 8px;
  border-radius: var(--r-md);
}
.wk-day b {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.wk-day i {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  font-variant-numeric: tabular-nums;
}
.wk-day.today i { background: var(--primary); color: #fff; }
.wk-day.dim b, .wk-day.dim i { opacity: 0.45; }

.wk-body {
  display: flex;
  gap: 6px;
  position: relative;
}
.wk-body .wk-gutter { position: relative; }
.wk-gutter span {
  position: absolute;
  right: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  transform: translateY(-6px);
  font-variant-numeric: tabular-nums;
}
.wk-col {
  flex: 1;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 596px;
}
.allday {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}
.slots { position: absolute; inset: 26px 0 0; }
.slot { display: block; height: 40px; border-top: 1px solid var(--border); margin: 0 2px; }
.evt {
  position: absolute;
  left: 5px;
  right: 5px;
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
  border-left: 3px solid var(--c);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-inset-sm);
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.evt:hover { transform: translateY(-1px) scale(1.01); box-shadow: var(--e1); z-index: 4; }
.evt .et {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.evt b { font-size: 11px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt i { font-size: 9.5px; color: var(--text-3); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt.hi { border-left-style: dashed; }
.evt.hi .pd {
  position: absolute;
  right: 6px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}
.evt.ghost {
  border-left-style: dashed;
  opacity: 0.55;
  z-index: 1;
  background: color-mix(in srgb, var(--surface-3) 70%, var(--surface));
  border-left-color: var(--text-3);
}
.chip {
  font-size: 9px;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 60%, var(--text-1));
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
  border-radius: 7px;
  padding: 2px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.chip.cont { border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); }
.now-line {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 200px; /* 9:00 */
  height: 2px;
  background: var(--primary);
  border-radius: var(--r-full);
  z-index: 3;
  pointer-events: none;
}
.now-line::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.free-tag {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  opacity: 0.7;
  border: 1px dashed var(--border);
  border-radius: var(--r-full);
  padding: 6px 14px;
  pointer-events: none;
}
.sugg-marker {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 472px;
  height: 2px;
  background: var(--primary);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

/* Cards flotantes del hero */
.ai-sugg {
  position: absolute;
  right: max(16px, calc((100% - 980px) / 2 - 8px));
  top: 210px;
  width: 250px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--e3);
  border: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  z-index: 20;
}
.ai-head { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.ai-bolt {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ai-chip {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  border-radius: var(--r-full);
  padding: 2px 8px;
}
.ai-text { font-size: 12.5px; color: var(--text-2); margin: 8px 0 10px; line-height: 1.5; }
.ai-text b { color: var(--text-1); font-weight: 600; }
.ai-actions { display: flex; gap: 6px; }
.ai-btn {
  border: none;
  background: var(--surface-2);
  color: var(--text-1);
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.ai-btn:hover { background: var(--surface-3); }
.ai-btn.ok { background: var(--primary); color: #fff; }
.ai-btn.ok:hover { background: var(--primary-hover); }
.ai-btn.ghost { background: transparent; color: var(--text-3); }
.ai-btn.ghost:hover { background: var(--surface-2); color: var(--text-1); }

.qa-float {
  position: absolute;
  right: max(16px, calc((100% - 980px) / 2 - 8px));
  bottom: 76px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-3);
  box-shadow: var(--shadow-inset);
  border-radius: 15px;
  height: 44px;
  padding: 0 14px;
  width: 320px;
  z-index: 20;
}
.qa-bolt { color: var(--primary); flex-shrink: 0; display: block; }
.qa-ph { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.qa-kbd {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border-radius: 7px;
  padding: 2px 7px;
  box-shadow: var(--e1);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ---------- Problem ---------- */
.frag-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.frag {
  width: 150px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-raised);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  transform: rotate(var(--rot, 0deg));
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.frag:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--e2); }
.frag:nth-child(1) { --rot: -4deg; }
.frag:nth-child(2) { --rot: 2.5deg; }
.frag:nth-child(3) { --rot: -2deg; }
.frag:nth-child(4) { --rot: 3.5deg; }
.frag:nth-child(5) { --rot: -3deg; }
.fi { font-size: 17px; color: var(--text-3); }
.frag b { font-size: 15px; font-weight: 700; }
.frag i { font-size: 12px; color: var(--text-3); font-style: normal; }
.frag-arrow { font-size: 26px; color: var(--primary); font-weight: 700; padding: 0 6px; }
.frag.focus {
  width: 210px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-raised-lg);
  border: 1px solid var(--border);
  transform: none;
}
.frag.focus:hover { transform: translateY(-3px); }
.frag-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--primary) 55%, transparent);
}
.frag.focus i { color: var(--text-2); }

/* ---------- AI scheduling pipeline ---------- */
.pipeline {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.pipe-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-raised);
  padding: 16px 20px;
}
.pipe-step.result { border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.ps-k {
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-inset-sm);
}
.ps-k.ai { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.ps-k.ai::before { content: ""; }
.pipe-step.result .ps-k { background: var(--success-bg); color: var(--success); }
.ps-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-body b { font-size: 15px; font-weight: 700; }
.ps-body i { font-size: 13px; color: var(--text-2); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-step.ai-step .ps-body i { color: var(--text-2); }
.ps-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: color-mix(in srgb, var(--c, var(--primary)) 60%, var(--text-1));
  background: color-mix(in srgb, var(--c, var(--primary)) 13%, var(--surface));
  border-radius: var(--r-full);
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ps-tag.ok { color: var(--success); background: var(--success-bg); }
.pipe-arrow {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  padding: 7px 0;
  line-height: 1;
}

/* ---------- Calendar showcase ---------- */
.cal-showcase {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-raised-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0 18px 18px;
  text-align: left;
}
.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 16px 4px 10px;
  font-size: 14px;
  font-weight: 700;
}
.cs-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.cs-legend i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.cs-legend .lg { width: 10px; height: 10px; border-radius: 3px; }
.cs-legend .lg.busy { background: color-mix(in srgb, #2563eb 60%, var(--surface)); }
.cs-legend .lg.free { background: var(--surface-3); box-shadow: var(--shadow-inset-sm); }
.cs-legend .lg.urg { background: var(--danger); }
.cs-legend .lg.done { background: var(--success); opacity: 0.6; }
.cs-body { display: flex; gap: 10px; position: relative; }
.cs-gutter { width: 44px; position: relative; flex-shrink: 0; }
.cs-gutter span {
  position: absolute;
  right: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  transform: translateY(-6px);
  font-variant-numeric: tabular-nums;
}
.cs-col { flex: 1; position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 780px; }
.cs-allday {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}
.cs-slots { position: absolute; inset: 26px 0 0; }
.cs-slots .slot { display: block; height: 52px; border-top: 1px solid var(--border); margin: 0 2px; }
.cs-ev {
  position: absolute;
  left: 6px;
  right: 6px;
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
  border-left: 3px solid var(--c);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-inset-sm);
  padding: 5px 9px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  z-index: 2;
}
.cs-ev .et { font-size: 10px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cs-ev b { font-size: 11.5px; font-weight: 600; }
.cs-ev.done { opacity: 0.55; }
.cs-ev.done b { text-decoration: line-through; color: var(--text-2); }
.cs-ev.urg { border-left-style: dashed; }
.cs-ur {
  position: absolute;
  right: 6px;
  top: 4px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--r-full);
  padding: 1px 7px;
}
.cs-ev.free-zone {
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--surface-2) 55%, transparent),
    color-mix(in srgb, var(--surface-2) 55%, transparent) 8px,
    transparent 8px,
    transparent 16px
  );
  border-left: 3px solid var(--text-3);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cz {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.cs-now {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 364px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--r-full);
  z-index: 3;
  pointer-events: none;
}
.cs-now::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.cs-caption {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 8px 0 0;
}
.cs-caption div { display: flex; flex-direction: column; gap: 2px; }
.cs-caption b { font-size: 13px; font-weight: 700; }
.cs-caption i { font-size: 12px; color: var(--text-3); font-style: normal; line-height: 1.45; }

/* ---------- Quick capture ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-12);
  align-items: center;
}
.qa-big {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-3);
  border-radius: 15px;
  height: 52px;
  padding: 0 var(--s-4);
  box-shadow: var(--shadow-inset);
  border: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.qa-big:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-inset), inset 0 0 0 2px var(--primary-soft-2);
}
.qa-big input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14.5px;
  color: var(--text-1);
  font-family: inherit;
}
.qa-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--e3);
  border: 1px solid var(--border);
  padding: 10px 14px;
}
.qp-chip {
  font-size: 11px;
  font-weight: 600;
  color: color-mix(in srgb, var(--c, var(--primary)) 60%, var(--text-1));
  background: color-mix(in srgb, var(--c, var(--primary)) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c, var(--primary)) 30%, transparent);
  border-radius: var(--r-full);
  padding: 4px 10px;
}
.qp-chip.date { --c: #2563eb; }
.qp-chip.time { --c: #059669; }
.qp-create {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.qp-create:hover { background: var(--primary-hover); }
.mini-note { font-size: 12.5px; color: var(--text-3); margin: 12px 0 0; }

.quick-convert {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-raised-lg);
  border: 1px solid var(--border);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qc-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0;
}
.qc-row { display: flex; align-items: center; gap: 10px; }
.qc-tag {
  width: 74px;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--r-full);
  padding: 3px 10px;
  text-align: center;
}
.qc-tag.date { color: #2563eb; background: color-mix(in srgb, #2563eb 13%, var(--surface)); }
.qc-tag.time { color: var(--success); background: var(--success-bg); }
.qc-row b { font-size: 15px; font-weight: 600; transition: color var(--dur-base) var(--ease-out); }
.qc-flash {
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 2px;
}

/* ---------- Email ---------- */
.email-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.1fr;
  gap: 14px;
  align-items: stretch;
}
.em-card, .em-step, .em-sugg {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-raised);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.em-subj { font-size: 13px; font-weight: 700; }
.em-body { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.em-body b { color: var(--text-1); font-weight: 600; }
.em-meta { font-size: 11px; color: var(--text-3); margin-top: auto; }
.em-arrow { display: flex; align-items: center; color: var(--primary); font-size: 20px; font-weight: 700; }
.em-step { background: var(--surface-2); box-shadow: none; justify-content: center; }
.em-step b { font-size: 13.5px; font-weight: 700; }
.em-step i { font-size: 12px; color: var(--text-2); font-style: normal; }
.em-sugg { border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); }
.es-top { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.es-kind {
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--r-full);
  padding: 2px 9px;
}
.es-conf { margin-left: auto; color: var(--text-3); font-weight: 600; }
.em-sugg > b { font-size: 14px; font-weight: 700; }
.es-reason { font-size: 12px; color: var(--text-2); font-style: italic; }
.es-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.es-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 60%, var(--text-1));
  background: color-mix(in srgb, var(--c) 13%, var(--surface));
  border-radius: var(--r-full);
  padding: 2px 9px;
}
.es-actions { display: flex; gap: 6px; margin-top: 2px; }
.es-btn {
  border: none;
  background: var(--surface-2);
  color: var(--text-1);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.es-btn:hover { background: var(--surface-3); }
.es-btn.ok { background: var(--primary); color: #fff; }
.es-btn.ok:hover { background: var(--primary-hover); }
.es-btn.ghost { background: transparent; color: var(--text-3); }
.email-note {
  max-width: 560px;
  margin: var(--s-5) auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Widget ---------- */
.widget-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--s-12);
  flex-wrap: wrap;
  padding: var(--s-4) 0 var(--s-8);
}
.widget {
  width: 320px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-raised-lg);
  border: 1px solid var(--border);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  text-align: left;
}
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.w-logo {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.w-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.w-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 18%, transparent);
}
.w-body { display: flex; flex-direction: column; gap: 6px; }
.w-sec { display: flex; flex-direction: column; gap: 2px; position: relative; }
.w-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.w-sec.now .w-label { color: var(--primary); }
.w-task {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  padding: 5px 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
  width: 100%;
}
.w-task:hover { background: var(--surface-2); }
.w-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.w-dot.imp { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.w-ttl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-rem {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--r-full);
  padding: 2px 9px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.w-due {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-3);
  border-radius: var(--r-full);
  padding: 2px 9px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.w-due.imp { color: var(--danger); background: var(--danger-bg); }
.w-qa { display: flex; gap: 6px; padding-left: 8px; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.w-sec:hover .w-qa { opacity: 1; }
.w-qa button {
  width: 22px;
  height: 20px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-2);
  border-radius: var(--r-full);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.w-qa button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.w-foot {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.w-fbtn {
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--r-full);
  transition: all var(--dur-fast) var(--ease-out);
}
.w-fbtn:hover { color: var(--primary); background: var(--primary-soft); }
.widget-tip { max-width: 300px; padding-top: var(--s-8); }
.widget-tip b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.widget-tip p { color: var(--text-2); font-size: 14.5px; margin: 10px 0; }
.tip-actions { font-size: 12px; color: var(--text-3); }

/* ---------- Local-first ---------- */
.local-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.loc {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-raised);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.loc b { font-size: 15px; font-weight: 700; }
.loc p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* ---------- Final CTA ---------- */
.final { padding-bottom: 96px; }
.final-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-raised-lg);
  border: 1px solid var(--border);
  padding: var(--s-16) var(--s-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
.final-card h2 { max-width: 18ch; }
.final-card .sub { margin: 0 auto; }
.fine { font-size: 12px; color: var(--text-3); margin: 4px 0 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--s-6) 0; }
.f-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-size: 13px;
  color: var(--text-3);
}
.f-links { display: flex; gap: var(--s-5); margin-left: auto; }
.f-links a { color: var(--text-3); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.f-links a:hover { color: var(--primary); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ai-sugg { right: 12px; top: 150px; width: 220px; }
  .qa-float { right: 12px; width: 260px; }
  .cs-caption { display: none; }
}

@media (max-width: 860px) {
  .section { padding: 72px var(--s-5) 0; }
  .section-head.split { grid-template-columns: 1fr; gap: var(--s-4); }
  .quick-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .email-flow { grid-template-columns: 1fr; }
  .em-arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
  .local-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-sugg, .qa-float { display: none; }
  /* Se mantienen 5 días (Lun–Vie): ocultar Sáb y Dom en cabeza y cuerpo */
  .wk-head .wk-day:nth-child(7),
  .wk-head .wk-day:nth-child(8),
  .wk-body .wk-col:nth-child(7),
  .wk-body .wk-col:nth-child(8) { display: none; }
  .frame-body { padding: 12px; }
  .wk-gutter { width: 36px; }
  .hero { padding-top: 48px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-stage { margin-top: 40px; }
  .local-grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .lead { font-size: 16px; }
  .frame-top { padding: 10px 14px; }
  .f-title { font-size: 12px; }
  .f-today { display: none; }
  /* Se mantienen 2 días (Lun–Mar): ocultar el resto en cabeza y cuerpo */
  .wk-gutter { display: none; }
  .wk-head .wk-day:nth-child(4),
  .wk-head .wk-day:nth-child(5),
  .wk-head .wk-day:nth-child(6),
  .wk-head .wk-day:nth-child(7),
  .wk-head .wk-day:nth-child(8),
  .wk-body .wk-col:nth-child(4),
  .wk-body .wk-col:nth-child(5),
  .wk-body .wk-col:nth-child(6),
  .wk-body .wk-col:nth-child(7),
  .wk-body .wk-col:nth-child(8) { display: none; }
  .frag-grid { gap: 10px; }
  .frag { width: 130px; padding: 14px 16px; }
  .frag.focus { width: 170px; }
  .frag-arrow { font-size: 20px; padding: 0 2px; }
  .final-card { padding: var(--s-12) var(--s-5); }
  .f-inner { flex-wrap: wrap; gap: var(--s-3); }
  .f-links { margin-left: 0; }
  .qa-kbd { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 120ms !important;
    transition-duration: 120ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
