/* Human Capital J & V · estilo ejecutivo
   Blanco y papel azulado, azul marino para texto y bandas, azul del logo para la acción. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --paper: #f5f8fb;
  --line: #dde5ee;
  --line-strong: #c3cfdc;
  --navy: #0a2540;
  --text: #3a4859;
  --text-soft: #5a6878;
  --blue: #0059a8;
  --blue-hover: #004a8f;
  --sky: #1a8acb;
  --on-navy: #c9d6e4;
  --error: #b42318;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: 20px;
  --section: clamp(72px, 9vw, 128px);
  --radius: 4px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(10, 37, 64, 0.06), 0 18px 40px -18px rgba(10, 37, 64, 0.28);
}
@media (min-width: 760px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; overflow-x: clip;
  background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--blue);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 60; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius); }
.skip:focus { top: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía ---------- */
h1, .h2, .services-head h2, .service h3, .split-copy h2 {
  font-family: var(--serif); color: var(--navy); font-weight: 500; letter-spacing: -0.018em;
  font-optical-sizing: auto; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.35rem + 3.7vw, 4.4rem); line-height: 1.04; }
.h2 { font-size: clamp(2rem, 1.35rem + 2vw, 3.1rem); line-height: 1.08; }
.h2--light { color: #fff; }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem); line-height: 1.6; color: var(--text); max-width: 34em; }
.section-lead { font-size: clamp(1.04rem, 0.98rem + 0.25vw, 1.15rem); color: var(--text-soft); max-width: 36em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); box-shadow: 0 12px 24px -14px rgba(0, 74, 143, 0.8); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline svg path { fill: currentColor; stroke: none; }
.btn--outline:hover svg { transform: none; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--paper); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--blue-hover); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.22rem; font-weight: 600; color: #33383f; letter-spacing: -0.01em; }
.brand-jv { margin-top: 5px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.34em; color: var(--blue); display: flex; align-items: center; gap: 8px; }
.brand-jv::before, .brand-jv::after { content: ""; height: 1px; width: 18px; background: var(--blue); opacity: 0.7; }
.brand--light .brand-name { color: #fff; }
.brand--light .brand-jv { color: #8cc4ea; }
.brand--light .brand-jv::before, .brand--light .brand-jv::after { background: #8cc4ea; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { font-size: 0.98rem; font-weight: 500; color: var(--navy); text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.nav ul a:hover, .nav ul a[aria-current="page"] { background-size: 100% 1px; }
.nav ul a[aria-current="page"] { color: var(--blue); }
.btn--nav { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }

.menu-toggle { display: none; }
@media (max-width: 959px) {
  .menu-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong);
    border-radius: var(--radius); background: #fff; cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 1.5px; background: var(--navy); transition: transform 0.3s var(--ease), opacity 0.2s; }
  .menu-bars { position: relative; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 24px 40px -24px rgba(10, 37, 64, 0.35);
    padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); background: none; font-size: 1.05rem; }
  .btn--nav { margin-top: 18px; min-height: 52px; }
  .brand img { width: 46px; }
  .brand-name { font-size: 1.08rem; }
}

/* ---------- Portada ---------- */
.hero { padding: clamp(36px, 6vw, 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(48px, 6vw, 96px); } }
.hero-copy h1 { max-width: 13.5em; }
.hero-copy .lead { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }
/* Laptops pequeñas: el panel baja más para no tapar el rostro de la foto */
@media (min-width: 960px) and (max-width: 1239px) {
  .hero-media { padding-bottom: 190px !important; }
  .hero-photo { aspect-ratio: 4 / 4; }
}
.hero-note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--text-soft); }

.hero-media { position: relative; padding-bottom: 36px; }
@media (min-width: 960px) { .hero-media { padding: 0 0 132px 0; } }
.hero-photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 4.4; background: var(--paper); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (min-width: 960px) { .hero-photo { margin-left: 56px; } }
@media (max-width: 959px) {
  .hero-media { padding-bottom: 0; }
  .hero-photo { aspect-ratio: 4 / 3.6; }
  .hero-photo img { object-position: 60% 30%; }
  .hero-media .verify { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 16px 0; }
}

