/* =========================================================
   Javier Matías Henríquez — hoja de estilos
   Línea visual (21 sep 2026, regla de identidad): tinta #0B1120 sobre
   blanco #FFFFFF, una sola familia sans, grises neutros (#55607A texto
   secundario, #D5D9E3 filetes, #F6F7FA superficie). La tinta es acento:
   líneas, numeración, subrayados, estados activos. Sin sombras, sin
   degradados, sin logotipo: la cabecera firma solo con el nombre.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Base — tema claro. El fondo claro comunica documento; la tinta queda
     reservada como acento y nunca se usa de relleno. */
  --bg:        #ffffff;   /* blanco: regla de identidad (21 sep 2026) */
  --bg-2:      #f6f7fa;   /* superficie muy suave */
  --surface:   #f6f7fa;
  --surface-2: #ffffff;
  --border:    #d5d9e3;
  --border-2:  #c3c9d6;

  /* Texto */
  --text:  #0b1120;
  --muted: #55607a;   /* gris calido: 6.85:1 sobre hueso, mas que el frio anterior */
  /* --dim se usa sobre las tarjetas (--surface / --surface-2). Con el mismo
     valor que --muted da 6.35:1 sobre la crema y 6.85:1 sobre el hueso: AA
     holgado en las dos superficies. */
  --dim:   #55607a;

  /* Acento único: la tinta de marca. La línea es monocroma: un segundo
     color de acento resta, y la contención es lo que comunica seniority. */
  --accent:      #0b1120;
  --accent-soft: #24304a;
  --accent-dim:  rgba(11, 17, 32, .05);

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

  /* Radios generosos: la esquina blanda es lo que separa una tarjeta de un
     recuadro impreso. */
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Sombra calida y muy difusa: da profundidad sin ensuciar. El tono va en
     marron, no en negro; una sombra gris sobre crema se ve sucia. */
  --sombra:    none;
  --sombra-alta: none;

  --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; }

/* El grano existía para disimular el bandeado de los degradados del fondo
   oscuro. Sin degradados y sobre blanco solo ensucia, así que se retira. */

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

/* Barra de desplazamiento acorde al fondo claro */
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: #b8c0cf; }

h1, h2, h3, h4 {
  font-family: var(--font);
  /* 800 en vez de 900: el peso maximo leia como titular de portada. */
  font-weight: 800;
  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(--accent);
  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(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  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(255, 255, 255, .88);
  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(255, 255, 255, .96);
}

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

/* Marca: sello de tinta con la M en blanco + la palabra 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(--accent-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(--accent);
  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(--accent);
}

/* 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(--accent); background: var(--accent-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(--accent);
  border-radius: var(--r-pill);
  background: var(--accent);
  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(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(11, 17, 32, .30);
}
.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(--accent);
  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(--accent);
  border-color: var(--accent);
  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(--accent);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-social:hover, .btn-social:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(11, 17, 32, .26);
}
.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(--accent), var(--accent));
  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(76px, 9vw, 132px) 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;
}
/* Sin resplandor de color: en fondo claro un degradado teñido ensucia el
   lienzo y rompe la lectura de documento. La sección se separa con el
   cambio de fondo y una línea superior. */
.section-dark { border-top: 1px solid var(--border); }
.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;
}
/* Sin resplandor: el hero abre en blanco limpio. */
.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 en su propia línea, con el trazo dorado. Con width:fit-content el
   trazo mide lo que el texto y, si no cabe a lo ancho (móvil), parte en dos.
   Con max-content la columna se estiraba al texto sin cortar y desbordaba. */
.h1-kicker {
  display: block;
  position: relative;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(.82rem, 1vw, .95rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--accent);
  margin-bottom: 1.1em;
}
.h1-kicker::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.6em;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  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(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}
.js .stroke:not(.h1-kicker)::after { animation: draw 900ms var(--ease) 620ms forwards; }

/* Bajada del hero: el segundo tramo de la presentación, tras el titular. */
.hero-tagline {
  margin: 0 0 .85em;
  /* 38ch estaba calibrado para la bajada corta anterior; con el párrafo
     actual daba una columna de seis líneas. 52ch es la misma medida que
     usa .lede en el resto del sitio. */
  max-width: 52ch;
  font-size: clamp(1.18rem, 1.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--text);
}
/* La bajada fluye como un solo párrafo, sin cortes forzados entre frases. */

.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: none;
}
/* El velo existía porque la foto es de estudio con fondo claro y sobre el
   lienzo oscuro se recortaba como un rectángulo brillante. Sobre blanco ese
   fondo coincide con el de la página, así que el velo sobra: lo que define
   el recorte es el borde de 1px y el radio de la tarjeta. */
.portrait-img { width: 100%; }
/* El marco desplazado —una barra vertical a la izquierda y otra horizontal
   por debajo— funcionaba como acento sobre el lienzo oscuro. En claro la
   barra inferior se lee como un residuo suelto bajo la foto, así que se
   retira: el retrato se define con su propio borde y radio. */



/* ---------- 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: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms 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(--accent);
  transform: scale(0);
  transition: transform 460ms var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms + 80ms);
}
.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(--accent);
  margin-bottom: 6px;
}
.milestone p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.milestone.is-now .year { color: var(--accent); }
.milestone.is-now::before { border-color: var(--accent); }
.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(28px, 3vw, 38px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sombra);
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.pillar:hover {
  border-color: var(--border-2);
  box-shadow: var(--sombra-alta);
  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(--accent-dim);
  border: 1px solid var(--border);
  color: var(--accent);
  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(--accent); color: var(--bg); }

/* Tres relaciones, tres columnas. Con la rejilla de dos que usa el resto del
   sitio la tercera tarjeta queda huerfana y media seccion se lee como un
   hueco. Se estrecha a dos y luego a una segun el ancho. */
