/* Vela · landing. Tokens tomados de Vela/DesignSystem/Theme.swift. */

:root {
  --frame: #EDEDED;
  --panel: #FCFCFC;
  --tone: #F3F3F3;
  --elev: #FFFFFF;
  --content: #FFFFFF;
  --sidebar: #F5F5F5;
  --ink: #1C1C1C;
  --ink-2: rgba(28, 28, 28, .66);
  --ink-3: rgba(28, 28, 28, .46);
  --chip: rgba(28, 28, 28, .06);
  --chip-hover: rgba(28, 28, 28, .1);
  --line: rgba(28, 28, 28, .1);
  --accent: #1680F3;
  --accent-text: #0B6DD3;
  --field: #0B6DD3;
  --on-field: #FFFFFF;
  --btn: #1C1C1C;
  --btn-hover: #363636;
  --on-btn: #FCFCFC;
  --me: #1C1C1C;
  --on-me: #FFFFFF;
  --bot: rgba(28, 28, 28, .06);
  --warn: #985800;
  --ok: #00854A;
  --imsg: #0B6DD3;
  --glass: rgba(250, 250, 252, .86);
  --win-shadow: 0 30px 80px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .14);

  --f: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --r-panel: 44px;
  --r-box: 28px;
  --gap: 14px;
  --wrap: 1240px;
  --pad-x: clamp(20px, 5.4vw, 88px);
  --pad-y: clamp(64px, 9vw, 144px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --frame: #000000;
    --panel: #121212;
    --tone: #1A1A1A;
    --elev: #1F1F1F;
    --content: #161616;
    --sidebar: #0E0E0E;
    --ink: #F5F5F5;
    --ink-2: rgba(245, 245, 245, .68);
    --ink-3: rgba(245, 245, 245, .46);
    --chip: rgba(245, 245, 245, .08);
    --chip-hover: rgba(245, 245, 245, .14);
    --line: rgba(255, 255, 255, .1);
    --accent: #116DD2;
    --accent-text: #4D9BFF;
    --field: #116DD2;
    --btn: #F5F5F5;
    --btn-hover: #DBDBDB;
    --on-btn: #121212;
    --me: rgba(245, 245, 245, .18);
    --on-me: #F5F5F5;
    --bot: rgba(245, 245, 245, .08);
    --warn: #E28600;
    --ok: #00BA69;
    --glass: rgba(30, 30, 34, .9);
    --win-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .14);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --frame: #000000;
  --panel: #121212;
  --tone: #1A1A1A;
  --elev: #1F1F1F;
  --content: #161616;
  --sidebar: #0E0E0E;
  --ink: #F5F5F5;
  --ink-2: rgba(245, 245, 245, .68);
  --ink-3: rgba(245, 245, 245, .46);
  --chip: rgba(245, 245, 245, .08);
  --chip-hover: rgba(245, 245, 245, .14);
  --line: rgba(255, 255, 255, .1);
  --accent: #116DD2;
  --accent-text: #4D9BFF;
  --field: #116DD2;
  --btn: #F5F5F5;
  --btn-hover: #DBDBDB;
  --on-btn: #121212;
  --me: rgba(245, 245, 245, .18);
  --on-me: #F5F5F5;
  --bot: rgba(245, 245, 245, .08);
  --warn: #E28600;
  --ok: #00BA69;
  --glass: rgba(30, 30, 34, .9);
  --win-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .14);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--frame);
  color: var(--ink);
  font: 400 17px/1.55 var(--f);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--btn); color: var(--on-btn);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn--ghost { background: var(--chip); color: var(--ink); }
.btn--ghost:hover { background: var(--chip-hover); }

/* Barra */
.bar { position: sticky; top: 0; z-index: 20; background: var(--frame); }
.bar__in {
  max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 16px; height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.03em; justify-self: start; }
