/* ============================================================
   agcs.co -- estilos del sitio
   Usa los tokens de agcs-ui (colors.css, fonts.css, grid.css).
   Fondos con background-color, nunca con el atajo background:
   el atajo borraria las lineas de .agcs-grid.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: inherit; }

[data-mode="dark"] { background-color: var(--surface); color: var(--ink); }

a, button { transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1); }
a:hover, button:hover { opacity: 0.7; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #E5E5E5; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 16px;
  background-color: var(--highlight); color: var(--highlight-ink);
  font-size: 14px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  max-width: 1344px;
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
}

/* Enlaces de texto (D14): tinta subrayada; al pasar, banda lime en claro y texto lime en oscuro. */
.link {
  color: var(--text-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  background-image: linear-gradient(var(--link-hover-bg), var(--link-hover-bg));
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 0 1.5em;
}
.link:hover { opacity: 1; color: var(--link-hover-ink); background-size: 100% 1.5em; }

/* Texto pendiente de Max: visible a proposito hasta que se confirme. */
.pendiente {
  padding: 1px 6px;
  background-color: var(--highlight);
  color: var(--highlight-ink);
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 0;
  font: inherit; font-size: 14px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn:focus-visible { outline-color: var(--ink); }
.btn--solid { background-color: var(--ink); color: var(--surface); border-color: var(--ink); font-weight: 500; }
.btn--line { background-color: transparent; color: var(--ink); border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn--paper { background-color: #FFFFFF; color: #000000; border-color: #FFFFFF; font-weight: 500; }
.btn--paper:focus-visible { outline-color: #FFFFFF; }
.btn--line-inv {
  min-height: 48px; padding: 0 16px;
  background-color: transparent; color: #FFFFFF; border-color: #FFFFFF;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.btn--line-inv:focus-visible { outline-color: #FFFFFF; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background-color: transparent; color: #FFFFFF;
  border: 1px solid #FFFFFF; border-radius: 0; cursor: pointer;
}
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- tipografia comun ---------- */
.eyebrow {
  margin: 0 0 24px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow--2 { color: var(--ink-2); }
.title {
  margin: 0;
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.01em;
}
.subtitle {
  margin: 12px 0 0;
  font-family: var(--font-subtitle); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2;
  color: var(--ink-2);
}
.section { padding: clamp(80px, 9vw, 128px) 0; }

/* ---------- encabezado ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px;
  padding-top: 16px; padding-bottom: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  color: inherit; text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
}
.logo__mark { width: 28px; height: 29px; flex: none; }
.site-nav {
  display: flex; flex-wrap: wrap; gap: 0 32px; margin-left: auto;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
@media (max-width: 1100px) {
  .site-header .btn { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 0 20px; }
}
@media (max-width: 600px) {
  /* Una sola fila que se desliza: en teléfono el menú no ocupa media pantalla. */
  .site-header__in { padding-bottom: 0; }
  .site-nav {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    --gutter: clamp(16px, 3vw, 48px);
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    width: calc(100% + 2 * var(--gutter));
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
}
@media (max-width: 420px) {
  .logo span { display: none; }
}

/* ---------- hero ---------- */
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  gap: 48px; align-items: end;
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 6vw, 96px);
}
.hero__title {
  margin: 0;
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(52px, 9vw, 136px); line-height: 0.9; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__sub {
  display: block; margin-top: 12px;
  font-family: var(--font-subtitle); font-style: italic; font-weight: 400;
  font-size: 0.94em; line-height: 1; letter-spacing: 0; text-transform: none;
}
.hero__q {
  margin: 48px 0 0; max-width: 36ch;
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; font-weight: 500;
}
.hero__gif { align-self: start; justify-self: end; width: clamp(200px, 34vw, 480px); }
/* El fondo negro del GIF se funde con el del hero y deja ver su cuadricula. */
.hero__gif img { width: 100%; height: auto; mix-blend-mode: lighten; }
@media (max-width: 1199px) {
  .hero__gif { grid-row: 1; justify-self: start; }
}

.stage-index { border-top: 1px solid var(--rule); }
.stage-index__list {
  list-style: none; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}
.stage-index__list li { border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); margin-top: -1px; }
.stage-index__list a { display: block; padding: 20px 16px; color: inherit; text-decoration: none; }
.stage-index .num { display: block; font-size: 12px; color: var(--ink-3); }
.stage-index .lbl { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- 01 strategic intent ---------- */
.split {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px 64px; align-items: start;
}
.diagram { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border: 1px solid var(--rule); }
.diagram__box {
  display: block; width: 256px; max-width: 100%;
  padding: 12px 16px; border: 1px solid var(--ink); background-color: var(--surface);
  font-size: 16px; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase;
}
.diagram__row { display: flex; align-items: stretch; }
.diagram__stem { position: relative; flex: none; width: 16px; margin-left: 24px; }
.diagram__stem::before {
  content: ""; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 1px; background-color: var(--ink);
}
.diagram__branch { padding: 24px 0 0 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  width: 240px; max-width: 100%; padding: 8px 16px 8px 8px;
  background-color: #000000; color: #FFFFFF;
  font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}
.pill img { width: 32px; height: 32px; }
.pill__label { margin-left: auto; }
.diagram__list {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 12px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.diagram__spacer { display: block; height: 48px; }

@media (max-width: 374px) {
  .diagram__row { max-width: 100%; }
  .diagram__branch { min-width: 0; flex: 0 1 auto; }
}

.acc { list-style: none; margin: 0; padding: 0; border-top: 1px dotted var(--ink-3); }
.acc > li { border-bottom: 1px dotted var(--ink-3); }
.acc h3 { margin: 0; }
.acc__btn {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; min-height: 44px; padding: 24px 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.acc__title { display: block; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
.acc__sub { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.acc__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border: 1px solid var(--ink);
}
.acc__btn[aria-expanded="true"] .acc__v { display: none; }
.acc__panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px 40px; padding: 0 0 32px;
}
.acc__body { margin: 0; font-size: 15px; line-height: 1.65; }
.guide { padding: 16px; background-color: var(--surface-2); border-left: 2px solid var(--ink); }
.guide__h { margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.guide ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }

/* ---------- 02 explore system (lime) ---------- */
.framework {
  --ink: #000000; --ink-2: #353535; --ink-3: #353535;
  background-color: var(--agcs-lime); color: #000000;
  border-top: 2px solid #000000; border-bottom: 2px solid #000000;
}
.framework__in {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(80px, 9vw, 128px) clamp(16px, 3vw, 48px) clamp(64px, 6vw, 96px);
}
.framework__lead { margin: 24px 0 0; max-width: 80ch; font-size: 15px; line-height: 1.65; }

.stages { display: flex; flex-wrap: wrap; gap: 40px 16px; margin-top: 56px; }
.stage-card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 16px; border: 2px solid transparent;
  scroll-margin-top: 24px;
  transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1), border-color 200ms cubic-bezier(0.2, 0, 0, 1);
}
.stage-card--2 { flex: 2 1 296px; }
.stage-card--3 { flex: 3 1 392px; }
.stage-card.is-selected { background-color: #FFFFFF; border-color: #000000; }
.stage-card h3 { margin: 0; }
.stage-card__head { display: flex; align-items: center; }
.stage-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 8px 16px 8px 8px;
  background-color: #000000; color: #FFFFFF; border: 0; border-radius: 0;
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
}
.stage-btn:focus-visible { outline-color: #000000; }
.stage-btn img { width: 32px; height: 32px; }
.arrow-r { display: flex; align-items: center; flex: 1 1 auto; min-width: 16px; }
.arrow-r::before { content: ""; flex: 1; height: 1px; background-color: #000000; }
.arrow-r::after { content: ""; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #000000; }
.stage-card__desc { margin: 20px 0 0; font-size: 14px; line-height: 1.6; }
.stage-card__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 16px; margin-top: 24px;
}
.stage-card h4 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: 0.03em; text-transform: uppercase; }
.stage-card__cols p { margin: 4px 0 0; font-size: 13px; }
.stage-card__cols ul {
  list-style: none; display: grid; gap: 20px;
  margin: 16px 0 0; padding: 16px 0 0 12px;
  border-top: 1px dotted currentColor; border-left: 1px dotted currentColor;
  font-size: 13px;
}
.dotted { display: block; margin-top: 16px; border-top: 1px dotted currentColor; }
.stage-card__cta {
  align-self: flex-start; margin-top: auto; padding: 24px 0 0; min-height: 44px;
  background: none; border: 0; color: inherit;
  font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

.stage-card--learning { margin-top: 40px; }
.learning__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.learning__kicker { margin: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 500; }
.arrow-l { display: flex; align-items: center; margin-top: 24px; }
.arrow-l::before { content: ""; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 8px solid #000000; }
.arrow-l::after { content: ""; flex: 1; height: 1px; background-color: #000000; }
.learning__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-top: 24px; }
.learning__foot p { margin: 0; max-width: 80ch; font-size: 14px; line-height: 1.6; }
.learning__foot .stage-card__cta { margin-top: 0; padding-top: 0; }

.stage-detail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px 48px; margin-top: 40px; padding: clamp(24px, 4vw, 48px);
  background-color: #000000; color: #FFFFFF;
  scroll-margin-top: 24px;
}
.stage-detail:focus { outline: none; }
.stage-detail a:focus-visible, .stage-detail button:focus-visible { outline-color: #FFFFFF; }
.stage-detail__main { display: flex; flex-direction: column; }
.stage-detail__eyebrow, .stage-detail__h {
  margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #B4B4B4;
}
.stage-detail__h { margin-bottom: 8px; }
.stage-detail__name { margin: 16px 0 0; font-family: var(--font-title); font-weight: 700; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.stage-detail__q { margin: 20px 0 0; font-size: 17px; font-weight: 500; line-height: 1.5; }
.stage-detail__nav { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; }
.stage-detail__nav .icon-btn { flex: none; }
.stage-detail__nav .btn { min-width: 0; }
.stage-detail__list { list-style: none; margin: 0; padding: 0; }
.stage-detail__list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid #353535; font-size: 14px; line-height: 1.6; }
.stage-detail__n { flex: none; color: #9A9A9A; }
.stage-detail__to { margin: 16px 0 0; font-size: 13px; color: #B4B4B4; }
.stage-detail .btn--paper { margin-top: 24px; }

/* ---------- AGCS ---------- */
.about { display: grid; gap: 48px 64px; align-items: center; }
.about__title { font-size: clamp(36px, 4.2vw, 60px); }

/* ---------- 03 studio + lab ---------- */
.arms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 32px; margin-top: 64px;
}
.arm {
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid var(--ink); background-color: var(--surface); color: var(--ink);
}
.arm--lab { border-color: #000000; }
.arm__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.arm__top img { width: 64px; height: 64px; }
.arm__ai { color: var(--ink-3); }
.arm h3 { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; }
.arm__text { margin: 0; font-size: 15px; line-height: 1.65; }
.arm--lab .arm__text { color: var(--ink-2); }
.arm__foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--rule); }
.arm__label { margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--ink); color: var(--ink);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}

/* ---------- 04 programas ---------- */
.programs { background-color: var(--surface-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.program-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px; margin-top: 64px;
}
.program {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 32px; background-color: var(--surface); border: 1px solid var(--rule);
}
.program--forward { border-color: #000000; }
.program__bar {
  display: block; align-self: stretch; height: 8px; margin: -32px -32px 0;
  background-color: var(--highlight); border-bottom: 1px solid #000000;
}
.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px;
  background-color: #000000; color: #FFFFFF;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}
.tag:focus-visible { outline-color: #000000; }
.program h3 { margin: 8px 0 0; font-family: var(--font-title); font-weight: 700; font-size: 28px; line-height: 1.1; }
.program__meta { margin: 0; font-size: 13px; color: var(--ink-3); }
.program__text { margin: 0; font-size: 14px; line-height: 1.65; }
.program__cta { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: auto; padding-top: 8px; }
.program__cta .link, .site-footer .link { display: inline-block; padding: 12px 0; font-size: 13px; line-height: 20px; }
.clients { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); }
.clients__list { margin: 12px 0 0; font-size: 15px; }

/* ---------- 05 nota ---------- */
.nota { display: grid; gap: 48px 64px; align-items: start; }
.nota__photo { margin: 0; max-width: 360px; }
.nota__photo img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .nota { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .nota__photo { max-width: none; position: sticky; top: 24px; }
}
.nota__quote {
  margin: 0;
  font-family: var(--font-subtitle); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15;
}
.prose { max-width: 68ch; margin-top: 32px; }
.prose p { margin: 0 0 16px; font-size: 15px; line-height: 1.75; }
.nota__sign { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.6; }
.nota__sign strong { font-weight: 500; }

/* ---------- aviso de privacidad ---------- */
.legal .prose { margin-top: 40px; }
.legal .prose strong { font-weight: 500; }

/* ---------- contacto ---------- */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 64px;
  padding-top: clamp(80px, 9vw, 128px); padding-bottom: clamp(80px, 9vw, 128px);
}
.contact__title {
  margin: 0;
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(44px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.02em;
}
.contact__sub { margin-top: 20px; }
.contact__lead { margin: 24px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.contact__icon { margin-top: 48px; width: clamp(96px, 12vw, 160px); height: auto; }
.contact__direct { margin: 32px 0 0; font-size: 14px; line-height: 1.8; }
.contact__place { color: var(--ink-3); }

.form, .done {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid #353535; background-color: #000000; color: #FFFFFF;
}
.form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px; align-content: start;
}
.form__h { grid-column: 1 / -1; margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #B4B4B4; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full, .form__submit, .form__pending, .form__status, .form__privacy { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.opt { color: #9A9A9A; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid #9A9A9A; border-radius: 0;
  background-color: #000000; color: #FFFFFF;
  font: inherit; font-size: 15px;
}
.field textarea { padding: 12px 16px; line-height: 1.5; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field option { background-color: #000000; color: #FFFFFF; }
.field [aria-invalid="true"] { border-color: var(--text-error); }
.field__err { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-error); }
.field__err:empty { margin-top: -8px; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__submit .btn { padding: 0 28px; }
.form__note { margin: 0; font-size: 12px; color: #9A9A9A; }
.form__pending, .form__privacy { margin: 0; font-size: 12px; }
.field__hint { margin: 0; font-size: 12px; color: #9A9A9A; }
.form__status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-error); }
.form__status:empty { display: none; }

.done:focus { outline: none; }
.done .eyebrow { margin-bottom: 0; }
.done__title { margin: 16px 0 0; font-family: var(--font-title); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.done__text { margin: 16px 0 0; font-size: 15px; line-height: 1.6; }
.done__dl { display: grid; gap: 12px; margin: 24px 0; }
.done__dl dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #B4B4B4; }
.done__dl dd { margin: 4px 0 0; }
.done > p:not([class]) { margin: 0 0 24px; font-size: 12px; }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 32px; padding-top: 16px; padding-bottom: 16px;
  font-size: 12px; letter-spacing: 0.04em;
}
.site-footer p { margin: 0; }
.site-footer__nav { display: flex; gap: 24px; }
.site-footer .link { font-size: 12px; }

/* ---------- podcast ---------- */
.podcast { display: grid; gap: 48px 64px; align-items: start; }
@media (min-width: 900px) {
  .podcast { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.podcast__art { margin: 0; max-width: 480px; }
.podcast__art img { width: 100%; height: auto; }
.podcast__quote {
  margin: 24px 0 0;
  font-family: var(--font-subtitle); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; color: var(--ink-2);
}
.podcast__text { margin: 24px 0 0; max-width: 64ch; font-size: 15px; line-height: 1.75; }
.podcast__embed { margin-top: 48px; border: 1px solid var(--rule); }
.podcast__embed iframe { display: block; width: 100%; height: 352px; border: 0; }

/* ---------- sistemas ---------- */
.systems__lead { margin: 24px 0 0; max-width: 80ch; font-size: 15px; line-height: 1.65; }
.systems {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 32px; margin-top: 64px;
}
.system {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 3vw, 48px);
  border: 1px solid #000000; background-color: var(--surface); color: var(--ink);
}
.system--forward { padding-top: calc(clamp(24px, 3vw, 48px) + 8px); }
.system--forward::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background-color: var(--agcs-lime); border-bottom: 1px solid #000000;
}
.system__mode { margin: 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.system__name { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: clamp(32px, 3.2vw, 48px); line-height: 1; }
.system__q { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.5; }
.system__parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.system__parts li {
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.system__go { align-self: flex-start; margin-top: auto; padding: 12px 0; font-size: 14px; }

/* Strategic Intent alimenta a los dos sistemas. */
/* The stem from Strategic Intent ends on a line that feeds both systems.
   The line runs from the stem (x = 31px) to the same point on the second box. */
.diagram__pair { position: relative; display: flex; gap: 12px; width: 100%; max-width: 344px; padding-top: 24px; }
.diagram__pair::before {
  content: ""; position: absolute; top: 0; left: 31px; right: calc(50% - 37px);
  height: 1px; background-color: var(--ink);
}
.diagram__pair .diagram__box { position: relative; flex: 1 1 0; min-width: 0; width: auto; }
.diagram__pair .diagram__box::before {
  content: ""; position: absolute; bottom: calc(100% + 8px); left: 30px;
  width: 1px; height: 16px; background-color: var(--ink);
}
.diagram__pair .diagram__box::after {
  content: ""; position: absolute; bottom: 100%; left: 25px;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--ink);
}
@media (max-width: 374px) {
  .diagram__pair .diagram__box { padding: 12px; font-size: 14px; }
}

/* ---------- DRIs System (oscuro) ---------- */
.dris { border-bottom: 2px solid #000000; }
.dris__in { padding-top: clamp(80px, 9vw, 128px); padding-bottom: clamp(80px, 9vw, 128px); }
.dris__lead { margin: 24px 0 0; max-width: 80ch; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.dris__block { margin-top: 64px; }
.dris__h { margin: 0 0 24px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.chain__item {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border: 1px solid var(--rule); background-color: var(--surface-2);
}
/* Flecha lime hacia la pieza siguiente: vertical en movil, horizontal en escritorio. */
.chain__item:not(:last-child)::before {
  content: ""; position: absolute; top: 100%; left: 32px;
  width: 2px; height: 22px; background-color: var(--highlight-edge);
  transform-origin: center top;
}
.chain__item:not(:last-child)::after {
  content: ""; position: absolute; top: calc(100% + 22px); left: 27px;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--highlight-edge);
}
@media (min-width: 960px) {
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .chain__item:not(:last-child)::before { top: calc(50% - 1px); left: 100%; width: 38px; height: 2px; transform-origin: left center; }
  .chain__item:not(:last-child)::after {
    top: calc(50% - 6px); left: calc(100% + 38px);
    border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 0; border-left: 10px solid var(--highlight-edge);
  }
}
.chain__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chain__num { font-size: 12px; color: var(--ink-3); }
.chain__tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  border: 1px solid var(--highlight-edge); color: var(--highlight-edge);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.chain__name { margin: 8px 0 0; font-family: var(--font-title); font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; }
.chain__en { margin: 0; font-family: var(--font-subtitle); font-style: italic; font-size: 20px; line-height: 1.25; color: var(--ink-2); }
.chain__q { margin: 8px 0 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
.chain__d { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

.dris__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 0 64px; margin-top: 64px;
}
.dris__cols .dris__block { margin-top: 0; }
.dris__cols .dris__block + .dris__block { margin-top: 48px; }
@media (min-width: 928px) {
  .dris__cols .dris__block + .dris__block { margin-top: 0; }
}
.stack { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.stack li {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  padding: 16px 0; border-top: 1px solid var(--rule);
}
.stack__name { flex: 0 0 168px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.stack__d { flex: 1 1 200px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.loops .stack__name::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 12px;
  background-color: var(--highlight-edge); vertical-align: 1px;
}
.stack__systems { list-style: none; display: grid; gap: 12px; margin: 24px 0 0; padding: 0; }
.stack__systems li { padding: 16px; border: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.stack__systems strong {
  display: block; margin-bottom: 4px;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.dris__cta { margin-top: 64px; }

/* ---------- movimiento ----------
   Solo transform y opacity, con curva de salida. Sin preferencia de
   movimiento reducido no se anima nada y todo se ve desde el inicio.
   El contenido nunca depende de JS: site.js solo oculta lo que aun
   esta fuera de la pantalla y lo muestra al entrar. */
@keyframes agcs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes agcs-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes agcs-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes agcs-fade { from { opacity: 0; } to { opacity: 1; } }

@media screen and (prefers-reduced-motion: no-preference) {
  .hero__eyebrow, .hero__title, .hero__q, .hero__actions, .stage-index__list li {
    animation: agcs-rise 640ms cubic-bezier(0.2, 0, 0, 1) backwards;
  }
  .hero__title { animation-delay: 80ms; }
  .hero__q { animation-delay: 180ms; }
  .hero__actions { animation-delay: 260ms; }
  .stage-index__list li:nth-child(1) { animation-delay: 360ms; }
  .stage-index__list li:nth-child(2) { animation-delay: 420ms; }
  .stage-index__list li:nth-child(3) { animation-delay: 480ms; }
  .stage-index__list li:nth-child(4) { animation-delay: 540ms; }
  .stage-index__list li:nth-child(5) { animation-delay: 600ms; }
  .stage-index__list li:nth-child(6) { animation-delay: 660ms; }
  .hero__gif { animation: agcs-fade 960ms cubic-bezier(0.2, 0, 0, 1) 240ms backwards; }

  .reveal--wait { opacity: 0; }
  .reveal--in {
    animation: agcs-rise 720ms cubic-bezier(0.2, 0, 0, 1) backwards;
    animation-delay: calc(var(--i, 0) * 90ms);
  }
  /* La flecha de la cadena se dibuja cuando su pieza ya entro. */
  .chain__item.reveal--in:not(:last-child)::before {
    animation: agcs-grow-y 400ms cubic-bezier(0.2, 0, 0, 1) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + 520ms);
  }
  .chain__item.reveal--in:not(:last-child)::after {
    animation: agcs-fade 200ms cubic-bezier(0.2, 0, 0, 1) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + 880ms);
  }
  @media (min-width: 960px) {
    .chain__item.reveal--in:not(:last-child)::before { animation-name: agcs-grow-x; }
  }
}
