/* ============================================================================
   NewAIFactory.com — sistema visual
   ----------------------------------------------------------------------------
   Reescrito desde cero en septiembre de 2026. No hereda nada de styles.css:
   ni la paleta azul, ni las fuentes de sistema, ni los componentes.

   Base carbón cálido + un único acento ámbar, que es literalmente la luz de
   sodio de las fotografías del sitio. Interfaz e imágenes hablan igual.
   ========================================================================== */

:root {
  /* Fondos, de más oscuro a más claro */
  --bg:        #0A0C10;
  --bg-2:      #0E1117;   /* bandas alternas */
  --surface:   #10131A;   /* tarjetas */
  --surface-2: #151922;   /* tarjetas sobre banda */

  /* Texto */
  --fg:        #F3F1EA;
  --fg-2:      #C9C6BD;
  --fg-3:      #A7ADB5;
  --fg-4:      #8B919A;
  --fg-5:      #6F7680;

  /* Un solo acento. Si algún día hace falta un segundo, es que algo va mal. */
  --amber:     #FF8A2A;
  --amber-2:   #FFB067;
  --amber-dim: rgba(255,138,42,.14);

  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.14);
  --line-3:    rgba(255,255,255,.22);

  --font-disp: 'Funnel Display', system-ui, -apple-system, sans-serif;
  --font:      'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap:      1240px;
  --col:       760px;
  --pad:       clamp(18px, 5vw, 40px);

  --r:         18px;
  --r-sm:      12px;
  --r-pill:    999px;
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover, a:focus-visible { color: var(--amber-2); }

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

::selection { background: var(--amber); color: var(--bg); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--bg); padding: 12px 20px; font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── Rejilla ─────────────────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
/* La columna de lectura se alinea al mismo margen izquierdo que el resto, no
   al centro: centrada bailaba respecto al hero y a las secciones anchas. */
.col  { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.col > * { max-width: var(--col); }
.col > .faq { max-width: 860px; }

.section { padding-block: clamp(56px, 9vw, 96px); }
.band    { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ── Tipografía ──────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-disp);
  letter-spacing: -.035em;
  line-height: 1.06;
  margin: 0 0 18px;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-weight: 700; letter-spacing: -.045em; line-height: .99; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }

p { margin: 0 0 20px; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; color: var(--fg-2); }
.muted { color: var(--fg-3); }

.kick {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 18px;
}
.kick--mute { color: var(--fg-4); }
.kick::before {
  content: ""; width: 28px; height: 1px; background: currentColor; flex-shrink: 0;
}
.kick--bare::before { display: none; }

/* ── Cabecera ────────────────────────────────────────────────────────────── */

/* Sobre el hero la cabecera va transparente; al bajar se opaca por JS. */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.head[data-stuck] {
  background: rgba(10,12,16,.96);
  border-bottom-color: var(--line);
}
.head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }

.logo { font-family: var(--font-disp); font-size: 1.3rem; font-weight: 700; letter-spacing: -.035em; color: var(--fg); }
.logo:hover { color: var(--fg); }
.logo em { font-style: normal; color: var(--amber); }

.nav { display: flex; align-items: center; gap: 30px; font-size: .94rem; font-weight: 500; }
.nav > a { color: rgba(243,241,234,.78); }
.nav > a:hover, .nav > a[aria-current] { color: var(--fg); }

.lang { display: inline-flex; gap: 4px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; }
.lang a { color: rgba(243,241,234,.45); }
.lang a[aria-current] { color: var(--fg); }
.lang span { color: rgba(243,241,234,.3); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--fg); }

/* ── Botones ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px;
  font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.1;
  border: 1px solid var(--amber); border-radius: var(--r-pill);
  background: var(--amber); color: var(--bg);
  cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--amber-2); border-color: var(--amber-2); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-3); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: var(--fg); color: var(--fg); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ── Hero con fotografía ─────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; }
/* Sin z-index negativos: con ellos Chrome dejaba de pintar la imagen en
   algunos de estos bloques sin motivo aparente. 0 imagen, 1 velo, 2 texto. */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero > .wrap { position: relative; z-index: 2; }
/* Doble velo: uno lateral para que el texto tenga contraste, otro vertical
   para fundir el pie de la imagen con el fondo de la página. */
