/* ==========================================================================
   Trabajá con nosotros — Grupo Santa Fe
   Estilos propios sobre Bootstrap 5.3.2 (solo se usa su reboot, grilla y utilidades).
   Escala de espaciado en múltiplos de 4/8 px.
   ========================================================================== */

/* ---------- 1. Fuente display local ----------
   Swiss 721 Heavy (800), tipografía oficial de Grupo Santa Fe. Solo en el H1 del hero, el H1 del
   agradecimiento, el sello del centenario y los años de la línea de tiempo; todo lo demás va en DM Sans. */
@font-face {
  font-family: "Swiss 721";
  src: url("../../fonts/Swiss721BT-Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens de diseño ---------- */
:root {
  /* Marca */
  --gsf-blue: #004181;
  --gsf-blue-700: #00366b;
  --gsf-blue-800: #002b56;
  --gsf-blue-900: #001f3f;
  --gsf-blue-50: #eef4fa;
  --gsf-blue-100: #dbe7f3;
  --gsf-blue-rgb: 0, 65, 129;
  --gsf-red: #da251d;
  --gsf-red-700: #b51d16;
  --gsf-red-50: #fdeeed;

  /* Texto principal / secundario / atenuado (>= 4.5:1 sobre blanco) */
  --ink: #0f1b2d;
  --ink-2: #3e4a5f;
  --ink-3: #5f6b80;

  /* Superficies y bordes */
  --surface: #ffffff;
  --bg: #f4f7fb;
  --line: #dde4ee;
  --line-strong: #c3cedc;
  --line-hover: #9aa9bd;
  --line-control: #7d8aa0;   /* borde de campos y checkbox (>= 3:1 sobre blanco) */

  /* Estados */
  --success: #1c7c4f;
  --success-50: #e8f5ee;
  --success-line: #8cc2a6;
  --danger: #c42a21;
  --danger-50: #fdeeed;
  --danger-line: #f1c4c0;
  --warning: #9a5b00;

  /* Forma, sombra y movimiento */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .04);
  --shadow-2: 0 10px 30px -12px rgba(0, 65, 129, .18), 0 2px 6px rgba(15, 27, 45, .05);
  --focus-ring: 0 0 0 3px rgba(0, 65, 129, .28);
  --focus-ring-danger: 0 0 0 3px rgba(196, 42, 33, .22);
  /* Anillo >= 3:1 para controles donde el anillo es la única señal de foco */
  --focus-ring-strong: 0 0 0 3px rgba(0, 65, 129, .6);
  --focus-ring-danger-strong: 0 0 0 3px rgba(196, 42, 33, .7);

  /* Movimiento: duraciones y curvas únicas para toda la página */
  --dur-1: 150ms;   /* hover, press */
  --dur-2: 220ms;   /* cambios de estado, entrada de paso */
  --dur-3: 320ms;   /* pops, tarjeta del CV */
  --dur-4: 480ms;   /* revelado al scroll */
  --dur-5: 600ms;   /* título del hero */
  --dur-ambient: 1600ms; /* excepción documentada: zoom ambiental de la foto del hero (una sola vez) */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-pop: cubic-bezier(.34, 1.4, .64, 1);   /* leve rebote: checks y sellos */
  --ease-ambient: cubic-bezier(.25, .6, .3, 1);  /* zoom ambiental del hero */
  --ease: var(--ease-out);                       /* compatibilidad con las reglas existentes */
  --stagger: 60ms;
  --reveal-y: 16px;

  /* Superficies y layout
     Sistema único de alineación: todas las secciones usan el mismo .container de Bootstrap
     (mismos max-width y canaletas de 16 px por lado en cada breakpoint) y el mismo --section-y arriba
     y abajo. Los encabezados de sección se centran en un ancho de --head-w; el formulario, en una
     columna centrada de --form-w. */
  --radius-xl: 24px;
  --header-h: 72px;                              /* 64px en < 768 */
  --section-y: clamp(64px, 40px + 5vw, 112px);
  --measure: 60ch;
  --head-w: 760px;
  --form-w: 880px;

  /* Tipografía */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Swiss 721", "DM Sans", system-ui, sans-serif;

  /* Variables de Bootstrap alineadas con la marca */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: var(--gsf-blue-rgb);
  --bs-link-hover-color-rgb: 0, 54, 107;
  --bs-focus-ring-color: rgba(0, 65, 129, .28);

  /* Íconos SVG embebidos (chevron del select, calendario, check, alerta) */
  --svg-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --svg-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004181' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  --svg-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --svg-check-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c7c4f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --svg-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
}

/* ---------- 3. Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px); /* el header fijo no tapa anclas ni el foco (WCAG 2.4.11) */
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

/* Respaldo si no carga Bootstrap del CDN: [hidden] y .visually-hidden (mismas reglas que Bootstrap) */
[hidden] {
  display: none !important;
}

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

::selection {
  background: var(--gsf-blue-100);
  color: var(--gsf-blue-900);
}

a {
  color: var(--gsf-blue);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--gsf-blue-700);
}

a:focus-visible {
  outline: 2px solid var(--gsf-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Contenedor de Bootstrap con canaleta lateral de 16 px */
.container {
  --bs-gutter-x: 2rem;
}

/* Sprite de íconos: nunca se muestra */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Ícono genérico (hereda el color del texto) */
.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Marca de campo obligatorio */
.req {
  margin-left: 2px;
  color: var(--gsf-red);
  font-weight: 700;
}

/* Enlace para saltar al contenido (visible solo con foco) */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1080;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--gsf-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .15s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: -4px;
  box-shadow: 0 0 0 3px var(--gsf-blue-100);
}

/* Respaldo sin JavaScript: lo que solo funciona con app.js queda oculto */
.no-js .steps-nav,
.no-js [data-step-nav],
.no-js [data-prev],
.no-js .btn-add,
.no-js .areas__count,
.no-js .dropzone__empty {
  display: none !important;
}

/* ---------- 4. Encabezado del sitio (fijo arriba) ---------- */
/* Centinela al inicio de la página: cuando sale de la vista, el header muestra su sombra */
.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Debajo de SweetAlert2 (1060) y del skip link (1080) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Sombra al scrollear: box-shadow en .site-header.is-stuck (sección "Profundidad"). Sin
   pseudo-elemento debajo del header: no deja ninguna franja sobre el hero. */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px 16px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* objetivo táctil también con el logo móvil de 34 px */
  padding: 4px 0;
  border-radius: var(--radius-sm);
}

.site-header__logo {
  display: block;
  width: auto;
  height: 40px;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}

.site-header__link:hover {
  color: var(--gsf-blue);
}

.site-header__link .icon {
  width: 16px;
  height: 16px;
  transition: transform .15s var(--ease);
}

.site-header__link:hover .icon {
  transform: translate(1px, -1px);
}