.mark img { width: 32px; height: 32px; transform: scale(1.18); }
.bar__nav { display: flex; gap: 4px; }
.bar__nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.bar__nav a:hover { color: var(--ink); background: var(--chip); }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.theme {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-2); transition: background-color .2s, color .2s;
}
.theme:hover { background: var(--chip); color: var(--ink); }
.theme__moon { display: none; }
:root[data-theme="dark"] .theme__sun { display: none; }
:root[data-theme="dark"] .theme__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme__sun { display: none; }
  :root:not([data-theme="light"]) .theme__moon { display: block; }
}

/* Paneles */
main { display: flex; flex-direction: column; gap: var(--gap); padding: 0 16px; }
.panel {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  background: var(--panel); border-radius: var(--r-panel);
  padding: var(--pad-y) var(--pad-x);
  position: relative; overflow: clip;
}
.anchor { height: 0; margin-top: calc(var(--gap) * -1); }

h2 {
  font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700;
  text-wrap: balance;
}
.panel p { text-wrap: pretty; }

/* Portada */
.hero { text-align: center; padding-top: clamp(40px, 4.6vw, 68px); padding-bottom: 0; }
.hero__icon { width: 88px; height: 88px; margin: 0 auto 22px; transform: scale(1.2); }
.hero__title {
  font-size: clamp(46px, 6.8vw, 100px); line-height: .98; letter-spacing: -.05em; font-weight: 700;
  max-width: 11.5em; margin: 0 auto; text-wrap: balance;
}
.hero__lead { max-width: 37em; margin: 22px auto 0; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero__facts { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 14px; color: var(--ink-3); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }

.crewline {
  margin: clamp(24px, 3vw, 44px) auto 0; display: flex; justify-content: center; align-items: flex-end;
  gap: 0; max-width: 1080px;
}
.crewline li { flex: 0 1 128px; margin: 0 -6px; animation: bob 4.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.6s); }
.crewline li img { width: 100%; transition: transform .35s var(--ease); }
.crewline li:hover img { transform: translateY(-10px) scale(1.06); }
.crewline__lead { flex-basis: 220px !important; margin: 0 6px !important; }
@keyframes bob { from { transform: translateY(6px); } to { transform: translateY(-6px); } }

/* Escenario con la ventana */
.stage { width: 100%; max-width: var(--wrap); margin: 0 auto; background: var(--panel); border-radius: var(--r-panel); padding: clamp(40px, 6vw, 88px) var(--pad-x) var(--pad-y); overflow: clip; }
.stage__frame { transform-origin: 50% 0; will-change: transform; }
.statement {
  max-width: 26em; margin: clamp(64px, 8vw, 112px) auto 0; text-align: center;
  font-size: clamp(24px, 2.6vw, 36px); line-height: 1.24; letter-spacing: -.025em; font-weight: 600; text-wrap: balance;
}

