/* Ganda Software — landing y páginas legales.
   Tokens primero: todo lo demás usa estas variables. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Paleta de marca */
  --sand: #EBE6D8;      /* fondo cálido principal */
  --sand-2: #DDD5C2;    /* un paso más oscuro, para superficies sobre el fondo */
  --sand-3: #F5F2EA;    /* un paso más claro, para campos de formulario */
  --blue: #0E4D82;      /* azul institucional */
  --blue-deep: #0A3B66; /* hover del azul */
  --steel: #5D8AA8;     /* azul secundario: superficies, nunca texto chico sobre arena (contraste 3:1) */
  --mist: #C7D6E2;      /* azul secundario aclarado */
  --accent: #D9784D;    /* acento cálido: solo la acción principal y detalles puntuales */
  --ink: #171717;       /* negro suave */
  --ink-soft: #46433D;  /* texto secundario sobre arena (7:1) */
  --on-dark: #EBE6D8;   /* texto sobre fondos oscuros */
  --on-dark-soft: #BDB7A8;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Cinco tamaños */
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);
  --step-display: clamp(2.5rem, 1rem + 4.6vw, 5.25rem);

  --m: clamp(22px, 4vw, 48px);     /* margen exterior único (22px en celulares) */
  --gap: clamp(96px, 12vw, 200px); /* separación entre secciones */
  --bar-h: 64px;
  --radius: 28px;                  /* un solo radio grande para paneles */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--sand); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: 10px; clip-path: inset(50%); z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--sand); border-radius: 999px; }
.skip:focus { clip-path: none; }

.h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }

/* ── Botones: siempre redondos ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--blue); color: var(--sand);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--blue-deep); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #C9683E; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; padding: 12px 4px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ── Barra superior: toma la tinta del capítulo que tiene debajo ── */
.bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar-h);
  background: var(--bar-bg, var(--sand));
  color: var(--bar-ink, var(--ink));
  transition: background-color .3s, color .3s;
}
.bar[data-on="ink"] { --bar-bg: var(--ink); --bar-ink: var(--on-dark); }
.bar[data-on="blue"] { --bar-bg: var(--blue); --bar-ink: var(--on-dark); }
.bar[data-on="steel"] { --bar-bg: var(--steel); --bar-ink: var(--ink); }
.bar[data-on="sand-2"] { --bar-bg: var(--sand-2); }
.bar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--m); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-size: 1.125rem; }
.mark__img { width: 40px; height: 40px; }
.mark__img--light { display: none; }
.bar[data-on="ink"] .mark__img--dark, .bar[data-on="blue"] .mark__img--dark { display: none; }
.bar[data-on="ink"] .mark__img--light, .bar[data-on="blue"] .mark__img--light { display: block; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-weight: 500; font-size: var(--step-small); }
.nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.bar[data-on="blue"] .nav .btn, .bar[data-on="ink"] .nav .btn { background: var(--sand); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 0; border-radius: 999px; background: var(--bar-ink, var(--ink)); color: var(--bar-bg, var(--sand));
    font-weight: 700; font-size: var(--step-small); cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--bar-h) 0 auto 0; z-index: 29;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--m) 24px; background: var(--ink); color: var(--on-dark);
    font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .25); /* taste-skill-ignore: menú desplegable, flota sobre la página */
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s var(--ease); }
  .nav a:not(.btn) { padding: 14px 0; }
  .nav .btn { margin-top: 12px; min-height: 56px; font-size: 1.0625rem; background: var(--accent) !important; color: var(--ink) !important; }
}