/* ---------- 5. Hero ----------
   Todo centrado sobre el eje de la página: slogan (sello + texto), H1, acento rojo, bajada y acciones. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Ocupa la pantalla visible debajo del header (más recorrido para el parallax), con tope de
     1000 px para pantallas muy altas y piso de 520 px. vh: respaldo de svh. */
  min-height: clamp(520px, calc(100vh - var(--header-h)), 1000px);
  min-height: clamp(520px, calc(100svh - var(--header-h)), 1000px);
  padding: clamp(64px, 9vh, 96px) 0;
  background: var(--gsf-blue-900);
  color: #fff;
  text-align: center;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  z-index: -2;
}

.hero__media img {
  object-fit: cover;
  object-position: 50% 40%;
}

/* Capa azul institucional casi uniforme, un poco más opaca en el centro (donde va el texto) y
   apenas más liviana hacia los bordes: garantiza contraste AA del texto centrado en cualquier punto
   de la foto (el peor caso, un píxel blanco puro bajo la capa, queda por encima de 4,5:1). */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 75% at 50% 50%, rgba(0, 31, 63, .88) 0%, rgba(0, 34, 68, .82) 60%, rgba(0, 43, 86, .74) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
}

/* Columna centrada del mismo ancho que los encabezados de sección */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--head-w);
  margin: 0 auto;
}

/* Slogan: sello "100 años" + "al cuidado de tu salud · 1926–2026" */
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .86);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero__eyebrow-text {
  min-width: 0;
}

/* Convocatoria: display en tipo oración, centrada y balanceada */
.hero__title {
  max-width: 16ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.015em;
  text-transform: none;
  text-wrap: balance;
}

/* Acento rojo fino centrado bajo el título (crece desde el centro al entrar: ver Animaciones) */
.hero__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 2px;
  background: var(--gsf-red);
  transform-origin: center;
}

/* Ancho de línea cómodo (~65 caracteres) y líneas balanceadas: sin palabras sueltas */
.hero__lead {
  max-width: 34em;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.6;
  text-wrap: balance;
}

/* Par de acciones simétrico: dos columnas de igual ancho (el del botón más largo), centradas.
   En móvil se apilan a ancho completo (ver Responsive). */
.hero__actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 36px;
}

/* El CTA ocupa toda su columna, con el contenido centrado */
.hero__actions .btn-cta {
  justify-content: center;
}

/* Acción secundaria: "Conocé nuestra historia". Botón con borde, mismo alto y tipografía que el CTA
   (el borde de 2 px se descuenta del padding: 52 px de alto en los dos). */
.hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--dur-1), border-color var(--dur-1), transform var(--dur-1) var(--ease-out);
}

.hero__link:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.hero__link:active {
  transform: translateY(1px);
}

.hero__link .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-2) var(--ease-out);
}

.hero__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- 6. Botones ---------- */

/* CTA del hero (rojo de marca) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--gsf-red);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(218, 37, 29, .6); /* fija: la sombra no se anima */
  transition: background-color var(--dur-1), transform var(--dur-1) var(--ease-out);
}

.btn-cta .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-2) var(--ease-out);
}

.btn-cta:hover {
  background: var(--gsf-red-700);
  color: #fff;
}

.btn-cta:active {
  transform: translateY(1px);
}

.btn-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* CTA chico (encabezado): sin sombra para no competir con el del hero */
.btn-cta--sm {
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: .8125rem;
  box-shadow: none;
}

/* Sobre fondo blanco el anillo de foco blanco no se ve: va en azul */
.site-header .btn-cta:focus-visible {
  outline-color: var(--gsf-blue);
}

/* CTA del encabezado: aparece solo cuando ni el hero ni el formulario están a la vista.
   app.js lo controla con .site-header--auto / .has-cta (estado inicial con JS: ver la regla .js más abajo).
   Conserva su espacio (visibility), así que no mueve el layout; visibility lo saca del orden de tabulación. */
.site-header__cta {
  transition: background-color var(--dur-1), opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s;
}

.site-header--auto:not(.has-cta) .site-header__cta {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  visibility: hidden;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}

/* Con JS (.js se pone en el <head>), el CTA arranca oculto desde el primer frame y sin transición,
   hasta que app.js toma el control: nunca aparece y se desvanece al cargar (ni dos rojos a la vista).
   Respaldo: si app.js no llega a ejecutarse, aparece a los 4 s. Sin JS (.no-js) queda siempre visible. */
.js .site-header:not(.site-header--auto) .site-header__cta {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  visibility: hidden;
  transition: none;
  animation: gsf-cta-respaldo 0s 4s forwards;
}

@keyframes gsf-cta-respaldo {
  to { opacity: 1; transform: none; visibility: visible; }
}

/* La regla "< 576 px: .btn-cta a todo el ancho" no aplica al CTA del encabezado */
.site-header .site-header__cta {
  width: auto;
}

/* Botones del formulario (también los usa SweetAlert2) */
.btn-gsf {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform var(--dur-1) var(--ease-out), opacity .15s;
}

.btn-gsf .icon {
  width: 18px;
  height: 18px;
  transition: transform .2s var(--ease);
}

.btn-gsf:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gsf-blue);
}

.btn-gsf:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-gsf:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.btn-gsf--primary {
  border-color: var(--gsf-blue);
  background: var(--gsf-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 31, 63, .18);
}

.btn-gsf--primary:hover:not(:disabled) {
  border-color: var(--gsf-blue-700);
  background: var(--gsf-blue-700);
  color: #fff;
}

.btn-gsf--primary:active:not(:disabled) {
  border-color: var(--gsf-blue-800);
  background: var(--gsf-blue-800);
}

.btn-gsf--primary:hover:not(:disabled) .icon-next {
  transform: translateX(2px);
}

.btn-gsf--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-gsf--secondary:hover:not(:disabled) {
  border-color: var(--gsf-blue);
  background: var(--gsf-blue-50);
  color: var(--gsf-blue);
}

.btn-gsf--secondary:active:not(:disabled) {
  background: var(--gsf-blue-100);
}

.btn-gsf--secondary:hover:not(:disabled) .icon-prev {
  transform: translateX(-2px);
}

/* Botón de envío: ancho mínimo fijo para que "Enviando…" no mueva el layout */
.btn-gsf--submit {
  min-width: 14rem;
}

/* Estado "enviando" del botón principal */
.btn-gsf__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: gsf-spin .7s linear infinite;
}

.btn-gsf.is-loading {
  cursor: progress;
}

.btn-gsf.is-loading:disabled {
  opacity: .85;
}

.btn-gsf.is-loading .btn-gsf__spinner {
  display: inline-block;
}

.btn-gsf.is-loading .icon {
  display: none;
}

/* "Agregar capacitación / antecedente" */
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 12px 0 0 42px;
  padding: 9px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gsf-blue);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.btn-add .icon {
  width: 18px;
  height: 18px;
}

