@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;700;900&family=Source+Code+Pro:wght@400;500&display=swap');
@import 'variables.css';

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-3xl); font-weight: 900; }
h2 { font-size: var(--text-2xl); font-weight: 900; }
h3 { font-size: var(--text-xl); font-weight: 700; }
h4 { font-size: var(--text-lg); font-weight: 500; font-family: var(--font-body); }

p { max-width: 68ch; }

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

ul { list-style: none; }

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

button { font-family: var(--font-body); cursor: pointer; }

/* ─── Utilitarios tipográficos ───────────────────────────── */
.label {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--font-body);
}

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

.italic { font-style: italic; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

.grid-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
}

/* ─── Reglas horizontales (elementos de diseño) ──────────── */
.rule { border: none; border-top: 1px solid var(--rule); }
.rule-heavy { border-top: 2px solid var(--ink); }
.rule-accent { border-top: 3px solid var(--accent); }
.rule-primary { border-top: 3px solid var(--primary); }

/* ─── App Layout (legacy — ahora en components.css) ─────── */
/* .app-layout, .app-body, .app-main, .sidebar → ver components.css */

/* Mantenemos .app-shell como alias para retrocompatibilidad */
.app-shell {
    display: flex;
    min-height: 100vh;
}

