/* =========================================================
   Ingeniero civil independiente
   Sistema: hormigón frío + grafito + naranja de seguridad
   Tipos: Archivo (display, ancho expandido) / Space Grotesk
   ========================================================= */

:root {
  /* Paleta */
  --hormigon: #EDEEEB;
  --papel: #F6F6F4;
  --grafito: #1C1F22;
  --basalto: #25282B;
  --acero: #5B6573;
  --senal: #E8590C;
  --senal-hover: #FF6A1A;

  /* Roles */
  --bg: var(--hormigon);
  --fg: var(--grafito);
  --fg-muted: var(--acero);
  --line: rgba(28, 31, 34, .14);
  --line-strong: rgba(28, 31, 34, .38);
  --on-dark: #ECEDEA;
  --on-dark-muted: #A9B0B8;
  --line-dark: rgba(236, 237, 234, .16);

  /* Tipografía */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-sign: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --f-name: "Jost", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.6rem, 7.2vw, 6.4rem);
  --fs-xl: clamp(2.2rem, 5vw, 4.25rem);
  --fs-lg: clamp(1.6rem, 3.2vw, 2.75rem);
  --fs-md: clamp(1.2rem, 1.9vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-sm: .875rem;
  --fs-xs: .78rem;

  /* Espaciado */
  --gutter: clamp(1rem, 4vw, 3.25rem);
  --sec: clamp(6rem, 13vw, 11rem);

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 220ms;
  --t-med: 520ms;

  /* Capas */
  --z-wa: 30;
  --z-menu: 40;
  --z-header: 50;
  --z-progress: 55;
  --z-loader: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[tabindex="-1"]:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--senal);
  outline-offset: 4px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .75rem 1rem; background: var(--grafito); color: var(--on-dark);
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease-out);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.h-section {
  font-family: var(--f-display);
  font-weight: 400;
  font-stretch: 112%;
  font-size: var(--fs-xl);
  line-height: 1;
  letter-spacing: -.03em;
}

/* ---------- Iconos y botones ---------- */
.circle-icon {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem; flex: none;
  border: 1px solid currentColor; border-radius: 50%;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast);
}
.circle-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.btn--signal { background: var(--senal); color: #141414; }
.btn--signal:hover { background: var(--senal-hover); }
.btn--ghost { border: 1px solid rgba(236, 237, 234, .35); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); }
.btn:active { transform: scale(.97); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .9rem;
  text-decoration: none; font-weight: 500; justify-self: start;
}
.link-arrow span:first-child {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--t-med) var(--ease-out);
}
.link-arrow:hover span:first-child { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow:hover .circle-icon { background: var(--senal); border-color: var(--senal); color: #141414; }

/* =========================================================
   CARGA INICIAL
   ========================================================= */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: grid; place-items: center;
  background: var(--grafito);
}
.is-loading body { overflow: hidden; }
.loader__axis { height: 62svh; width: 40px; overflow: visible; }
.loader__axis circle { fill: none; stroke: var(--on-dark); stroke-width: 1.2; }
.loader__axis text { fill: var(--on-dark); font-family: var(--f-text); font-size: 13px; font-weight: 500; text-anchor: middle; }
.loader__axis line { stroke: var(--senal); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }

/* =========================================================
   BARRA DE AVANCE
   ========================================================= */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--z-progress);
  pointer-events: none;
}
.progress span { display: block; height: 100%; background: var(--senal); transform-origin: left; transform: scaleX(0); }

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  color: var(--on-dark);
  transition: color var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), padding var(--t-med) var(--ease-out);
  pointer-events: none;
  isolation: isolate;
}
/* Fondo que aparece solo cuando la cabecera vuelve a mostrarse fuera de la portada */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(28, 31, 34, .78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out), border-color var(--t-med);
}
.site-header[data-theme="light"]::before { background: rgba(237, 238, 235, .86); border-bottom-color: var(--line); }
.site-header.is-solid { padding-top: .8rem; padding-bottom: .8rem; }
.site-header.is-solid::before { opacity: 1; }
.site-header > * { pointer-events: auto; }
.site-header[data-theme="light"] { color: var(--grafito); }
.site-header.is-hidden { transform: translateY(-110%); }
.menu-open .site-header { color: var(--on-dark); transform: none; }
.menu-open .site-header::before { opacity: 0; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.brand__mark path { stroke-linecap: square; }
.brand__name {
  font-family: var(--f-name); font-weight: 300;
  font-size: clamp(1.3rem, 1.75vw, 1.7rem); line-height: 1; letter-spacing: .04em; white-space: nowrap;
}

.site-header__actions { display: flex; align-items: center; gap: 1.5rem; }
.header-section {
  display: none;
  position: relative; height: 1.4em;
  font-size: .85rem; opacity: .7;
  transition: opacity var(--t-fast);
}
.header-section__text { display: block; white-space: nowrap; }
.menu-open .header-section { opacity: 0; }
.header-cta {
  font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-out);
  padding-bottom: 2px;
}
.header-cta:hover { background-size: 100% 1px; }
@media (min-width: 1000px) {
  .header-section { display: block; overflow: hidden; padding-right: 1.5rem; }
  .header-section::after {
    content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: .9em;
    background: currentColor; opacity: .5; transform: translateY(-50%);
  }
}
@media (max-width: 699px) {
  .header-cta { display: none; }
}