.btn-add:hover:not(:disabled) {
  border-style: solid;
  border-color: var(--gsf-blue);
  background: var(--gsf-blue-50);
}

.btn-add:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring-strong);
}

.btn-add:disabled {
  border-color: var(--line);
  color: var(--ink-3);
  cursor: not-allowed;
}

.btn-add:disabled .icon {
  display: none;
}

/* Botones de texto (tarjeta del CV) */
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gsf-blue);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}

.btn-text .icon {
  width: 16px;
  height: 16px;
}

.btn-text:hover {
  background: var(--gsf-blue-50);
}

.btn-text:active {
  background: var(--gsf-blue-100);
}

.btn-text:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring-strong);
}

.btn-text--danger {
  color: var(--danger);
}

.btn-text--danger:hover {
  background: var(--danger-50);
}

.btn-text--danger:active {
  background: #f9dcd9;
}

.btn-text--danger:focus-visible {
  box-shadow: var(--focus-ring-danger-strong);
}

/* ---------- 7. Secciones: base común ----------
   Mismo ritmo vertical en todas (--section-y arriba y abajo) y encabezados centrados
   (rótulo, H2 y bajada) con el mismo ancho y el mismo espaciado. */
.section {
  padding-block: var(--section-y);
}

.section--white {
  background: var(--surface);
}

.section-head {
  max-width: var(--head-w);
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}

/* Rótulo de sección: solo azul (el rojo se reserva para CTA y acentos) */
.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--gsf-blue);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-title {
  max-width: 28ch;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section-lead {
  max-width: var(--measure);
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty; /* evita una palabra sola en la última línea */
}

/* Sello tipográfico del centenario: insignia sobria (no es un logo oficial) */
.seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--gsf-blue);
  text-align: center;
}

.seal__num {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.seal__label {
  padding-left: .28em; /* compensa el tracking para centrar */
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

/* Variante en línea (slogan del hero, sobre azul) */
.seal--inline {
  flex-direction: row;
  align-items: baseline;    /* "100" y "AÑOS" apoyados en la misma línea base */
  gap: 6px;
  padding: 6px 10px 6px 12px; /* el tracking final de "AÑOS" suma ~2px a la derecha */
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0;
}

.seal--inline .seal__num {
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: -.01em;
}

.seal--inline .seal__label {
  padding-left: 0;
  line-height: 1;
  /* Centro óptico: "AÑOS" es más bajo que "100"; apoyado en la misma línea base quedaba 2,6 px
     por debajo del centro del óvalo (medido en píxeles). Se sube esa medida. */
  position: relative;
  top: -.24em;
  font-size: .6875rem;
  letter-spacing: .16em;
}

/* Variante grande (Nuestra historia) */
.seal--lg {
  width: clamp(9rem, 6rem + 10vw, 12.5rem);
  aspect-ratio: 1;
  border: 2px solid var(--gsf-blue);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--gsf-blue-100);
}

.seal--lg .seal__num {
  font-size: clamp(3rem, 2rem + 3.5vw, 4.5rem);
}

.seal--lg .seal__label {
  margin-top: 6px;
  color: var(--gsf-blue);
}

.seal__years {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.seal__years::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto 8px;
  border-radius: 1px;
  background: var(--gsf-red);
}

/* ---------- 8. Nuestra historia ----------
   Simétrica sobre el eje: sello centrado arriba, encabezado centrado y grilla de hitos. */
.story__seal {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 3vw, 40px);
}

/* Línea de tiempo en grilla simétrica: 1 columna en móvil, 2 desde 576 px y 4 × 2 desde 992 px.
   Con 2 o más columnas, todas las celdas del mismo alto (filas 1fr = la más alta) con año, filete y
   texto centrados; el contenido arranca arriba para que los años de una fila queden alineados.
   En una sola columna no hay filas que alinear: cada hito toma su alto natural (sin huecos). */
.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

.timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-align: center;
}

@media (min-width: 576px) {
  .timeline__item {
    padding: 28px 20px 30px;
  }
}

.timeline__year {
  display: block;
  color: var(--gsf-blue);
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* Filete corto centrado entre el año y el texto (mismo recurso que el sello) */
.timeline__year::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 1px;
  background: var(--line-strong);
}

.timeline__text {
  max-width: 32ch;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.5;
  text-wrap: balance; /* textos cortos y centrados: líneas parejas, sin "centenario." sola abajo */
}

/* 2026: el centenario (rojo como texto solo en tamaño grande: 4,9:1) */
.timeline__item--hoy {
  border-color: var(--danger-line);
}

.timeline__item--hoy .timeline__year {
  color: var(--gsf-red);
}

.timeline__item--hoy .timeline__year::after {
  background: var(--gsf-red);
}

/* ---------- 9. Por qué sumarte ----------
   4 columnas iguales desde 992 px (mismo corte que la línea de tiempo de arriba), 2 × 2 desde 576 y
   1 en móvil. Tarjetas de igual alto con ícono, título y texto centrados; con subgrid, los textos de
   una misma fila arrancan a la misma altura aunque un título ocupe dos líneas, y cada título va al pie
   de su fila: la distancia título–texto es la misma en todas las tarjetas. */
.reasons__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 3 tarjetas: 1 columna en móvil y 3 iguales desde tablet (nunca 2 + 1). */
@media (min-width: 768px) {
  .reasons__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.reason-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  align-content: start;
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

/* Entre 992 y 1199 px las 4 columnas miden 214 px: menos canaleta interna para el texto */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .reason-card {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 576px) {
    .reason-card {
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
}

.reason-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gsf-blue-50);
  color: var(--gsf-blue);
}

.reason-card__icon .icon {
  width: 24px;
  height: 24px;
}

.reason-card__title {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
  align-self: end; /* con subgrid: un título de una línea queda junto a su texto, no sobre un hueco */
}