/* ── Hero: la frase arriba, el producto real abajo ── */
.hero { padding: clamp(40px, 9vh, 112px) var(--m) 0; }
.hero__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.hero__title {
  font-size: var(--step-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em;
  max-width: 17ch; text-wrap: balance;
}
.hero__lead { font-size: var(--step-lead); line-height: 1.4; color: var(--ink); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* El escenario: un campo azul con pantallas reales superpuestas */
.stage {
  position: relative; margin-top: clamp(40px, 7vh, 72px);
  background: var(--blue); border-radius: var(--radius);
  height: clamp(460px, 48vw, 720px); overflow: hidden;
}
.stage__main { position: absolute; left: 16%; right: 20%; top: clamp(28px, 4vw, 56px); }
.stage__live { position: absolute; right: clamp(20px, 3vw, 48px); bottom: clamp(24px, 3vw, 48px); width: min(430px, 33%); z-index: 2; }
.stage__phone { position: absolute; left: clamp(20px, 3vw, 48px); top: 22%; width: min(210px, 15%); z-index: 2; }
.stage__caption { margin-top: 14px; font-size: var(--step-small); color: var(--ink-soft); }
.frame { background: #fff; border-radius: 14px; overflow: hidden; border: 3px solid var(--ink); }
.frame__bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: var(--ink); color: var(--on-dark); font-size: 0.8125rem; font-weight: 500; }
.frame__url { background: rgba(235, 230, 216, .12); border-radius: 999px; padding: 2px 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; }
.phone { display: block; border: 6px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--ink); }
.phone img { width: 100%; border-radius: 22px; }

@media (max-width: 1100px) {
  .hero__head { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 17ch; }
  .stage { height: auto; overflow: visible; padding: 20px 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stage__main, .stage__live, .stage__phone { position: static; width: auto; }
  .stage__phone { display: none; }
}
@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.125rem, 9.4vw, 2.75rem); }
  .stage { padding: 14px 14px 18px; border-radius: 20px; }
}