.verify {
  position: absolute; left: 0; bottom: 0; width: min(390px, 88%);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px 18px;
}
.verify-title { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--navy); margin-bottom: 10px; }
.verify li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.96rem; color: var(--navy); font-weight: 500; }
.verify li svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #e6f0f9; color: var(--blue); }
.verify li svg path { stroke-width: 2.4; stroke-dasharray: 24; stroke-dashoffset: 0; }

.pillars {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pillars li { padding: 22px 16px 22px 0; font-size: 0.98rem; font-weight: 600; color: var(--navy); }
.pillars a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease), color 0.2s; }
.pillars a:hover { color: var(--blue); background-size: 100% 1px; }
.pillars li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
.pillars li:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillars li { padding: 26px 20px; border-top: 0 !important; }
  .pillars li:first-child { padding-left: 0; }
  .pillars li + li { border-left: 1px solid var(--line); }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--paper); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 64px; } }
.section-head--stack { grid-template-columns: minmax(0, 1fr) !important; gap: 0.8rem; margin-bottom: 32px; }

/* Servicios */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) {
  .services { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
  .services-head { position: sticky; top: 120px; }
}
.services-head .section-lead { margin: 1.1rem 0 1.8rem; }
.service-list { border-top: 1px solid var(--line-strong); }
.service { padding: 30px 0 32px; border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); line-height: 1.2; }
.service p { margin-top: 0.7rem; max-width: 40em; }
.service .service-meta { margin-top: 1rem; font-size: 0.92rem; color: var(--text-soft); }

/* Proceso */
.timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--blue);
}
.js [data-timeline] .step:not(:last-child)::before { background: var(--line-strong); transition: background-color 0.4s; }
.js [data-timeline] .step.is-on:not(:last-child)::before { background: var(--blue); }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 20px; align-content: start; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step-n {
  grid-row: span 2; position: relative; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 0.98rem; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--paper);
  transition: background-color 0.4s, color 0.4s;
}
.step h3 { font-size: 1.1rem; font-weight: 650; color: var(--navy); line-height: 1.3; padding-top: 8px; }
.step p { margin-top: 0.4rem; color: var(--text-soft); font-size: 0.98rem; }
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
  .step:not(:last-child)::before { display: none; }
  .timeline::before, .timeline::after {
    content: ""; position: absolute; left: 20px; right: calc((100% - 140px) / 6 - 20px); top: 19px; height: 1px;
  }
  .timeline::before { background: var(--line-strong); }
  .timeline::after { background: var(--blue); transform-origin: left; transform: scaleX(var(--progress, 1)); }
  .step { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .step-n { grid-row: auto; margin-bottom: 22px; }
  .step h3 { padding-top: 0; }
}