.reason-card__text {
  max-width: 36ch;
  margin: 0;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- 10. Sección del formulario ----------
   Usa .section (mismo ritmo) y .container (mismo ancho y canaletas); el encabezado, el stepper y la
   tarjeta van en una columna centrada de --form-w, simétrica respecto del eje de la página. */
.apply {
  overflow-x: hidden; /* respaldo de clip */
  overflow-x: clip;   /* el desplazamiento lateral de los pasos nunca genera scroll horizontal */
}

.apply__col {
  max-width: var(--form-w);
  margin: 0 auto;
}

/* Bajada corta del formulario: líneas balanceadas (sin "(máx. 5 MB)." sola en la última línea) */
.apply__head .section-lead {
  text-wrap: balance;
}

/* "Los campos marcados con * son obligatorios.": discreto, bajo la bajada */
.apply__lead {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: .875rem;
  text-wrap: balance;
}

/* Error del servidor sin JavaScript, arriba de todo (M23) */
.page-alert {
  margin: 24px 0 0;
}

/* Avisos (error del servidor sin JS, aviso de noscript) */
.alert-gsf {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .9375rem;
  line-height: 1.5;
}

.alert-gsf .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.alert-gsf p {
  margin: 0;
}

.alert-gsf__title {
  font-weight: 700;
}

.alert-gsf--danger {
  border-color: var(--danger-line);
  background: var(--danger-50);
  color: #8f1d16;
}

.alert-gsf--info {
  border-color: var(--gsf-blue-100);
  background: var(--gsf-blue-50);
  color: var(--gsf-blue-800);
}

/* ---------- 11. Stepper ---------- */
.steps-nav {
  margin-bottom: 24px;
  scroll-margin-top: 8px; /* se suma al scroll-padding-top del header fijo */
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper__item {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Línea conectora entre el paso anterior y este: pista gris (::before) y relleno azul (::after, scaleX) */
.stepper__item + .stepper__item::before,
.stepper__item + .stepper__item::after {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(-50% + 28px);
  right: calc(50% + 28px);
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.stepper__item + .stepper__item::after {
  background: var(--gsf-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-3) var(--ease-out);
}

.stepper__item.is-reached::after {
  transform: scaleX(1);
}

.stepper__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px; /* objetivo táctil también en móvil (solo el círculo) */
  max-width: 100%;
  padding: 0 4px 4px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-3);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.stepper__btn:disabled {
  cursor: default;
}

/* El anillo va en el círculo; el outline transparente aparece en alto contraste */
.stepper__btn:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.stepper__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-3);
  font-size: .9375rem;
  font-weight: 700;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.stepper__check {
  display: none;
  width: 18px;
  height: 18px;
  stroke-width: 2.75;
}

.stepper__btn:not(:disabled):hover .stepper__dot {
  border-color: var(--gsf-blue);
}

.stepper__btn:not(:disabled):hover .stepper__label {
  color: var(--gsf-blue);
}

.stepper__btn:focus-visible .stepper__dot {
  box-shadow: var(--focus-ring-strong);
}

/* Paso visitado (se puede volver) */
.stepper__item.is-reached .stepper__dot {
  border-color: var(--gsf-blue);
  color: var(--gsf-blue);
}

/* Paso completado: check azul */
.stepper__item.is-complete .stepper__dot {
  border-color: var(--gsf-blue);
  background: var(--gsf-blue-50);
  color: var(--gsf-blue);
}

.stepper__item.is-complete .stepper__num {
  display: none;
}

.stepper__item.is-complete .stepper__check {
  display: block;
}

.stepper__item.is-complete .stepper__btn {
  color: var(--ink-2);
}

/* Paso actual: círculo azul relleno */
.stepper__item.is-current .stepper__dot {
  border-color: var(--gsf-blue);
  background: var(--gsf-blue);
  color: #fff;
  box-shadow: 0 0 0 4px var(--gsf-blue-100);
}

.stepper__item.is-current .stepper__btn {
  color: var(--ink);
  font-weight: 600;
}

.stepper__item.is-current .stepper__btn:focus-visible .stepper__dot {
  box-shadow: 0 0 0 4px var(--gsf-blue-100), 0 0 0 6px var(--gsf-blue);
}

/* Versión móvil: texto del paso y barra de progreso */
.stepper-mobile {
  display: none;
  margin-top: 16px;
}

.stepper-mobile__text {
  margin: 0 0 8px;
  text-align: center;
  color: var(--ink-2);
  font-size: .9375rem;
}

.stepper-mobile__text strong {
  color: var(--gsf-blue);
  font-weight: 700;
}

.progress-gsf {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

/* Avanza con scaleX (no con width: no recalcula layout) */
.progress-gsf__bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gsf-blue);
  transform-origin: left center;
  transition: transform var(--dur-3) var(--ease-out);
}

/* ---------- 12. Tarjetas y pasos ---------- */
.card-gsf {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.step {
  min-width: 0;
  margin: 0 0 24px;
  padding: clamp(20px, 12px + 2.5vw, 40px);
}

.step:last-child {
  margin-bottom: 0;
}

/* Con el stepper activo se ve un paso por vez: sin margen inferior, así #postulacion tiene el mismo
   padding arriba y abajo en los 4 pasos (el margen queda solo para los pasos apilados sin JS) */
#steps-nav:not([hidden]) ~ #Registro .step {
  margin-bottom: 0;
}

.step__head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.step__kicker {
  margin: 0 0 6px;
  color: var(--gsf-blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.step__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.step__title:focus {
  outline: none;
}

.step__desc {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: .9375rem;
  text-wrap: pretty;
}

.step__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--gsf-blue-50);
  color: var(--gsf-blue-800);
  font-size: .875rem;
  line-height: 1.5;
}

.step__note .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* Bloques apilados del paso 3 */
.step__stack {
  display: grid;
  gap: 32px;
}

.step__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step__footer .btn-gsf--primary {
  margin-left: auto;
}

/* "Revisá tu postulación" (paso 4): resumen de lo cargado con botones para editar cada paso */
.review {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.review__title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.review__grupos {
  display: grid;
  gap: 12px;
}

.review__group {
  padding: 12px 16px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.review__group-title {
  margin: 0;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
}

.review__head .btn-text {
  margin-right: -8px;
}

.review__list {
  margin: 0;
}

.review__row {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 2px 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.review__row:first-child {
  border-top: 0;
}

.review__row dt {
  color: var(--ink-3);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.review__row dd {
  margin: 0;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.review__vacio {
  color: var(--ink-3);
}

@media (max-width: 575.98px) {
  .review__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Chips de áreas (revisión del paso 4 y resumen del agradecimiento) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--gsf-blue-100);
  border-radius: 999px;
  background: var(--gsf-blue-50);
  color: var(--gsf-blue-800);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- 13. Campos ---------- */
.field {
  position: relative;
  min-width: 0;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.field__hint {
  color: var(--ink-3);
  font-weight: 400;
}

.field__help {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.45;
}

.control {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 1px rgba(15, 27, 45, .03);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.control::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.control:hover {
  border-color: var(--ink-3);
}

.control:focus {
  border-color: var(--gsf-blue);
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}

.control:disabled {
  border-color: var(--line);
  background-color: var(--bg);
  color: var(--ink-3);
  cursor: not-allowed;
}

/* Select con chevron propio */
select.control {
  padding-right: 44px;
  background-image: var(--svg-chevron);
  background-position: right 14px center;
  background-size: 18px 18px;
  cursor: pointer;
}

select.control:has(option[value=""]:checked) {
  color: var(--ink-3);
}

select.control option {
  color: var(--ink);
}

/* Fecha: ícono de calendario propio y alineación a la izquierda (iOS) */
.control[type="date"] {
  position: relative;
}

.control[type="date"]::-webkit-date-and-time-value {
  margin: 0;
  text-align: left;
}

.control[type="date"]::-webkit-datetime-edit {
  padding: 0;
}

.control[type="date"]:invalid:not(:focus)::-webkit-datetime-edit {
  color: var(--ink-3);
}

.control[type="date"]::-webkit-calendar-picker-indicator {
  width: 20px;
  height: 20px;
  margin: -4px -6px -4px 0; /* el área táctil extra no agranda el alto del campo */
  padding: 4px;
  border-radius: 6px;
  background: var(--svg-calendar) center / 18px 18px no-repeat;
  color: transparent;
  opacity: 1;
  cursor: pointer;
  transition: background-color .15s;
}

.control[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: var(--gsf-blue-50);
}

/* Área de texto */
textarea.control {
  min-height: 128px;
  resize: vertical;
}

.field__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.45;
}

.field__counter {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.field__counter.is-near {
  color: var(--warning);
  font-weight: 600;
}

.field__counter.is-max {
  color: var(--danger);
  font-weight: 600;
}

/* Estado inválido */
.field--invalid .control {
  border-color: var(--danger);
}

.field--invalid .control:focus {
  border-color: var(--danger);
  box-shadow: var(--focus-ring-danger);
}

/* Estado válido (solo tras interactuar; el borde mantiene >= 3:1 como el neutro) */
.field--valid .control {
  border-color: var(--success);
}

.field--valid .control:focus {
  border-color: var(--gsf-blue);
}

.field--valid input.control:not([type="date"]) {
  padding-right: 42px;
  background-image: var(--svg-check-ok);
  background-position: right 14px center;
  background-size: 18px 18px;
}

/* Mensaje de error del campo */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  color: var(--danger);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.field-error::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background-color: currentColor;
  -webkit-mask: var(--svg-alert) center / contain no-repeat;
  mask: var(--svg-alert) center / contain no-repeat;
}

/* ---------- 14. Repetidores (capacitaciones / antecedentes) ---------- */
.repeater__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.repeater__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

/* La primera fila no tiene botón para quitar: el campo ocupa todo el ancho */
.repeater__row > .control:last-child {
  grid-column: 2 / -1;
}

.repeater__row--nueva {
  animation: gsf-fade-up var(--dur-2) var(--ease-out) both;
}

.repeater__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gsf-blue-50);
  color: var(--gsf-blue);
  font-size: .875rem;
  font-weight: 700;
}

.repeater__remove {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}

.repeater__remove .icon {
  width: 18px;
  height: 18px;
}

.repeater__remove:hover {
  background: var(--danger-50);
  color: var(--danger);
}

.repeater__remove:active {
  background: #f9dcd9;
}

.repeater__remove:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring-strong);
}

/* ---------- 15. Áreas de interés (tiles) ---------- */
.areas {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.areas__legend {
  float: none;
  width: auto;
  margin: 0 0 2px;
  padding: 0;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.areas__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.areas__meta .field__help {
  margin: 0;
}

.areas__count {
  margin: 0;
  color: var(--ink-3);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.areas__count.is-active {
  color: var(--gsf-blue);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 10px;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background-color .15s, box-shadow .15s, color .15s, transform var(--dur-1) var(--ease-out);
}

.tile:hover {
  border-color: var(--line-hover);
  background: #fafcfe;
}


.tile__label {
  min-width: 0;
}

/* Checkbox real con estilo propio */
.tile__input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-control);
  border-radius: 6px;
  background: var(--surface) center / 14px 14px no-repeat;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.tile:hover .tile__input {
  border-color: var(--ink-3);
}

.tile__input:checked {
  border-color: var(--gsf-blue);
  background-color: var(--gsf-blue);
  background-image: none; /* el tilde es el SVG superpuesto (.tile__tick), que entra con escala */
}

/* Tilde sobre el checkbox de 20 px: left = 14 px de padding + 3 px (se mide dentro del borde) */
.tile__tick {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-3) var(--ease-pop);
}

.tile__input:checked + .tile__tick {
  opacity: 1;
  transform: scale(1);
}

.tile__input:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring-strong);
}

/* Tile seleccionado (con :has o con la clase que agrega app.js) */
.tile.is-checked,
.tile:has(.tile__input:checked) {
  border-color: var(--gsf-blue);
  background: var(--gsf-blue-50);
  color: var(--gsf-blue-800);
  box-shadow: inset 0 0 0 1px var(--gsf-blue);
}

.tile:has(.tile__input:focus-visible) {
  box-shadow: var(--focus-ring-strong);
}

.tile:has(.tile__input:checked:focus-visible) {
  box-shadow: inset 0 0 0 1px var(--gsf-blue), var(--focus-ring-strong);
}

/* ---------- 16. Carga del CV ---------- */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fafcfe;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}

/* Sin JavaScript: input de archivo nativo, prolijo */
.dropzone__input {
  display: block;
  width: 100%;
  padding: 16px 16px 0;
  color: var(--ink-2);
  font-family: inherit;
  font-size: .9375rem;
}

.dropzone__input::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dropzone__input:focus-visible {
  outline: 2px solid var(--gsf-blue);
  outline-offset: 2px;
}

/* Con JavaScript: el input queda accesible por teclado pero visualmente oculto */
.dropzone--enhanced .dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dropzone--enhanced:not(.has-file) {
  cursor: pointer;
}

.dropzone--enhanced:not(.has-file):hover {
  border-color: var(--gsf-blue);
  background: var(--gsf-blue-50);
}

.dropzone--enhanced:not(.has-file):focus-within,
.dropzone--enhanced.has-file:has(.dropzone__input:focus-visible) {
  border-color: var(--gsf-blue);
  outline: 2px solid transparent; /* visible en alto contraste (el input está recortado) */
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.dropzone.is-dragover {
  border-style: solid;
  border-color: var(--gsf-blue);
  background: var(--gsf-blue-50);
  box-shadow: var(--focus-ring);
}

.field--invalid .dropzone {
  border-color: var(--danger);
  background: #fffafa;
}

.field--invalid .dropzone:focus-within {
  box-shadow: var(--focus-ring-danger);
}

.dropzone__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 4px;
  text-align: center;
}

.dropzone__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--gsf-blue);
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease);
}

