/* Uveuno - hoja de estilos
   Página blanca, un solo acento (verde corporativo #00774a) y tarjetas en gris muy claro.
   Sistema de formas: botones en píldora, paneles e imágenes 20px, campos 12px.
   Capas z: cabecera 20, menú móvil 30. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f5f7f5;
  --tint: #ebf2ed;
  --ink: #0f1512;
  --muted: #55615a;
  --line: #e7ebe7;
  --line-strong: #c3ccc5;
  --accent: #00774a;
  --accent-hover: #005f3b;
  --accent-text: #00704a;
  --on-accent: #ffffff;
  --deep: #0a2c20;
  --on-deep: #eef4f0;
  --on-deep-muted: #a8bdb1;
  --deep-line: rgba(238, 244, 240, 0.2);
  --deep-field: rgba(238, 244, 240, 0.07);
  --error-on-deep: #ffb4a9;

  --r-panel: 20px;
  --r-field: 12px;
  --r-pill: 999px;

  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 11vw, 152px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, address { margin: 0; font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.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: absolute; left: 16px; top: -64px; z-index: 40;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

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

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

/* Tipografía */
h1, h2 { font-weight: 560; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); line-height: 1.06; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  max-width: 46ch;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .ico { transition: transform 0.3s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--light { background: var(--on-deep); color: #0a2c20; }
.btn--light:hover { background: #ffffff; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: 0.9375rem; }

/* Cabecera */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 21px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav__links a {
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  padding-block: 12px; white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
  font-variant-numeric: tabular-nums; padding-block: 12px;
}
.nav__tel .ico { color: var(--accent-text); }
.menu-btn { display: none; }

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 64px) var(--section); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__media {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  aspect-ratio: 5 / 6; max-height: min(72dvh, 660px); width: 100%;
  background: var(--soft);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 60%; }

/* Índice de servicios */
.index { border-top: 1px solid var(--line-strong); }
.index__row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  align-items: center; gap: 24px;
  padding: clamp(22px, 2.8vw, 34px) clamp(4px, 1vw, 16px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.index__name {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 560;
  letter-spacing: -0.03em; line-height: 1.1;
  transition: color 0.3s var(--ease);
}
.index__desc { color: var(--muted); max-width: 44ch; }
.index__row .ico {
  width: 28px; height: 28px; color: var(--line-strong);
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}
.index__row:hover { background: var(--soft); }
.index__row:hover .index__name { color: var(--accent-text); }
.index__row:hover .ico { color: var(--accent-text); transform: translateX(6px); }

/* Crisis: titular fijo + recorrido en tres tarjetas */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; }

.path { --path-pad: clamp(22px, 2.6vw, 32px); display: grid; gap: 20px; }
.path__card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px;
  padding: var(--path-pad); border-radius: var(--r-panel); background: var(--soft);
}
/* Conector entre una tarjeta y la siguiente */
.path__card + .path__card::before {
  content: ""; position: absolute; top: -20px; left: calc(var(--path-pad) + 25px);
  width: 2px; height: 20px; background: var(--line-strong);
}
.path__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); color: var(--accent-text);
  display: grid; place-items: center;
}
.path__icon .ico { width: 26px; height: 26px; }
.path__body { display: grid; gap: 12px; align-content: start; padding-top: 2px; }
.path__when { color: var(--accent-text); font-weight: 600; font-size: 0.9375rem; }
.path__body h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
.path__text { color: var(--muted); }

.checks { display: grid; gap: 10px; color: var(--muted); }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Reestructuración: recorrido de cuatro pasos que se ilumina al avanzar.
   Sin JavaScript o con movimiento reducido, todos los pasos aparecen iluminados. */
.flow { --gap: 16px; --node: 13px; --rail: 32px; }
.flow__head { display: grid; gap: 16px; }
.flow__mark { display: none; }

.flow__steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  margin-top: calc(clamp(40px, 5vw, 64px) + var(--rail));
}
.flow__step {
  position: relative; display: grid; gap: 10px; align-content: start;
  padding: 26px 22px 28px; border-radius: var(--r-panel);
  transition: background-color 0.6s var(--ease);
}
.flow__step > * { transition: opacity 0.6s var(--ease); }
/* Nodo del recorrido */
.flow__step::before {
  content: ""; position: absolute; top: calc(-1 * var(--rail)); left: 22px;
  width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--accent); border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 119, 74, 0.12);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
/* Tramo hasta el nodo siguiente: capa verde que crece sobre la línea base */
.flow__step::after {
  content: ""; position: absolute;
  top: calc(-1 * var(--rail) + (var(--node) - 2px) / 2); left: calc(22px + var(--node));
  width: calc(100% + var(--gap) - var(--node)); height: 2px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 0 0 / 100% 100% no-repeat;
  transition: background-size 0.8s var(--ease);
}
.flow__step:last-child::after { display: none; }
.flow__num {
  font-size: 2.75rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em;
  color: var(--accent-text); font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.flow__step p { color: var(--muted); font-size: 1rem; }

/* Estados cuando el recorrido está activo */
.flow[data-live] .flow__step:not(.is-lit) > * { opacity: 0.3; }
.flow[data-live] .flow__step:not(.is-lit)::before { background: var(--bg); border-color: var(--line-strong); box-shadow: none; }
.flow[data-live] .flow__step:not(.is-done)::after { background-size: 0% 100%, 100% 100%; }
.flow[data-live] .flow__step.is-lit:not(.is-done) { background: var(--soft); }

/* Fijado: la sección se queda en pantalla mientras se recorren los pasos */
.flow.is-pinned .flow__pin { position: relative; height: calc(100dvh - var(--header-h) + 160vh); }
.flow.is-pinned .flow__stage {
  position: sticky; top: var(--header-h); height: calc(100dvh - var(--header-h));
  display: grid; align-content: center;
}
.flow.is-pinned .flow__mark { display: block; position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.flow.is-pinned .flow__mark:nth-child(1) { top: 10vh; }
.flow.is-pinned .flow__mark:nth-child(2) { top: calc(100vh - var(--header-h)); }
.flow.is-pinned .flow__mark:nth-child(3) { top: calc(140vh - var(--header-h)); }
.flow.is-pinned .flow__mark:nth-child(4) { top: calc(180vh - var(--header-h)); }

.flow__areas { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 24px; }
.flow.is-pinned .flow__areas { margin-top: 0; }
.areas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.area {
  display: grid; gap: 4px; align-content: start;
  padding: 22px 20px 24px; border-radius: var(--r-panel); background: var(--soft);
}
.area__icon {
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 14px;
  background: var(--bg); color: var(--accent-text);
  display: grid; place-items: center;
}
.area__icon .ico { width: 24px; height: 24px; }
.area__name { font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; }

/* Liquidación: mosaico */
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.bento__lead {
  grid-row: span 2; position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-panel); background: #0a2c20; color: #eef4f0;
  padding: clamp(28px, 3vw, 40px); min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
}
.bento__lead img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
.bento__lead::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 44, 32, 0.35) 0%, rgba(10, 44, 32, 0.9) 68%);
}
.bento__lead h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.05; }
.bento__lead p { color: #c9d8cf; max-width: 28ch; }
.bento__lead .link { margin-top: 12px; color: #eef4f0; }
.bento__lead :focus-visible { outline-color: #eef4f0; }

.tile {
  border-radius: var(--r-panel); background: var(--soft);
  padding: clamp(24px, 2.6vw, 32px);
  display: grid; gap: 10px; align-content: start;
}
.tile p { color: var(--muted); font-size: 1rem; }

.link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 600; min-height: 44px;
}
.link .ico { transition: transform 0.3s var(--ease); }
.link:hover .ico { transform: translateX(4px); }

/* Empezar: panel con cuatro filas (título con icono a la izquierda, tareas a la derecha) */
.panel {
  border-radius: var(--r-panel); background: var(--soft);
  padding: clamp(20px, 4.5vw, 64px);
  display: grid; gap: clamp(28px, 4vw, 48px);
}
.panel__head { display: grid; gap: 16px; }
.groups { display: grid; gap: 12px; }
.group {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(24px, 4vw, 56px); align-items: start;
  padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-panel); background: var(--bg);
}
.group__title { display: flex; align-items: center; gap: 16px; }
.group__icon {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--tint); color: var(--accent-text);
  display: grid; place-items: center;
}
.group__icon .ico { width: 24px; height: 24px; }
.group .checks {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px;
  font-size: 1rem; padding-top: 11px;
}

/* Oficinas */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.office { padding-top: 20px; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; align-content: start; }
.office h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 560; letter-spacing: -0.03em; }
.office address { color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.office address .ico { margin-top: 0.22em; color: var(--accent-text); }

/* Contacto */
.contact { padding-bottom: clamp(24px, 4vw, 48px); }
.contact__box {
  border-radius: var(--r-panel); background: var(--deep); color: var(--on-deep);
  padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px);
}
.contact__box :focus-visible { outline-color: var(--on-deep); }
.contact__copy { display: grid; gap: 20px; align-content: start; }
.contact__copy .lead { color: var(--on-deep-muted); }
.ways { display: grid; gap: 4px; margin-top: 12px; }
.ways a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 500; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; justify-self: start;
}
.ways a .ico { color: var(--on-deep-muted); transition: color 0.2s var(--ease); }
.ways a:hover .ico { color: var(--on-deep); }
.ways small { color: var(--on-deep-muted); font-size: 0.8125rem; font-weight: 500; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--on-deep-muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: var(--r-field); border: 1px solid var(--deep-line);
  background: var(--deep-field); color: var(--on-deep);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(238, 244, 240, 0.4); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--on-deep); outline-offset: 2px; border-radius: var(--r-field);
  background: rgba(238, 244, 240, 0.11);
}
.field [aria-invalid="true"] { border-color: var(--error-on-deep); }
.field__error, .form__error { color: var(--error-on-deep); font-size: 0.9375rem; }
.field__error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; font-size: 0.9375rem; color: var(--on-deep-muted); min-height: 44px; align-content: center; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #2fa474; cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error-on-deep); outline-offset: 2px; }
.consent a, .form__note a { color: var(--on-deep); text-decoration: underline; text-underline-offset: 3px; }
.consent .field__error { grid-column: 2; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form__note { font-size: 0.8125rem; line-height: 1.5; color: var(--on-deep-muted); margin-top: 8px; }

.done { display: grid; gap: 14px; align-content: center; min-height: 320px; }
.done h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 560; letter-spacing: -0.03em; }
.done p { color: var(--on-deep-muted); max-width: 40ch; }
.done .ico { width: 40px; height: 40px; color: #6fd3a8; }
[hidden] { display: none !important; }

/* Pie */
.footer { padding-block: 32px 40px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 0.875rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { display: inline-block; padding-block: 13px; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--ink); }

/* Página legal y 404 */
.doc { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.doc__in { max-width: 72ch; display: grid; gap: 20px; }
.doc h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 8px; }
.doc h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 12px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.doc a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.doc mark { background: #ffe9a8; color: #3b2f00; padding: 1px 6px; border-radius: 4px; }
.notfound { min-height: calc(100dvh - var(--header-h) - 120px); display: grid; align-content: center; gap: 24px; justify-items: start; }

/* Movimiento */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Recorrido en fila sin fijar: los pasos entran a la vez, así que se encienden en cascada */
@media (min-width: 900px) {
  .flow:not(.is-pinned) .flow__step,
  .flow:not(.is-pinned) .flow__step > *,
  .flow:not(.is-pinned) .flow__step::before,
  .flow:not(.is-pinned) .flow__step::after { transition-delay: calc(var(--n, 0) * 180ms); }
}

/* Tablet */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__lead { grid-column: 1 / -1; grid-row: auto; min-height: 320px; }
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__box { grid-template-columns: minmax(0, 1fr); }
}

/* Menú plegado y recorrido en vertical */
@media (max-width: 899px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; border-radius: var(--r-pill); cursor: pointer;
  }
  .menu-btn .ico { width: 26px; height: 26px; }
  .menu-btn .ico--close, .menu-btn[aria-expanded="true"] .ico--open { display: none; }
  .menu-btn[aria-expanded="true"] .ico--close { display: block; }

  .nav__links {
    position: absolute; z-index: 30; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    box-shadow: 0 24px 40px -28px rgba(10, 44, 32, 0.4);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__links a { display: block; font-size: 1.125rem; color: var(--ink); padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__tel span { display: none; }
  .nav__tel { width: 44px; height: 44px; justify-content: center; }
  .nav__tel .ico { width: 24px; height: 24px; }
  .nav { gap: 8px; }

  .flow { --rail: 34px; }
  .flow__steps { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 36px; padding-left: var(--rail); }
  .flow__step { padding: 20px 20px 22px; }
  .flow__step::before { top: 30px; left: calc(-1 * var(--rail)); }
  .flow__step::after {
    top: calc(30px + var(--node)); left: calc(-1 * var(--rail) + (var(--node) - 2px) / 2);
    width: 2px; height: calc(100% + 12px - var(--node));
  }
  .flow[data-live] .flow__step:not(.is-done)::after { background-size: 100% 0%, 100% 100%; }
}

/* Móvil */
@media (max-width: 767px) {
  .hero__grid, .split, .offices, .group, .form__row { grid-template-columns: minmax(0, 1fr); }
  .group .checks { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .hero__media { aspect-ratio: 4 / 3; max-height: none; }
  .hero__media img { object-position: 70% 70%; }
  .split__head { position: static; }
  .index__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .index__desc { grid-column: 1; grid-row: 2; }
  .index__row .ico { grid-column: 2; grid-row: 1 / span 2; }
  .offices { gap: 32px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 559px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header .btn--sm { display: none; }
  .path__card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