.menu-btn {
  display: inline-flex; align-items: center; gap: .9rem;
  min-height: 44px; padding: .55rem .6rem .55rem 1rem;
  background: rgba(20, 22, 24, .82);
  color: #F2F2F0;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .9rem; font-weight: 500;
}
.menu-btn__icon {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .1);
}
.menu-btn__icon i {
  position: absolute; width: 16px; height: 1.5px; background: currentColor;
  transition: transform var(--t-med) var(--ease-out);
}
.menu-btn__icon i:first-child { transform: translateY(-3px); }
.menu-btn__icon i:last-child { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { transform: rotate(-45deg); }

/* ---------- Selector de idioma ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: .3rem;
  min-height: 44px; padding: 0 .25rem;
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
}
.lang-switch [data-lang] { opacity: .5; transition: opacity var(--t-fast); }
.lang-switch [data-lang].is-current { opacity: 1; }
.lang-switch:hover [data-lang] { opacity: .85; }
.lang-switch:hover [data-lang].is-current { opacity: 1; }
.lang-switch__sep { opacity: .35; }
.lang-switch--menu { padding: 0; color: var(--on-dark); }
.site-header .lang-switch { display: none; }
@media (min-width: 700px) {
  .site-header .lang-switch { display: inline-flex; }
  .lang-switch--menu { display: none; }
}

/* ---------- Menú: centrado minimalista ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: grid; grid-template-rows: 1fr auto;
  padding: 6.5rem var(--gutter) 2.25rem;
  background: var(--grafito); color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
}
.menu[hidden] { display: none; }
.menu__nav { display: grid; place-items: center; }
.menu__nav ul { display: grid; justify-items: center; gap: clamp(.4rem, 1.4vh, 1rem); text-align: center; }
.menu__nav li { overflow: hidden; padding: .08em 0; }
.menu__nav a { display: inline-block; text-decoration: none; padding: .1em .3em; }
.menu__label {
  display: inline-block;
  font-family: var(--f-name); font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.12; letter-spacing: .01em;
  transition: opacity 400ms var(--ease-out), color var(--t-fast);
}
/* Al pasar por una sección, las demás se atenúan */
.menu__nav ul:hover .menu__label { opacity: .32; }
.menu__nav ul:hover a:hover .menu__label,
.menu__nav a:focus-visible .menu__label { opacity: 1; }
/* Sección actual: una línea naranja fina debajo */
.menu__nav a[aria-current] .menu__label {
  background: linear-gradient(var(--senal), var(--senal)) 50% 100% / 1.6rem 2px no-repeat;
  padding-bottom: .12em;
}
.menu__foot {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .5rem 2.25rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  font-size: var(--fs-sm); color: var(--on-dark-muted);
}
.menu__foot a { text-decoration: none; color: var(--on-dark); transition: color var(--t-fast); }
.menu__foot a:hover { color: var(--senal); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  color: var(--on-dark);
  background: var(--grafito);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__poster, .hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Montaje: cada toma entra con un fundido lento y un leve acercamiento */
.hero__clip { opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease-in-out), transform 9s linear; }
.hero__clip.is-on { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Velo mínimo: el video es protagonista; solo se oscurece arriba (cabecera) y abajo (titular) */
  background: linear-gradient(180deg, rgba(16, 18, 20, .38) 0%, rgba(16, 18, 20, 0) 22%, rgba(16, 18, 20, 0) 50%, rgba(16, 18, 20, .72) 100%);
}
.hero__pause {
  position: absolute; z-index: 2; right: var(--gutter); top: 5.5rem;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid rgba(236, 237, 234, .45); color: var(--on-dark);
  background: rgba(20, 22, 24, .25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: .75; transition: opacity var(--t-fast), background-color var(--t-fast);
}
.hero__pause:hover { opacity: 1; background: rgba(20, 22, 24, .5); }
.hero__pause[hidden] { display: none; }
.hero__pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero__pause .i-play { display: none; fill: currentColor; stroke: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 899px) {
  .hero::after { background: linear-gradient(180deg, rgba(16, 18, 20, .4) 0%, rgba(16, 18, 20, 0) 20%, rgba(16, 18, 20, .25) 42%, rgba(16, 18, 20, .82) 100%); }
}
.hero__grid {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  fill: none; stroke: rgba(236, 237, 234, .2); stroke-width: 1;
}
.hero__grid line { vector-effect: non-scaling-stroke; }

.hero__meta {
  grid-row: 2;
  display: grid; grid-template-columns: 1fr; gap: .25rem;
  padding: 0 var(--gutter) 2rem;
  font-size: var(--fs-sm); font-weight: 500;
}
.hero__scroll { display: none; }
@media (min-width: 900px) {
  .hero__meta { grid-template-columns: 1fr 1fr 1fr; align-items: center; padding-bottom: 4rem; }
  .hero__scroll { display: inline-flex; justify-self: end; align-items: center; gap: .8rem; text-decoration: none; }
  .hero__scroll:hover .circle-icon { background: var(--on-dark); color: var(--grafito); }
}

.hero__foot {
  grid-row: 3;
  display: grid; gap: 2rem;
  padding: 0 var(--gutter) clamp(2rem, 5vw, 3.5rem);
}
.hero__titlewrap { display: grid; gap: 1rem; justify-self: start; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 400; font-stretch: 110%;
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: -.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; }
.hero__dim { width: 100%; height: 14px; overflow: visible; }
.hero__dim line { stroke: var(--senal); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hero__cta { display: grid; gap: 1.25rem; justify-items: start; max-width: 34rem; }
.hero__cta p { color: rgba(236, 237, 234, .82); font-size: 1rem; }
@media (min-width: 1100px) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) 20rem; align-items: end; column-gap: 3rem; }
  .hero__title { font-size: clamp(3.5rem, 5.6vw, 6.4rem); }
  .hero__title .line { white-space: nowrap; }
  .hero__cta { padding-bottom: 1.9rem; }
}

