/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --navy:      #091C33;
  --navy-mid:  #0D2444;
  --navy-lt:   #122B52;
  --steel:     #35528C;
  --lavender:  #B2C4E2;
  --mist:      #E4E7ED;
  --offwhite:  #F0F3F7;
  --light-blue:#EBF0F7;
  --white:     #FFFFFF;
  --clay:      #B04635;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Work Sans', sans-serif;
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ─── NOISE OVERLAY ──────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5rem;
  background: rgba(9,28,51,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(178,196,226,0.07);
  transition: padding 0.4s var(--ease);
}
nav.scrolled { padding: 0.85rem 5rem; }
.nav-logo { display: flex; align-items: center; }
.logo-img  { height: 28px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--lavender);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 1.6rem; border: 1px solid rgba(178,196,226,0.3); border-radius: 2px;
  color: var(--lavender); transition: all 0.25s;
}
.nav-cta:hover { background: var(--steel); border-color: var(--steel); color: #fff; }

/* ─── SHARED UTILITIES ───────────────────────────────── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 5rem; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Section headlines */
.headline {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.headline em { font-style: italic; font-weight: 300; }

/* Body text */
.lead { font-size: 1.05rem; font-weight: 400; line-height: 1.72; }

/* ─── DARK SECTION STYLES ────────────────────────────── */
.s-dark {
  background: var(--navy);
  color: var(--mist);
}
.s-dark-mid {
  background: var(--navy-mid);
  color: var(--mist);
}
.s-dark .eyebrow,
.s-dark-mid .eyebrow { color: var(--lavender); }
.s-dark .headline,
.s-dark-mid .headline { color: #fff; }
.s-dark .headline em,
.s-dark-mid .headline em { color: var(--lavender); }
.s-dark .lead,
.s-dark-mid .lead { color: rgba(228,231,237,0.65); }

/* ─── LIGHT SECTION STYLES ───────────────────────────── */
.s-light { background: var(--offwhite); color: var(--navy); }
.s-light-blue { background: var(--light-blue); color: var(--navy); }

.s-light .eyebrow,
.s-light-blue .eyebrow { color: var(--steel); }
.s-light .headline,
.s-light-blue .headline { color: var(--navy); }
.s-light .headline em,
.s-light-blue .headline em { color: var(--steel); }
.s-light .lead,
.s-light-blue .lead { color: rgba(9,28,51,0.62); }

/* ─── REVEAL ANIMATION ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 9rem 5rem 6rem;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.hero-orb-1 {
  position: absolute; top: -15%; right: -8%; pointer-events: none;
  width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, rgba(53,82,140,0.3), transparent 65%);
}
.hero-orb-2 {
  position: absolute; bottom: -20%; left: -5%; pointer-events: none;
  width: 40vw; height: 40vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(97,17,26,0.1), transparent 65%);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-tag {
  display: inline-flex; align-items: center;
  background: #1A2744; border-radius: 20px; padding: 6px 14px;
  font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: #4A72CC; border:1px solid #35528C; margin-bottom: 2rem;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.7s var(--ease) 0.15s forwards;
}
.hero-title {
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.035em; color: #fff;
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--lavender); }
.hero-sub {
  font-size: 1.1rem; font-weight: 300; line-height: 1.72;
  color: rgba(228,231,237,0.65); max-width: 460px; margin-bottom: 3rem;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) 0.45s forwards;
}
.hero-btns {
  display: flex; align-items: center; gap: 1.75rem;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}
.btn-solid {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 2.2rem; background: var(--steel); color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-solid:hover { background: #4063a8; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(53,82,140,0.45); }
.btn-solid svg { transition: transform 0.3s var(--ease); }
.btn-solid:hover svg { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lavender); border: 1.5px solid var(--lavender);
  border-radius: 2px; transition: all 0.3s var(--ease);
}
.btn-ghost:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-ghost::after { content: none; }

/* Hero diagram (right col) */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; animation: fadeIn 1.4s var(--ease) 0.8s forwards;
}
.hero-diagram { width: 100%; height: auto; }
.diagram { position: relative; width: 380px; height: 380px; }
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(178,196,226,0.1);
}
.ring-1 { inset: 0; animation: spin 50s linear infinite; }
.ring-2 { inset: 48px; border-color: rgba(53,82,140,0.2); animation: spin 30s linear infinite reverse; }
.ring-3 { inset: 96px; border-color: rgba(178,196,226,0.15); animation: spin 70s linear infinite; }
.diag-core {
  position: absolute; inset: 136px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--navy-lt), var(--navy));
  border: 1px solid rgba(53,82,140,0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.diag-core span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lavender); }
