/* ==========================================================================
   SISTEMA DE TIPOGRAFÍA GLOBAL ESTANDARIZADA — NANKU
   Arquitectura & Neurodiseño
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     1. FAMILIAS TIPOGRÁFICAS
     ------------------------------------------------------------------------ */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;

  /* ------------------------------------------------------------------------
     2. ESCALA TIPOGRÁFICA FLUIDA UNIFICADA
     ------------------------------------------------------------------------ */
  --text-hero: clamp(2.75rem, 5.5vw, 4.25rem);       /* H1 de aperturas hero (44px - 68px) */
  --text-h1: clamp(2.4rem, 4.8vw, 3.6rem);           /* H1 de secciones principales (38px - 58px) */
  --text-h2: clamp(1.95rem, 3.6vw, 2.75rem);         /* H2 títulos de sección estándar (31px - 44px) */
  --text-h2-sub: clamp(1.65rem, 2.8vw, 2.2rem);      /* H2 subtítulos de sección / intros (26px - 35px) */
  --text-h3: clamp(1.28rem, 2vw, 1.55rem);           /* H3 títulos de tarjetas editoriales (20px - 25px) */
  --text-h4: clamp(1.1rem, 1.6vw, 1.28rem);          /* H4 subtítulos / bloques internos (18px - 20px) */
  --text-lead: clamp(1.05rem, 1.35vw, 1.18rem);       /* Párrafos de apertura / lead / bajadas (17px - 19px) */
  --text-body: 16.5px;                               /* Texto base general de lectura */
  --text-body-sm: 14.5px;                            /* Texto compacto para tarjetas y metadatos */
  --text-caption: 12.5px;                            /* Epígrafes, notas al pie y pies de imagen */
  --text-ui: 11px;                                   /* Botones, antetítulos, navegación */
  --text-ui-micro: 9.5px;                            /* Badges, tags y metadatos pequeños */

  /* ------------------------------------------------------------------------
     3. ALTURAS DE LÍNEA (LINE-HEIGHT)
     ------------------------------------------------------------------------ */
  --lh-tight: 1.12;        /* Títulos de gran tamaño (Hero / H1) */
  --lh-heading: 1.22;      /* H2 títulos de sección */
  --lh-subheading: 1.32;   /* H3 títulos de tarjetas y destacados */
  --lh-quote: 1.38;        /* Citas, conceptos y destacados en cursiva */
  --lh-body: 1.75;         /* Lectura corrida general (máximo confort visual) */
  --lh-compact: 1.60;      /* Descripciones breves y textos secundarios */
  --lh-ui: 1.0;            /* Botones, etiquetas y una sola línea */

  /* ------------------------------------------------------------------------
     4. ESPACIADO ENTRE LETRAS (LETTER-SPACING)
     ------------------------------------------------------------------------ */
  --ls-hero: -0.015em;     /* Gran escala editorial */
  --ls-heading: -0.015em;  /* Encabezados de sección */
  --ls-subheading: -0.01em;/* Tarjetas y subencabezados */
  --ls-body: -0.005em;     /* Prosa legible */
  --ls-ui: 0.12em;         /* Navegación y elementos UI */
  --ls-btn: 0.14em;        /* Botones de acción */
  --ls-eyebrow: 0.18em;    /* Antetítulos y overlines en mayúsculas */

  /* ------------------------------------------------------------------------
     5. PESOS TIPOGRÁFICOS
     ------------------------------------------------------------------------ */
  --fw-light: 300;
  --fw-book: 350;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

/* ==========================================================================
   REGLAS GLOBALES BASE
   ========================================================================== */

html {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--text-main, #292D28);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--text-main, #292D28);
}

/* --------------------------------------------------------------------------
   ENCABEZADOS BASE (SERIF EDITORIAL)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  color: var(--text-main, #292D28);
  letter-spacing: var(--ls-heading);
  margin-top: 0;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-hero);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--lh-subheading);
  letter-spacing: var(--ls-subheading);
}

h4 {
  font-size: var(--text-h4);
  line-height: var(--lh-subheading);
  letter-spacing: var(--ls-subheading);
}

/* --------------------------------------------------------------------------
   PÁRRAFOS Y CUERPO DE TEXTO (SANS FUNCIONAL)
   -------------------------------------------------------------------------- */
p {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text-muted, #5B6156);
  margin-top: 0;
}