/* =========================================================
   ENFOQUE
   ========================================================= */
.intro { padding-block: var(--sec); }
.intro__grid { display: grid; gap: 2.5rem; }
.intro__label { font-size: var(--fs-sm); font-weight: 500; color: var(--fg-muted); }
.intro__main { display: grid; gap: 2.5rem; align-content: start; }
.intro__statement {
  font-family: var(--f-display); font-weight: 400; font-stretch: 106%;
  font-size: var(--fs-lg); line-height: 1.14; letter-spacing: -.025em;
  max-width: 28ch;
}
.intro__cols { display: grid; gap: 1.5rem; color: var(--fg-muted); }
.intro__cols p { max-width: 40ch; }
.intro__sign { display: grid; gap: 0; }
.signature { width: min(100%, 290px); height: auto; overflow: visible; }
.signature text { font-family: var(--f-sign); font-size: 72px; fill: var(--grafito); stroke: var(--grafito); stroke-width: .6; }
.intro__sign-caption { font-size: var(--fs-xs); color: var(--fg-muted); }
.intro__portrait { display: grid; gap: .6rem; align-content: start; }
.intro__portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.intro__portrait figcaption { font-size: var(--fs-xs); color: var(--fg-muted); }
@media (min-width: 700px) and (max-width: 899px) {
  .intro__portrait { max-width: 22rem; }
}
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: minmax(7rem, .55fr) 2fr minmax(15rem, 1fr); column-gap: clamp(2rem, 4vw, 4.5rem); }
  .intro__label { padding-top: .9rem; }
  .intro__cols { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .intro__portrait { margin-top: .6rem; }
}

/* =========================================================
   MÉTODO (plano que se dibuja)
   ========================================================= */
.method { background: var(--papel); border-block: 1px solid var(--line); }
.method__pin {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.5rem;
  padding: 5.5rem var(--gutter) 2.5rem;
  max-width: 1440px; margin-inline: auto;
}
.method__title {
  font-family: var(--f-display); font-weight: 400; font-stretch: 112%;
  font-size: var(--fs-lg); line-height: 1; letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}