/* Bloque con foto */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(48px, 7vw, 104px); } }
.split-photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 11; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-copy p { margin: 1.3rem 0 1.4rem; max-width: 34em; }
.ticks { margin-bottom: 2rem; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* Banda de candidatos */
.band { background: var(--navy); color: var(--on-navy); padding: var(--section) 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 960px) { .band-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 104px); } }
.band-copy p { margin: 1.3rem 0 2rem; max-width: 34em; font-size: 1.1rem; }
.band-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.band-photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Vacantes */
.jobs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 960px) { .jobs-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(48px, 6vw, 88px); align-items: start; } }
.job-list { border-top: 1px solid var(--line-strong); }
.job { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.job-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.job h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: var(--navy); }
.job-sample { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); border: 1px solid currentColor; border-radius: 2px; padding: 2px 7px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.93rem; color: var(--text-soft); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.job-meta svg { width: 16px; height: 16px; color: var(--sky); }
.job-desc { color: var(--text); max-width: 42em; }
.job .apply {
  justify-self: start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1.5px solid var(--blue); border-radius: var(--radius); background: transparent; color: var(--blue); font-weight: 600; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.job .apply:hover { background: var(--blue); color: #fff; }
@media (min-width: 640px) {
  .job { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
  .job > :not(.apply) { grid-column: 1; }
  .job .apply { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
}
.jobs-empty { padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--text-soft); }

/* Formularios */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 36px); }
.form-card.is-highlight { animation: highlight 1.4s var(--ease); }
@keyframes highlight { from { box-shadow: 0 0 0 4px rgba(26, 138, 203, 0.45), var(--shadow); } to { box-shadow: var(--shadow); } }
@media (min-width: 960px) { #postular { position: sticky; top: 104px; } }
.form-title { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field label, .field .label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--navy); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; padding-right: 40px; text-overflow: ellipsis; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230a2540' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #6a7685; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb0c3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 138, 203, 0.22); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14); }
.field--file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px;
  border: 1px dashed #9fb0c3; border-radius: var(--radius); background: var(--paper);
  color: var(--blue); font-weight: 600 !important; cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.file-drop svg { width: 20px; height: 20px; flex: none; }
.file-drop:hover { border-color: var(--blue); }
.field--file:focus-within .file-drop { outline: 2px solid var(--sky); outline-offset: 2px; }
.file-drop.has-file { border-style: solid; border-color: var(--blue); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 22px; font-size: 0.92rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.check a { color: var(--blue); }
.form-card .btn--block { margin-top: 24px; }
.check + .btn--block { margin-top: 0; }
.form-status { margin-top: 12px; font-size: 0.95rem; font-weight: 500; min-height: 1.2em; }
.form-status.is-error { color: var(--error); }
.form-status a { color: inherit; }
.form-card.is-sent > :not(.sent) { display: none; }
.sent { text-align: left; }
.sent-icon { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: #e6f0f9; color: var(--blue); }
.sent-icon path { stroke-width: 2.2; }
.sent h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--navy); margin-top: 18px; }
.sent p { margin-top: 8px; color: var(--text); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(48px, 7vw, 104px); align-items: start; } }
.contact-copy .section-lead { margin-top: 1.1rem; }
.contact-data { margin: 1.4rem 0 2rem; border-top: 1px solid var(--line-strong); }
.contact-data div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-data dt { font-size: 0.9rem; color: var(--text-soft); }
.contact-data dd { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.contact-data a { text-decoration: none; }
.contact-data a:hover { color: var(--blue); text-decoration: underline; }

/* Pie */
.site-footer { background: var(--navy); color: var(--on-navy); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; } }
.footer-brand p { margin-top: 16px; max-width: 22em; }
.site-footer h2 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.site-footer li { padding: 4px 0; overflow-wrap: anywhere; }
.site-footer a { text-decoration: none; color: var(--on-navy); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: #fff; box-shadow: 0 14px 28px -14px rgba(10, 37, 64, 0.8);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float svg path { fill: currentColor; stroke: none; }
.wa-float:hover { transform: translateY(-3px); background: var(--blue); }

/* ---------- Páginas interiores ---------- */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); margin-bottom: clamp(48px, 6vw, 80px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--text-soft); margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; align-items: end; } }
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); max-width: 14em; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.section--flush-top { padding-top: 0; }
.section--compact { padding: clamp(48px, 6vw, 72px) 0; }
.h2--sm { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 1.2rem; }
.section-link { margin-top: 1rem; }

/* Lista de servicios en el inicio */
.svc-list { border-top: 1px solid var(--line-strong); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row a { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 24px; align-items: center; padding: 26px 0; text-decoration: none; color: var(--text); transition: padding-left 0.35s var(--ease); }
.svc-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem); color: var(--navy); line-height: 1.2; }
.svc-text { grid-row: 2; color: var(--text-soft); }
.svc-row svg { grid-row: 1 / span 2; grid-column: 2; width: 24px; height: 24px; color: var(--blue); transition: transform 0.35s var(--ease); }
.svc-row a:hover { padding-left: 8px; }
.svc-row a:hover .svc-title { color: var(--blue); }
.svc-row a:hover svg { transform: translateX(4px); }

/* Página de servicios */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) { .svc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: start; } }
.svc-index { display: none; }
@media (min-width: 960px) {
  .svc-index { display: block; position: sticky; top: 112px; }
  .svc-index ol { border-left: 1px solid var(--line-strong); }
  .svc-index a { display: block; padding: 10px 0 10px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-soft); text-decoration: none; font-weight: 500; transition: color 0.2s, border-color 0.2s; }
  .svc-index a:hover, .svc-index a[aria-current="true"] { color: var(--navy); border-left-color: var(--blue); }
}
.svc-detail { padding: 0 0 clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 112px; }
.svc-detail:last-child { margin-bottom: 0; border-bottom: 0; }
.svc-detail h2 { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); line-height: 1.1; letter-spacing: -0.015em; }
.svc-detail-lead { margin-top: 1rem; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem); max-width: 40em; }
.svc-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 2rem; }
@media (min-width: 720px) { .svc-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.svc-detail h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.8rem; }
.svc-detail-grid p { color: var(--text-soft); margin-bottom: 1.4rem; }
.svc-detail .ticks { margin-bottom: 0; }

