/* tokens.css — Sistema de diseño Integradoras con Leila
   Motivo: la órbita del logo. Nodos conectados = piezas de un sistema.
   Display: Bricolage Grotesque · Lectura: Figtree */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,400;1,500;1,600&family=Gochi+Hand&family=Mrs+Saint+Delafield&display=swap");

:root {
  color-scheme: light;

  /* === PALETA === */
  --paper: #efe9f4;          /* Fondo: lavanda suave */
  --surface: #ffffff;
  --lilac: #efe8f5;          /* Superficie tonal */
  --lilac-2: #e3d8ee;        /* Superficie tonal más marcada */
  --line: #e4dcec;           /* Líneas */
  --ink: #24162f;            /* Texto: berenjena */
  --ink-soft: rgba(36, 22, 47, 0.74);
  --muted: rgba(36, 22, 47, 0.54);
  --brand: #55316e;          /* Morado de marca: acción */
  --brand-hover: #44265a;
  --brand-deep: #3a2050;     /* Fondos morados profundos */
  --gold: #d4ad67;           /* Dorado: solo lo logrado */
  --gold-deep: #a9823c;
  --gold-soft: #f6ecd8;
  --lime: #c8f25a;           /* Contraste: el opuesto del violeta */
  --lime-hover: #b6e43f;
  --lime-soft: #eefbc9;
  --lime-ink: #6c9a0e;       /* Lima legible sobre blanco */

  /* Colores de nivel (aro de la foto e insignias) */
  --lv1: #ffffff;                                                            /* Alumna */
  --lv2: #f4a7c8;                                                            /* Asistente operativa: rosa */
  --lv3: #e0249a;                                                            /* Operadora: fucsia */
  --lv4: #7b2cf5;                                                            /* Líder operativa: violeta intenso */
  --lv5: linear-gradient(135deg, #f7f8fa 0%, #b4b8c1 35%, #eceef1 60%, #8e939d 100%); /* Integradora junior: plata */
  --lv6: linear-gradient(135deg, #fbe7a1 0%, #d4a43c 35%, #f6d77c 60%, #a8771f 100%); /* Integradora: oro */

  /* Alias de compatibilidad */
  --cream: var(--paper);
  --brand-tint: var(--lilac);
  --color-primary: var(--brand);
  --color-primary-light: var(--lilac);
  --color-accent: var(--gold);
  --color-cream: var(--paper);
  --color-paper: var(--surface);
  --color-text: var(--ink);
  --color-text-soft: var(--muted);
  --color-border: var(--line);

  /* === TIPOGRAFÍA === */
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-sans: "Figtree", system-ui, -apple-system, sans-serif;
  --font-italic: "Playfair Display", Georgia, serif;     /* cursiva de acento */
  --font-hand: "Gochi Hand", "Bradley Hand", cursive; /* notas a mano */
  --font-sign: "Mrs Saint Delafield", "Snell Roundhand", cursive; /* firma */
  --font-family-base: var(--font-sans);

  /* Escala (1.25) */
  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-base: 1.0625rem; /* 17 */
  --t-lg: 1.3125rem;   /* 21 */
  --t-xl: 1.625rem;    /* 26 */
  --t-2xl: 2.0625rem;  /* 33 */
  --t-3xl: 2.5625rem;  /* 41 */
  --t-4xl: 3.25rem;    /* 52 */

  /* === FORMA === */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-float: 0 18px 40px -18px rgba(58, 32, 80, 0.35);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms var(--ease);
  --normal: 280ms var(--ease);
  --slow: 700ms var(--ease);

  /* Compatibilidad con módulos previos */
  --transition-fast: var(--fast);
  --transition-normal: var(--normal);
  --transition-slow: var(--slow);
}

/* === RESET === */

* { box-sizing: border-box; }

html { font-size: 16px; }
@media (min-width: 1800px) { html { font-size: 17px; } }
@media (min-width: 2300px) { html { font-size: 18px; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

/* Cursiva de acento y letra a mano */
.it { font-family: var(--font-italic); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.hand { font-family: var(--font-hand); font-weight: 400; letter-spacing: 0.02em; }

/* Rótulo: frase corta, en minúscula, en morado */
.label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.01em;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}

.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

.btn.ghost { background: transparent; color: var(--brand); border-color: var(--lilac-2); }
.btn.ghost:hover { border-color: var(--brand); }

.btn.lime, .btn.gold { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.lime:hover, .btn.gold:hover { background: var(--lime-hover); border-color: var(--lime-hover); }

.btn.done { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