.method__text { position: relative; }
.method__steps { position: relative; display: grid; }
.step {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  transition: color var(--t-med) var(--ease-out);
}
.step h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.3; color: inherit; }
.step p { font-size: .95rem; line-height: 1.55; max-width: 36ch; overflow: hidden; }
.step__n { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.step.is-active { color: var(--fg); }
.step.is-active .step__n { color: var(--senal); }
.js .step p { max-height: 0; opacity: 0; transition: max-height var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out), margin var(--t-med); }
.js .step.is-active p { max-height: 8rem; opacity: 1; margin-top: .35rem; }
.method.is-static .step { color: var(--fg); }
.method.is-static .step p { max-height: none; opacity: 1; margin-top: .35rem; }
.method.is-static .method__pin { height: auto; }

.method__progress { position: absolute; left: 0; top: 0; width: 2px; height: 100%; display: none; }
.method__progress span { display: block; width: 100%; height: 100%; background: var(--senal); transform-origin: top; transform: scaleY(0); }

.method__figure { position: relative; align-self: stretch; min-height: 0; display: grid; place-items: center; }
.method__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
  filter: brightness(.66) saturate(.85);
}
html:not(.js) .method__photo { clip-path: none; opacity: .18; }
.plan {
  position: relative; width: 100%; height: 100%; max-height: 70svh;
  overflow: visible;
  --ink: var(--grafito);
  --ink-soft: rgba(28, 31, 34, .38);
}
.plan * { vector-effect: non-scaling-stroke; }
.plan__axes line { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.plan__levels line { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 2 5; }
.plan__bubbles circle { fill: var(--papel); stroke: var(--ink); stroke-width: 1.2; }
.plan__bubbles text, .plan__level-tags text, .plan__dims text, .plan__detail text {
  font-family: var(--f-text); font-size: 13px; fill: var(--ink);
}
.plan__bubbles text { text-anchor: middle; font-weight: 500; }
.plan__dims text { text-anchor: middle; fill: var(--senal); font-weight: 500; font-variant-numeric: tabular-nums; }
.plan__level-tags text { font-size: 12px; fill: var(--acero); }
.plan__draw path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; transition: stroke var(--t-med) var(--ease-out); }
.plan__footings path { stroke-width: 1.6; }
.plan__dims path { fill: none; stroke: var(--senal); stroke-width: 1; }
.plan__detail rect { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.plan__detail > rect { stroke: var(--ink-soft); stroke-dasharray: 3 4; }
.plan__detail .stirrup { stroke: var(--senal); stroke-width: 1.4; }
.plan__detail circle { fill: var(--ink); stroke: none; }
.plan__detail .plan__callout { fill: none; stroke: var(--senal); stroke-width: 1.2; stroke-dasharray: 4 4; }
.plan__leader { fill: none; stroke: var(--senal); stroke-width: 1; }
.plan__detail .t-label { text-anchor: middle; font-weight: 500; }
.plan__detail .t-small { text-anchor: middle; font-size: 11px; fill: var(--acero); }
.plan__bubbles circle, .plan__detail rect, .plan__detail circle, .plan text {
  transition: stroke var(--t-med) var(--ease-out), fill var(--t-med) var(--ease-out);
}

/* Zonas interactivas */
.plan__hits rect { fill: var(--senal); fill-opacity: 0; stroke: none; pointer-events: none; transition: fill-opacity var(--t-fast); }
.method.can-inspect .plan__hits rect { pointer-events: all; cursor: crosshair; }
.method.can-inspect .plan__hits rect:hover { fill-opacity: .16; }
.plan-tip {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: grid; gap: .1rem;
  padding: .55rem .8rem;
  background: var(--grafito); color: var(--on-dark);
  font-size: var(--fs-xs); line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
  white-space: nowrap;
}
.plan-tip strong { font-weight: 500; font-size: .85rem; }
.plan-tip span { color: var(--on-dark-muted); }
.plan-tip.is-on { opacity: 1; }

/* Sello de aprobado */
.stamp {
  position: absolute; left: 3%; bottom: 9%; z-index: 2;
  display: grid; justify-items: center; gap: .1rem;
  padding: .55rem 1.1rem;
  border: 2px solid var(--senal); border-radius: 6px;
  color: var(--senal);
  outline: 1px solid var(--senal); outline-offset: 3px;
  background: rgba(20, 22, 24, .4);
  transform: rotate(-8deg) scale(1.6);
  opacity: 0;
  pointer-events: none;
}
.stamp__title { font-family: var(--f-display); font-stretch: 125%; font-weight: 600; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.stamp__name { font-size: .7rem; }

.method__caption {
  position: absolute; right: 0; left: 0; bottom: -.5rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: var(--fs-xs); color: var(--fg-muted);
}
.method__hint { display: none; opacity: 0; transition: opacity var(--t-med); }
.method.can-inspect .method__hint { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .method__hint--pointer { display: inline; } }
@media (hover: none), (pointer: coarse) { .method__hint--touch { display: inline; } }
.plan__hits rect.is-hot { fill-opacity: .18; }
.plan__hits rect:focus-visible { outline: none; fill-opacity: .22; stroke: var(--senal); stroke-width: 2; }

.method__replay {
  position: absolute; right: 1rem; top: 1rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .35rem 1rem .35rem .4rem;
  border-radius: 999px;
  background: rgba(20, 22, 24, .55); color: #F2F2F0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 500;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), background-color var(--t-fast);
}
.method__replay .circle-icon { width: 2rem; height: 2rem; border-color: rgba(242, 242, 240, .5); }
.method__replay:hover { background: rgba(20, 22, 24, .8); }
.method__replay:hover .circle-icon { background: var(--senal); border-color: var(--senal); color: #141414; }
.method.is-done .method__replay { opacity: 1; transform: none; pointer-events: auto; }
.method.is-static .method__replay { display: none; }

.method.is-built .plan { --ink: #F2F2F0; --ink-soft: rgba(242, 242, 240, .45); }
.method.is-built .plan__bubbles circle { fill: rgba(20, 22, 24, .5); }
.method.is-built .plan__level-tags text, .method.is-built .plan__detail .t-small { fill: #D5D9DD; }

@media (min-width: 900px) {
  .method__pin {
    grid-template-columns: minmax(18rem, 1fr) 2fr;
    grid-template-rows: 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding-top: 6.5rem; padding-bottom: 3.5rem;
    height: 100svh;
  }
  .method__text { padding-left: 1.75rem; }
  .method__progress { display: block; }
  .method__figure { height: 100%; }
  .plan { max-height: 76svh; }
}

/* =========================================================
   SERVICIOS (índice tipográfico)
   ========================================================= */
.services { padding-block: var(--sec); position: relative; }
.services__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.services__head p { color: var(--fg-muted); max-width: 36ch; }
@media (min-width: 900px) {
  .services__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .services__head p { justify-self: end; }
}

.svc-list { border-bottom: 1px solid var(--line-strong); }
.svc { border-top: 1px solid var(--line-strong); position: relative; }
.svc::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--senal); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.svc:hover::before, .svc.is-open::before { transform: scaleX(1); }
.svc h3 { font: inherit; }
.svc__toggle {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: .5rem 2rem;
  padding: clamp(1.25rem, 2.6vw, 2rem) 0;
  text-align: left;
}
.svc__name {
  font-family: var(--f-display); font-weight: 400; font-stretch: 108%;
  font-size: clamp(1.7rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em;
  transition: transform var(--t-med) var(--ease-out), color var(--t-fast);
}
.svc__hint { grid-row: 2; font-size: var(--fs-sm); color: var(--fg-muted); }
.svc__plus {
  grid-row: 1 / span 2; grid-column: 2;
  position: relative; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.svc__plus::before, .svc__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
}
.svc__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t-med) var(--ease-out); }
.svc__toggle:hover .svc__name { transform: translateX(.6rem); }
.svc__toggle:hover .svc__plus { border-color: var(--grafito); }
.svc.is-open .svc__plus { background: var(--grafito); color: var(--papel); border-color: var(--grafito); }
.svc.is-open .svc__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (min-width: 900px) {
  .svc__toggle { grid-template-columns: 1.6fr 1fr auto; }
  .svc__hint { grid-row: 1; grid-column: 2; }
  .svc__plus { grid-row: 1; grid-column: 3; }
}

.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-in-out); }
.svc__panel > .svc__inner { overflow: hidden; min-height: 0; }
.svc.is-open .svc__panel { grid-template-rows: 1fr; transition: grid-template-rows 750ms var(--ease-out); }
html:not(.js) .svc__panel { grid-template-rows: 1fr; }
.svc__inner { display: grid; gap: 1.5rem; }

.svc__media {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--line);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 280ms cubic-bezier(.4, 0, 1, 1);
}
.svc__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 280ms cubic-bezier(.4, 0, 1, 1); }
.svc.is-open .svc__media { clip-path: inset(0 0 0% 0); transition: clip-path 1000ms var(--ease-out) 120ms; }
.svc.is-open .svc__media img { transform: scale(1); transition: transform 1400ms var(--ease-out) 120ms; }

