/* cache.lat — sistema de marca
   Paleta corporativa clara. Ver CHANGELOG.md para el detalle del cambio
   de modo oscuro a este sistema. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
    --paper: #F7F6F1;
    --surface: #FFFFFF;
    --ink: #14181C;
    --ink-soft: #3A4046;
    --muted: #6B7280;
    --line: #E6E3D8;
    --accent: #0B5E59;
    --accent-dark: #094741;
    --accent-tint: #E7EFEE;
    --amber: #B45309;
    --amber-tint: #FBF0E4;
    --good: #1F7A4D;
    --good-tint: #EAF5EE;
    --radius: 4px;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); max-width: 62ch; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(247, 246, 241, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
}
.brand svg { flex-shrink: 0; }
.brand .lat { color: var(--accent); }
.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}
.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-text { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }
.mobile-nav {
    display: none;
    position: fixed; inset: 0; background: var(--paper); z-index: 200;
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { color: var(--ink); text-decoration: none; font-size: 20px; font-family: var(--serif); }

@media (max-width: 860px) {
    .site-nav, .site-header .btn-primary.desktop-only { display: none; }
    .mobile-toggle { display: block; }
}

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 120px;
    padding: 56px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { font-family: var(--sans); font-size: 13px; text-transform: none; color: var(--ink); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    padding-top: 24px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- secciones generales ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 12px; display: block; }
.section-lede { font-size: 18px; max-width: 60ch; margin-top: 16px; }
.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 > div { background: var(--surface); padding: 32px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); padding: 32px; }

code, pre { font-family: var(--mono); }
