/* Páginas del modo demo: selector de roles (/demo) y sitio ficticio con Nix (/demo/web). */
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 16px; }
.brand { font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.brand small { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding: 3px 8px; border-radius: 999px; background: #261638; color: #c9a4f7; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #b07cf2, #8224e3); display: inline-block; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; opacity: .7; margin: 0 0 14px; }
.muted { opacity: .7; }

/* /demo */
.inicio { background: #09090b; color: #fafafa; min-height: 100vh; }
.inicio .ghost { text-decoration: none; font-size: 14px; border: 1px solid #3f3f46; padding: 8px 14px; border-radius: 999px; }
.inicio .ghost:hover { border-color: #b07cf2; }
.hero { padding: 56px 0 36px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; }
.hero .lead { font-size: 19px; max-width: 640px; color: #d4d4d8; margin: 0; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding-bottom: 28px; }
.role { position: relative; display: block; text-decoration: none; background: #131316; border: 1px solid #27272a; border-radius: 18px; padding: 22px 22px 52px;
  transition: border-color .15s, transform .15s; }
.role:hover { border-color: #b07cf2; transform: translateY(-2px); }
.role .ic { color: #b07cf2; font-size: 18px; }
.role h2 { margin: 8px 0 6px; font-size: 21px; letter-spacing: -.01em; }
.role p { margin: 0; color: #a1a1aa; font-size: 15px; }
.role .go { position: absolute; left: 22px; bottom: 18px; font-weight: 600; color: #c9a4f7; font-size: 14px; }
.role.web { background: linear-gradient(135deg, #1d1030, #131316); }
.note { color: #71717a; font-size: 13px; padding-bottom: 40px; }

/* /demo/web */
.sitio { background: #fbfaf7; color: #14231f; }
.demo-bar { background: #14231f; color: #e9e4d8; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: .02em; }
.top.light { background: #fbfaf7; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #ebe6db; }
.top.light .brand { font-size: 19px; font-weight: 600; }
.top.light .brand em { font-style: normal; color: #1f7a6a; }
.top nav { display: flex; gap: 20px; font-size: 14px; }
.top nav a { text-decoration: none; }
.cover { min-height: 62vh; display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(180deg, rgba(10, 30, 28, .15), rgba(10, 30, 28, .75)), linear-gradient(120deg, #1f7a6a 0%, #3aa58f 40%, #f2c27b 100%); }
.cover-in { max-width: 1120px; width: 100%; margin: 0 auto; padding: 48px 24px; }
.cover h1 { font-size: clamp(36px, 6.5vw, 72px); line-height: 1; letter-spacing: -.03em; margin: 0 0 14px; max-width: 760px; }
.cover .lead { font-size: 19px; max-width: 560px; margin: 0 0 24px; }
.cta { background: #1f7a6a; color: #fff; border: 0; border-radius: 999px; padding: 14px 24px; font: inherit; font-weight: 600; cursor: pointer; }
.cover .cta { background: #fff; color: #14231f; }
.cta.small { padding: 10px 18px; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; padding: 48px 0 16px; }
.card { background: #fff; border: 1px solid #ebe6db; border-radius: 20px; padding: 0 0 22px; overflow: hidden; }
.card > *:not(.ph) { margin-left: 22px; margin-right: 22px; }
.card h2 { margin-top: 18px; margin-bottom: 4px; font-size: 24px; letter-spacing: -.01em; }
.card ul { padding-left: 18px; font-size: 15px; }
.ph { height: 190px; display: flex; align-items: flex-end; padding: 14px 18px; color: #fff; font-size: 13px; font-weight: 600; }
.ph.brisa { background: linear-gradient(135deg, #2c8c7c, #9bd3c3 60%, #f6e2b8); }
.ph.coral { background: linear-gradient(135deg, #d9785f, #f2b48f 55%, #6cc0b1); }
.plan { padding: 8px 0 56px; max-width: 760px; }
.foot { text-align: center; font-size: 13px; color: #6b746f; padding: 28px 16px 90px; border-top: 1px solid #ebe6db; }

.nix-fab { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: #14231f; color: #fff; padding: 10px 18px 10px 10px; border-radius: 999px; font: inherit; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.nix-fab span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #b07cf2, #8224e3); }
.nix { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px));
  background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.nix[hidden] { display: none; }
.nix header { background: #14231f; color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.nix header small { display: block; opacity: .7; font-size: 12px; }
.nix header button { background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.nix-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f6f4ef; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; }
.msg.bot { background: #fff; border: 1px solid #ebe6db; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: #1f7a6a; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { opacity: .6; font-style: italic; }
.msg.sys { align-self: center; background: #e8f4ef; color: #1f7a6a; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 6px 12px; }
.nix-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #f6f4ef; }
.nix-chips[hidden] { display: none; }
.nix-chips button { border: 1px solid #cfe5dd; background: #fff; color: #1f7a6a; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.nix form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #ebe6db; background: #fff; }
.nix input { flex: 1; border: 1px solid #ddd6c8; border-radius: 999px; padding: 11px 14px; font: inherit; font-size: 16px; }
.nix form button { background: #14231f; color: #fff; border: 0; border-radius: 999px; padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) { .top nav, .inicio .ghost { display: none; } .nix { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } }
/* Código de acceso (/demo sin clave) */
.code-form { max-width: 420px; padding-bottom: 60px; }
.code-form label { display: block; font-weight: 600; margin-bottom: 8px; color: #d4d4d8; }
.code-form .row { display: flex; gap: 8px; }
.code-form input { flex: 1; min-width: 0; background: #131316; border: 1px solid #3f3f46; color: #fafafa; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 17px; }
.code-form input:focus { outline: none; border-color: #b07cf2; }
.code-form button { background: linear-gradient(135deg, #b07cf2, #8224e3); color: #fff; border: 0; border-radius: 12px; padding: 0 20px; font: inherit; font-weight: 600; cursor: pointer; }
.code-form .err { color: #fca5a5; font-size: 14px; margin-top: 10px; }
/* Recorrido guiado en el sitio (paso 1) y enlace a la app */
.tour-sitio { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #0a0a0a; color: #f4f4f2;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; padding: 12px 52px 12px 20px; font-size: 14px; }
.tour-sitio .ts-paso { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #8d9298; }
.tour-sitio strong { font-weight: 400; font-size: 16px; letter-spacing: -.01em; }
.tour-sitio .ts-d { color: #c9ccd0; }
.tour-sitio .ts-x { position: absolute; right: 16px; color: #8d9298; text-decoration: none; font-size: 22px; line-height: 1; }
.msg.ver-app { align-self: center; background: #14231f; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 10px 18px; }
.msg.ver-app:hover { background: #1f7a6a; }