.svc__copy { display: grid; gap: 1.25rem; align-content: start; padding-bottom: 2rem; }
.svc__copy > * { opacity: 0; transform: translateY(14px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.svc.is-open .svc__copy > * { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out) 300ms, transform 900ms var(--ease-out) 300ms; }
.svc.is-open .svc__copy > *:nth-child(2) { transition-delay: 380ms; }
.svc.is-open .svc__copy > *:nth-child(3) { transition-delay: 460ms; }
.svc.is-open .svc__copy > *:nth-child(4) { transition-delay: 540ms; }
.svc.is-open .svc__copy > *:nth-child(5) { transition-delay: 620ms; }
html:not(.js) .svc__media { clip-path: none; }
html:not(.js) .svc__media img, html:not(.js) .svc__copy > * { opacity: 1; transform: none; }

.svc__count { font-size: var(--fs-xs); color: var(--senal); font-variant-numeric: tabular-nums; font-weight: 500; }
.svc__desc { max-width: 46ch; color: var(--fg); }
.svc__deliverables { display: grid; gap: .45rem; font-size: .95rem; color: var(--fg-muted); }
.svc__deliverables li { padding-left: 1.4rem; position: relative; }
.svc__deliverables li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--senal); }
.svc__norm { display: grid; gap: .1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.svc__norm span { font-size: var(--fs-xs); color: var(--fg-muted); }
.svc__cta { display: inline-flex; align-items: center; gap: .8rem; justify-self: start; text-decoration: none; font-weight: 500; font-size: .95rem; }
.svc__cta:hover .circle-icon { background: var(--senal); border-color: var(--senal); color: #141414; }
@media (min-width: 900px) {
  .svc__inner { grid-template-columns: 1.6fr 1fr auto; column-gap: 2rem; }
  .svc__media { max-width: 36rem; margin-bottom: 2.75rem; }
  .svc__copy { grid-column: 2 / span 2; padding-bottom: 2.75rem; }
}

/* =========================================================
   TRAYECTORIA
   ========================================================= */
.career { background: var(--basalto); color: var(--on-dark); padding-block: var(--sec); }
.career__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 8vw, 7rem); }
.career__head p { color: var(--on-dark-muted); max-width: 40ch; }
@media (min-width: 900px) {
  .career__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .career__head p { justify-self: end; }
}

