/* ════════════════════════════════════════════════════════════════
   conmotivo.css — base de marca Con Motivo para Motivo ID
   Portado del sistema canónico de motivo-landing (styles/conmotivo.css).
   Regla de oro del workspace: copiado, no importado. A partir de aquí
   evoluciona independiente en este repo.

   Contiene: @font-face (auto-hospedadas, CSP-safe), tokens :root,
   reset base, wordmark/isotipo, botones, .cm-cta, eyebrow, pill,
   primitivas de formulario (auth) y utilidades compartidas.

   Tipografía: Manrope (display + body) + JetBrains Mono (datos/labels).
   Color alma: cobalt --signal #0061ff. Énfasis: <em> → italic + signal.
   ════════════════════════════════════════════════════════════════ */

/* ── FUENTES auto-hospedadas (sin CDNs — CSP default-src 'self') ── */
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
/* Manrope no trae itálica real: el navegador la sintetiza (oblicua).
   El énfasis de marca (<em> cobalt) lo aprovecha sin necesitar archivo. */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ── TOKENS ── */
:root {
  /* Tints — warm-white system */
  --ink:        #14181f;
  --ink-mid:    #2a2f38;
  --ink-soft:   #4a525e;
  --steel:      #6b7785;
  --slate:      #94a0ad;
  --fog:        #d8dde3;
  --line:       #ebeef2;
  --line-soft:  #f1f3f6;

  --paper:      #fafaf9;
  --paper-warm: #f7f4ee;
  --paper-cool: #f4f6f8;
  --canvas:     #ffffff;

  /* Accent — cobalt signal, el alma de la marca */
  --signal:     #0061ff;
  --signal-mid: #2d7cff;
  --signal-pale:#e7efff;
  --signal-bg:  #f3f7ff;
  --signal-ink: #0042b0;

  /* Warm gold (punto del logo, uso muy limitado) */
  --gold:       #b8801c;
  --gold-light: #f0b429;
  --gold-pale:  #fdf5e0;

  /* Sage (éxito / trial) */
  --sage:       #4f7d5a;
  --sage-pale:  #ecf3ee;
  --success:    #1f9d57;

  --danger:     #c0392b;
  --danger-soft:#fcecec;

  /* Navy del hero inmersivo */
  --ink-dark:   #0b1020;

  /* Fuentes */
  --f-sans: 'Manrope', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii */
  --r:   10px;
  --rl:  16px;
  --rxl: 22px;
  --rxxl:32px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Focus ring cobalt */
  --focus-ring: 0 0 0 3px rgba(0, 97, 255, 0.30);

  /* Z-index */
  --z-sticky:  50;
  --z-overlay: 100;
  --z-modal:   200;
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { max-width: 100%; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--signal); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

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

/* ── LOGO · wordmark 'Con Motivo.' ──
   Con (500 normal) · Motivo (700 italic, cobalt en claro) · . (gold italic).
   Tres piezas, nunca se separan. */
.logo-wordmark {
  font-family: var(--f-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  color: var(--ink);
  line-height: 1;
}
.lw-con    { font-style: normal; font-weight: 500; }
.lw-motivo { font-style: italic; font-weight: 700; color: var(--signal); }
.lw-dot    { color: var(--gold); font-style: italic; font-weight: 700; margin-left: -0.04em; }
/* Sobre fondo oscuro: punto en blanco y Motivo en cobalt medio. */
.on-dark .logo-wordmark,
.logo-wordmark.on-dark { color: var(--canvas); }
.on-dark .lw-motivo,
.logo-wordmark.on-dark .lw-motivo { color: var(--signal-mid); }
.on-dark .lw-dot,
.logo-wordmark.on-dark .lw-dot { color: var(--gold-light); }

/* ── ISOTIPO 'M.' (spots compactos: favicon-like, cards auxiliares) ── */
.mark {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  line-height: 1;
}
.mark-m   { font-style: italic; color: var(--signal); }
.mark-dot { color: var(--gold); font-weight: 800; }
.on-dark .mark { color: var(--canvas); }
.on-dark .mark-m { color: var(--signal-mid); }
.on-dark .mark-dot { color: var(--gold-light); }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 100px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: all 0.18s var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-signal { background: var(--signal); color: var(--canvas); }
.btn-signal:hover { background: var(--signal-ink); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(0,97,255,0.45); }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { background: var(--signal); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(0,97,255,0.30); }
.btn-ghost { background: var(--canvas); color: var(--ink); border-color: var(--fog); }
.btn-ghost:hover { background: var(--paper); border-color: var(--slate); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── .cm-cta · pills grandes (hero, cierres fuertes, sobre dark o paper) ── */
.cm-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-sans);
  font-weight: 600; font-size: 15px;
  padding: 15px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .18s var(--ease-out), background .18s, box-shadow .18s;
  white-space: nowrap;
  cursor: pointer;
}
.cm-cta:hover { transform: translateY(-2px); }
.cm-cta.primary {
  background: var(--signal); color: #fff;
  box-shadow: 0 20px 44px -14px rgba(0,97,255,0.65), 0 8px 18px -8px rgba(0,97,255,0.4);
}
.cm-cta.primary:hover {
  background: var(--signal-mid);
  box-shadow: 0 26px 52px -14px rgba(0,97,255,0.7), 0 10px 22px -8px rgba(0,97,255,0.45);
}
.cm-cta.light {
  background: #fff; color: var(--ink);
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.45), 0 4px 10px -4px rgba(0,0,0,0.25);
}
.cm-cta.light:hover { background: #eef1f5; }

/* ── EYEBROW (label JetBrains Mono) ── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--signal); }

/* ── PILL / BADGE ── */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  background: var(--signal-bg);
  border: 1px solid var(--signal-pale);
  padding: 6px 12px;
  border-radius: 100px;
  font-weight: 600;
}
.pill.gold  { color: var(--gold); background: var(--gold-pale); border-color: #efe0b8; }
.pill.sage  { color: var(--sage); background: var(--sage-pale); border-color: #c8dccf; }
.pill.soon  { color: var(--steel); background: var(--paper-cool); border-color: var(--line); }

/* ── FORM PRIMITIVES (compartidas acceso + hub) ── */
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form > label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="search"] {
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--fog);
  border-radius: var(--r);
  padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input::placeholder { color: var(--slate); font-weight: 400; }
.auth-form input:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(0,97,255,0.14);
}