.dropzone__icon .icon {
  width: 24px;
  height: 24px;
}

/* Anillo del pulso al arrastrar un archivo encima (ver Animaciones) */
.dropzone__icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid var(--gsf-blue);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Los dos textos ocupan la misma celda: cambiar de uno a otro no mueve el layout */
.dropzone__title {
  display: grid;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.dropzone__title > span {
  grid-area: 1 / 1;
}

.dropzone__title--drag,
.dropzone.is-dragover .dropzone__title--idle {
  visibility: hidden;
}

.dropzone.is-dragover .dropzone__title--drag {
  visibility: visible;
  color: var(--gsf-blue);
  font-weight: 700;
}

.dropzone__link {
  color: var(--gsf-blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.dropzone__hint {
  margin: 0;
  padding: 8px 16px 16px;
  color: var(--ink-3);
  font-size: .8125rem;
}

.dropzone--enhanced .dropzone__hint {
  padding: 4px 24px 36px;
  text-align: center;
}

/* Con archivo elegido: la zona pasa a ser una tarjeta */
.dropzone.has-file {
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
}

.field--valid .dropzone.has-file {
  border-color: var(--success-line);
}

.dropzone.has-file .dropzone__hint {
  display: none;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.file-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gsf-blue-50);
  color: var(--gsf-blue);
}

.file-card__icon .icon {
  width: 24px;
  height: 24px;
}

/* Miniatura del CV: hoja vertical con sombra (proporción A4) */
.file-card {
  flex-wrap: wrap;
}

/* Vista previa a todo el ancho de la tarjeta: parte superior de la 1.ª página (alto acotado). */
.file-card__thumb {
  position: relative;
  flex: 1 0 calc(100% + 32px);
  width: calc(100% + 32px);
  height: clamp(180px, 34vw, 300px);
  /* De borde a borde de la tarjeta: anula su padding (16 px) arriba y a los costados */
  margin: -16px -16px 0;
  border-radius: calc(var(--radius) - 1.5px) calc(var(--radius) - 1.5px) 0 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  overflow: hidden;
}

.file-card__thumb canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background: #fff;
}

.file-card__thumb.has-preview .icon {
  visibility: hidden;
}

.file-card__info {
  flex: 1 1 auto;
  min-width: 0;
}

.file-card__name {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: .8125rem;
}

.file-card__meta .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
  stroke-width: 2.5;
}