.win {
  display: grid; grid-template-columns: 252px 1fr; height: 580px;
  border-radius: 14px; overflow: hidden; background: var(--content); box-shadow: var(--win-shadow);
  font-size: 14px; line-height: 20px; text-align: left;
}
.win__side { background: var(--sidebar); box-shadow: inset -.5px 0 0 var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.win__lights { display: flex; gap: 8px; padding: 2px 6px 4px; }
.win__lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.win__lights i:nth-child(2) { background: #FEBC2E; }
.win__lights i:nth-child(3) { background: #28C840; }
.win__pins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.win__pins img { width: 100%; max-width: 52px; margin: 0 auto; padding: 4px; border-radius: 14px; background: var(--chip); aspect-ratio: 1; }
.win__tasks { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.win__tasks b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.win__list { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: hidden; }
.win__list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; height: 54px; padding: 0 8px; border-radius: 10px; position: relative; }
.win__list li.is-on { background: var(--chip); }
.win__list li img { width: 36px; height: 36px; }
.win__list li div { min-width: 0; }
.win__list p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__list p:first-child { display: flex; justify-content: space-between; gap: 6px; }
.win__list p:first-child b { font-weight: 500; }
.win__list time { font-size: 12px; color: var(--ink-3); }
.win__list p + p { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.win__list em { font-style: normal; color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.win__chat { display: grid; grid-template-rows: 60px 1fr auto; min-width: 0; }
.win__head { display: grid; place-items: center; }
.island { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--chip); }
.island img { width: 24px; height: 24px; }
.win__msgs { padding: 8px clamp(16px, 4vw, 64px); display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.stamp { align-self: center; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.msg { max-width: 76%; padding: 10px 14px; border-radius: 18px; }
.msg--me { align-self: flex-end; background: var(--me); color: var(--on-me); }
.msg--bot { align-self: flex-start; background: var(--bot); display: flex; flex-direction: column; gap: 10px; }
.tools { font-size: 13px; color: var(--ink-3); margin: 12px 0 2px; }
.ask { margin-top: 12px; align-self: flex-start; max-width: 76%; padding: 14px; border-radius: 18px; background: var(--tone); }
.ask p { font-weight: 600; }
.ask__opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--chip); font-size: 13px; font-weight: 500; }
.pill--on { background: var(--btn); color: var(--on-btn); }
.win__composer {
  margin: 0 clamp(16px, 4vw, 64px) 18px; height: 44px; border-radius: 22px; background: var(--content);
  box-shadow: 0 0 0 .5px var(--line), 0 2px 6px rgba(0, 0, 0, .05);
  display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; padding: 0 6px; gap: 6px;
}
.plus { font-size: 22px; line-height: 1; text-align: center; color: var(--ink-2); }
.typing { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typing.is-typing { color: var(--ink); }
.typing.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.send { width: 32px; height: 32px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; }

/* Tripulación */
.crew__intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.crew__intro h2 { max-width: 9.5em; }
.crew__intro p { font-size: 18px; color: var(--ink-2); max-width: 30em; }
.crew__picker {
  margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px;
}
.crew__picker button {
  border: 0; background: transparent; cursor: pointer; border-radius: 20px; padding: 10px 4px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s;
}
.crew__picker button img { width: 64px; height: 64px; max-width: 100%; transition: transform .3s var(--ease); }
.crew__picker button:hover { background: var(--chip); color: var(--ink); }
.crew__picker button:hover img { transform: translateY(-4px); }
.crew__picker button[aria-selected="true"] { background: var(--tone); color: var(--ink); }
.crew__picker button[aria-selected="true"] img { transform: scale(1.08); }

.crew__card {
  --c: #9A90FF;
  margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  border-radius: var(--r-box); background: var(--tone); overflow: hidden;
}
.crew__art { background: color-mix(in srgb, var(--c) 22%, var(--tone)); display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); transition: background-color .5s var(--ease); }
.crew__art img { width: min(100%, 460px); aspect-ratio: 1; transition: opacity .25s var(--ease), transform .45s var(--ease); }
.crew__art img.is-swapping { opacity: 0; transform: scale(.94) translateY(8px); }
.crew__info { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.crew__role { font-size: 16px; font-weight: 500; color: var(--ink-2); margin-top: 8px; }
.crew__name { font-size: clamp(36px, 5.2vw, 68px); line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.crew__tag { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; margin-top: 16px; }
.crew__bio { margin-top: 12px; color: var(--ink-2); }
.crew__ask { margin-top: 24px; font-size: 14px; font-weight: 600; }
.crew__tips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crew__tips li { padding: 7px 14px; border-radius: 999px; background: var(--elev); font-size: 14px; line-height: 20px; }
.moods { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.moods button {
  border: 0; cursor: pointer; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--chip);
  font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, transform .15s;
}
.moods button:hover { background: var(--chip-hover); }
.moods button:active { transform: scale(.96); }
.moods button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); }
.crew__more { margin-top: 28px; font-size: 18px; color: var(--ink-2); max-width: 44em; }

/* Funciones */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feat--left .feat__visual { order: 1; }
.feat--left .feat__text { order: 2; }
.feat__text h2 { max-width: 8.5em; }
.feat__text p { margin-top: 24px; font-size: 18px; color: var(--ink-2); }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 15px; border-radius: 999px; background: var(--chip); font-size: 15px; line-height: 20px; font-weight: 500; transition: background-color .2s; }
.chips li:hover { background: var(--chip-hover); }
.feat__visual { border-radius: var(--r-box); background: var(--tone); padding: clamp(20px, 3.4vw, 48px); min-height: 460px; display: grid; place-items: center; position: relative; overflow: hidden; }

/* Agente del Mac */
.desk { width: 100%; max-width: 560px; height: 430px; position: relative; container-type: size; }
.note {
  width: 74%; padding: 22px 24px 28px; border-radius: 12px; background: var(--content); box-shadow: var(--win-shadow);
  font-size: 15px; line-height: 1.5;
}
.note__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.note__line { display: flex; align-items: center; gap: 10px; }
.note__line::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); flex: none; }
.note__line--typing span::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #22D3EE; animation: caret 1s steps(1) infinite; }
.cursor { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; animation: drive 9s var(--ease) infinite; z-index: 2; }
.cursor span { margin-top: 18px; padding: 2px 8px; border-radius: 999px; background: #22D3EE; color: #06222A; font-size: 12px; font-weight: 600; }
@keyframes drive {
  0%, 10% { transform: translate(24cqw, 31cqh); }
  30%, 44% { transform: translate(52cqw, 12cqh); }
  64%, 80% { transform: translate(70cqw, 90cqh); }
  96%, 100% { transform: translate(24cqw, 31cqh); }
}
.buddy { position: absolute; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 6px; width: 66%; }
.buddy__bubbles { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 1; min-width: 0; }
.buddy__face { width: 88px; height: 88px; margin-right: -8px; flex: none; animation: bob 3.2s ease-in-out infinite alternate; }
.glass {
  background: var(--glass); padding: 8px 12px; border-radius: 16px; font-size: 13px; line-height: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12), 0 0 0 .5px var(--line); max-width: 100%;
}
.glass--card { padding: 12px; border-radius: 18px; width: 100%; max-width: 280px; }
.glass__h { font-weight: 600; font-size: 14px; }
.imsg { margin-top: 8px; display: inline-block; padding: 7px 12px; border-radius: 16px; background: var(--imsg); color: #fff; }
.glass__btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.mini { height: 28px; padding: 0 12px; border-radius: 14px; background: var(--chip); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; }
.mini--go { background: var(--btn); color: var(--on-btn); }

/* Voz */
.call { width: 100%; max-width: 440px; border-radius: 26px; background: var(--content); box-shadow: var(--win-shadow); padding: 22px; }
.call__top { display: flex; align-items: center; gap: 12px; }
.call__top img { width: 56px; height: 56px; animation: bob 2.6s ease-in-out infinite alternate; }
.call__who { font-weight: 700; font-size: 17px; }
.call__time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wave { height: 72px; margin: 18px 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.wave i { width: 5px; height: 100%; border-radius: 3px; background: #8B5CF6; transform: scaleY(.18); animation: wave 1.1s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-duration: .8s; }
.wave i:nth-child(4n+1) { animation-duration: 1.35s; }
.wave i:nth-child(5n+2) { animation-duration: .95s; }
.wave i:nth-child(odd) { animation-delay: -.4s; }
.wave i:nth-child(7n) { animation-delay: -.9s; }
@keyframes wave { from { transform: scaleY(.12); } to { transform: scaleY(.9); } }
.call__lines { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.call__lines b { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.call__ctrls { margin-top: 20px; display: flex; justify-content: center; gap: 12px; }
.call__ctrls span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--ink); }
.call__ctrls .hang { background: #E72E3B; color: #fff; }

/* Tareas */
.tasks { width: 100%; max-width: 500px; border-radius: 18px; background: var(--content); box-shadow: var(--win-shadow); padding: 18px 16px 20px; font-size: 14px; line-height: 20px; }
.tasks__h { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 14px 8px 6px; }
.tasks__h:first-child { margin-top: 0; }
.trow { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.trow:hover { background: var(--chip); }
.trow img { width: 32px; height: 32px; }
.trow p { display: flex; flex-direction: column; min-width: 0; }
.trow b { font-weight: 500; }
.trow span { color: var(--ink-2); font-size: 13px; }
.trow em { font-style: normal; font-weight: 600; color: var(--accent-text); }
.trow .warn { color: var(--warn); font-weight: 500; }
.trow .ok { color: var(--ok); }
.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.routines { display: flex; flex-direction: column; gap: 2px; }
.routines li { display: flex; flex-direction: column; padding: 8px; border-radius: 10px; background: var(--tone); }
.routines li + li { margin-top: 4px; }
.routines b { font-weight: 500; }
.routines span { font-size: 13px; color: var(--ink-2); }

/* Visuales */
.vis { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.weather { border-radius: 20px; padding: 20px 22px; background: #2F7FD8; color: #fff; box-shadow: var(--win-shadow); }
.weather__city { font-weight: 600; font-size: 15px; }
.weather__now { font-size: 64px; line-height: 1; font-weight: 300; letter-spacing: -.04em; margin-top: 6px; display: flex; align-items: flex-end; gap: 14px; }
.weather__now span { font-size: 14px; letter-spacing: 0; font-weight: 500; margin-bottom: 8px; }
.weather__mm { font-size: 13px; opacity: .9; margin-top: 8px; }
.weather__hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 16px; padding-top: 14px; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .35); text-align: center; font-size: 13px; }
.weather__hours span { display: block; opacity: .85; }
.weather__hours b { font-weight: 600; font-size: 15px; }
.formula { align-self: flex-start; max-width: 92%; padding: 14px 18px; border-radius: 18px; background: var(--content); box-shadow: var(--win-shadow); font-size: 15px; }
.formula__eq { margin-top: 12px; font-family: "Times New Roman", "STIX Two Math", Times, serif; font-size: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.frac { display: inline-flex; flex-direction: column; align-items: center; }
.frac span:first-child { padding: 0 4px 3px; box-shadow: inset 0 -1.5px 0 currentColor; }
.frac span:last-child { padding-top: 3px; }

/* iPhone */
.thread { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.35; }
.day { align-self: center; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.b { max-width: 84%; padding: 9px 14px; border-radius: 20px; }
.b--out { align-self: flex-end; background: var(--imsg); color: #fff; }
.b--in { align-self: flex-start; background: var(--elev); }
.b--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.b--typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); animation: pulse 1.2s ease-in-out infinite; }
.b--typing i:nth-child(2) { animation-delay: .2s; }
.b--typing i:nth-child(3) { animation-delay: .4s; }

/* Campo de color: privacidad */
.ink { background: var(--field); color: var(--on-field); }
.ink h2 { max-width: 12em; }
.facts { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.facts b { display: block; font-size: 24px; letter-spacing: -.02em; }
.facts span { display: block; margin-top: 8px; font-size: 17px; opacity: .92; }
.ink__note { margin-top: clamp(40px, 5vw, 64px); max-width: 40em; font-size: 17px; opacity: .92; }

/* Atajos */
.keys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.keys__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.keys__grid dt { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--ink-2); }
.keys__grid dd { margin-top: 14px; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.keys__grid div:hover kbd { transform: translateY(-2px); }
kbd {
  font: 600 18px/1 var(--f); min-width: 48px; height: 48px; padding: 0 12px; border-radius: 12px;
  display: inline-grid; place-items: center; background: var(--tone); color: var(--ink);
  transition: transform .25s var(--ease);
}

/* Acceso */
.access { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.access__text p { margin-top: 24px; font-size: 18px; color: var(--ink-2); }
.access__text .btn { margin-top: 32px; }
.access__text .access__note { font-size: 15px; color: var(--ink-3); margin-top: 18px; }
.access__list { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 32px; }
.access__list b { display: block; font-size: clamp(56px, 6.4vw, 96px); line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.access__list span { display: block; margin-top: 10px; font-size: 16px; color: var(--ink-2); }

/* Preguntas */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.faq h2 { position: sticky; top: 96px; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: 20px; background: var(--tone); transition: background-color .2s; }
.faq details:hover { background: color-mix(in srgb, var(--tone) 70%, var(--chip-hover)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--chip) center / 10px 10px no-repeat;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 10px 1.8px, 1.8px 10px;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); max-width: 40em; }

/* Final */
.end { text-align: center; padding-top: clamp(48px, 6vw, 88px); }
.end__art { width: clamp(200px, 26vw, 320px); margin: 0 auto; animation: bob 3.8s ease-in-out infinite alternate; }
.end h2 { font-size: clamp(56px, 10vw, 148px); line-height: .95; letter-spacing: -.055em; margin-top: 12px; }
.end p { margin: 20px auto 0; font-size: clamp(18px, 1.4vw, 20px); color: var(--ink-2); max-width: 30em; }
.end .btn { margin-top: 32px; }

/* Pie */
.foot { max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 56px 16px 28px; }
.foot__cols { display: grid; grid-template-columns: auto 1fr 1fr; gap: 24px 48px; font-size: 15px; color: var(--ink-2); padding: 0 clamp(4px, 4vw, 72px); }
.foot__cols nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__cols nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.foot__cols nav a:hover, .foot__cols p a:hover { color: var(--accent-text); }
.foot__cols p a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot__word {
  font-size: clamp(120px, 27vw, 380px); line-height: .78; letter-spacing: -.065em; font-weight: 800;
  text-align: center; margin-top: 40px; color: var(--ink); user-select: none;
}
.foot__legal { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 24px; }

/* Entradas al hacer scroll (solo con JS; sin JS todo se ve) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .crewline li img { opacity: 0; transform: translateY(40px) scale(.9); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(.35s + var(--i) * 70ms); }
.js .crewline.is-in li img { opacity: 1; transform: none; }
.js .crewline.is-in li:hover img { transform: translateY(-10px) scale(1.06); transition-delay: 0s; }

/* Teléfono y tableta */
@media (max-width: 1080px) {
  .crew__intro { grid-template-columns: 1fr; }
  .crew__intro h2 { max-width: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .feat, .feat--left { grid-template-columns: 1fr; }
  .feat--left .feat__text { order: 0; }
  .faq, .keys { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .access { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .win { grid-template-columns: 1fr; height: auto; }
  .win__side { display: none; }
  .win__msgs { padding: 8px 16px; }
  .win__composer { margin: 12px 16px 16px; }
  .crew__picker { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .crew__picker button { padding: 8px 2px 10px; font-size: 13px; }
  .crew__picker button img { width: 52px; height: 52px; }
  .crew__card { grid-template-columns: 1fr; }
  .crew__art img { width: min(100%, 300px); }
  .foot__cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --r-panel: 30px; --r-box: 22px; --gap: 10px; }
  main { padding: 0 8px; }
  body { font-size: 16px; }
  .bar__in { padding: 0 12px; height: 56px; grid-template-columns: auto 1fr auto; gap: 8px; }
  .mark span { display: none; }
  .bar__nav { justify-content: center; gap: 0; }
  .bar__nav a { font-size: 14px; padding: 8px 9px; }
  .bar__end .btn { display: none; }
  .hero__icon { width: 84px; height: 84px; margin-bottom: 22px; }
  .hero__actions .btn { width: 100%; }
  .crewline { margin-top: 40px; }
  .crewline li { margin: 0 -9px; }
  .crewline__lead { flex-basis: 132px !important; margin: 0 2px !important; }
  .feat__visual { min-height: 0; padding: 18px 14px; }
  .desk { height: 470px; }
  .statement { font-size: 22px; }
  .note { width: 100%; }
  .buddy { width: 92%; }
  .glass--card { max-width: 240px; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .keys__grid { grid-template-columns: 1fr; gap: 28px; }
  .msg, .ask { max-width: 90%; }
  .faq summary { font-size: 17px; padding: 18px 54px 18px 20px; }
  .faq details p { padding: 0 20px 20px; }
  .weather__now { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal, .js .crewline li img { opacity: 1; transform: none; transition: none; }
  .stage__frame { transform: none !important; }
  .cursor { transform: translate(52cqw, 12cqh); }
  .wave i { transform: scaleY(.5); }
}