/* Campo contraseña con toggle ver/ocultar */
.pw-field { position: relative; display: flex; align-items: center; }
.pw-field input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--steel); border-radius: 8px;
  transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--ink); background: var(--paper); }
.pw-toggle svg { width: 19px; height: 19px; }
.pw-toggle .icon-off { display: none; }
.pw-field.showing .pw-toggle .icon-on  { display: none; }
.pw-field.showing .pw-toggle .icon-off { display: inline; }

/* Check de términos */
.auth-check-row {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  line-height: 1.45;
}
.auth-check-row input[type="checkbox"] {
  margin-top: 2px;
  width: 17px; height: 17px;
  accent-color: var(--signal);
  flex-shrink: 0;
}
.auth-check-row a { color: var(--signal); font-weight: 600; }
.auth-check-row a:hover { text-decoration: underline; }

/* Botón de envío del form */
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--signal);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 700;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.auth-btn:hover { background: var(--signal-mid); transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(0,97,255,0.55); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Mensajes */
.auth-error {
  font-size: 13px; font-weight: 500; color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--r);
  padding: 10px 13px;
}
.auth-ok {
  font-size: 13px; font-weight: 500; color: var(--sage);
  background: var(--sage-pale);
  border-radius: var(--r);
  padding: 10px 13px;
}

/* Links bajo el form */
.auth-links {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 14px;
  font-size: 13.5px;
}
.auth-links a, .auth-mode-toggle {
  color: var(--ink-soft); font-weight: 600;
  transition: color .15s;
}
.auth-links a:hover, .auth-mode-toggle:hover { color: var(--signal); }

/* ── REVEAL (scroll-in suave) ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ════════════════════════════════════════════════════════════════
   acceso.css — pantallas de acceso de Motivo ID
   Login / signup / confirma-email (auth.html, 3 modos) + cards
   auxiliares (forgot / reset / verify). Marca: conmotivo.css.

   Desktop: panel de marca navy que SE DESLIZA horizontalmente.
   - mode-login/verify → panel cubre la mitad derecha, form a la izda.
   - mode-signup       → panel se desliza a la izda y aparece el form
                          de registro a la derecha.
   Móvil: se apila (banda de marca arriba + form debajo, sin slide).
   ════════════════════════════════════════════════════════════════ */

