/* ════════════════════════════════════════════════════
   mapaniif — Design System
   DM Serif Display · Poppins · IBM Plex Mono
   Sin border-radius · Sin emojis · Sin gradientes
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Poppins:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Paleta */
  --paper:     #F9F8F6;
  --white:     #FFFFFF;
  --ink:       #0E0E0E;
  --ink-2:     #3A3A3A;
  --ink-3:     #767676;
  --rule:      #DDD8CE;
  --rule-2:    #EDEAE4;
  --green:     #1B5E3B;
  --green-h:   #174F32;
  --green-bg:  #EDF5EF;
  --gold:      #B8892E;
  --gold-bg:   #FBF5E4;

  /* Tipografía */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Escala tipográfica */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   21px;
  --text-xl:   28px;
  --text-2xl:  40px;
  --text-3xl:  54px;
  --text-hero: 72px;

  /* Espaciado */
  --sp-1:   8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  48px;
  --sp-6:  64px;
  --sp-7:  96px;
  --sp-8: 128px;

  /* Aliases v1 (retrocompatibilidad) */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  48px;
  --space-xl:  64px;
  --space-2xl: 128px;

  /* Layout */
  --max-w:      1160px;
  --max-w-text: 720px;
  --col-pad:    60px;
  --border-r:   0px;

  /* Transiciones */
  --dur:      200ms;
  --duration: 200ms;
  --ease:     cubic-bezier(.4,0,.2,1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.65;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); }

/* ── Tipografía base ────────────────────────────── */
.display {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.overline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Logo — Poppins, minúscula, ii verde */
.logo-base { color: var(--ink); }
.logo-ii   { color: var(--green); }

/* ── Contenedor ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--col-pad);
}

/* ════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--col-pad);
}

.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.site-nav__logo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
}

.site-nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}

.site-nav__links a:hover,
.site-nav__links a.active { color: var(--ink); }

.site-nav__cta {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 22px;
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.site-nav__cta:hover { background: var(--green-h); }

/* Hamburguesa */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 62px 0 0;
  background: var(--paper);
  z-index: 199;
  border-top: 1px solid var(--rule);
  padding: var(--sp-4) var(--col-pad);
  flex-direction: column;
  gap: var(--sp-3);
  overflow-y: auto;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--rule-2);
}

.nav-mobile .site-nav__cta { text-align: center; margin-top: var(--sp-2); }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--sp-7) var(--col-pad) var(--sp-5);
  margin-top: 0;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: var(--sp-7);
}

.footer-brand__logo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.3px;
  margin-bottom: var(--sp-2);
  display: inline-flex;
  align-items: baseline;
}

.footer-brand__tagline {
  font-size: var(--text-sm);
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 200px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: var(--sp-2);
  font-weight: 500;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: var(--text-sm);
  color: var(--ink-2);
  transition: color var(--dur) var(--ease);
}

.footer-col ul a:hover { color: var(--green); }

.site-footer__bottom {
  max-width: var(--max-w);
  margin: var(--sp-5) auto 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.site-footer__bottom p,
.site-footer__bottom a { font-size: var(--text-xs); color: var(--ink-3); }
.site-footer__bottom a:hover { color: var(--green); }

/* ════════════════════════════════════════════════════
   ICONOGRAFÍA — SVG monocromático stroke
   ════════════════════════════════════════════════════ */
.icon {
  width: 20px; height: 20px;
  stroke: currentColor; stroke-width: 1.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm  { width: 16px; height: 16px; }
.icon-lg  { width: 24px; height: 24px; }
.icon-xl  { width: 32px; height: 32px; }

/* ════════════════════════════════════════════════════
   UTILITARIOS
   ════════════════════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
}

.tag--green { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.tag--gold  { border-color: var(--gold);  color: var(--gold);  background: var(--gold-bg); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--green);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-h); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 12px 24px;
  border: 1.5px solid var(--rule);
  cursor: pointer;
  transition: border-color var(--dur), color var(--dur);
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color var(--dur);
}
.btn-ghost:hover { color: var(--ink); }

hr.rule { border: none; border-top: 1px solid var(--rule); margin: var(--sp-5) 0; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --col-pad: 32px;
    --text-hero: 52px;
    --text-3xl: 42px;
    --text-2xl: 32px;
    --sp-8: 96px;
    --sp-7: 72px;
    --space-2xl: 96px;
    --space-xl: 48px;
  }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
}

@media (max-width: 768px) {
  :root {
    --col-pad: 20px;
    --text-hero: 42px;
    --text-3xl: 34px;
    --text-2xl: 28px;
    --text-xl: 24px;
    --sp-7: 56px;
    --sp-6: 48px;
    --space-xl: 40px;
  }
  .site-nav__links { display: none; }
  .site-nav__cta   { display: none; }
  .nav-burger      { display: flex; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}

@media (max-width: 480px) {
  :root {
    --col-pad: 16px;
    --text-hero: 34px;
    --text-3xl: 28px;
    --text-2xl: 24px;
    --text-xl: 21px;
    --text-lg: 18px;
    --sp-8: 72px;
    --sp-7: 48px;
    --sp-6: 36px;
    --space-xl: 36px;
  }
  .site-footer__inner { grid-template-columns: 1fr; }
}