#trayectoria .pillars-grid,
.pillars-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1040px) {
  #trayectoria .pillars-grid,
  .pillars-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #trayectoria .pillars-grid,
  .pillars-grid.grid-3 { grid-template-columns: 1fr; }
}

/* Logos de terceros. La regla global img{height:auto} obliga a fijar el alto
   aquí y dejar el ancho libre. El nombre de la organización va en el h3 justo
   debajo, por eso el alt va vacío: si no, un lector de pantalla lo anunciaría
   dos veces seguidas.

   Las tres alturas NO son iguales a propósito. Igualarlas descuadraba: medido
   en área de tinta a 42 px, la insignia de El Sol pesaba 3.128 px², la de PCSD
   1.655 y la gota de la Federación 565 — cinco veces y media entre los
   extremos. Estos valores igualan el peso óptico, no el alto. Si se cambia un
   logo hay que volver a medir, no copiar el número de al lado. */
.client-logo {
  height: 43px;          /* PCSD: hexágono más wordmark */
  width: auto;
  max-width: 72%;
  margin-bottom: 20px;
}
.client-logo-dense { height: 36px; }  /* El Sol: insignia sólida, muy densa */
.client-logo-tall  { height: 74px; }  /* Federación: símbolo vertical de trazo fino */

@media (max-width: 760px) {
  .client-logo { height: 39px; }
  .client-logo-dense { height: 33px; }
  .client-logo-tall  { height: 66px; }
}

.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 {
  /* .68rem daba 10.88px: legible pero pequeño en mayúsculas para una
     audiencia de dirección. .75rem son 12px exactos. */
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  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(--accent-dim);
  border: 1px solid var(--border);
  color: var(--accent);
  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(--accent);
  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(--accent);
  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(--accent);
  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(--accent);
  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(--accent);
  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(--accent);
  box-shadow: 0 0 0 3px var(--accent-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; }
/* El color de .footer-brand nunca llegaba a aplicarse: .footer-top p gana por
   especificidad y lo pintaba del gris de texto secundario. La firma del pie
   debe ir en tinta, igual que la de la cabecera. */
.footer-top .footer-brand { color: var(--text); font-size: 1.14rem; }

.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(--accent); }

.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(--accent); }

/* ---------- 13. Revelado al hacer scroll ---------- */
/* El contenido aparece de una vez. La función de este sitio es que alguien
   verifique en segundos: una entrada escalonada retrasa la lectura y no
   aporta nada. main.js sigue añadiendo .is-visible; ya no cambia nada. */

/* ---------- 14. Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 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 var(--border); }
  .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; }
}

/* La barra colapsa en el boton a 900px, no a 720. La cabecera firma con el
   nombre completo —JAVIER MATÍAS HENRÍQUEZ— y eso la ensancha de 216px a
   262px: con el menu de cinco enlaces desplegado ya no cabe por debajo de
   ~960px y la pagina ganaba scroll horizontal. Justo por encima del corte
   quedan unos 60px de holgura; a 900px quedaban 2, demasiado fragil ante
   cualquier diferencia de renderizado de fuente. Si algun dia se acorta el
   nombre de la cabecera, este valor se puede volver a bajar.
   El JS de main.js escucha (min-width: 961px) para cerrar el desplegable:
   los dos numeros tienen que moverse juntos. */
@media (max-width: 960px) {
  .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; }
}

@media (max-width: 720px) {
  .nav { min-height: 64px; }
  .brand-word { font-size: .95rem; }
  .timeline { grid-template-columns: 1fr; }
}

@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 .h1-kicker::after,
  .js .stroke:not(.h1-kicker)::after { transform: scaleX(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; }
}

/* ============================================================
   Cuerpo de artículo
   Ancho de línea limitado para lectura larga. El resto de la
   tipografía y el color los hereda del sitio.
   ============================================================ */
.article-body { max-width: 68ch; }
.article-body p { margin-bottom: 1.15em; }
.article-body h2 { margin: 1.8em 0 .6em; }
.article-body ul { margin-bottom: 1.15em; }


/* ---------- 16. Móvil: primera pantalla más liviana (21 sep 2026) ---------- */
@media (max-width: 760px) {
  .hero { padding: 28px 0 36px; }
  .hero-grid { gap: 22px; }
  .hero .portrait { order: -1; width: 132px; margin-left: 0; }
  .hero .portrait-media { border-radius: 14px; }
  .h1-kicker { font-size: .74rem; letter-spacing: .16em; margin-bottom: .9em; }
  .h1-main { font-size: 2rem; line-height: 1.08; }
  .hero-tagline { font-size: 1.06rem; line-height: 1.45; font-weight: 500; color: var(--muted); }
  .hero .lede { display: none; }
  .hero-actions { margin-top: 20px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .milestone p { font-size: .88rem; }
}
@media (max-width: 400px) {
  .brand-word { display: inline; font-size: .78rem; letter-spacing: .02em; }
  .brand-mark { display: none; }
}

/* ---------- 17. Identidad (21 sep 2026) ---------- */
/* Sin logotipo: la cabecera firma con el nombre completo. */
.brand-mark { display: none !important; }
.brand-word { display: inline !important; }
/* El antetítulo es el descriptor canónico: dos frases, en caja normal. */
.h1-kicker { text-transform: none; letter-spacing: .005em; font-weight: 600; font-size: clamp(.95rem, 1.1vw, 1.08rem); }
@media (max-width: 760px) { .h1-kicker { font-size: .92rem; letter-spacing: 0; } }
