/* Generated by build.mjs — do not edit. Brand tokens are vendored from ellie-brand. */
/*
 * tokens.css — Ellie Care design tokens as CSS custom properties.
 *
 * STATUS: APPROVED (v1.0.0, from-production). Mirrors the live site's production
 * tokens (https://www.ellie.care/assets/css/variables.css), re-verified 2026-06-23:
 * no drift. No official manual exists — these ARE the production brand values.
 * Variable names are kept identical to the site so existing code stays
 * compatible; `--color-*` role aliases are added for consumers.
 *
 * Curaduría: este archivo es el subset de TOKENS DE MARCA (color, tipografía,
 * radius, spacing, motion, sombras y gradientes núcleo). Tokens puramente
 * decorativos/de implementación del sitio de marketing (p. ej. --gradient-section-sep,
 * --shadow-fab) se dejan a propósito fuera del design system.
 *
 * Semantic colors (success/warning/danger/info): DIFERIDOS a v1.0.1 — ver
 * brand/tokens/colors.json y docs/brand-v1.0.0.md.
 *
 * Canonical machine-readable values: brand/tokens/colors.json + typography.json.
 * Consumers import THIS file — never hardcode brand values.
 */
:root {
  /* ── Brand palette (verbatim names from the site) ───────────────── */
  --blue-deep: #2F3A4D;
  --blue-dark: #1E2838;
  --mint: #B8E65C;
  --mint-btn: #B8E65C;
  --pink: #9933FF;
  --soft-green: #F0FFD1;
  --soft-purple: #D9B3FF;
  --white: #FFFFFF;
  --gray-bg: #F2F2F2;

  /* Text */
  --text-dark: #1A1A2E;
  --text-muted: #5A5A7A;

  /* ── Role aliases (semantic) ────────────────────────────────────── */
  --color-brand-primary: var(--blue-deep);
  --color-brand-secondary: var(--pink);
  --color-brand-accent: var(--mint);
  --color-ink: var(--text-dark);
  --color-muted: var(--text-muted);
  --color-surface: var(--white);
  --color-surface-alt: var(--gray-bg);

  /* ── Surfaces / glass ───────────────────────────────────────────── */
  --card-bg: rgba(255, 255, 255, 0.92);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(12px);
  --glass-blur-sm: blur(8px);

  /* ── Radius ─────────────────────────────────────────────────────── */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 50px;
  --radius-full: 999px;

  /* ── Spacing / layout ───────────────────────────────────────────── */
  --section-pad-x: clamp(1.5rem, 6vw, 5rem);
  --section-pad-y: 6rem;
  --max-width: 1200px;
  --max-width-sm: 1100px;
  --max-width-xs: 920px;

  /* ── Motion ─────────────────────────────────────────────────────── */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Shadows ────────────────────────────────────────────────────── */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-glow-mint: 0 8px 32px rgba(184, 230, 92, 0.35);
  --shadow-glow-pink: 0 8px 32px rgba(153, 51, 255, 0.3);

  /* ── Gradients ──────────────────────────────────────────────────── */
  --gradient-mint-pink: linear-gradient(135deg, rgba(184, 230, 92, 0.2) 0%, rgba(153, 51, 255, 0.15) 100%);
  --gradient-blue: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  --gradient-hero-pink: linear-gradient(135deg, #F0E6FF 0%, #E8E0FF 30%, #FFF 70%);

  /* ── Typography ─────────────────────────────────────────────────── */
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.78rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.88rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-md: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.2rem);
  --text-3xl: clamp(1.8rem, 1.5rem + 2vw, 2.8rem);
  --text-4xl: clamp(2.2rem, 1.8rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(2.8rem, 2.2rem + 3vw, 4.5rem);
  --text-display: clamp(3.2rem, 2.5rem + 4vw, 5.5rem);
}

@media (max-width: 900px) {
  :root {
    --section-pad-x: 16px;
    --section-pad-y: 4rem;
  }
}


/* app.css — Help Center layout & components.
 * Every color/type/spacing value resolves to a brand token from tokens.css
 * (prepended at build). Local doc-UI tints (callouts, borders) are derived from
 * brand soft-accents and kept AA-legible; brand semantic colors are deferred
 * upstream (see brand/README.md). */

:root {
  --doc-border: #E6E8EC;
  --doc-bg: #FBFBFC;
  --doc-sidebar: #FFFFFF;
  --doc-muted: var(--text-muted);
  --doc-max: 50rem;
  --side-w: 17.5rem;
  --toc-w: 15rem;

  /* Doc-UI callout tints (not brand semantics — see brand/README.md) */
  --ok-bg: var(--soft-green);     --ok-bd: #BFE57A;
  --note-bg: #F3ECFF;             --note-bd: var(--soft-purple);
  --warn-bg: #FFF6E0;             --warn-bd: #F0CE73;
  --danger-bg: #FDECEC;           --danger-bd: #F0A9A9;
  --step-bg: #EAF6FF;             --step-bd: #AED4F0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--doc-bg);
  line-height: 1.65;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }

/* ── Layout ─────────────────────────────────────────────── */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  background: var(--doc-sidebar); border-right: 1px solid var(--doc-border);
  display: flex; flex-direction: column; z-index: 30;
}
.content { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.content__scroll {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--toc-w);
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
  max-width: 78rem; margin: 0 auto; width: 100%;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 6rem;
}
@media (max-width: 1100px) { .content__scroll { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

/* ── Sidebar / brand / nav ──────────────────────────────── */
.brand { display: flex; align-items: center; gap: 0.7rem; padding: 1.4rem 1.4rem 1rem; }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-heading); font-weight: var(--weight-extrabold); font-size: 1.05rem; color: var(--color-ink); letter-spacing: -0.01em; }
.brand__sub { font-size: var(--text-xs); color: var(--doc-muted); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.07em; }
.nav-scroll { overflow-y: auto; padding: 0.5rem 0.85rem 2rem; flex: 1; }
.nav-group { margin-bottom: 1.4rem; }
.nav-group__title {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: var(--weight-bold); color: var(--doc-muted); margin: 0 0 0.5rem; padding: 0 0.65rem;
}
.nav-group a {
  display: block; padding: 0.42rem 0.65rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--weight-medium);
  border-left: 2px solid transparent;
}
.nav-group a:hover { background: var(--gray-bg); color: var(--color-ink); text-decoration: none; }
.nav-group a.active {
  background: var(--soft-green); color: var(--blue-dark);
  font-weight: var(--weight-bold); border-left-color: var(--mint);
}

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem clamp(1.25rem, 4vw, 3.5rem);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--doc-border);
}
.menu-btn { display: none; font-size: 1.3rem; background: none; border: 0; cursor: pointer; color: var(--color-ink); }
.search { position: relative; flex: 1; max-width: 30rem; }
.search input {
  width: 100%; padding: 0.55rem 0.9rem; border: 1px solid var(--doc-border);
  border-radius: var(--radius-pill); font: inherit; font-size: var(--text-sm);
  background: var(--white); color: var(--color-ink);
}
.search input:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px rgba(184,230,92,0.35); }
.results {
  position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0; z-index: 40;
  background: var(--white); border: 1px solid var(--doc-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); max-height: 60vh; overflow-y: auto; padding: 0.35rem;
}
.results a { display: block; padding: 0.5rem 0.65rem; border-radius: 8px; color: var(--color-ink); }
.results a:hover, .results a.sel { background: var(--gray-bg); text-decoration: none; }
.results .r-sec { font-size: var(--text-xs); color: var(--doc-muted); font-weight: var(--weight-semibold); }
.results .r-title { font-weight: var(--weight-semibold); }
.results .r-empty { padding: 0.75rem; color: var(--doc-muted); font-size: var(--text-sm); }