/* La ventana del hero: un fragmento real de la demo de accesos, con su propia paleta (data-ui) */
.win {
  --w-ink: #1B263B; --w-soft: #3D5A80; --w-bg: #EAF2F8; --w-line: rgba(61, 90, 128, .18);
  background: #fff; color: var(--w-ink);
  border: 3px solid var(--ink); border-radius: 16px; overflow: hidden;
  font-size: 0.875rem; line-height: 1.4;
}
.win__chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ink); color: var(--on-dark); font-weight: 600; }
.win__dots { display: inline-flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.win__dots i:first-child { background: var(--accent); }
.win__title { flex: 1; }
.win__demo { font-size: 0.8125rem; padding: 2px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.win__body { padding: 16px; background: var(--w-bg); }
.win__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.win__kpis p { background: #fff; border: 1px solid var(--w-line); border-radius: 12px; padding: 10px 12px; } /* taste-skill-ignore: dentro del fragmento data-ui */
.win__kpis b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.win__kpis span { color: var(--w-soft); font-size: 0.8125rem; }
.win__filters { display: flex; gap: 6px; margin-bottom: 10px; }
.win__filters button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--w-line); /* taste-skill-ignore: dentro del fragmento data-ui */
  background: #fff; color: var(--w-ink); font-weight: 600; font-size: 0.8125rem; cursor: pointer;
}
.win__filters button[aria-pressed="true"] { background: var(--w-ink); color: #fff; border-color: var(--w-ink); }
.win__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.win__table th { text-align: left; font-weight: 600; color: var(--w-soft); font-size: 0.8125rem; padding: 8px 10px; border-bottom: 1px solid var(--w-line); }
.win__table td { padding: 8px 10px; border-bottom: 1px solid var(--w-line); white-space: nowrap; }
.win__table tr:last-child td { border-bottom: 0; }
.win__table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 0.8125rem; }
.pill--in { background: rgba(26, 138, 74, .14); color: #11683A; }
.pill--out { background: rgba(192, 57, 43, .12); color: #9E2E22; }
.win__open { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--w-ink); text-decoration-thickness: 2px; text-underline-offset: 4px; padding: 6px 0; }
@media (max-width: 560px) {
  .win__kpis b { font-size: 1.25rem; }
}

/* ── Servicios: cuatro cartas que se reparten en abanico ── */
.services { background: var(--ink); color: var(--on-dark); margin-top: var(--gap); }
.services__stage { padding: clamp(64px, 8vw, 120px) var(--m); }
.services__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 48px; }
.services__head p { max-width: 38ch; font-size: var(--step-lead); line-height: 1.4; color: var(--on-dark); }

.fan { position: relative; }
.card {
  --c-ink: var(--ink);
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--radius);
  background: var(--c-bg); color: var(--c-ink);
}
.card--sand { --c-bg: var(--sand); }
.card--mist { --c-bg: var(--mist); }
.card--steel { --c-bg: var(--steel); }
.card--blue { --c-bg: var(--blue); --c-ink: var(--on-dark); }
.card h3 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.card p { line-height: 1.45; }
.card ul { display: grid; gap: 6px; font-size: 1rem; line-height: 1.35; }
.card li { padding-left: 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.card__cta { margin-top: auto; font-weight: 600; padding: 10px 0 0; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card__cta:hover { text-decoration-color: var(--accent); }

.versions { background: rgba(235, 230, 216, .1); border-radius: 12px; padding: 14px; font-size: 0.875rem; }
.versions__title { font-weight: 700; margin-bottom: 8px; color: var(--on-dark); }
.versions ol { display: grid; gap: 8px; }
.versions li { padding: 0; display: grid; grid-template-columns: 3.2em 1fr; gap: 6px; line-height: 1.35; }
.versions li::before { display: none; }
.versions b { font-variant-numeric: tabular-nums; }

/* Escritorio alto: el escenario se fija y las cartas se reparten (site.js mueve --y). Misma consulta en site.js */
@media (min-width: 1101px) and (min-height: 860px) {
  .services { height: 220svh; }
  .services__stage { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column; padding-top: clamp(24px, 4vh, 48px); padding-bottom: 16px; }
  .services__head { margin-bottom: clamp(16px, 2.5vh, 32px); }
  .fan { flex: 1; width: min(1170px, 100%); margin: 0 auto; }
  .card { gap: 10px; padding-top: 24px; padding-bottom: 22px; }
  .card ul { gap: 4px; font-size: 0.9375rem; }
  .card img { aspect-ratio: 16 / 9; }
  .card {
    position: absolute; top: 0; width: 360px; max-height: 100%;
    left: calc(var(--i) * 270px);
    padding-right: 118px; /* el texto vive en los 270px de la izquierda: la carta siguiente solo tapa los 90px de la derecha */
    transform: translateY(var(--y, 0)) rotate(var(--r));
    transition: transform .08s linear;
  }
  .card:nth-child(1) { --i: 0; --r: -3deg; z-index: 1; }
  .card:nth-child(2) { --i: 1; --r: 2deg; z-index: 2; }
  .card:nth-child(3) { --i: 2; --r: -2deg; z-index: 3; }
  .card:nth-child(4) { --i: 3; --r: 3deg; z-index: 4; }
  .card img, .card .versions { width: 214px; }
}
@media (max-width: 1100px), (max-height: 859px) {
  .services__head { grid-template-columns: minmax(0, 1fr); }
  .fan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
}

/* ── Proyectos: carpetas apiladas. Bandas rectas a todo el ancho; la franja superior (64px) es su pestaña ── */
.work { padding: var(--gap) var(--m) 0; }
.work__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 56px; }
.work__head p { font-size: var(--step-lead); line-height: 1.4; max-width: 38ch; }
.folders { display: grid; }
.folder {
  --f-bg: var(--blue); --f-ink: var(--on-dark); --f-soft: #C9D6E2; --f-chip: rgba(235, 230, 216, .12); --a-bg: var(--sand); --a-ink: var(--ink);
  background: var(--f-bg); color: var(--f-ink);
  margin: 0 calc(-1 * var(--m));
  padding: 0 var(--m) clamp(40px, 5vw, 72px);
}
.folder--sand { --f-bg: var(--sand-2); --f-ink: var(--ink); --f-soft: var(--ink-soft); --f-chip: rgba(23, 23, 23, .07); --a-bg: var(--blue); --a-ink: var(--on-dark); }
.folder--ink { --f-bg: var(--ink); --f-ink: var(--on-dark); --f-soft: var(--on-dark-soft); --f-chip: rgba(235, 230, 216, .1); --a-bg: var(--accent); --a-ink: var(--ink); }
.folder--steel { --f-bg: var(--steel); --f-ink: var(--ink); --f-soft: var(--ink); --f-chip: rgba(255, 255, 255, .28); --a-bg: var(--ink); --a-ink: var(--on-dark); }
.folder__strip { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.folder__strip, .folder__body { max-width: 1400px; margin-inline: auto; }
.folder__tab { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.folder__cat { font-size: var(--step-small); font-weight: 500; color: var(--f-soft); text-align: right; }
.folder__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: 20px; }
.folder__pic { grid-column: 1 / 8; }
.folder__pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; }
.folder__text { grid-column: 8 / 13; padding-left: clamp(0px, 2vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.folder__summary { font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; }
.folder__desc { font-size: 1rem; line-height: 1.6; }
.folder__highlights { display: grid; gap: 14px; padding-top: 4px; }
.folder__highlights li { position: relative; padding-left: 22px; font-size: 1rem; line-height: 1.45; }
.folder__highlights li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--a-bg); }
.folder__highlights b { display: block; font-weight: 600; }
.folder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 4px; }
.folder__action { background: var(--a-bg); color: var(--a-ink); }
.folder__action:hover { background: var(--a-bg); filter: brightness(1.08); }
.folder__more { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; padding: 10px 0; }
.folder__note { font-size: var(--step-small); color: var(--f-soft); }