.file-card__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

/* Aviso de reCAPTCHA (obligatorio al ocultar el badge flotante) */
.recaptcha-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.55;
}

.recaptcha-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--gsf-blue);
}

.recaptcha-note a {
  color: var(--ink-2);
  font-weight: 500;
}

.recaptcha-note a:hover {
  color: var(--gsf-blue);
}

.grecaptcha-badge {
  visibility: hidden;
}

/* ---------- 17. Agradecimiento ---------- */
.thanks {
  padding: var(--section-y) 0; /* mismo ritmo que el resto de las secciones */
  background: linear-gradient(180deg, var(--gsf-blue-50) 0%, var(--bg) 70%);
}

.thanks:focus {
  outline: none;
}

.thanks__card {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px);
  text-align: center;
}

.thanks__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  color: var(--success);
}

.thanks__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Trazo del círculo y del check que se dibujan al aparecer */
.thanks__circle {
  fill: var(--success-50);
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  transform: rotate(-90deg); /* el trazo arranca arriba */
  transform-origin: 26px 26px;
  animation: gsf-draw var(--dur-5) 100ms var(--ease-out) forwards;
}

.thanks__check {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: gsf-draw var(--dur-3) 550ms var(--ease-out) forwards;
}

.thanks__title {
  margin: 0 0 16px;
  color: var(--gsf-blue-800);
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.thanks__title:focus {
  outline: none;
}

.thanks__text {
  max-width: 30em;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: balance; /* textos cortos y centrados: sin "búsqueda." ni "correctamente." solas abajo */
}

.thanks__text + .thanks__text {
  margin-top: 4px;
}

/* Resumen del envío (áreas en chips y nombre del PDF; solo con JavaScript) */
.thanks__summary {
  display: grid;
  gap: 12px;
  max-width: 30rem; /* mismo ancho que la nota de abajo */
  margin: 24px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.thanks__summary-row dt {
  margin-bottom: 4px;
  color: var(--ink-3);
  font-size: .8125rem;
  font-weight: 600;
}

.thanks__summary-row dd {
  margin: 0;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* "Si querés actualizar tus datos…" */
.thanks__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 30rem;
  margin: 20px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.5;
  text-align: left;
}

.thanks__note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--gsf-blue);
}

.thanks__actions {
  margin-top: 32px;
}

/* ---------- 18. Pie ----------
   Centrado y apilado hasta 1199 px. Desde 1200, tres columnas equilibradas (logo | textos | enlaces)
   con los laterales de igual ancho: el bloque de textos queda exactamente sobre el eje de la página. */
.site-footer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  font-size: .8125rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: 22px;
}

.site-footer__text {
  min-width: 0;
  text-wrap: balance; /* en móvil, "reservados." no queda sola en la segunda línea */
}

.site-footer__copy {
  margin: 0;
}

.site-footer__seal {
  margin: 0;
  color: var(--ink-3);
  font-size: .75rem;
  letter-spacing: .02em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--gsf-blue);
  text-decoration: underline;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Desde tablet: logo + texto a la izquierda, redes y web a la derecha */
@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
  }

  .site-footer__brand {
    flex-direction: row;
    gap: 16px;
  }

  .site-footer__links {
    justify-content: flex-end;
  }

  /* Con mouse no hace falta el alto táctil de 44 px */
  .site-footer__link {
    min-height: 32px;
  }

  .site-footer {
    padding: 14px 0;
  }
}

/* ---------- 19. SweetAlert2 con estilos de marca ---------- */
.swal2-container.swal2-backdrop-show {
  background: rgba(0, 31, 63, .5);
}

.gsf-swal {
  width: min(30rem, 100%);
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  color: var(--ink);
  font-family: var(--font-sans);
  box-shadow: 0 30px 60px -20px rgba(0, 31, 63, .35), 0 2px 8px rgba(15, 27, 45, .08);
}

.gsf-swal .swal2-icon {
  margin: 0 auto 20px;
  font-size: .8rem;
}

.gsf-swal__title {
  padding: 0;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.gsf-swal__text {
  margin: 10px 0 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}

.gsf-swal__actions {
  gap: 12px;
  width: 100%;
  margin: 28px 0 0;
}

.gsf-swal__actions .btn-gsf {
  min-width: 9.5rem;
}

.gsf-swal .swal2-loader {
  width: 2.25em;
  height: 2.25em;
  margin: 0;
  border-width: .25em;
  border-color: var(--gsf-blue) transparent var(--gsf-blue) transparent;
}

/* Entrada / salida del popup */
.gsf-swal--in {
  animation: gsf-swal-in .22s var(--ease) both;
}

.gsf-swal--out {
  animation: gsf-swal-out .15s ease-in both;
}

/* Resumen de la confirmación */
.gsf-resumen {
  margin-top: 4px;
  text-align: left;
}

.gsf-resumen__lista {
  margin: 0;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.gsf-resumen__fila {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.gsf-resumen__fila:last-child {
  border-bottom: 0;
}

.gsf-resumen__fila dt {
  color: var(--ink-3);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
}

.gsf-resumen__fila dd {
  margin: 0;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.gsf-resumen__nota {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.5;
}

.gsf-resumen__nota .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--gsf-blue);
}

/* Progreso de subida dentro del popup de carga */
.gsf-progreso {
  margin-top: 4px;
}

.gsf-progreso__texto {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}

.gsf-progreso__pista {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--gsf-blue-50);
}

.gsf-progreso__barra {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gsf-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-2) linear; /* lineal: sigue el progreso real de la subida */
}

