/* =========================================================
   Matías Consulting — hoja de estilos
   Línea visual: base navy casi negra, una sola familia sans en pesos
   altos, acento dorado (el del logo), superficies con borde sutil y
   resplandores suaves. Verde oscuro como acento secundario.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Base */
  --bg:        #0b1120;
  --bg-2:      #0e1526;
  --surface:   #111b31;
  --surface-2: #16223c;
  --border:    #1e2d4a;
  --border-2:  #27395c;

  /* Texto */
  --text:  #ffffff;
  --muted: #8fa1bd;
  /* --dim se usa sobre las tarjetas (--surface / --surface-2), no solo sobre el
     fondo: a #6b7d99 caía a 4.1:1 ahí y no pasaba AA. Este tono da 4.7:1 en la
     superficie más clara. */
  --dim:   #7b8dab;

  /* Acento principal: el dorado del logo, subido de brillo para fondo oscuro */
  --gold:      #e0a82e;
  --gold-soft: #f0c265;
  --gold-dim:  rgba(224, 168, 46, .14);

  /* Acento secundario */
  --green:     #2fa37c;
  --green-dim: rgba(47, 163, 124, .14);

  --measure: 66ch;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .68, .32, 1);
  --dur: 240ms;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(15.5px, 0.4vw + 15px, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto es obligatorio: las imágenes llevan atributos width/height para
   reservar espacio y evitar saltos de layout, y sin esto el alto del atributo
   gana sobre el ancho reducido por CSS y la imagen sale estirada. */
img { max-width: 100%; height: auto; display: block; }

/* Grano muy tenue sobre todo el lienzo: quita el aspecto plano del fondo
   oscuro y disimula el bandeado de los degradados. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--bg); }

/* Barra de desplazamiento acorde al fondo oscuro */
html { scrollbar-color: var(--border-2) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border: 3px solid var(--bg);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: #334973; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.032em;
  margin: 0 0 .5em;
  color: var(--text);
  /* Reparte las líneas del titular en vez de dejar una palabra suelta */
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.12rem, 1.4vw, 1.32rem); font-weight: 800; letter-spacing: -0.02em; }

p { margin: 0 0 1.1em; max-width: var(--measure); color: var(--muted); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Etiqueta de sección */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  vertical-align: .32em;
  margin-right: .7em;
  opacity: .7;
}

.lede {
  font-size: clamp(1.02rem, .8vw + .82rem, 1.18rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 52ch;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--bg);
  padding: 12px 20px;
  font-size: .85rem;
  font-weight: 600;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(11, 17, 32, .92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

/* Marca: sello dorado + palabra. En fondo oscuro el logo original (tipografía
   navy) no se lee, así que la palabra va como texto. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px var(--gold-dim);
}
.brand-word {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
}
.brand-word span { font-weight: 500; color: var(--muted); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-end {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 16px);
  flex: 0 0 auto;
}

/* Conmutador de idioma */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.lang-sep { display: none; }
.lang-link {
  text-decoration: none;
  color: var(--dim);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lang-link:hover { color: var(--text); }
.lang-link[aria-current="true"] {
  color: var(--bg);
  background: var(--gold);
}

/* Botón de menú (móvil) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 42px; height: 38px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); background: var(--gold-dim); }
.nav-toggle .bars {
  display: block;
  position: relative;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: background-color 160ms var(--ease);
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 280ms var(--ease);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. Botones y enlaces ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover, .btn:focus-visible {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(224, 168, 46, .55);
}
.btn:active { transform: translateY(0); }

.btn .arrow { transition: transform 320ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--surface-2);
  border-color: var(--gold);
  color: var(--text);
  box-shadow: none;
}

.btn-on-dark {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-on-dark:hover, .btn-on-dark:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* Botón social (Instagram) */
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 10px 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font-size: .87rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn-social svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--gold);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-social:hover, .btn-social:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(224, 168, 46, .5);
}
.btn-social:hover svg, .btn-social:focus-visible svg {
  color: var(--bg);
  transform: rotate(-6deg) scale(1.06);
}
.btn-social:active { transform: translateY(0); }

.footer-social { margin-top: 18px; }

/* Enlace de texto con subrayado animado */
.link {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  padding-bottom: 2px;
  transition: background-size 340ms var(--ease), color var(--dur) var(--ease);
}
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }
.link-on-dark { color: var(--text); }

/* ---------- 5. Secciones ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* Bandas alternas: una pizca más claras que el fondo */
.section-cream-2 { background: var(--bg-2); }