@media (min-width: 1101px) {
  /* Pila de carpetas: todas miden la misma altura base (--folder-h, la de la más alta, la calcula site.js)
     más 64px por cada carpeta que queda debajo. Así, al terminar la sección la pila sube entera y ninguna
     carpeta se adelanta ni tapa la pestaña de otra, tenga el contenido que tenga. --last = carpetas − 1. */
  .folder {
    position: sticky; top: calc(var(--bar-h) + var(--k) * 64px);
    min-height: calc(var(--folder-h, min(700px, calc(100svh - var(--bar-h) - var(--last, 3) * 64px))) + (var(--last, 3) - var(--k)) * 64px);
    padding-bottom: calc(clamp(40px, 5vw, 72px) + (var(--last, 3) - var(--k)) * 64px);
  }
  /* La captura nunca es más alta que el espacio que le deja la pila a la última carpeta */
  .folder__pic img { max-height: calc(100svh - var(--bar-h) - var(--last, 3) * 64px - 64px - 36px); }
  /* valores sin JavaScript (site.js los reemplaza para cualquier cantidad de carpetas) */
  .folder:nth-child(1) { --k: 0; }
  .folder:nth-child(2) { --k: 1; }
  .folder:nth-child(3) { --k: 2; }
  .folder:nth-child(4) { --k: 3; }
}
/* Pantallas bajas: se resume el texto para que cada carpeta entre entera y la pila funcione igual */
@media (min-width: 1101px) and (max-height: 880px) {
  .folder__desc, .folder__note { display: none; }
  .folder__text { gap: 14px; }
}
@media (min-width: 1101px) and (max-height: 780px) {
  .folder__highlights { gap: 8px; }
  .folder__highlights span { display: none; }
  .folder__body { padding-top: 12px; }
}
@media (max-width: 1100px) {
  .work__head { grid-template-columns: minmax(0, 1fr); }
  .folder__body { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding-top: 20px; }
  .folder__pic, .folder__text { grid-column: 1; }
}
@media (max-width: 560px) {
  .folder__strip { height: auto; padding: 24px 0 4px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .folder__cat { text-align: left; }
}

/* ── Proceso: Durero y un verbo por pantalla ── */
.process { padding-top: var(--gap); }
.process__intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 0 var(--m) var(--gap); }
.process__text { display: grid; gap: 28px; }
.statement { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; color: var(--blue); max-width: 22ch; }
.process__text p:last-child { max-width: 46ch; }
.process__pic img { width: 100%; border-radius: 4px; }
.process__pic figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 900px) { .process__intro { grid-template-columns: minmax(0, 1fr); } }