/* Bajadas editoriales / Leads */
.lead,
p.lead,
.lead-text,
.hero-content p,
.bitacora-hero p,
.conversion-header .lead-text {
  font-family: var(--font-sans);
  font-size: var(--text-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text-muted, #5B6156);
}

/* Cursivas editoriales / Enfoque humano */
.italic,
span.italic,
em {
  font-style: italic;
  font-weight: var(--fw-book);
}

/* ==========================================================================
   COMPONENTES TIPOGRÁFICOS ESPECÍFICOS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. APERTURAS HERO (H1 PRINCIPAL DE TODAS LAS PÁGINAS)
   -------------------------------------------------------------------------- */
.hero-content h1,
.proyectos-hero h1,
.hero-editorial-inner h1,
.bitacora-hero h1,
.apertura-title,
.conversion-header h1,
h1.hero-title {
  font-family: var(--font-serif);
  font-size: var(--text-hero) !important;
  font-weight: var(--fw-regular) !important;
  line-height: var(--lh-tight) !important;
  letter-spacing: var(--ls-hero) !important;
  color: var(--text-main, #292D28);
  margin-bottom: 24px;
}

.hero-content h1 span.italic,
.proyectos-hero h1 span.italic,
.bitacora-hero h1 span.italic,
.apertura-title span.italic {
  font-style: italic;
  font-weight: var(--fw-book);
  color: var(--accent-olive, #A3A793);
}

/* --------------------------------------------------------------------------
   2. TÍTULOS DE SECCIÓN (H2)
   -------------------------------------------------------------------------- */
.philosophy-intro h2,
.simulator-info h2,
.projects-header h2,
.about-text-col h2,
.blog-header h2,
.cta-text h2,
.section-editorial-title,
.section-editorial-title-large,
.section-header h2,
.section-cta-final h2,
.cta-editorial-box h2,
.section-subheading,
.section-title,
.service-title {
  font-family: var(--font-serif);
  font-size: var(--text-h2) !important;
  font-weight: var(--fw-regular) !important;
  line-height: var(--lh-heading) !important;
  letter-spacing: var(--ls-heading) !important;
  color: var(--text-main, #292D28);
}

.service-num {
  font-family: var(--font-serif) !important;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem) !important;
  font-weight: var(--fw-light) !important;
  line-height: 1 !important;
  color: var(--color-arcilla, #A66B51) !important;
  opacity: 0.75;
  display: block;
}

.service-subtitle {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem) !important;
  font-weight: var(--fw-light) !important;
  line-height: var(--lh-subheading) !important;
  letter-spacing: var(--ls-subheading) !important;
  color: var(--text-muted, #5B6156) !important;
}

.cta-text h2 {
  color: var(--bg-paper, #F4F1E8);
}

.section-cta-final h2 {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. ANTETÍTULOS / OVERLINES / EYEBROWS
   -------------------------------------------------------------------------- */
.tag-sec,
.eyebrow,
.eyebrow-tag,
.tag-antetitulo,
.section-tag {
  font-family: var(--font-sans) !important;
  font-size: var(--text-ui) !important;
  font-weight: var(--fw-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--ls-eyebrow) !important;
  line-height: var(--lh-ui) !important;
  color: var(--accent-olive, #485044) !important;
  display: inline-block;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   4. TARJETAS EDITORIALES (H3) Y CUERPOS DE TARJETA
   -------------------------------------------------------------------------- */
.project-card h3,
.bitacora-card h3,
.resource-title,
.blog-content h3 {
  font-family: var(--font-serif) !important;
  font-size: var(--text-h3) !important;
  font-weight: var(--fw-regular) !important;
  line-height: var(--lh-subheading) !important;
  letter-spacing: var(--ls-subheading) !important;
  color: var(--text-main, #292D28);
  margin-bottom: 10px;
}

/* Tarjetas con títulos Sans (Pilares, Configuración, Sliders) */
.pillar-card h3,
.simulator-sliders h3,
.service-editorial-item h3 {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  font-weight: var(--fw-semibold) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1.4 !important;
  color: var(--text-main, #292D28);
  margin-bottom: 10px;
}

/* Textos secundarios de tarjetas */
.project-desc,
.pillar-card p,
.bitacora-card-desc,
.resource-desc,
.blog-content p,
.simulator-info p {
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  line-height: var(--lh-compact);
  color: var(--text-muted, #5B6156);
}

/* --------------------------------------------------------------------------
   5. CITAS Y CONCEPTOS DESTACADOS
   -------------------------------------------------------------------------- */
.statement-quote,
.quote,
.conceptual-emphasis,
blockquote {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.8rem, 3.2vw, 2.45rem) !important;
  font-style: italic !important;
  font-weight: var(--fw-regular) !important;
  line-height: var(--lh-quote) !important;
  letter-spacing: var(--ls-subheading) !important;
  color: var(--text-main, #292D28);
}

.manifesto-lead {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.75rem, 3vw, 2.3rem) !important;
  line-height: var(--lh-heading) !important;
  font-weight: var(--fw-regular) !important;
  letter-spacing: var(--ls-heading) !important;
  color: var(--text-main, #292D28);
}

.project-concept,
.resource-subtitle {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem) !important;
  font-style: italic !important;
  font-weight: var(--fw-book) !important;
  line-height: var(--lh-subheading) !important;
  color: var(--accent-olive, #485044);
}

/* --------------------------------------------------------------------------
   6. LOGOTIPO Y NAVEGACIÓN
   -------------------------------------------------------------------------- */
.brand-text h2 {
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  font-weight: var(--fw-semibold) !important;
  letter-spacing: 0.15em !important;
  line-height: 1 !important;
  color: var(--text-main, #292D28) !important;
  margin: 0;
}

.brand-text p {
  font-family: var(--font-sans) !important;
  font-size: 8px !important;
  font-weight: var(--fw-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  line-height: 1 !important;
  color: var(--text-muted, #5B6156);
  margin-top: 4px;
  margin-bottom: 0;
}

header .brand-text p {
  color: var(--accent-olive, #485044);
}

nav a {
  font-family: var(--font-sans) !important;
  font-size: 11.5px !important;
  font-weight: var(--fw-medium) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--ls-ui) !important;
  line-height: 1 !important;
  color: var(--text-main, #292D28);
}

.mobile-menu a {
  font-family: var(--font-serif) !important;
  font-size: 22px !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: var(--text-main, #292D28);
}

/* --------------------------------------------------------------------------
   7. BOTONES Y ACCIONES
   -------------------------------------------------------------------------- */
.btn,
.btn-nanku,
.filter-btn {
  font-family: var(--font-sans) !important;
  font-size: var(--text-ui) !important;
  font-weight: var(--fw-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--ls-btn) !important;
  line-height: 1 !important;
}

.view-all-link,
.project-link,
.blog-link,
.bitacora-card-link {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: var(--fw-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--ls-ui) !important;
  line-height: 1 !important;
  color: var(--accent-olive, #485044);
}

/* --------------------------------------------------------------------------
   8. BADGES Y CHIPS DE METADATOS
   -------------------------------------------------------------------------- */
.bitacora-card-tag,
.resource-badge,
.project-cat,
.project-loc {
  font-family: var(--font-sans) !important;
  font-size: var(--text-ui-micro) !important;
  font-weight: var(--fw-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  line-height: 1.2 !important;
}

/* --------------------------------------------------------------------------
   9. FORMULARIOS E INPUTS
   -------------------------------------------------------------------------- */
.field-label,
label {
  font-family: var(--font-sans) !important;
  font-size: 11.5px !important;
  font-weight: var(--fw-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--ls-ui) !important;
  line-height: 1.3 !important;
  color: var(--text-main, #292D28);
}

.input-clean,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.5 !important;
  color: var(--text-main, #292D28);
}

.guidance-question {
  font-family: var(--font-sans) !important;
  font-size: 15.5px !important;
  font-weight: var(--fw-semibold) !important;
  line-height: 1.4 !important;
  color: var(--text-main, #292D28);
}

.guidance-hint {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.6 !important;
  color: var(--text-muted, #5B6156);
}

/* --------------------------------------------------------------------------
   10. PIE DE PÁGINA (FOOTER)
   -------------------------------------------------------------------------- */
.footer-col h3,
.footer-col h4 {
  font-family: var(--font-sans) !important;
  font-size: var(--text-ui) !important;
  font-weight: var(--fw-semibold) !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  color: rgba(244, 241, 232, 0.55);
}

.footer-col ul li a {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.6 !important;
  color: rgba(244, 241, 232, 0.75);
}

.footer-brand-col p.desc {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.7 !important;
  color: rgba(244, 241, 232, 0.7);
}

.footer-bottom {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: var(--fw-regular) !important;
  line-height: 1.5 !important;
  letter-spacing: 0.02em !important;
  color: rgba(244, 241, 232, 0.5);
}

/* --------------------------------------------------------------------------
   FOOTER BRANDING & LOGO
   -------------------------------------------------------------------------- */
.footer-brand-col .brand {
  text-decoration: none;
}

.footer-brand-col .brand-logo-img {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.footer-brand-col .logo-img-icon {
  filter: none !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
  object-position: center !important;
}

footer:not(.footer-light) .footer-brand-col .brand-text h2 {
  color: var(--color-hueso, #F4F1E8);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  margin: 0;
}

footer:not(.footer-light) .footer-brand-col .brand-text p {
  color: rgba(244, 241, 232, 0.75);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin: 4px 0 0 0;
  line-height: 1;
}