/* ── SHELL ── */
.auth {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

/* Cada form-pane ocupa una mitad, en posición absoluta. */
.auth-form-pane {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
#login-pane, #verify-pane { left: 0; }
#signup-pane { left: 50%; }

/* Mitad izquierda: login por defecto, verify cuando toca. */
#verify-pane { display: none; }
.auth.mode-verify #verify-pane { display: flex; }
.auth.mode-verify #login-pane  { display: none; }
/* #signup-pane está siempre presente; el panel de marca lo tapa salvo
   en modo signup (cuando el panel se desliza a la izda). */

.auth-form-inner {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.form-logo { font-size: 24px; margin-bottom: 28px; align-self: flex-start; }

.auth-form-inner h1 {
  font-family: var(--f-sans);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 22px;
}
.auth-form-inner h1 em { font-style: italic; color: var(--signal); }

.verify-sub { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: -6px 0 20px; }
.verify-sub strong { color: var(--ink); font-weight: 700; }
.verify-actions { margin-top: 4px; }

/* ── PANEL DE MARCA DESLIZANTE (navy + halos cobalt) ── */
.auth-brand {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  z-index: 10;
  transform: translateX(0);
  transition: transform .65s cubic-bezier(.76, 0, .24, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 52px;
  color: #fff;
  background:
    radial-gradient(900px 540px at 18% 92%, rgba(0,97,255,0.26), transparent 60%),
    radial-gradient(720px 440px at 88% 6%, rgba(45,124,255,0.16), transparent 60%),
    linear-gradient(150deg, #0b1020 0%, #0a1a3d 55%, #061230 100%);
}
.auth.mode-signup .auth-brand { transform: translateX(-100%); }

.auth-brand .logo-wordmark, .auth-brand .mark { color: #fff; }
.auth-brand .lw-motivo { color: var(--signal-mid); }
.auth-brand .lw-dot { color: var(--gold-light); }
.auth-brand > .mark,
.auth-brand > .logo-wordmark { font-size: 26px; position: relative; z-index: 1; }

.brand-slide { display: none; position: relative; z-index: 1; }
.auth.mode-login  .brand-slide--login,
.auth.mode-verify .brand-slide--login { display: block; }
.auth.mode-signup .brand-slide--signup { display: block; }

.brand-heading {
  font-family: var(--f-sans);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 460px;
  text-wrap: balance;
}
.brand-heading em { font-style: italic; color: var(--signal-mid); }

.brand-points { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-top: 26px; max-width: 420px; }
.brand-points li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.82); }
.brand-points li::before {
  content: '';
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(45,124,255,0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d7cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    no-repeat center / 11px;
}

.brand-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.brand-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--f-sans);
  font-size: 14px; font-weight: 600;
  background: #fff; color: var(--ink);
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), background .18s;
}
.brand-toggle-btn:hover { transform: translateY(-1px); background: #eef1f5; }
.brand-toggle-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.brand-toggle-btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* ── CARDS AUXILIARES (forgot / reset / verify) ── */
.card-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(800px 460px at 50% -10%, rgba(0,97,255,0.07), transparent 60%),
    var(--paper);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--rxl);
  padding: 40px 36px;
  box-shadow: 0 30px 70px -34px rgba(20,40,90,0.28);
  display: flex; flex-direction: column;
}
.auth-card .mark { margin-bottom: 20px; align-self: flex-start; }
.auth-card h1 { font-family: var(--f-sans); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }
.card-sub { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 22px; }
.verify-nav { margin-top: 18px; }
.verify-cta { margin-top: 18px; text-decoration: none; width: auto; align-self: flex-start; padding-left: 28px; padding-right: 28px; }

/* ── RESPONSIVE (sin slide, apilado) ── */
@media (max-width: 860px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .auth { display: flex; flex-direction: column; overflow-x: hidden; width: 100%; max-width: 100%; }
  .auth-form-pane {
    position: static;
    width: 100%; max-width: 100%; height: auto;
    padding: 32px 22px 52px;
    align-items: flex-start;
  }
  #login-pane, #signup-pane, #verify-pane { left: auto; }
  #signup-pane { display: none; }
  .auth.mode-signup #signup-pane { display: flex; }
  .auth.mode-signup #login-pane  { display: none; }
  .auth.mode-login  #login-pane  { display: flex; }
  .auth-form-inner { max-width: 100%; width: 100%; margin: 0; }

  /* Franja de marca = top bar compacto: wordmark izda + CTAs dcha. */
  .auth-brand {
    position: static;
    width: 100%; height: auto;
    transform: none !important;
    order: -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    min-width: 0;
  }
  .auth-brand > .mark, .auth-brand > .logo-wordmark { font-size: 18px; white-space: nowrap; }
  .brand-slide { display: none !important; }   /* sin heading ni bullets en móvil */
  .brand-actions { margin: 0; gap: 6px; flex-wrap: nowrap; min-width: 0; flex-shrink: 0; }
  .brand-actions .brand-toggle-btn { padding: 6px 10px; font-size: 11px; white-space: nowrap; }
  .auth-brand > .logo-wordmark { flex-shrink: 1; min-width: 0; overflow: hidden; }
}

/* ── Lockup de producto (· Citas) junto al wordmark ── */
.form-lockup { display: flex; align-items: baseline; gap: 0.3em; margin-bottom: 28px; }
.form-lockup .form-logo { margin-bottom: 0; }
.form-lockup-product {
  font-family: var(--f-sans);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