.verbs { display: grid; }
.verb {
  position: relative; min-height: 88svh;
  padding: 0 var(--m) clamp(32px, 5vw, 64px);
  display: grid; grid-template-rows: 1fr auto;
  background: var(--v-bg); color: var(--v-ink);
}
.verb--blue { --v-bg: var(--blue); --v-ink: var(--on-dark); --chars: 8; }
.verb--sand { --v-bg: var(--sand-2); --v-ink: var(--blue); --chars: 10; }
.verb--ink { --v-bg: var(--ink); --v-ink: var(--on-dark); --chars: 9; }
.verb--steel { --v-bg: var(--steel); --v-ink: var(--ink); --chars: 9; }
.verb__track { padding: 22svh 0 6svh; }
.verb__word {
  position: sticky; top: 42%;
  text-align: center; font-weight: 600; letter-spacing: -0.055em; line-height: 0.9;
  font-size: min(15vw, calc((100vw - 2 * var(--m)) / (var(--chars) * 0.62)), 240px);
}
.verb p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; color: var(--v-ink); font-weight: 400; }
.verb--sand p { color: var(--ink); }

/* ── Contacto: el cupón ── */
.contact { padding: var(--gap) var(--m); }
.coupon {
  --cut: 28px;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  max-width: 1240px; margin: 0 auto;
  background: var(--blue); color: var(--on-dark);
  border-radius: var(--radius);
  -webkit-mask: radial-gradient(circle var(--cut) at 38.3% 0, #0000 98%, #000) top / 100% 51% no-repeat, /* taste-skill-ignore: máscara de borde duro para las muescas del cupón, no un degradado visible */
                radial-gradient(circle var(--cut) at 38.3% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: máscara de borde duro para las muescas del cupón, no un degradado visible */
          mask: radial-gradient(circle var(--cut) at 38.3% 0, #0000 98%, #000) top / 100% 51% no-repeat, /* taste-skill-ignore: máscara de borde duro para las muescas del cupón, no un degradado visible */
                radial-gradient(circle var(--cut) at 38.3% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: máscara de borde duro para las muescas del cupón, no un degradado visible */
}
.coupon__side {
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  border-right: 5px dotted var(--sand);
}
.coupon__title { font-size: clamp(1.75rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; }
.coupon__side p { font-size: 1.0625rem; }
.coupon__mail a { font-weight: 700; text-underline-offset: 4px; }

.form { padding: 40px 48px 44px; display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step-small); font-weight: 600; }
.opt { font-weight: 400; color: #D6D0C2; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 2px solid transparent; border-radius: 14px;
  background: #1D5C92; color: var(--on-dark);
  font-size: 1rem;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23EBE6D8' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { color: var(--ink); background: #fff; }
.field ::placeholder { color: #A9BCCD; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field__err { font-size: var(--step-small); font-weight: 600; color: #FFD2BC; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* taste-skill-ignore: honeypot oculto, no es una línea */
.form__note { font-size: var(--step-small); color: #D6D0C2; }
.form__note a { color: var(--on-dark); font-weight: 600; }
.form__submit {
  min-height: 56px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--on-dark); font-weight: 600; font-size: 1.0625rem;
  transition: transform .2s var(--ease), background-color .2s;
}
.form__submit:hover { background: #000; }
.form__submit:active { transform: scale(.98); }
.form__submit[disabled]:not(.is-loading) { opacity: .7; }
.form__status { font-weight: 600; min-height: 1.5em; }
.form__status.is-error { color: #FFD2BC; }
.form__submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.form__submit.is-loading { opacity: 1; cursor: progress; background: #000; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(235, 230, 216, .3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.form.is-leaving { opacity: 0; transform: translateY(12px) scale(.98); }
.form__done { padding: 48px; display: grid; gap: 16px; align-content: center; justify-items: start; min-height: 100%; }
.form__done h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
.form__done p { max-width: 42ch; }
.form__done > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.form__done > :nth-child(2) { transition-delay: .25s; }
.form__done > :nth-child(3) { transition-delay: .35s; }
.form__done.is-in > * { opacity: 1; transform: none; }
.form__check { width: 64px; height: 64px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form__check circle { stroke: var(--accent); stroke-dasharray: 151; stroke-dashoffset: 151; }
.form__check path { stroke: var(--on-dark); stroke-dasharray: 40; stroke-dashoffset: 40; }
.form__done.is-in .form__check circle { animation: draw .6s .1s var(--ease) forwards; }
.form__done.is-in .form__check path { animation: draw .4s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .form__check circle, .form__check path { stroke-dashoffset: 0; }
  .spinner { animation-duration: 1.6s !important; }
}

@media (max-width: 900px) {
  .coupon { grid-template-columns: minmax(0, 1fr); -webkit-mask: none; mask: none; }
  .coupon__side { border-right: 0; border-bottom: 5px dotted var(--sand); padding: 32px 24px; }
  .form { padding: 28px 20px 32px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
}

/* ── Pie: el grabado a la izquierda, el menú a la derecha ── */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; background: var(--ink); color: var(--on-dark); }
.foot__pic { overflow: hidden; }
.foot__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.foot__menu { padding: 80px var(--m) 32px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; gap: 56px; }
.mark--foot img { width: 44px; height: 44px; }
.foot__links { display: grid; gap: 18px; }
.foot__links a { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; text-decoration: none; display: inline-block; transition: transform .25s var(--ease), opacity .25s; }
.foot__links:hover a { opacity: .55; }
.foot__links a:hover, .foot__links a:focus-visible { opacity: 1; transform: translateX(12px); }
.foot__blocks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; font-size: 1rem; }
.foot__blocks p + p { margin-top: 6px; }
.foot__blocks a { text-underline-offset: 4px; }
.foot__label { font-weight: 700; color: var(--on-dark-soft); }
.foot__legal { margin-top: auto; font-size: var(--step-small); color: var(--on-dark-soft); max-width: 60ch; }
@media (max-width: 860px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot__pic { height: 50svh; }
  .foot__menu { padding: 40px var(--m) 28px; gap: 40px; }
  .foot__links a { font-size: 8vw; }
  .foot__blocks { grid-template-columns: minmax(0, 1fr); }
}

/* ── Páginas legales ── */
.legal { padding: clamp(48px, 8vw, 120px) var(--m) var(--gap); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.legal__head { display: grid; gap: 20px; align-content: start; }
.legal__head h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600; color: var(--blue); }
.legal__head p { color: var(--ink-soft); }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.2; font-weight: 600; margin: 48px 0 12px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { margin-bottom: 12px; }
.legal__body ul { list-style: disc; padding-left: 1.25em; }
.legal__body a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } }
.legal-foot { background: var(--ink); color: var(--on-dark); padding: 40px var(--m); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: var(--step-small); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-foot a { color: var(--on-dark); text-underline-offset: 4px; }

/* ── Movimiento: entradas escalonadas, solo transform y opacity ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js.is-ready .hero__title { opacity: 1; transform: none; }
.stage__main img { transition: transform .9s var(--ease); }
.stage__main a:hover img { transform: scale(1.01); }
.folder__pic img, .process__pic img { transition: transform .9s var(--ease); }
.folder:hover .folder__pic img { transform: scale(1.015); }
.foot__pic img { animation: drift 24s ease-in-out infinite alternate; transform-origin: 70% 50%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal, .js .hero__title { opacity: 1; transform: none; }
  .card { --y: 0 !important; }
}