.career__body { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.career__rail { position: relative; }
.profile { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.profile__ground { fill: none; stroke: var(--senal); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.profile__axis { stroke: var(--line-dark); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.profile__dot {
  position: absolute; left: 0; top: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border-radius: 50%; background: var(--senal);
  box-shadow: 0 0 0 5px rgba(232, 89, 12, .22);
  opacity: 0;
}
.profile__dot.is-on { opacity: 1; }

.projects { display: grid; }
.project {
  display: grid; gap: 1.25rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.project__station {
  font-size: var(--fs-xs); color: var(--on-dark-muted); font-variant-numeric: tabular-nums; font-weight: 500;
  transition: color var(--t-med);
}
.project.is-current .project__station { color: var(--senal); }
.project h3 {
  font-family: var(--f-display); font-weight: 400; font-stretch: 108%;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.02; letter-spacing: -.035em;
  margin-bottom: .75rem;
}
.project__role { color: var(--on-dark); font-weight: 500; margin-bottom: .5rem; }
.project__desc { color: var(--on-dark-muted); max-width: 42ch; }
.project__facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2rem;
  margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line-dark);
}
.project__facts dt { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.project__facts dd { font-size: .95rem; }
.project__media { overflow: hidden; aspect-ratio: 16 / 10; background: #1b1d1f; }
.project__media img { width: 100%; height: 112%; object-fit: cover; }
@media (max-width: 520px) {
  .project__facts { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
}
@media (min-width: 900px) {
  .career__body { grid-template-columns: 6rem 1fr; gap: 2rem; }
  .project { grid-template-columns: 8rem 1fr 1.05fr; column-gap: 2.5rem; align-items: start; }
  .project__station { padding-top: 1rem; }
  .project:nth-child(even) .project__media { aspect-ratio: 4 / 3; width: 82%; justify-self: end; }
}

/* Mapa */
.map {
  display: grid; gap: 3rem;
  margin-top: clamp(4rem, 9vw, 8rem); padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
}
.map__copy h3 {
  font-family: var(--f-display); font-weight: 400; font-stretch: 110%;
  font-size: var(--fs-lg); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1rem;
}
.map__copy > p { color: var(--on-dark-muted); max-width: 34ch; }
.map__legend { display: grid; margin-top: 2rem; border-top: 1px solid var(--line-dark); }
.map__legend li {
  display: flex; align-items: center; gap: .9rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line-dark);
  font-size: .95rem;
  transition: color var(--t-fast);
}
.map__legend li span {
  display: inline-grid; place-items: center; flex: none;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--senal); color: #141414; font-size: .72rem; font-weight: 500;
}
.map__legend li span.is-base { background: none; border: 1.5px solid var(--on-dark); width: .75rem; height: .75rem; margin-inline: .375rem; }
.map__legend li.is-hot { color: var(--senal); }
.map__svg { width: 100%; max-width: 540px; justify-self: center; overflow: visible; }
.map__land { fill: rgba(236, 237, 234, .03); stroke: rgba(236, 237, 234, .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map__base circle { fill: var(--basalto); stroke: var(--on-dark); stroke-width: 1.5; }
.map__base text { fill: var(--on-dark-muted); font-family: var(--f-text); font-size: 15px; }
.map__dot { fill: var(--senal); }
.map__ring { fill: none; stroke: var(--senal); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.map__pin text { fill: #141414; font-family: var(--f-text); font-size: 12px; font-weight: 500; text-anchor: middle; pointer-events: none; }
.map__pin.is-hot .map__ring { opacity: 1; transform: scale(1.55); }
@media (min-width: 900px) {
  .map { grid-template-columns: 1fr 1.3fr; align-items: center; column-gap: 4rem; }
}

/* =========================================================
   FORMACIÓN (cajetín)
   ========================================================= */
.education { padding-block: var(--sec); }
.education__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.education__head p { color: var(--fg-muted); max-width: 44ch; }
@media (min-width: 900px) {
  .education__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .education__head p { justify-self: end; }
}

.titleblock { position: relative; border: 1.5px solid var(--grafito); background: var(--papel); }
.titleblock__top { display: grid; grid-template-columns: auto 1fr; border-bottom: 1.5px solid var(--grafito); font-size: var(--fs-xs); }
.titleblock__top span, .titleblock__top strong { padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.titleblock__top span { color: var(--fg-muted); border-right: 1px solid var(--line); }
.titleblock__top strong { font-weight: 500; }
@media (min-width: 700px) {
  .titleblock__top { grid-template-columns: auto 1fr auto 2fr auto 1fr; }
  .titleblock__top span, .titleblock__top strong { border-bottom: 0; }
  .titleblock__top strong { border-right: 1px solid var(--line); }
  .titleblock__top strong:last-child { border-right: 0; }
}

.titleblock__table { width: 100%; border-collapse: collapse; }
.titleblock__table thead th {
  text-align: left; font-weight: 400; font-size: var(--fs-xs); color: var(--fg-muted);
  padding: .7rem .9rem; border-bottom: 1px solid var(--line-strong);
}
.titleblock__table tbody tr { border-bottom: 1px solid var(--line); transition: background-color var(--t-fast); }
.titleblock__table tbody tr:last-child { border-bottom: 0; }
.titleblock__table tbody tr:hover { background: var(--hormigon); }
.titleblock__table tbody th, .titleblock__table td { padding: 1.35rem .9rem; vertical-align: baseline; text-align: left; }
.titleblock__table tbody th {
  font-family: var(--f-display); font-weight: 400; font-stretch: 106%;
  font-size: var(--fs-md); line-height: 1.15; letter-spacing: -.02em;
}
.titleblock__table td { color: var(--fg-muted); }
.titleblock__table td:last-child { font-size: var(--fs-sm); white-space: nowrap; }
@media (max-width: 699px) {
  .titleblock__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .titleblock__table tbody tr { display: grid; padding: 1.1rem .9rem; gap: .2rem; }
  .titleblock__table tbody th, .titleblock__table td { padding: 0; }
  .titleblock__table td:last-child { color: var(--senal); font-weight: 500; }
}

.titleblock__tools { display: grid; gap: .75rem; padding: 1rem .9rem 1.2rem; border-top: 1.5px solid var(--grafito); }
.titleblock__tools-label { font-size: var(--fs-xs); color: var(--fg-muted); }
.titleblock__tools ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.titleblock__tools li { padding: .35rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; }
@media (min-width: 700px) {
  .titleblock__tools { grid-template-columns: 9rem 1fr; align-items: center; }
}

.seal { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .seal {
    display: block;
    position: absolute; right: -2.25rem; top: 0; width: 112px; height: 112px;
    pointer-events: none;
    opacity: 0; transform: rotate(-16deg) scale(.85);
    transition: opacity 260ms var(--ease-out), transform 560ms var(--ease-out), top 420ms var(--ease-out);
  }
  .seal.is-on { opacity: 1; transform: rotate(-8deg) scale(1); }
  .seal svg { width: 100%; height: 100%; overflow: visible; }
  .seal circle { fill: none; stroke: var(--senal); stroke-width: 1.2; }
  .seal circle:first-of-type { fill: rgba(246, 246, 244, .94); stroke-width: 1.6; }
  .seal__ring { font-family: var(--f-text); font-size: 9.5px; letter-spacing: .14em; fill: var(--senal); }
  .seal__code { font-family: var(--f-display); font-stretch: 120%; font-weight: 600; font-size: 16px; fill: var(--senal); text-anchor: middle; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  position: relative; isolation: isolate;
  background: var(--grafito); color: var(--on-dark);
  padding-top: var(--sec);
  overflow: hidden;
}
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .14; filter: grayscale(1); }
.contact__grid { display: grid; gap: clamp(3rem, 6vw, 6rem); padding-bottom: var(--sec); }
.contact__title {
  font-family: var(--f-display); font-weight: 400; font-stretch: 112%;
  font-size: var(--fs-xl); line-height: 1; letter-spacing: -.035em;
  max-width: 13ch; margin-bottom: 1.75rem;
}
.contact__intro > p { color: var(--on-dark-muted); max-width: 40ch; }
.contact__list { margin-top: 2.5rem; display: grid; border-top: 1px solid var(--line-dark); }
.contact__list > div { display: grid; grid-template-columns: 7rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.contact__list dt { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--senal); }
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Formulario por pasos */
.form { display: grid; gap: 1.5rem; align-content: start; }
.form__progress-bar { display: block; height: 2px; background: var(--line-dark); }
.form__progress-bar i { display: block; height: 100%; width: 100%; background: var(--senal); transform-origin: left; transform: scaleX(.3333); transition: transform 600ms var(--ease-out); }
.form__steplabel { font-size: var(--fs-xs); color: var(--on-dark-muted); margin-top: -.75rem; }
.form__step { display: grid; gap: 1.5rem; }
.form__step legend {
  font-family: var(--f-display); font-stretch: 108%; font-weight: 400;
  font-size: var(--fs-md); letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.js .form__step:not(.is-current) { display: none; }
.form__step.is-entering { animation: stepIn 600ms var(--ease-out) both; }
.form__step.is-entering-back { animation: stepBack 600ms var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .55rem 1.05rem; border: 1px solid rgba(236, 237, 234, .3); border-radius: 999px;
  font-size: .95rem;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.choice:hover span { border-color: var(--on-dark); }
.choice input:checked + span { background: var(--on-dark); color: var(--grafito); border-color: var(--on-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--senal); outline-offset: 3px; }

.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.field__opt { opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  font: inherit; font-size: 1.0625rem; color: var(--on-dark);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(236, 237, 234, .35);
  border-radius: 0;
  padding: .6rem 0;
  transition: border-color var(--t-fast);
}
.field select {
  appearance: none; cursor: pointer; padding-right: 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%23ECEDEA' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center / 16px no-repeat;
}
.field select option { color: var(--grafito); }
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--senal); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--senal); }
.field__help { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.field__error { font-size: .85rem; color: #FF9B66; }
.field__error:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #FF9B66; }

.form__nav { display: flex; gap: .75rem; margin-top: .5rem; }
.js .form__nav [hidden] { display: none; }
html:not(.js) .form__back, html:not(.js) .form__next, html:not(.js) .form__progress, html:not(.js) .form__steplabel { display: none; }
.form__status { font-size: .9rem; color: var(--on-dark-muted); }
.form__status:empty { display: none; }

/* =========================================================
   PIE
   ========================================================= */
.footer { border-top: 1px solid var(--line-dark); }
.footer__row {
  display: grid; gap: 1rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  font-size: var(--fs-sm); color: var(--on-dark-muted);
}
.footer__top { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--on-dark); }
.footer__top:hover .circle-icon { background: var(--on-dark); color: var(--grafito); }
@media (min-width: 800px) {
  .footer__row { grid-template-columns: 1fr auto auto; align-items: center; gap: 3rem; }
}
/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.wa {
  position: fixed; right: var(--gutter); bottom: 1.25rem; z-index: var(--z-wa);
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: .6rem 1.1rem .6rem .8rem;
  background: var(--grafito); color: var(--on-dark);
  border: 1px solid rgba(236, 237, 234, .14);
  border-radius: 999px;
  font-size: .9rem; font-weight: 500; text-decoration: none;
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out), background-color var(--t-fast);
}
.wa.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa:hover { background: #2b2f33; }
.wa svg { width: 22px; height: 22px; fill: none; stroke: var(--senal); stroke-width: 1.5; stroke-linejoin: round; }
.wa svg .wa__fill { fill: var(--senal); stroke: none; }
.menu-open .wa { opacity: 0; pointer-events: none; }
@media (max-width: 520px) {
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa { padding: .7rem; }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0ms !important; }
}
