/**
 * Shield Design System (Global Config)
 * ------------------------------------
 * Este archivo centraliza tokens de diseño (colores, tipografía, spacing, radios, sombras).
 * La idea es que cualquier componente (header, cards, botones, etc.) consuma variables
 * desde aquí para mantener consistencia visual y facilitar mantenimiento.
 */

:root {
  /* ====== Brand Colors ====== */
  --shield-color-link: #00aeee;
  --shield-color-primary: #2e3091;
  --shield-color-secondary: #fec73b;
  --shield-color-title: #252525;
  --shield-color-text: #6b7280;
  --shield-color-bg: #f7f7f7;
  --shield-color-card: #ffffff;
  --shield-color-border: #d1d1d1;

  /* ====== Semantic Helpers ====== */
  --shield-color-success: #23a55a;
  --shield-color-danger: #e23d3d;
  --shield-color-focus: rgba(0, 174, 238, 0.35);

  /* ====== Typography ====== */
  /* Puedes cambiar estas familias por las definitivas del branding sin tocar componentes. */
  --shield-font-base: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shield-font-heading: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shield-font-weight-regular: 400;
  --shield-font-weight-medium: 500;
  --shield-font-weight-semibold: 600;
  --shield-font-weight-bold: 700;

  /* Escala tipográfica base */
  --shield-fs-h1: 28px; /* Requerido */
  --shield-fs-h2: 24px;
  --shield-fs-h3: 20px;
  --shield-fs-h4: 18px;
  --shield-fs-h5: 16px;
  --shield-fs-h6: 14px;
  --shield-fs-body: 16px;
  --shield-fs-sm: 14px;
  --shield-fs-xs: 12px;

  --shield-lh-heading: 1.2;
  --shield-lh-body: 1.6;

  /* ====== Spacing Scale ====== */
  --shield-space-1: 4px;
  --shield-space-2: 8px;
  --shield-space-3: 12px;
  --shield-space-4: 16px;
  --shield-space-5: 20px;
  --shield-space-6: 24px;
  --shield-space-7: 32px;
  --shield-space-8: 40px;

  /* ====== Layout ====== */
  --shield-container-max: 1400px;
  --shield-container-padding: 20px;

  /* ====== Radius & Shadow ====== */
  --shield-radius-sm: 6px;
  --shield-radius-md: 10px;
  --shield-radius-lg: 14px;
  --shield-radius-pill: 999px;
  --shield-shadow-1: 0 2px 8px rgba(37, 37, 37, 0.06);
  --shield-shadow-2: 0 10px 24px rgba(37, 37, 37, 0.1);

  /* ====== Motion ====== */
  --shield-transition-fast: 0.2s ease;
  --shield-transition-base: 0.3s ease;
}

/* ====== Global Reset (suave, compatible con Astra) ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--shield-color-bg);
  color: var(--shield-color-text);
  font-family: var(--shield-font-base);
  font-size: var(--shield-fs-body);
  line-height: var(--shield-lh-body);
}

a {
  color: var(--shield-color-link);
  text-decoration: none;
  transition: color var(--shield-transition-fast);
}

a:hover,
a:focus {
  color: var(--shield-color-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--shield-color-focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--shield-space-4);
  color: var(--shield-color-title);
  font-family: var(--shield-font-heading);
  font-weight: var(--shield-font-weight-bold);
  line-height: var(--shield-lh-heading);
}

h1 { font-size: var(--shield-fs-h1); }
h2 { font-size: var(--shield-fs-h2); }
h3 { font-size: var(--shield-fs-h3); }
h4 { font-size: var(--shield-fs-h4); }
h5 { font-size: var(--shield-fs-h5); }
h6 { font-size: var(--shield-fs-h6); }

p {
  margin: 0 0 var(--shield-space-4);
  font-size: 13px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== Reusable Utility Container ====== */
.shield-wrap {
  width: 100%;
  max-width: var(--shield-container-max);
  margin-inline: auto;
  padding-inline: var(--shield-container-padding);
}

/* ====== Reusable Card Surface ====== */
.shield-surface {
  background: var(--shield-color-card);
  border: 1px solid var(--shield-color-border);
  border-radius: var(--shield-radius-md);
  box-shadow: var(--shield-shadow-1);
}
