/* ==========================================================================
   Mudanzas Rey — Design Tokens
   Única fuente de verdad para color, tipografía, espaciado, radios,
   sombras y movimiento. Ningún otro archivo debe declarar valores "mágicos".
   ========================================================================== */

/* ---- Fuentes autoalojadas (variables, subconjunto latino: incluye ñ, tildes,
   ¿ ¡ y comillas). 2 archivos en lugar de 8, sin CSS de terceros que bloquee
   el renderizado. Licencia SIL OFL 1.1 (ver fonts/OFL-*.txt). ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-var.woff2") format("woff2");
}

:root {
  /* ---- Color: marca (derivada del gradiente cian → azul del logo) ---- */
  --c-brand: #1554c0;
  --c-brand-600: #0f45a3;
  --c-brand-700: #0c3884;
  --c-brand-50: #eef4fe;
  --c-brand-100: #dce8fc;
  --c-brand-mid: #1d7fd0;    /* tono intermedio del degradado de marca */
  --c-cyan: #22b8cf;
  --c-cyan-50: #e6f9fb;
  --c-cyan-100: #c9f0f5;

  /* ---- Color: neutros ---- */
  --c-ink: #0e1a2b;          /* títulos */
  --c-ink-2: #2b3a4e;        /* texto principal */
  --c-muted: #5e6b7d;        /* texto secundario (≥ 4.5:1 sobre --c-bg) */
  --c-subtle: #8a96a7;       /* solo decorativo (iconos), nunca texto */
  --c-placeholder: #64707f;  /* placeholders (≥ 4.5:1 sobre --c-surface-2) */
  --c-line: color-mix(in srgb, var(--c-ink) 8%, transparent);
  --c-line-strong: color-mix(in srgb, var(--c-ink) 14%, transparent);

  /* ---- Color: superficies ---- */
  --c-bg: #f6f8fc;
  --c-surface: #ffffff;
  --c-surface-2: #f0f4fa;
  --c-night: #0d2346;        /* único bloque oscuro del sitio */
  --c-night-2: #13305c;

  /* ---- Color: semánticos ---- */
  --c-wa: #128043;           /* WhatsApp accesible (5:1 con texto blanco) */
  --c-wa-600: #0e6b37;
  --c-star: #f5a524;
  --c-success: #12805c;
  --c-danger: #c8323c;
  --c-danger-50: #fdf0f1;

  /* ---- Gradientes ---- */
  --g-brand: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-mid) 55%, var(--c-cyan) 100%);
  --g-text: linear-gradient(120deg, var(--c-brand) 10%, #22a5cf 90%);
  --g-soft: linear-gradient(135deg, var(--c-brand-50) 0%, var(--c-cyan-50) 100%);

  /* ---- Tipografía ---- */
  --ff-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9063rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --fs-h4: clamp(1.06rem, 1rem + 0.3vw, 1.18rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.1vw, 2.85rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.6vw, 4.1rem);
  --fs-display: clamp(4rem, 2.6rem + 6vw, 7.5rem);

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* ---- Espaciado (escala 4px) ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* ---- Layout ---- */
  --container: 1200px;
  --container-narrow: 860px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --header-h: 72px;

  /* ---- Radios ---- */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* ---- Sombras multicapa (difusas, nunca "recortadas") ---- */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --sh-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 6px -1px rgba(16, 24, 40, 0.05);
  --sh-md: 0 2px 4px -2px rgba(16, 24, 40, 0.05), 0 10px 28px -8px rgba(16, 24, 40, 0.1);
  --sh-lg: 0 4px 8px -4px rgba(16, 24, 40, 0.06), 0 24px 56px -16px rgba(16, 24, 40, 0.16);
  --sh-brand: 0 2px 4px -1px color-mix(in srgb, var(--c-brand) 25%, transparent), 0 10px 24px -8px color-mix(in srgb, var(--c-brand) 45%, transparent);
  --sh-wa: 0 2px 4px -1px color-mix(in srgb, var(--c-wa) 25%, transparent), 0 10px 24px -8px color-mix(in srgb, var(--c-wa) 50%, transparent);
  --ring: 0 0 0 4px color-mix(in srgb, var(--c-brand) 16%, transparent);

  /* ---- Movimiento ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-base: 300ms;
  --t-slow: 600ms;
  --t-reveal: 800ms;

  /* ---- Capas ---- */
  --z-header: 50;
  --z-float: 40;
  --z-overlay: 60;
}