/* ---------- 20. Animaciones ----------
   Solo transform y opacity (se componen en la GPU), con los tokens --dur-* y --ease-*.
   Excepciones: el trazo del check del agradecimiento (stroke-dashoffset) y los cambios de color de
   estado de 150 ms. Sin will-change estático: las
   animaciones de transform/opacity ya promueven la capa mientras corren. Sin bucles, salvo los
   indicadores de carga. Todo el movimiento vive en (prefers-reduced-motion: no-preference). */
@keyframes gsf-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Filas nuevas de los repetidores */
@keyframes gsf-fade-up {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes gsf-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes gsf-pop {
  0%   { opacity: 0; transform: scale(.6); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes gsf-kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

@keyframes gsf-ring {
  from { opacity: .45; transform: scale(.85); }
  to   { opacity: 0; transform: scale(1.35); }
}

@keyframes gsf-nudge {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-5px); }
  100% { transform: translateY(-3px); }
}

@keyframes gsf-card-in {
  from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes gsf-parallax {
  to { transform: translate3d(0, 8%, 0); }
}

/* Entrada orquestada del hero: sello, título, acento que crece, bajada y CTA
   (inicios a 0, 60, 240, 300 y 380 ms; todo termina a los 860 ms). Solo CSS: funciona sin JS
   y el CTA se puede usar desde el primer frame. */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow {
    animation: gsf-rise var(--dur-4) var(--ease-out) both;
  }

  .hero__title {
    animation: gsf-rise var(--dur-5) var(--ease-out) 60ms both;
  }

  .hero__title::after {
    animation: gsf-grow var(--dur-4) var(--ease-out) 240ms both;
  }

  .hero__lead {
    animation: gsf-rise var(--dur-4) var(--ease-out) 300ms both;
  }

  .hero__actions {
    animation: gsf-rise var(--dur-4) var(--ease-out) 380ms both;
  }
}

/* Foto del hero: zoom lento 1.06 → 1 (ambiental, una sola vez), solo desde 768 px.
   Nunca se anima la opacidad de la imagen: es el LCP. El overflow del hero recorta el escalado. */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .hero__media img {
    animation: gsf-kenburns var(--dur-ambient) var(--ease-ambient) both;
  }
}

/* Parallax de la foto del hero (app.js mueve el <picture> con transform según el scroll).
   La foto se agranda un 24 % en alto para que nunca se vea el borde al desplazarse. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media {
    top: -12%;
    bottom: -12%;
    height: auto;
    will-change: transform;
  }
}

/* Revelado al scroll. Índice del escalonado por posición (sin JS); tope: 6 × 60 ms = 360 ms. */
[data-reveal-group] > :nth-child(2) { --i: 1; }
[data-reveal-group] > :nth-child(3) { --i: 2; }
[data-reveal-group] > :nth-child(4) { --i: 3; }
[data-reveal-group] > :nth-child(5) { --i: 4; }
[data-reveal-group] > :nth-child(6) { --i: 5; }
[data-reveal-group] > :nth-child(n+7) { --i: 6; }

@media (prefers-reduced-motion: no-preference) {
  /* .reveal-on lo agrega app.js: si el JS no carga, nada queda oculto.
     :focus-within: un elemento con foco de teclado nunca queda invisible (WCAG 2.4.7). */
  .reveal-on [data-reveal]:not(.is-revealed):not(:focus-within) {
    opacity: 0;
    transform: translate3d(0, var(--reveal-y), 0);
  }

  /* La transición va solo en .is-revealed: al activar el sistema, lo que se oculta (fuera de
     pantalla) no hace un fundido de salida, y lo que ya estaba visible no cambia.
     :not(.reveal-done): app.js la marca al terminar el revelado; desde ahí el elemento recupera sus
     propias transiciones y pierde la demora del escalonado. */
  .reveal-on [data-reveal].is-revealed:not(.reveal-done) {
    transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }

}

