/*
 * echelon.css — Sistema de diseño compartido
 * Echelon Strategic Advisory
 * Importado por todos los archivos HTML del sitio
 * Versión 1.0 · Junio 2026
 */

/* ══════════════════════════════════════════════════════
   VARIABLES — DESIGN TOKENS
══════════════════════════════════════════════════════ */
:root {
  --black:   #080808;
  --black-2: #0f0f0f;
  --black-3: #141414;
  --black-4: #1c1c1c;
  --white:   #f4f1ec;
  --white-2: #d8d4cc;
  --white-3: #a09a90;
  --white-4: #6a6560;
  --gold:    #c8a96e;
  --gold-dim:  rgba(200,169,110,0.10);
  --gold-line: rgba(200,169,110,0.28);
  --line:        rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.10);
}

/* ══════════════════════════════════════════════════════
   BASE — RESET Y TIPOGRAFÍA GLOBAL
══════════════════════════════════════════════════════ */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════
   NAV — NAVEGACIÓN PRINCIPAL (idéntica en todos los archivos)
══════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  padding: 0 4rem;
  height: 84px;
  background: rgba(8,8,8,0.98);
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .4s;
}
nav.scrolled {
  border-bottom-color: rgba(255,255,255,0.12);
}
.nav-brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.nav-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 10px;
  color: #f4f1ec;
  display: block;
  line-height: 1;
}
.nav-brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 5px;
  color: #888;
  display: block;
  line-height: 1;
  margin-top: 5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  justify-content: center;
  align-items: center;
}
.nav-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white-3);
  text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-active {
  color: var(--white) !important;
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 2px;
}
.nav-cta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 0.5px solid var(--gold-line);
  padding: 10px 24px;
  transition: background .25s, color .25s;
  justify-self: end;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: #000; }

/* ── Hamburger ──────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 0.5px;
  background: var(--white-3);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ── Nav responsive ────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 0 2rem; height: 68px; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.98);
    z-index: 99;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
  }
  .mobile-menu .menu-cta {
    border: 0.5px solid rgba(244,241,236,0.25);
    padding: 12px 32px;
  }
}
@media (max-width: 600px) {
  nav { padding: 0 1.5rem; height: 64px; }
  .nav-brand-name { font-size: 20px; letter-spacing: 6px; }
  .nav-brand-sub  { font-size: 7px;  letter-spacing: 3px; }
}

/* ══════════════════════════════════════════════════════
   FOOTER — BASE COMPARTIDA
══════════════════════════════════════════════════════ */
footer {
  background: var(--black);
  border-top: 0.5px solid var(--line);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}
.footer-brand-link,
.footer-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.footer-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 8px;
  color: #f4f1ec;
  opacity: 0.45;
  display: block;
  line-height: 1;
  text-transform: uppercase;
}
.footer-brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 3.5px;
  color: #a09a90;
  opacity: 0.4;
  display: block;
  line-height: 1;
  margin-top: 5px;
  text-transform: uppercase;
}
.footer-tagline {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-3);
  opacity: .45;
}
.footer-copy {
  font-size: 9px;
  font-weight: 300;
  color: var(--white-3);
  opacity: .3;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════
   ANIMACIONES — COMPARTIDAS
══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  to { opacity:1; transform:translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ══════════════════════════════════════════════════════
   COMPONENTES TIPOGRÁFICOS COMPARTIDOS
══════════════════════════════════════════════════════ */
.section-inner { max-width: 1200px; margin: 0 auto; }

.sec-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.sec-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 0.5px;
  background: var(--gold);
  opacity: 0.5;
  margin-bottom: 10px;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.sec-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--white-3);
  line-height: 1.9;
  max-width: 600px;
}

/* ── Botones base ───────────────────────────── */
.btn-primary {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #000;
  background: var(--gold);
  text-decoration: none;
  padding: 15px 34px;
  transition: opacity .25s;
  display: inline-block;
}
.btn-primary:hover { opacity:.85; }
.btn-ghost {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white-3);
  text-decoration: none;
  border-bottom: 0.5px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.btn-ghost:hover { color:var(--white); border-color:var(--white-3); }

/* ── Pull quote ─────────────────────────────── */
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  border-left: 2px solid var(--gold);
  background: rgba(200,169,110,0.10);
  padding: 1.5rem 2rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   TECH STACK GRID — COMPARTIDO (homepage + insight_03)
══════════════════════════════════════════════════════ */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-bottom: 1rem;
}
.stack-category {
  background: var(--black);
  padding: 1.5rem;
  border-top: 1.5px solid var(--line-strong);
  transition: background .25s;
}
.stack-category:hover { background: var(--black-2); }
.stack-cat-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 0.5px solid var(--line);
}
.stack-items { display: flex; flex-direction: column; gap: 1px; }
.stack-item {
  padding: .6rem 0;
  border-bottom: 0.5px solid var(--line);
}
.stack-item:last-child { border-bottom: none; }
.stack-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
  letter-spacing: .5px;
}
.stack-desc {
  font-size: 10px;
  font-weight: 300;
  color: var(--white-3);
  letter-spacing: .3px;
}
.stack-disclaimer {
  font-size: 11px;
  font-weight: 300;
  color: var(--white-3);
  font-style: italic;
  padding: 1rem 0;
  border-top: 0.5px solid var(--line);
  line-height: 1.6;
}
@media (max-width: 960px) {
  .tech-stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tech-stack-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   EXPERIENCIA STATS — COMPARTIDO (homepage + method)
══════════════════════════════════════════════════════ */
.exp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-bottom: 4rem;
}
.exp-stat {
  background: var(--black-2);
  padding: 2.5rem 2rem;
  border-top: 1.5px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.exp-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.exp-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  line-height: 1.3;
}
.exp-note {
  font-size: 11px;
  font-weight: 300;
  color: var(--white-3);
  display: block;
  line-height: 1.6;
  margin-top: .25rem;
}
@media (max-width: 600px) {
  .exp-stats { grid-template-columns: 1fr; }
  .exp-number { font-size: 44px; }
}

/* ══════════════════════════════════════════════════════
   GOLD HOVER — MICRO-INTERACCIÓN COMPARTIDA
══════════════════════════════════════════════════════ */
.gold-hover {
  color: inherit;
  cursor: default;
  transition: color .4s ease, text-shadow .4s ease;
}
.gold-hover:hover {
  color: #f0d9a4;
  text-shadow: 0 0 22px rgba(200,169,110,0.40);
}

/* ══════════════════════════════════════════════════════
   UTILIDADES RESPONSIVAS MÍNIMAS
══════════════════════════════════════════════════════ */
@media (max-width: 390px) {
  section { padding: 3.5rem 1.25rem; }
}