.section-dark {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(224, 168, 46, .10), transparent 62%),
    radial-gradient(700px 400px at 5% 110%, rgba(47, 163, 124, .09), transparent 60%);
  pointer-events: none;
}
.section-dark > * { position: relative; }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 60ch; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 100px) 0 clamp(44px, 5vw, 72px);
  overflow: hidden;
}
/* Resplandor de fondo, como el de la referencia */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(760px 420px at 68% 22%, rgba(224, 168, 46, .13), transparent 60%),
    radial-gradient(620px 380px at 12% 8%, rgba(47, 163, 124, .08), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: .4em; }

/* Antetítulo: "CONSULTOR SENIOR" en su propia línea, con el trazo dorado. */
.h1-kicker {
  display: block;
  position: relative;
  width: max-content;
  max-width: 100%;
  font-size: clamp(.82rem, 1vw, .95rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  margin-bottom: 1.1em;
}
.h1-kicker::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.6em;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.js .h1-kicker::after { animation: draw 900ms var(--ease) 420ms forwards; }
@keyframes draw { to { transform: scaleX(1); } }

.h1-main { display: block; }

/* Trazo genérico para otras páginas */
.stroke { position: relative; display: inline-block; }
.stroke:not(.h1-kicker)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .02em;
  height: .07em;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}
.js .stroke:not(.h1-kicker)::after { animation: draw 900ms var(--ease) 620ms forwards; }

/* Tira de credenciales bajo el titular */
.creds-line {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  max-width: 48ch;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.85;
  color: var(--muted);
}
.creds-line li { display: inline; }
/* El separador va pegado al texto anterior: como ::before del siguiente, al
   partir la línea el punto quedaba huérfano al inicio. */
.creds-line li:not(:last-child)::after {
  content: "·";
  color: var(--gold);
  font-weight: 700;
  margin: 0 .6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Retrato: tarjeta con borde y resplandor */
.portrait {
  position: relative;
  justify-self: center;
  width: min(400px, 100%);
}
.portrait-media {
  position: relative;
  z-index: 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95),
              0 0 0 1px rgba(224, 168, 46, .07);
}
/* Velo: la foto es de estudio con fondo claro y sobre el lienzo oscuro se
   recortaba como un rectángulo brillante. El degradado la funde por abajo. */
.portrait-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(11, 17, 32, .78) 0%, rgba(11, 17, 32, .22) 34%, rgba(11, 17, 32, 0) 64%),
    linear-gradient(to right, rgba(11, 17, 32, .30) 0%, rgba(11, 17, 32, 0) 40%);
}
.portrait-img {
  width: 100%;
  filter: saturate(.86) contrast(1.06);
}
/* Marco desplazado que se dibuja al cargar */
.portrait::before,
.portrait::after { content: ""; position: absolute; z-index: 1; }
.portrait::before {
  left: -14px;
  top: 30px;
  bottom: -16px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-2);
  transform: scaleY(0);
  transform-origin: top;
}
.portrait::after {
  left: -14px;
  right: 50px;
  bottom: -16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.js .portrait::before { animation: growY 760ms var(--ease) 420ms forwards; }
.js .portrait::after  { animation: draw  760ms var(--ease) 700ms forwards; }
@keyframes growY { to { transform: scaleY(1); } }

.js .portrait-media {
  opacity: 0;
  transform: translateY(14px) scale(.985);
  animation: portraitIn 900ms var(--ease) 160ms forwards;
}
@keyframes portraitIn { to { opacity: 1; transform: none; } }

.portrait-tag {
  position: absolute;
  z-index: 3;
  right: -12px;
  bottom: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 14px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
}
.js .portrait-tag { opacity: 0; animation: fadeUp 700ms var(--ease) 980ms forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 7. Línea de tiempo ---------- */
.timeline-wrap { padding-bottom: clamp(56px, 7vw, 88px); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--border);
}
.timeline::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(224, 168, 46, .08));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1400ms var(--ease);
}
.timeline.is-visible::before { transform: scaleX(1); }

.milestone { position: relative; }
.milestone::before {
  content: "";
  position: absolute;
  top: -39px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  transform: scale(0);
  transition: transform 460ms var(--ease);
  transition-delay: calc(var(--i, 0) * 130ms + 260ms);
}
.timeline.is-visible .milestone::before { transform: scale(1); }

