:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #1d2330;
    --muted: #5b6475;
    --line: #e3e6ec;
    --brand: #1f6f5c;
    --brand-soft: #e6f2ee;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11151c;
        --surface: #1a2029;
        --text: #e8ebf0;
        --muted: #a3acbb;
        --line: #2b3340;
        --brand: #5cc4a6;
        --brand-soft: #1d3530;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

a { color: var(--brand); }

.contenedor {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

header {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

header .contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
}

.marca {
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 16px;
    font-size: 0.95rem;
}

.portada {
    padding: 56px 0 40px;
}

.portada h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 16px;
}

.portada p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 640px;
}

.boton {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
}

.tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0 48px;
}

.tarjeta {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.tarjeta h3 { margin: 0 0 8px; font-size: 1.05rem; }
.tarjeta p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.etiqueta {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.documento {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    margin: 32px 0 48px;
}

.documento h1 { margin-top: 0; font-size: 1.8rem; }
.documento h2 { font-size: 1.15rem; margin-top: 28px; }
.documento li { margin-bottom: 6px; }

footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    padding: 24px 0 40px;
}

footer a { margin-right: 16px; }