/* Medido en pantalla: por encima de estos valores la fotografía desaparece y
   el hero queda negro. El lateral cubre justo la columna de texto y suelta la
   imagen a partir del 54%, que es donde empieza a verse la nave. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,12,16,.93) 0%, rgba(10,12,16,.74) 30%, rgba(10,12,16,.22) 58%, rgba(10,12,16,0) 82%),
    linear-gradient(180deg, rgba(10,12,16,.5) 0%, rgba(10,12,16,0) 22%, rgba(10,12,16,0) 58%, rgba(10,12,16,.88) 92%, rgba(10,12,16,1) 100%);
}
/* El hero de página interior no tiene formulario al lado: el texto ocupa la
   izquierda y la imagen puede respirar más. */
/* El hero interior no tiene tarjeta al lado, así que la imagen puede ocupar
   más: el velo solo cubre la columna de texto y el pie. */
.hero--page::after {
  background:
    linear-gradient(100deg, rgba(10,12,16,.9) 0%, rgba(10,12,16,.62) 34%, rgba(10,12,16,.12) 64%, rgba(10,12,16,0) 84%),
    linear-gradient(180deg, rgba(10,12,16,.6) 0%, rgba(10,12,16,0) 24%, rgba(10,12,16,0) 56%, rgba(10,12,16,.85) 92%, rgba(10,12,16,1) 100%);
}
/* El alto lo manda la ventana, no una cifra fija. Con min-height:860px + 150px
   de padding, en un portátil de 780 px la tarjeta del formulario se salía por
   debajo del pliegue — y el formulario es el objetivo de la página. */
.hero--home { min-height: 100svh; display: flex; align-items: center; padding-block: 116px 56px; }

/* Ventanas bajas: se aprieta el conjunto para que la tarjeta entera siga
   entrando sin hacer scroll. */
@media (min-width: 1101px) and (max-height: 900px) {
  .hero--home { padding-block: 100px 40px; }
  .hero--home h1 { font-size: clamp(2.2rem, 3.5vw, 3.3rem); }
  .hero--home .hero__lede { font-size: 1.02rem; margin-bottom: 24px; }
  .hero--home .lead { padding: 22px 24px 20px; }
  .hero--home .lead__title { font-size: 1.3rem; }
  .hero--home .lead__sub { margin-bottom: 16px; font-size: .86rem; }
  .hero--home .f, .hero--home .f-row { margin-bottom: 10px; }
  .hero--home .f:last-of-type { margin-bottom: 14px; }
  .hero--home .f select, .hero--home .f input,
  .hero--home .f-row select, .hero--home .f-row input { min-height: 46px; }
  .hero--home .btn { min-height: 48px; }
  .hero--home .hero__grid { gap: 52px; }
}
@media (min-width: 1101px) and (max-height: 760px) {
  .hero--home { padding-block: 92px 28px; }
  .hero--home h1 { font-size: 2.5rem; }
  .hero--home .hero__lede { font-size: .97rem; margin-bottom: 18px; }
  /* Lo secundario cede antes que el formulario. */
  .hero--home .hero__meta { display: none; }
}
.hero--page { min-height: 620px; display: flex; align-items: flex-end; padding-block: 180px 64px; }
.hero__head { max-width: 900px; }
.hero--page h1 { max-width: 17ch; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.hero--page .hero__lede { margin: 22px 0 0; max-width: 52ch; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) 440px; gap: 72px; align-items: start; width: 100%; }
.hero h1 { max-width: 13ch; }
.hero__lede { font-size: clamp(1.05rem, 1.9vw, 1.28rem); line-height: 1.55; color: rgba(243,241,234,.82); max-width: 46ch; margin: 0 0 34px; }
.hero__meta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: .9rem; color: rgba(243,241,234,.55); }

/* ── Tarjeta de captación ────────────────────────────────────────────────── */

/* Sin backdrop-filter. Con él, Chrome promocionaba la tarjeta a su propia capa
   y dejaba de pintar la fotografía del hero entero: el hero salía negro. Medido
   en pantalla; un fondo sólido translúcido da el mismo resultado visual. */