.milestone .year {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.milestone p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.milestone.is-now .year { color: var(--green); }
.milestone.is-now::before { border-color: var(--green); }
.milestone.is-now p { color: var(--text); font-weight: 600; }

/* ---------- 8. Pilares (tarjetas) ---------- */
/* Son cuatro pilares: 2×2 en pantalla ancha. Con auto-fit quedaban 3+1 y la
   cuarta tarjeta se veía huérfana. */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
@media (max-width: 760px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.pillar {
  display: block;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.pillar:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: 18px;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  border: 1px solid rgba(224, 168, 46, .3);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pillar:hover .pillar-num { background: var(--gold); color: var(--bg); }

.pillar h3 { margin-bottom: .55em; }
.pillar p { font-size: .93rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(47, 163, 124, .28);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

/* ---------- 9. Detalle de servicios ---------- */
.service {
  padding: clamp(36px, 4vw, 60px) 0;
  border-top: 1px solid var(--border);
}
.service:first-of-type { border-top: 0; padding-top: 0; }

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.service-index {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--gold-dim);
  border: 1px solid rgba(224, 168, 46, .3);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.scope-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

.scope {
  list-style: none;
  margin: 0;
  padding: clamp(18px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.scope li {
  position: relative;
  padding: 11px 0 11px 24px;
  color: var(--muted);
  font-size: .93rem;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur) var(--ease);
}
.scope li:last-child { border-bottom: 0; }
.scope li::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .55;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.scope li:hover { color: var(--text); }
.scope li:hover::before { opacity: 1; transform: scale(1.25); }

/* ---------- 10. Sobre mí ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(12px, 1.4vw, 16px);
}
.credential {
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.credential:hover { border-color: var(--border-2); background: var(--surface-2); }
.credential .k {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.credential .v {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}
.credential .m { margin: 8px 0 0; font-size: .86rem; color: var(--dim); }

.quote {
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
}
.quote p {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.022em;
  color: var(--text);
  max-width: 38ch;
}
.quote footer {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

/* ---------- 11. Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.contact-card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.contact-card .k {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-card .mail {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  word-break: break-word;
}
.contact-card .scope { padding: 0; background: none; border: 0; }
.contact-card + .contact-card { margin-top: 14px; }

.form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.field { display: grid; gap: 7px; }
.field label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .opt { color: var(--dim); text-transform: none; letter-spacing: .02em; font-weight: 500; }

.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: .97rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
.field select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 55%, calc(100% - 13px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--border-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-note { font-size: .82rem; color: var(--dim); margin: 0; max-width: 46ch; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- 12. CTA + pie ---------- */
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: clamp(40px, 5vw, 56px) 0 clamp(26px, 3vw, 36px);
  font-size: .88rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
.footer-top p { color: var(--dim); font-size: .88rem; max-width: 34ch; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: .8rem;
  color: var(--dim);
}
.footer-bottom a { text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 13. Revelado al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 680ms var(--ease), transform 680ms var(--ease);
  transition-delay: calc(var(--i, 0) * 100ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .portrait { justify-self: start; width: min(340px, 84%); margin-left: 14px; }
}

@media (max-width: 900px) {
  .portrait { justify-self: start; width: min(320px, 82%); margin-left: 14px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .milestone::before { display: none; }
  .milestone { padding-left: 14px; border-left: 2px solid rgba(224, 168, 46, .35); }
  .service-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid .portrait { width: min(280px, 70%); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { min-height: 64px; }
  .brand-word { font-size: .95rem; }
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 6px var(--pad) 16px;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 380ms var(--ease), opacity 240ms var(--ease);
  }
  .nav-list.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-link { display: block; padding: 13px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-link::after { bottom: -1px; }
  .nav-list li:last-child .nav-link { border-bottom: 0; }

  .timeline { grid-template-columns: 1fr; }
  .portrait-tag { right: auto; left: 0; bottom: -12px; }
}

@media (max-width: 400px) {
  .brand-word { display: none; }
}

/* ---------- 15. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .js .portrait-media { opacity: 1; transform: none; }
  .js .portrait::before { transform: scaleY(1); }
  .js .portrait::after,
  .js .h1-kicker::after,
  .js .stroke:not(.h1-kicker)::after { transform: scaleX(1); }
  .js .portrait-tag { opacity: 1; }
  .timeline::before { transform: scaleX(1); }
  .timeline .milestone::before { transform: scale(1); }
  .btn:hover, .btn-social:hover, .pillar:hover { transform: none; }
  .btn-social:hover svg { transform: none; }
}