.diag-core svg { width: 28px; height: 28px; }
.dnode {
  position: absolute; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-mid); border: 1px solid rgba(53,82,140,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-align: center; line-height: 1.3; color: var(--lavender);
}
.dn-t { top: -22px; left: 50%; transform: translateX(-50%); }
.dn-r { right: -22px; top: 50%; transform: translateY(-50%); }
.dn-b { bottom: -22px; left: 50%; transform: translateX(-50%); }
.dn-l { left: -22px; top: 50%; transform: translateY(-50%); }

/* ════════════════════════════════════════
   CONTEXTO  ·  light
════════════════════════════════════════ */
#contexto { padding: 9rem 0; }
#contexto .cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: end;
}
.tension-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.tension-item {
  display: flex; align-items: center;
  height: 48px; padding: 0 1rem;
  background: #fff; border-radius: 8px;
}
.tension-item span { font-size: 0.875rem; font-weight: 500; color: #0B1830; }

.cwhite {
  background: #fff; border-radius: 12px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.cwhite p { font-size: 1rem; font-weight: 400; line-height: 1.7; color: #1A2744; }
.cwhite strong { font-weight: 700; }

/* ════════════════════════════════════════
   PROBLEMA  ·  dark
════════════════════════════════════════ */
#problema { padding: 9rem 0; }
.q-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 4rem;
}
.q-card {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 2rem; background: #1A2744; border-radius: 12px;
}
.q-num { font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--steel); }
.q-text { font-size: 1rem; font-weight: 400; line-height: 1.5; color: #fff; }

.prob-close {
  margin-top: 4rem; padding: 2rem; border-radius: 12px;
  background: #0D2444;
}
.prob-close p { font-size: 1.125rem; font-weight: 500; line-height: 1.6; color: var(--lavender); white-space: nowrap; }
.prob-close { text-align: center; }
.prob-close strong { color: var(--lavender); font-weight: 500; }

/* ════════════════════════════════════════
   ETAPAS  ·  light blue
════════════════════════════════════════ */
#etapas { padding: 9rem 0; }
#etapas .stages-top {
  display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 4rem;
}
.stages-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.stage-card {
  border-radius: 16px; padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.sc-1 { background: #FFFFFF; border: 1.5px solid #D8E4F4; }
.sc-2 { background: #091C33; }

.s-badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  border-radius: 20px; padding: 6px 14px;
  font-size: 0.75rem; font-weight: 600; color: #4A72CC;
}
.sc-1 .s-badge { background: #EBF0F7; }
.sc-2 .s-badge { background: #1A2744; }

.s-title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.sc-1 .s-title { color: #0B1830; }
.sc-2 .s-title { color: #FFFFFF; }

.s-dur { font-size: 0.8125rem; font-weight: 500; color: #4A72CC; }

.s-desc { font-size: 1.0625rem; line-height: 1.6; }
.sc-1 .s-desc { color: #4A5568; }
.sc-2 .s-desc { color: #B2C4E2; }

.s-includes { font-size: 0.8125rem; font-weight: 500; color: #4A72CC; }

.s-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.s-list li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; line-height: 1.5; }
.s-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4A72CC; flex-shrink: 0; }
.sc-1 .s-list li { color: #4A5568; }
.sc-2 .s-list li { color: #B2C4E2; }

.s-result { border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.sc-1 .s-result { background: #EBF0F7; }
.sc-2 .s-result { background: #1A2744; }

.s-result-lbl { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4A72CC; }
.sc-1 .s-result p { font-size: 0.875rem; line-height: 1.5; color: #1A2744; }
.sc-2 .s-result p { font-size: 0.875rem; line-height: 1.5; color: #FFFFFF; }

/* ════════════════════════════════════════
   ENFOQUE  ·  dark mid
════════════════════════════════════════ */
#enfoque { padding: 9rem 0; }
.enfoque-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: end; margin-top: 4rem;
}
.pillars { display: flex; flex-direction: column; }
.pillar {
  display: grid; grid-template-columns: 44px 1fr; gap: 1.25rem;
  padding: 1.7rem 0; border-bottom: 1px solid rgba(178,196,226,0.07); transition: all 0.25s;
}
.pillar:first-child { padding-top: 0; }
.pillar:last-child { border-bottom: none; }
.p-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(53,82,140,0.18); border: 1px solid rgba(53,82,140,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.25s;
}
.pillar:hover .p-icon { background: var(--steel); }
.p-icon svg { stroke: var(--lavender); transition: stroke 0.25s; }
.pillar:hover .p-icon svg { stroke: #fff; }
.aud-icon { font-size: 0; margin-bottom: 0.9rem; display: flex; justify-content: center; }
.aud-icon svg { stroke: var(--steel); }
.res-icon { font-size: 0; margin-bottom: 1.1rem; display: flex; justify-content: center; }
.res-icon svg { stroke: var(--steel); }
.p-name { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lavender); margin-bottom: 0.3rem; }
.p-desc { font-size: 0.87rem; line-height: 1.6; color: rgba(228,231,237,0.5); }

.quote-box {
  padding: 3.25rem;
  background: linear-gradient(140deg, rgba(53,82,140,0.18), rgba(9,28,51,0.4));
  border: 1px solid rgba(53,82,140,0.28); border-radius: 12px;
}
.q-text-big {
  font-size: 1.45rem; font-weight: 300; font-style: italic;
  line-height: 1.55; color: #fff; margin-bottom: 2rem;
}
.q-text-big strong { font-style: normal; font-weight: 800; color: var(--lavender); }
.q-source { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); }

/* ════════════════════════════════════════
   PARA QUIÉN  ·  light
════════════════════════════════════════ */
#audiencia { padding: 9rem 0; }
.aud-rail {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-top: 4rem; border: 1px solid rgba(53,82,140,0.12);
  border-radius: 12px; overflow: hidden;
  background: rgba(53,82,140,0.12); gap: 1px;
}
.aud-item {
  padding: 2.5rem 1.5rem; text-align: center;
  background: #fff; transition: background 0.25s; position: relative;
}
.aud-item:hover { background: rgba(53,82,140,0.05); }
.aud-item::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--steel); transition: width 0.35s var(--ease);
}
.aud-item:hover::after { width: 44%; }
.aud-icon { font-size: 1.6rem; margin-bottom: 0.9rem; }
.aud-label { font-size: 0.83rem; font-weight: 500; line-height: 1.45; color: var(--navy); }

/* ════════════════════════════════════════
   RESULTADOS  ·  light (continuation)
════════════════════════════════════════ */
#resultados { padding: 9rem 0; }
.res-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 4rem;
}
.res-card {
  background: #fff; border: 1px solid rgba(53,82,140,0.1);
  border-radius: 12px; padding: 2.5rem 1.75rem; text-align: center;
  box-shadow: 0 2px 12px rgba(9,28,51,0.05);
  transition: all 0.3s var(--ease);
}
.res-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(9,28,51,0.1); border-color: rgba(53,82,140,0.28); }
.res-icon { font-size: 1.9rem; margin-bottom: 1.1rem; display: block; }
.res-close { margin-top: 3rem; text-align: center; width: 100%; }
.res-close p { font-size: 1rem; line-height: 1.6; color: var(--slate); }
.res-close strong { color: var(--steel); font-weight: 600; }
.res-title { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 0.55rem; }
.res-desc { font-size: 0.8rem; line-height: 1.58; color: rgba(9,28,51,0.52); }

/* .cta-btn kept below — used in contact form */
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 3rem; background: var(--steel); color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer;
  transition: all 0.35s var(--ease);
}
.cta-btn:hover { background: #4063a8; transform: translateY(-3px); box-shadow: 0 20px 52px rgba(53,82,140,0.5); }
.cta-btn svg { transition: transform 0.3s var(--ease); }
.cta-btn:hover svg { transform: translateX(5px); }

/* ════════════════════════════════════════
   CONTACTO · formulario
════════════════════════════════════════ */
#contacto {
  padding: 9rem 0;
  background: var(--navy);
  position: relative; overflow: hidden;
}
#contacto::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80vw; height: 80vw; max-width: 860px; max-height: 860px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,82,140,0.18), transparent 65%);
  pointer-events: none;
}

.contact-layout {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start;
}

/* --- Copy --- */
.contact-copy .cta-eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 2rem; justify-content: flex-start;
}
.cta-h {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  color: #fff; margin-bottom: 1.5rem;
}
.cta-h-sub { font-size: clamp(1.1rem, 1.8vw, 1.5625rem); font-weight: 300; font-style: italic; line-height: 1.2; color: var(--lavender); margin-bottom: 1.5rem; }
.cta-p {
  font-size: 1.05rem; font-weight: 300; line-height: 1.7;
  color: rgba(228,231,237,0.62); margin-bottom: 2.25rem;
}
.contact-perks {
  list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(178,196,226,0.08);
}
.contact-perks li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 500; color: rgba(178,196,226,0.5);
}
.contact-perks li::before {
  content: '✓'; font-size: 0.68rem; font-weight: 800;
  color: var(--steel); flex-shrink: 0;
}

/* --- Form wrapper --- */
.contact-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(178,196,226,0.1);
  border-radius: 12px; padding: 2.75rem;
}

/* --- Form fields --- */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.form-group {
  display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem;
}
.form-group label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(178,196,226,0.6);
}
.form-group .req { color: var(--clay); }
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(178,196,226,0.18);
  border-radius: 2px;
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem; font-weight: 400;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(178,196,226,0.28); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--steel);
  background: rgba(53,82,140,0.1);
  box-shadow: 0 0 0 3px rgba(53,82,140,0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* --- Submit button --- */
.form-submit-btn {
  margin-top: 0.5rem; width: 100%;
  justify-content: center;
}
.form-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* --- Status message --- */
.form-status {
  margin-top: 1rem; font-size: 0.85rem; font-weight: 500;
  padding: 0; border-radius: 2px; line-height: 1.5;
  min-height: 1.2rem;
}
.form-status.success { color: #5ec98a; }
.form-status.error   { color: #e5806b; }

/* --- Mobile --- */
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(178,196,226,0.07);
  padding: 2.5rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.fl { display: flex; align-items: center; transition: opacity 0.2s; }
.fl:hover { opacity: 0.75; }
.fc { font-size: 0.73rem; color: rgba(178,196,226,0.3); letter-spacing: 0.05em; }
.footer-linkedin {
  color: rgba(178,196,226,0.4); transition: color 0.2s;
  display: flex; align-items: center;
}
.footer-linkedin:hover { color: var(--lavender); }

/* ─── KEYFRAMES ──────────────────────────────────────── */
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes spin   { to { transform: rotate(360deg); } }

/* ─── HAMBURGER BUTTON ───────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--lavender);
  transition: transform 0.35s var(--ease), opacity 0.25s, width 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--navy-mid);
  border-left: 1px solid rgba(178,196,226,0.1);
  z-index: 999;
  flex-direction: column;
  padding: 6rem 2.5rem 3rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-links {
  list-style: none; display: flex; flex-direction: column; gap: 0;
  margin-bottom: auto;
}
.mobile-links li a {
  display: block; padding: 1.1rem 0;
  font-size: 1.15rem; font-weight: 600; color: var(--mist);
  border-bottom: 1px solid rgba(178,196,226,0.08);
  transition: color 0.2s, padding-left 0.2s;
  letter-spacing: -0.01em;
}
.mobile-links li a:hover { color: #fff; padding-left: 0.4rem; }
.mobile-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2.5rem; padding: 0.9rem 2rem;
  background: var(--steel); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px; transition: background 0.25s;
}
.mobile-cta:hover { background: #4063a8; }

/* Overlay behind mobile menu */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 998;
  background: rgba(9,28,51,0.7);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.35s;
}
.mobile-overlay.open { opacity: 1; }

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  nav, nav.scrolled { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-overlay { display: block; }
  .wrap { padding: 0 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; gap: 0.75rem; text-align: center; }
  #hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 5rem; min-height: auto; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2.6rem, 8vw, 3.5rem); }
  #contexto .cols, .stages-grid, .enfoque-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .q-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .aud-rail { grid-template-columns: repeat(2, 1fr); }
  .res-grid  { grid-template-columns: repeat(2, 1fr); }
  #contacto { padding: 7rem 0; }
}
