/* ───────────────────────────────────────────────
   ARCHEON CONSULTING — Editorial dark system
   Playfair Display (display serif) + Inter (UI)
   Única color accent: #3B6EF5 (azul royal, un solo uso)
──────────────────────────────────────────────── */

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

:root {
  --ink:          #0a0a0b;     /* casi negro */
  --ink-2:        #111114;     /* paneles */
  --ink-3:        #17171b;     /* cards */
  --line:         #26262c;     /* hairlines */
  --line-2:       #1e1e23;
  --paper:        #efece4;     /* texto principal, "crema papel" */
  --mute:         #8a8a92;     /* secundario */
  --dim:          #55555b;     /* tertiario */
  --blue:         #3B6EF5;     /* acento ÚNICO */
  --blue-soft:    rgba(59,110,245,.14);
  --radius:       4px;
  --radius-lg:    10px;
  --serif:        'Switzer', 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --serif-editorial: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans:         'Switzer', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:         'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2a31; }
::-webkit-scrollbar-thumb:hover { background: #3a3a43; }

/* ─── GRANO GLOBAL ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .06;
  mix-blend-mode: overlay;
}

/* ─── TYPOGRAPHY (Switzer / Neue Haas Grotesk feel) ─── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--paper);
}
/* Bigger titles → tighter spacing (Neue Haas Display behavior) */
h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.03em; }
/* Em tags use Switzer italic for unified Helvetica/NHG feel */
h1 em, h2 em, h3 em, h4 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: inherit;
}
p { text-wrap: pretty; }
a { color: inherit; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--blue);
  display: inline-block;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  margin: 18px 0 20px;
}
.section-sub {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--mute);
  max-width: 58ch;
  line-height: 1.6;
}

/* ─── LAYOUT ─── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-sm { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 32px; }

section { position: relative; padding: 120px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  display: flex; align-items: center;
  padding: 0 32px;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-inner { width: 100%; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--paper); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: #0b1430;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-name { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.brand-tag  { font-family: var(--mono); font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--mute);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }

.nav-cta {
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 500;
  color: var(--ink) !important;
  background: var(--paper);
  padding: 10px 20px !important;
  border-radius: 999px;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.nav-cta:hover { background: var(--blue); color: #fff !important; transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

.nav-hamburger { display: none; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); }
.nav-hamburger span { width: 18px; height: 1px; background: var(--paper); position: relative; }
.nav-hamburger span::before, .nav-hamburger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--paper);
}
.nav-hamburger span::before { top: -5px; }
.nav-hamburger span::after { top: 5px; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 40px; gap: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile a { font-family: var(--serif); font-size: 2rem; color: var(--paper); text-decoration: none; }
.nav-mobile a:hover { color: var(--blue); }
.nav-mobile-close {
  position: absolute; top: 24px; right: 24px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; color: var(--paper); cursor: pointer; font-size: 18px;
  display: grid; place-items: center;
}

/* ─── ICONS (lineal, monocromático) ─── */
.ic {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ic-lg { width: 30px; height: 30px; }
.ic-sm { width: 16px; height: 16px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all .2s ease;
  letter-spacing: .01em;
  line-height: 1;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(239,236,228,.04); }
.btn .ic { width: 16px; height: 16px; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity:0; transform: translateX(-24px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal-right { opacity:0; transform: translateX(24px);  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 90px 32px 40px;
  position: relative;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px;
  max-width: 1240px; margin: 0 auto 70px;
}
.footer-brand p { font-size: .88rem; color: var(--mute); margin-top: 20px; line-height: 1.7; max-width: 300px; }
.footer-col h5 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-bottom: 22px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: .92rem; color: var(--paper); text-decoration: none; transition: color .2s; opacity: .82; }
.footer-col ul li a:hover { color: var(--blue); opacity: 1; }

.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .02em; }
.footer-bottom a { color: var(--mute); text-decoration: none; margin-left: 4px; }
.footer-bottom a:hover { color: var(--paper); }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--mute); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.social-btn:hover { color: var(--paper); border-color: var(--paper); }
.social-btn .ic { width: 15px; height: 15px; }

/* ─── WHATSAPP FLOTANTE (minimal pill) ─── */
.wa-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--paper); color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.06) inset;
  transition: transform .2s, background .2s, color .2s;
  opacity: 0; transform: translateY(20px);
  animation: waIn .6s 1.2s cubic-bezier(.22,1,.36,1) forwards;
}
.wa-bubble:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.wa-bubble .ic { width: 16px; height: 16px; }
@keyframes waIn { to { opacity: 1; transform: none; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: inline-flex; }
  .container, .container-sm { padding: 0 20px; }
  section { padding: 80px 0; }
  .section-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  footer { padding: 60px 20px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wa-bubble { bottom: 16px; right: 16px; padding: 10px 14px 10px 12px; font-size: 12.5px; }
}