@media print {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* "Press" con escala, solo con movimiento (con "reducir movimiento" queda el desplazamiento de 1 px de siempre) */
@media (prefers-reduced-motion: no-preference) {
  .btn-cta:active,
  .btn-gsf--primary:active:not(:disabled) {
    transform: translate3d(0, 1px, 0) scale(.99);
  }

  .tile:active {
    transform: scale(.985);
  }
}

/* Microinteracciones: hover solo con puntero fino (en táctil el hover queda "pegado").
   :not(:active): el "press" gana mientras se mantiene apretado */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn-cta:hover:not(:active) {
    transform: translate3d(0, -1px, 0);
  }

  .btn-cta:hover .icon {
    transform: translateX(3px);
  }

  .hero__link:hover .icon {
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Stepper: el punto actual y el check de los pasos completos entran con un leve rebote */
  .stepper__item.is-current .stepper__dot,
  .stepper__item.is-complete .stepper__check {
    animation: gsf-pop var(--dur-3) var(--ease-pop);
  }

  /* Zona del CV: un solo pulso al arrastrar un archivo encima, y entrada de la tarjeta del archivo */
  .dropzone.is-dragover .dropzone__icon {
    animation: gsf-nudge var(--dur-5) var(--ease-out) forwards;
  }

  .dropzone.is-dragover .dropzone__icon::after {
    animation: gsf-ring var(--dur-5) var(--ease-out) 1;
  }

  .file-card:not([hidden]) {
    animation: gsf-card-in var(--dur-3) var(--ease-out) both;
  }

  /* Agradecimiento: entra la tarjeta y el ícono hace "pop" mientras se dibuja el check */
  .thanks__card {
    animation: gsf-rise var(--dur-4) var(--ease-out) both;
  }

  .thanks__icon {
    animation: gsf-pop var(--dur-4) var(--ease-pop) 60ms both;
  }
}

@keyframes gsf-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes gsf-spin {
  to { transform: rotate(360deg); }
}

@keyframes gsf-swal-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes gsf-swal-out {
  to { opacity: 0; transform: translateY(4px) scale(.98); }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 767.98px) {
  :root {
    --header-h: 64px;
  }

  .site-header__logo {
    height: 34px;
  }

  /* Hero en móvil: también ocupa la pantalla (alto definido en .hero), con el mismo padding
     arriba y abajo */
  .hero {
    padding: 44px 0;
  }

  /* Acciones del hero apiladas (mismo corte que el hero móvil: entre 576 y 767 px dos columnas
     partían "Conocé nuestra historia" en dos líneas), con el CTA arriba: a ancho completo en el
     teléfono y centradas con un tope de ancho en pantallas algo mayores */
  .hero__actions {
    grid-auto-flow: row;
    width: 100%;
    max-width: 26rem;
    gap: 12px;
    margin-top: 28px;
  }

  .hero__actions .btn-cta,
  .hero__link {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  /* El enlace al sitio institucional queda en el pie */
  .site-header__link {
    display: none;
  }

  /* Sello a la izquierda del slogan, en una sola fila */
  .hero__eyebrow {
    flex-wrap: nowrap;
    gap: 8px;
    font-size: .6875rem;
    letter-spacing: .04em;
  }

  .hero__eyebrow-text {
    white-space: nowrap;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }

  /* Stepper compacto: solo círculos + texto del paso y barra de progreso */
  .stepper__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .stepper__dot {
    width: 36px;
    height: 36px;
    font-size: .875rem;
  }

  .stepper__item + .stepper__item::before,
  .stepper__item + .stepper__item::after {
    top: 17px;
    left: calc(-50% + 24px);
    right: calc(50% + 24px);
  }

  .stepper-mobile {
    display: block;
  }

  /* "Paso X de 4" ya está bajo el stepper: no repetirlo en la tarjeta (solo si el stepper se ve) */
  #steps-nav:not([hidden]) ~ #Registro .step__kicker {
    display: none;
  }

  .step__head {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  /* Si no entran lado a lado (~< 340 px) se apilan con el primario arriba */
  .step__footer {
    flex-wrap: wrap-reverse;
    margin-top: 28px;
    padding-top: 20px;
  }

  /* Botones de igual ancho lado a lado */
  .step__footer .btn-gsf {
    flex: 1 1 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Paso final: apilados con el primario arriba */
  .step__footer--final {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .step__footer--final .btn-gsf {
    flex: none;
    width: 100%;
    margin-left: 0;
  }

  .repeater__row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .repeater__num {
    width: 28px;
    height: 28px;
    font-size: .8125rem;
  }

  /* "Agregar capacitación / antecedente": a todo el ancho y centrado (en 320 px no partía en dos líneas
     solo con la sangría del número) */
  .btn-add {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .areas__meta {
    flex-wrap: wrap;
  }

  .dropzone__empty {
    padding: 28px 16px 4px;
  }

  .dropzone--enhanced .dropzone__hint {
    padding: 4px 16px 28px;
  }

  /* Tarjeta del CV: acciones debajo del nombre */
  .file-card {
    flex-wrap: wrap;
    gap: 12px 14px;
  }

  .file-card__info {
    flex-basis: calc(100% - 62px);
  }

  .file-card__actions {
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .file-card__actions .btn-text {
    flex: 1 1 0;
  }

  .gsf-swal {
    padding: 28px 20px 20px;
  }

  .gsf-swal__actions .btn-gsf {
    flex: 1 1 auto;
    min-width: 0;
  }

  .gsf-resumen__fila {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pantallas muy angostas (~320 px): los dos botones del hero entran en una sola línea cada uno */
@media (max-width: 359.98px) {
  .hero__actions .btn-cta,
  .hero__link {
    gap: 10px;
    padding-inline: 18px;
    font-size: .875rem;
    letter-spacing: .04em;
  }
}

/* Alto contraste de Windows: checkbox nativo para no perder el estado */
@media (forced-colors: active) {
  .tile__input {
    -webkit-appearance: auto;
    appearance: auto;
  }

  .tile__tick {
    display: none; /* manda el checkbox nativo */
  }
}

/* ---------- 22. Menos movimiento ----------
   Sin desplazamientos ni escalados: el revelado, el Ken Burns y el parallax viven en
   (prefers-reduced-motion: no-preference); acá se anulan duraciones y demoras del resto. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;   /* anula escalonados y la demora del CTA del encabezado */
    scroll-behavior: auto !important;
  }

  /* Respaldo del CTA del encabezado: conserva su demora de 4 s (no es movimiento: aparece sin transición) */
  .js .site-header:not(.site-header--auto) .site-header__cta {
    animation-delay: 4s !important;
  }

  /* Los indicadores de carga siguen girando (son información de estado), más lento */
  .btn-gsf__spinner,
  .gsf-swal .swal2-loader {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ==========================================================================
   Profundidad: sombras en capas (una corta y nítida + una amplia y difusa, con tinte del azul
   institucional) para separar superficies sin bordes duros.
   ========================================================================== */
:root {
  --shadow-card: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 10px -2px rgba(0, 43, 86, .08), 0 18px 40px -16px rgba(0, 43, 86, .22);
  --shadow-card-hover: 0 2px 4px rgba(15, 27, 45, .07), 0 10px 22px -6px rgba(0, 43, 86, .14), 0 30px 60px -20px rgba(0, 43, 86, .32);
  --shadow-raised: 0 2px 6px rgba(15, 27, 45, .08), 0 24px 56px -18px rgba(0, 43, 86, .30);
}

/* Tarjeta del formulario: la superficie principal, la más elevada */
.card-gsf {
  box-shadow: var(--shadow-raised);
  border-color: transparent;
}

/* Tarjetas de "Por qué sumarte" */
.reason-card {
  box-shadow: var(--shadow-card);
  border-color: transparent;
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .reason-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
  }
}

/* Sello grande del centenario */
.seal--lg {
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--gsf-blue-100), var(--shadow-card);
}

/* Paso actual del stepper */
.stepper__item.is-current .stepper__dot {
  box-shadow: 0 0 0 4px var(--gsf-blue-100), 0 6px 14px -4px rgba(0, 65, 129, .45);
}

/* Botón primario del formulario */
.btn-gsf--primary {
  box-shadow: 0 1px 2px rgba(0, 31, 63, .18), 0 8px 18px -8px rgba(0, 65, 129, .55);
}

/* Encabezado fijo: sombra real al despegarse del borde superior */
.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -12px rgba(0, 31, 63, .25);
}

/* Título y bajada del hero: leve sombra de texto que los despega de la foto */
.hero__title {
  text-shadow: 0 2px 18px rgba(0, 20, 45, .35);
}

.hero__lead,
.hero__eyebrow {
  text-shadow: 0 1px 10px rgba(0, 20, 45, .35);
}

/* Separación entre el hero y el resto: sombra interior suave en el borde inferior de la foto */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 20, 45, .35));
}

/* Miniatura del CV algo más chica en teléfonos */
@media (max-width: 575.98px) {
  .file-card__thumb {
    height: 200px;
  }
}

/* Pantallas muy angostas: si no entran en una fila, sello arriba y slogan debajo, centrados */
@media (max-width: 359.98px) {
  .hero__eyebrow {
    flex-wrap: wrap;
  }
}