.langs { display: flex; gap: 0.25rem; background: var(--gray-bg); padding: 0.2rem; border-radius: var(--radius-pill); }
.lang {
  font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--text-muted);
  padding: 0.32rem 0.6rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.lang:hover { text-decoration: none; color: var(--color-ink); }
.lang--on { background: var(--blue-deep); color: var(--white); }
@media (max-width: 640px) { .lang span, .lang { font-size: 0; } .lang::first-letter { font-size: 1rem; } }

/* ── Document ───────────────────────────────────────────── */
.doc { min-width: 0; max-width: var(--doc-max); }
.doc__head { margin-bottom: 2rem; }
.doc__eyebrow {
  font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--pink);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem;
}
.doc h1 {
  font-family: var(--font-heading); font-weight: var(--weight-extrabold);
  font-size: var(--text-4xl); line-height: 1.08; letter-spacing: -0.02em; margin: 0;
  color: var(--blue-dark);
}
.doc__lead { font-size: var(--text-lg); color: var(--doc-muted); margin: 0.9rem 0 0; max-width: 62ch; }
.doc h2 {
  font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: var(--text-2xl);
  letter-spacing: -0.01em; margin: 2.6rem 0 0.9rem; padding-top: 0.6rem; color: var(--blue-dark);
  scroll-margin-top: 5rem;
}
.doc h3 { font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: var(--text-xl); margin: 1.9rem 0 0.7rem; scroll-margin-top: 5rem; }
.doc h4 { font-weight: var(--weight-bold); font-size: var(--text-md); margin: 1.4rem 0 0.5rem; }
.doc p { margin: 0.9rem 0; }
.doc ul, .doc ol { margin: 0.9rem 0; padding-left: 1.4rem; }
.doc li { margin: 0.4rem 0; }
.doc li::marker { color: var(--pink); }
.doc strong { font-weight: var(--weight-bold); color: var(--blue-dark); }
.doc hr { border: 0; border-top: 1px solid var(--doc-border); margin: 2.5rem 0; }
.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em;
  background: var(--gray-bg); padding: 0.12em 0.4em; border-radius: 6px; color: var(--blue-dark);
}
.doc pre {
  background: var(--blue-dark); color: #E8ECF4; border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; overflow-x: auto; margin: 1.3rem 0; font-size: var(--text-sm); line-height: 1.6;
}
.doc pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--doc-border); border-radius: var(--radius-sm); }
.doc table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
.doc th, .doc td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--doc-border); vertical-align: top; }
.doc th { background: var(--gray-bg); font-weight: var(--weight-bold); color: var(--blue-dark); white-space: nowrap; }
.doc tbody tr:last-child td { border-bottom: 0; }
.doc tbody tr:hover { background: rgba(184,230,92,0.07); }

