/* ============================================================
   main.css — Variables CSS, reset y tipografía
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ---- Variables ---- */
:root {
  --color-bg:       #f4f3ef;
  --color-surface:  #ffffff;
  --color-accent:   #2a5438;
  --color-accent-hover: #1e3d28;
  --color-text:     #1a1a18;
  --color-muted:    #6b6b67;
  --color-border:   #e0ded6;
  --color-danger:   #c0392b;
  --color-danger-bg:#fdf0ee;

  --border:         0.5px solid var(--color-border);
  --radius:         7px;
  --radius-sm:      4px;

  --font-sans:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'DM Mono', monospace;

  --sidebar-w:      210px;
  --nav-h:          52px;

  --transition:     150ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 15px; }

body {
  font-family:      var(--font-sans);
  background-color: var(--color-bg);
  color:            var(--color-text);
  line-height:      1.55;
  -webkit-font-smoothing: antialiased;
}

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

img, svg { display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

/* ---- Tipografía ---- */
h1 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 1.1rem;  font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 0.95rem; font-weight: 500; }

.mono { font-family: var(--font-mono); }

/* ---- Utilidades ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-muted  { color: var(--color-muted); }
.text-danger { color: var(--color-danger); }
.text-accent { color: var(--color-accent); }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

.hidden { display: none !important; }