.lead {
  background: rgba(14,17,23,.93);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 40px 80px rgba(0,0,0,.45);
}
.lead--solid { background: var(--surface); }
.lead__title { font-family: var(--font-disp); font-size: 1.6rem; font-weight: 600; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 8px; }
.lead__sub { margin: 0 0 24px; font-size: .92rem; line-height: 1.55; color: var(--fg-3); }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.f { margin-bottom: 12px; }
.f:last-of-type { margin-bottom: 16px; }
.f label, .f-row label {
  display: block; font-size: .69rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-4); margin-bottom: 8px;
}
.f textarea {
  width: 100%; padding: 14px 16px; min-height: 130px; resize: vertical;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); color: var(--fg);
  font-family: var(--font); font-size: .97rem; line-height: 1.55;
}
.f textarea::placeholder { color: var(--fg-5); }

.f select, .f input, .f-row select, .f-row input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); color: var(--fg);
  font-family: var(--font); font-size: .97rem;
  appearance: none; -webkit-appearance: none;
}
.f select, .f-row select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B919A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 14px;
}
.f input::placeholder { color: var(--fg-5); }
.f select:invalid, .f-row select:invalid { color: var(--fg-5); }
.f select option { background: var(--surface); color: var(--fg); }
.lead__note { margin: 0; font-size: .78rem; line-height: 1.55; color: var(--fg-4); }
.lead__note a { color: var(--fg-2); text-decoration: underline; }

/* Trampa antibot: fuera de pantalla, no display:none (hay bots que lo leen) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formmsg { margin: 0 0 14px; font-size: .9rem; line-height: 1.5; padding: 12px 15px; border-radius: var(--r-sm); }
.formmsg--ok  { background: rgba(255,138,42,.12); color: var(--amber-2); border: 1px solid rgba(255,138,42,.3); }
.formmsg--err { background: rgba(255,90,90,.1);   color: #FF9B9B;       border: 1px solid rgba(255,90,90,.28); }

/* ── Franja de tres ──────────────────────────────────────────────────────── */

.triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.triple > div { padding: 30px 32px; border-right: 1px solid var(--line); }
.triple > div:first-child { padding-left: 0; }
.triple > div:last-child { padding-right: 0; border-right: 0; }
.triple p { margin: 0; font-size: .97rem; line-height: 1.55; color: var(--fg-2); }

/* ── Declaración grande ──────────────────────────────────────────────────── */

.statement {
  font-family: var(--font-disp); font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 500; line-height: 1.32; letter-spacing: -.025em; color: var(--fg); margin: 0;
}

/* ── Tarjetas con fotografía ─────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.pcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px; padding: 28px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px;
  color: var(--fg);
}
.pcard > *:not(img) { position: relative; z-index: 2; }
.pcard:hover { color: var(--fg); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; }
.pcard:hover img { transform: scale(1.04); }
.pcard::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* El texto empieza a ~58% de altura: el velo tiene que estar ya cerrado ahí,
     o sobre las fotos con focos ámbar el titular pierde contraste. */
  background: linear-gradient(180deg, rgba(10,12,16,.05) 0%, rgba(10,12,16,.18) 34%,
    rgba(10,12,16,.62) 58%, rgba(10,12,16,.93) 80%, rgba(10,12,16,.97) 100%);
}
.pcard h3 { font-size: 1.65rem; margin-bottom: 12px; }
.pcard p { margin: 0 0 18px; font-size: .94rem; line-height: 1.55; color: var(--fg-2); }
.pcard__go { font-size: .88rem; font-weight: 600; color: var(--amber); }

/* ── Imagen + lista, y banda con formulario ──────────────────────────────── */

.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split__fig { position: relative; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.leadband { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: center; }
.contactgrid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: start; }

@media (max-width: 1040px) {
  .split, .leadband, .contactgrid { grid-template-columns: 1fr; gap: 36px; }
  /* En móvil la acción va antes que la fotografía que la acompaña. */
  .split__fig { order: 2; }
}

/* ── Lista numerada ──────────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps__n { font-family: var(--font-disp); font-size: 1.35rem; font-weight: 600; color: var(--amber); }
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--fg-3); }

/* ── Línea de fases ──────────────────────────────────────────────────────── */