/* Figures / screenshots */
.shot { margin: 1.6rem 0; border: 1px solid var(--doc-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: var(--white); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 0.65rem 1rem; font-size: var(--text-sm); color: var(--doc-muted); background: var(--white); border-top: 1px solid var(--doc-border); }

/* Callouts */
.callout { margin: 1.4rem 0; padding: 0.5rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; border-left-width: 4px; }
.callout__body > :first-child { margin-top: 0.45rem; }
.callout__body > :last-child { margin-bottom: 0.45rem; }
.callout--note { background: var(--note-bg); border-color: var(--note-bd); }
.callout--ok, .callout--tip { background: var(--ok-bg); border-color: var(--ok-bd); }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-bd); }
.callout--danger { background: var(--danger-bg); border-color: var(--danger-bd); }
.callout--step, .callout--pause, .callout--question { background: var(--step-bg); border-color: var(--step-bd); }

/* TOC */
.toc { position: sticky; top: 5rem; align-self: start; font-size: var(--text-sm); }
.toc__title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: var(--weight-bold); color: var(--doc-muted); margin: 0 0 0.6rem; }
.toc a { display: block; padding: 0.28rem 0; color: var(--text-muted); border-left: 2px solid var(--doc-border); padding-left: 0.8rem; }
.toc a:hover { color: var(--color-ink); border-left-color: var(--mint); text-decoration: none; }
.toc a.toc__lvl3 { padding-left: 1.6rem; font-size: 0.92em; }
.toc a.active { color: var(--blue-dark); font-weight: var(--weight-bold); border-left-color: var(--mint); }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.pager__btn { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.2rem; border: 1px solid var(--doc-border); border-radius: var(--radius-sm); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.pager__btn:hover { border-color: var(--mint); box-shadow: var(--shadow-card); text-decoration: none; }
.pager__btn span { font-size: var(--text-xs); color: var(--doc-muted); font-weight: var(--weight-semibold); }
.pager__btn strong { font-size: var(--text-base); color: var(--blue-dark); }
.pager__next { text-align: right; }

/* Root locale-pick fallback (shown briefly before JS redirect) */
.root-pick { display: grid; place-items: center; min-height: 100vh; margin: 0; gap: 1rem; text-align: center; font-family: var(--font-heading); }
.root-pick__title { font-weight: var(--weight-extrabold); color: var(--blue-dark); font-size: var(--text-xl); margin: 0; }
.root-pick__links { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.root-pick__links a { font-weight: var(--weight-semibold); }

/* Mobile nav */
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 25; }
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .25s var(--ease-premium); }
  body.nav-open .side { transform: none; }
  body.nav-open .nav-backdrop { display: block; }
  .content { margin-left: 0; }
  .menu-btn { display: block; }
}