/* Página de proceso */
.stages-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) { .stages-layout { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(48px, 7vw, 112px); align-items: start; } .stages-head { position: sticky; top: 120px; } }
.stages-head .section-lead { margin-top: 1rem; }
.stage-list { border-top: 1px solid var(--line-strong); }
.stage-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.stage-n { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--blue); }
.stage-row h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem); color: var(--navy); line-height: 1.2; }
.stage-row p { margin-top: 0.5rem; max-width: 38em; }
.stage-tag { grid-column: 2; justify-self: start; font-size: 0.85rem; font-weight: 600; color: var(--blue); background: #e6f0f9; padding: 4px 10px; border-radius: 2px; }

/* Pasos del candidato */
.cand-steps { margin-top: 1.6rem; }
.cand-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cand-steps .step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 600; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.cand-steps h3 { color: #fff; font-size: 1.05rem; font-weight: 600; padding-top: 8px; }
.cand-steps p { margin: 0.2rem 0 0; font-size: 0.98rem; }

/* Banda de cierre */
.cta { background: var(--navy); color: var(--on-navy); padding: clamp(64px, 8vw, 104px) 0; }
.band + .cta { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: minmax(0, 1.2fr) auto; gap: 64px; } }
.cta p { margin-top: 1rem; max-width: 34em; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--ghost-light svg path { fill: currentColor; stroke: none; }
.btn--light svg { width: 20px; height: 20px; }

/* Contacto: alternativa para candidatos */
.contact-alt { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.contact-alt h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--navy); }
.contact-alt p { margin: 0.4rem 0 0.8rem; color: var(--text-soft); }
@media (min-width: 960px) { .contact-copy { position: sticky; top: 112px; } }

/* ---------- Movimiento: sobrio ---------- */
/* Entrada de la portada: animaciones CSS, sin depender de temporizadores */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.js [data-hero-item] { animation: rise 0.9s var(--ease) both; }
.js [data-hero-item]:nth-child(2) { animation-delay: 0.08s; }
.js [data-hero-item]:nth-child(3) { animation-delay: 0.16s; }
.js [data-hero-item]:nth-child(4) { animation-delay: 0.24s; }
.js [data-hero-photo] { animation: wipe 1.2s var(--ease) 0.1s both; }
.js [data-hero-photo] img { animation: settle 1.6s var(--ease) 0.1s both; }
.js [data-verify] { animation: rise 0.8s var(--ease) 0.6s both; }
.js [data-check] svg { background: #eef2f6; color: #9fb0c3; transition: background-color 0.4s, color 0.4s; }
.js [data-check] svg path { stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s var(--ease); }
.js [data-check].is-checked svg { background: #e6f0f9; color: var(--blue); }
.js [data-check].is-checked svg path { stroke-dashoffset: 0; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .service-list [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
.js .service-list [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
.js .service-list [data-reveal]:nth-child(4) { transition-delay: 0.18s; }

.js [data-timeline] { --progress: 0; }
.js [data-timeline]::after { transition: transform 1.6s var(--ease); }
.js [data-timeline] .step-n { background: #fff; color: var(--text-soft); box-shadow: 0 0 0 6px var(--paper), inset 0 0 0 1px var(--line-strong); }
.js [data-timeline] .step.is-on .step-n { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px var(--paper); }
.js [data-timeline] .step h3, .js [data-timeline] .step p { opacity: 0.45; transition: opacity 0.5s; }
.js [data-timeline] .step.is-on h3, .js [data-timeline] .step.is-on p { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-hero-item], .js [data-verify], .js [data-hero-photo], .js [data-hero-photo] img { animation: none !important; opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Páginas legales ---------- */
.doc { padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.doc .wrap { max-width: calc(820px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--navy); margin: 2.4rem 0 0.7rem; }
.doc p, .doc li { max-width: 68ch; margin-bottom: 0.8rem; }
.doc ul { list-style: disc; padding-left: 1.3rem; }
.doc .updated { color: var(--text-soft); margin-top: 0.8rem; }
.doc .lead { margin-top: 1.2rem; }
.doc .sent-icon { margin-bottom: 1.6rem; }
.footer-legal--solo { margin-top: 0; padding-top: 0; border-top: 0; }
.doc .doc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }
