/* ============================================================
   Alpa Asociados S.A.C. — hoja de estilos
   Lenguaje visual: plano topográfico. Retículas finas, tipografía
   monoespaciada para el dato, azul de marca sobre papel frío.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Marca */
  --navy-900: #0B1E38;
  --navy-800: #12305C;
  --navy-700: #1A4276;
  --navy-600: #24568F;
  --cyan-500: #2FB6E8;
  --cyan-600: #1793C6;
  --cyan-700: #0F6F97;

  /* Neutros con sesgo frío hacia el azul de marca */
  --paper:   #F4F7FA;
  --paper-2: #EDF2F7;
  --surface: #FFFFFF;
  --line:    #DBE4EC;
  --line-2:  #C8D5E1;
  --ink:     #0B1E38;
  --muted:   #566B83;
  --muted-2: #7C8EA3;

  /* Sobre fondo oscuro */
  --on-dark:       #EAF1F8;
  --on-dark-muted: #9FB3C8;
  --on-dark-line:  rgba(255, 255, 255, 0.14);

  /* Tipografía */
  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Ritmo */
  --section-y: clamp(64px, 8vw, 116px);
  --gutter: clamp(20px, 5vw, 40px);
  --maxw: 1180px;

  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan-600);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.skip-link:focus { left: 8px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ── Barra superior de datos ────────────────────────────── */
.topbar {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.topbar__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 9px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px 26px;
  flex-wrap: wrap;
}

.topbar__item { white-space: nowrap; }
.topbar__item--dim { color: rgba(159, 179, 200, 0.62); }

.topbar__link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-500);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.topbar__link .icon { width: 15px; height: 15px; }
.topbar__link:hover { color: #fff; }

/* ── Navegación ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__brand { flex: none; display: block; }
.nav__brand img { width: 168px; height: auto; }

.nav__menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9375rem;
}

.nav__list a {
  position: relative;
  color: var(--ink);
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__list a:hover { color: var(--navy-700); }
.nav__list a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle-bars { display: block; width: 20px; }
.nav__toggle-bars span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle-bars span + span { margin-top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--wa {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--wa .icon { fill: #25D366; width: 20px; height: 20px; }
.btn--wa:hover { border-color: var(--navy-700); }

.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ── Rótulos de sección ─────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-700);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan-500);
  flex: none;
}
.eyebrow--light { color: var(--cyan-500); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(88vh, 800px);
  overflow: hidden;
  background: var(--navy-900);
}

.hero__photo,
.hero__contours,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__photo { object-fit: cover; object-position: 60% 50%; }
.hero__contours { z-index: 1; opacity: 0.78; }

.hero__scrim {
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(11, 30, 56, 0.94) 0%, rgba(11, 30, 56, 0.86) 34%, rgba(11, 30, 56, 0.42) 62%, rgba(11, 30, 56, 0.30) 100%),
    linear-gradient(to top, rgba(11, 30, 56, 0.72) 0%, rgba(11, 30, 56, 0) 42%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter) clamp(48px, 6vw, 72px);
  color: #fff;
}

.hero__title {
  max-width: 17ch;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.06;
}

.hero__lead {
  max-width: 54ch;
  margin-top: 22px;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.62;
  color: rgba(234, 241, 248, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Cajetín de plano */
.titleblock {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--on-dark-line);
  background: rgba(6, 20, 39, 0.58);
  backdrop-filter: blur(6px);
}

.titleblock__cell {
  padding: 18px var(--gutter);
  border-left: 1px solid var(--on-dark-line);
}
.titleblock__cell:first-child { border-left: 0; }

.titleblock dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.titleblock dd {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
}

/* ── Franja de credibilidad ─────────────────────────────── */
.strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  padding-inline: 0;
  max-width: var(--maxw);
}

.strip__item {
  background: var(--paper);
  padding: 30px clamp(18px, 2.4vw, 30px);
}

.strip__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--navy-800);
}

.strip__label {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Estructura de sección ──────────────────────────────── */
.section { padding-block: var(--section-y); }

.section--soft { background: var(--paper); }

.section--dark {
  background: var(--navy-900);
  color: var(--on-dark);
}

.section--texture {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(244, 247, 250, 0.93), rgba(244, 247, 250, 0.97)),
    url("../img/textura-terreno.jpg");
  background-size: auto, cover;
  background-position: center, center;
  border-block: 1px solid var(--line);
}

.section__head { margin-bottom: clamp(38px, 5vw, 60px); }

.section__title {
  max-width: 20ch;
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
}
.section--dark .section__title { color: #fff; }

.section__lead {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--muted);
}
.section--dark .section__lead { color: var(--on-dark-muted); }

/* ── Tarjetas de servicio ───────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -22px rgba(11, 30, 56, 0.5);
}

.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 28px;
  flex: 1;
}

.card__title { font-size: 1.1875rem; }

.card__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.62;
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
}
.taglist li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--navy-600);
  background: var(--paper-2);
  border-radius: 2px;
  padding: 5px 9px;
}

/* ── Sectores ───────────────────────────────────────────── */
.sectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--on-dark-line);
  border-block: 1px solid var(--on-dark-line);
}

.sector {
  background: var(--navy-900);
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3vw, 42px);
}

.sector__index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-500);
}

.sector__text {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--on-dark-muted);
  max-width: 46ch;
}

.sector__list {
  margin-top: 26px;
  display: grid;
  gap: 1px;
  background: var(--on-dark-line);
  border-top: 1px solid var(--on-dark-line);
}
.sector__list li {
  background: var(--navy-900);
  padding: 13px 0 13px 22px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--on-dark);
}
.sector__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 1px;
  background: var(--cyan-500);
}

/* ── Metodología ────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.step {
  background: var(--paper);
  padding: 26px clamp(18px, 2vw, 26px) 32px;
}

.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--cyan-700);
}

.step__title {
  margin-top: 16px;
  font-size: 1.0625rem;
}

.step__text {
  margin-top: 11px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Entregables ────────────────────────────────────────── */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.deliverable {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.deliverable__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.deliverable__fmt {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ── Alcances ───────────────────────────────────────────── */
.scopes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.scope {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy-800);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scope__title { font-size: 1.0625rem; }

.scope__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.scope__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--cyan-700);
}

/* ── Credenciales ───────────────────────────────────────── */
.creds {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.creds__text {
  margin-top: 18px;
  color: var(--on-dark-muted);
  max-width: 44ch;
}

.creds__list { border-top: 1px solid var(--on-dark-line); }

.creds__item {
  display: grid;
  gap: 7px;
  padding: 22px 0;
  border-bottom: 1px solid var(--on-dark-line);
}

.creds__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: #fff;
}

.creds__desc {
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
  line-height: 1.6;
}

/* ── Contacto ───────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.contact__text {
  margin-top: 18px;
  color: var(--muted);
  max-width: 46ch;
}

.channels {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.channel {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.channel__label {
  flex: none;
  width: 96px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.channel__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-800);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.channel__value:hover { border-bottom-color: var(--cyan-500); }

.contact__aside .btn--wa { margin-top: 28px; }

/* Formulario */
.form {
  display: grid;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}

.form__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: grid; gap: 7px; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-600);
  box-shadow: 0 0 0 3px rgba(47, 182, 232, 0.18);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field--hp { position: absolute; left: -9999px; }

.form__note {
  font-size: 0.8125rem;
  color: var(--muted-2);
  text-align: center;
}

/* Resultado del envío del formulario */
.form__status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 3px solid;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form__status--ok {
  background: #ECF7F1;
  border-color: #1E9E63;
  color: #145E3C;
}

.form__status--error {
  background: #FDF0EE;
  border-color: #C2452D;
  color: #8A2F1F;
}

.form__wa {
  display: block;
  width: fit-content;
  margin-top: 10px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Pie ────────────────────────────────────────────────── */
.footer {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  padding-top: clamp(48px, 6vw, 76px);
  font-size: 0.9375rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: clamp(30px, 4vw, 64px);
  padding-bottom: clamp(38px, 4vw, 56px);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.wordmark__b { color: var(--cyan-500); }

.footer__desc {
  margin-top: 14px;
  max-width: 38ch;
  line-height: 1.62;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--on-dark-line);
}

.footer__nav ul { display: grid; gap: 10px; }
.footer__nav a {
  color: var(--on-dark);
  transition: color 0.2s var(--ease);
}
.footer__nav a:hover { color: var(--cyan-500); }

.footer__dl { display: grid; gap: 10px; }
.footer__dl > div {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.footer__dl dt { color: var(--on-dark-muted); }
.footer__dl dd { color: var(--on-dark); text-align: right; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: space-between;
  padding: 22px 0 26px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.8125rem;
  color: rgba(159, 179, 200, 0.75);
}

/* ── Aparición al hacer scroll ───────────────────────────
   La clase .reveal-ready la pone el propio script que luego
   revela los bloques: si el script falla antes, nada se oculta.
   ─────────────────────────────────────────────────────── */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Adaptación ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .scopes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
    box-shadow: 0 18px 30px -24px rgba(11, 30, 56, 0.55);
    display: none;
  }
  .nav__menu.is-open { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__list a::after { display: none; }

  .nav__cta { margin-top: 18px; }

  /* El degradado del hero es horizontal y en pantallas angostas el texto
     queda sobre la zona clara de la foto: se pasa a un velo vertical. */
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(11, 30, 56, 0.88) 0%,
      rgba(11, 30, 56, 0.80) 50%,
      rgba(11, 30, 56, 0.92) 100%);
  }

  .titleblock { grid-template-columns: repeat(2, 1fr); }
  .titleblock__cell:nth-child(odd) { border-left: 0; }
  .titleblock__cell:nth-child(n + 3) { border-top: 1px solid var(--on-dark-line); }

  .sectors { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .scopes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }

  .hero { min-height: auto; }
  .hero__title { max-width: none; }
  .topbar__link { margin-left: 0; }
  .channel { flex-direction: column; gap: 4px; }
  .channel__label { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .nav, .hero__contours, .form { display: none; }
  body { color: #000; }
}
