/* ============================================================================
   Normexus — GEO content stylesheet
   Site chrome (fonts, tokens, header, footer) extracted VERBATIM from
   index.html so the content cluster is pixel-coherent with the marketing site.
   The .geo-article block below maps the original content components
   (capsule / note / faq / pkg / cta / tables / author box) onto the brand tokens.
   Source of truth for the chrome = index.html. Keep in sync if the chrome changes.
   ========================================================================== */

/* ── Self-hosted fonts ───────────────────────────────── */
@font-face { font-family: 'Geist'; font-weight: 400; font-style: normal; font-display: swap; src: url('/brand/fonts/Geist-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-style: normal; font-display: swap; src: url('/brand/fonts/Geist-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-style: normal; font-display: swap; src: url('/brand/fonts/Geist-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Geist'; font-weight: 700; font-style: normal; font-display: swap; src: url('/brand/fonts/Geist-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/brand/fonts/Inter-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('/brand/fonts/Inter-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/brand/fonts/Inter-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('/brand/fonts/Inter-Bold.ttf') format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/brand/fonts/JetBrainsMono-Regular.ttf') format('truetype'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/brand/fonts/JetBrainsMono-Medium.ttf') format('truetype'); }

/* ── CSS Variables ───────────────────────────────────── */
:root {
  --primary-50:  #EEEEF8;
  --primary-100: #DCDCF1;
  --primary-200: #B9B9E4;
  --primary-300: #9697D7;
  --primary-400: #7374C9;
  --primary-500: #535486;
  --primary-600: #43446C;
  --primary-700: #333451;
  --primary-800: #232438;
  --primary-900: #13141F;
  --accent-50:  #E9F9F7;
  --accent-100: #C9F0EB;
  --accent-200: #93E1D7;
  --accent-300: #5DD2C3;
  --accent-400: #49C5B1;
  --accent-500: #3BA895;
  --accent-600: #2E8E7B;
  --accent-700: #227461;
  --accent-800: #165A47;
  --accent-900: #0A402D;
  --neutral-50:  #F8F9FA;
  --neutral-100: #EBEDEF;
  --neutral-200: #D5D8DC;
  --neutral-300: #ABB2B9;
  --neutral-400: #AEB6BF;
  --neutral-500: #808B96;
  --neutral-600: #616A6B;
  --neutral-700: #4D5656;
  --neutral-800: #2C3E50;
  --neutral-900: #53565A;
  --success: #1E8449;
  --danger:  #A93226;
  --warning: #F39C12;
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--neutral-700);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Utility ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-100);
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-lockup svg { height: 32px; width: 32px; }
.logo-lockup span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-500);
  letter-spacing: -0.5px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--primary-500); }
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector */
.lang-selector {
  display: flex;
  background: var(--neutral-100);
  border-radius: 8px;
  padding: 2px;
}
.lang-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--neutral-500);
  transition: all 0.15s;
  text-transform: uppercase;
}
.lang-btn.active {
  background: #fff;
  color: var(--primary-500);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-400);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-500); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neutral-600);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--neutral-100);
  padding: 16px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 16px; }
.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--neutral-600);
  padding: 8px 0;
}
.mobile-nav .lang-selector { align-self: flex-start; margin-top: 8px; }
.mobile-nav .btn-primary { align-self: flex-start; margin-top: 8px; }

@media (max-width: 768px) {
  .header-nav, .header-right { display: none; }
  .hamburger { display: flex; }
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--primary-800);
  color: rgba(255,255,255,0.7);
  padding: 64px 24px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand .footer-logo svg { height: 28px; width: 28px; }
.footer-brand .footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; }
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); }
.footer-social svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================================
   GEO content article — original capsule/note/faq/pkg/cta/table components
   remapped onto the brand tokens above.
   ========================================================================== */
.geo-article {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.geo-article.wide { max-width: 940px; }

.geo-article h1 {
  font-family: var(--font-display);
  color: var(--primary-700);
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 .15em;
}
.geo-article h2 {
  font-family: var(--font-display);
  color: var(--primary-700);
  font-size: 1.4rem;
  line-height: 1.3;
  margin-top: 1.9em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--accent-400);
}
.geo-article h3 {
  font-family: var(--font-display);
  color: var(--primary-600);
  font-size: 1.1rem;
  margin-top: 1.4em;
}
.geo-article p { margin: .8em 0; }
.geo-article ul, .geo-article ol { margin: .8em 0; padding-left: 1.3em; }
.geo-article li { margin: .4em 0; }
.geo-article strong { color: var(--neutral-800); }
.geo-article a {
  color: var(--accent-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.geo-article a:hover { color: var(--accent-700); }

/* meta line (byline / updated) */
.byline, .updated {
  color: var(--neutral-500);
  font-size: .875rem;
  margin-bottom: .4em;
}

/* answer-first capsule */
.capsule {
  background: var(--accent-50);
  border-left: 4px solid var(--accent-400);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 1.05rem;
  color: var(--neutral-800);
  margin: 20px 0;
}

/* transparency / warning note (amber) */
.note {
  background: #FEF7E8;
  border: 1px solid #F6D88A;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  color: #7A5A12;
  margin: 18px 0;
}

/* tables */
.geo-article table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: .92rem;
}
.geo-article th, .geo-article td {
  border: 1px solid var(--neutral-200);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.geo-article th {
  background: var(--primary-600);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.geo-article tr:nth-child(even) td { background: var(--neutral-50); }
.geo-article td.norm {
  font-weight: 600;
  background: var(--primary-50);
  color: var(--primary-700);
}

/* FAQ */
.faq dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-700);
  margin-top: 1.1em;
}
.faq dd { margin: .3em 0 0; }

/* package / highlighted offer box */
.pkg {
  background: var(--accent-50);
  border: 1px solid var(--accent-200);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 22px 0;
}
.pkg h2 { margin-top: 0; border: 0; padding: 0; }

/* CTA button (article body) */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-400);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.15s, transform 0.1s;
}
.cta:hover { background: var(--accent-500); transform: translateY(-1px); }

/* "Sobre el autor" card */
.author-box {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 2.2em;
}
.author-box h2 { margin-top: 0; border: 0; padding: 0; font-size: 1.1rem; }
.author-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.author-linkedin svg { width: 16px; height: 16px; fill: currentColor; }

/* article disclaimer (was the inner <footer>) */
.disclaimer {
  margin-top: 2.5em;
  border-top: 1px solid var(--neutral-200);
  padding-top: 1em;
  color: var(--neutral-500);
  font-size: .85rem;
}

@media (max-width: 600px) {
  .geo-article h1 { font-size: 1.6rem; }
  .geo-article h2 { font-size: 1.2rem; }
}