.phases { position: relative; padding-top: 34px; }
.phases__track { position: absolute; top: 45px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.phases__track::before { content: ""; position: absolute; inset: 0 50% 0 0; background: var(--amber); }
.phases__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.phases__dot {
  width: 22px; height: 22px; border-radius: var(--r-pill);
  background: var(--amber); margin-bottom: 26px; box-shadow: 0 0 0 6px var(--bg);
}
.phases__dot--open { background: var(--bg); border: 2px solid var(--amber); }
.phases__dot--far  { background: var(--bg); border: 2px solid var(--line-3); }
.phases h3 { font-size: 1.12rem; margin-bottom: 8px; }
.phases p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--fg-3); }

/* ── Tabla ───────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; min-width: 680px; border-collapse: collapse; }
table.data caption { caption-side: bottom; text-align: left; padding: 14px 0 0; font-size: .82rem; color: var(--fg-4); }
table.data th {
  background: rgba(255,255,255,.045); text-align: left; padding: 14px 18px;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-4);
  border-bottom: 1px solid var(--line);
}
table.data th:last-child, table.data td:last-child { text-align: right; }
table.data td { padding: 16px 18px; font-size: .95rem; line-height: 1.55; color: var(--fg-3); border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-family: var(--font-disp); font-weight: 600; color: var(--amber); }
table.data td:nth-child(2) { color: var(--fg); font-weight: 600; }
table.data td:last-child { color: var(--fg-4); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Tarjeta neutra ──────────────────────────────────────────────────────── */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 4vw, 40px); }
.band .card { background: var(--surface-2); }

/* ── Qué pasa cuando pides la llamada ────────────────────────────────────── */

.howworks { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.howworks h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.howworks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
@media (max-width: 980px) { .howworks { grid-template-columns: 1fr; gap: 34px; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

/* <details> nativo: cuenta como contenido visible para Google, al contrario
   que un acordeón con display:none. GUIA_SEO §3.2. */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 22px 0;
  font-size: 1.08rem; font-weight: 600; color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; transition: transform .2s ease;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B919A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.faq details[open] summary { color: var(--amber); }
.faq details[open] summary::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A2A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.faq details > p { margin: 0 0 22px; font-size: 1rem; line-height: 1.62; color: var(--fg-3); max-width: 68ch; }

/* ── Cierre con fotografía ───────────────────────────────────────────────── */

.close { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 620px; padding-block: 140px 72px; }
.close img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: 0; }
.close > .wrap { position: relative; z-index: 2; }
.close::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,12,16,1) 0%, rgba(10,12,16,.3) 20%, rgba(10,12,16,.15) 42%, rgba(10,12,16,.8) 80%, rgba(10,12,16,.96) 100%),
    linear-gradient(90deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.08) 44%, rgba(10,12,16,.3) 100%);
}
.close__grid { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 72px; align-items: end; width: 100%; }
.close h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; max-width: 15ch; }

/* ── Migas ───────────────────────────────────────────────────────────────── */

.crumbs { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--fg-4); margin: 0 0 22px; flex-wrap: wrap; }
.crumbs a { color: var(--fg-3); }
.crumbs a:hover { color: var(--amber); }
.crumbs span[aria-hidden] { color: var(--fg-5); }

/* ── Pie ─────────────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 56px 40px; }
.foot h4 { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-4); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot ul a { color: var(--fg-3); font-size: .92rem; }
.foot ul a:hover { color: var(--fg); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 22px 34px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--fg-4); }
.foot__blurb { margin: 16px 0 0; font-size: .92rem; line-height: 1.6; color: var(--fg-4); max-width: 38ch; }

/* ── Adaptación ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .hero__grid, .close__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero--home { min-height: 0; padding-block: 130px 64px; }
  .hero h1 { max-width: 18ch; }
  .close { min-height: 0; padding-block: 110px 56px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav > a, .nav > .btn { display: none; }
  .burger { display: block; }
  .triple { grid-template-columns: 1fr; }
  .triple > div { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .triple > div:last-child { border-bottom: 0; }
  .phases__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .phases__track { display: none; }
  .pcard { min-height: 440px; }
}

@media (max-width: 560px) {
  .f-row { grid-template-columns: 1fr; }
  .phases__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .lead { padding: 24px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .pcard:hover img { transform: none; }
}

@media print {
  .head, .close, .lead, .pcard__go { display: none; }
  body { background: #fff; color: #000; }
}
