/* Racha Solutions — landing
   Sólido = dato con respaldo. Hueco (solo contorno) = dato sin sustento.
   El ámbar se reserva para estados sin sustento; no es decoración. */

:root {
  --ink: #0E1219;        /* tinta del logo */
  --ink-2: #1A2030;
  --cobalt: #1F2FD1;
  --cobalt-deep: #1826B0;
  --ice: #EDEFF4;
  --paper: #FFFFFF;
  --fog: #5D6579;
  --fog-light: #A7AEC2;
  --amber: #F2B33D;

  --font: "Archivo", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 88rem;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Display type: Archivo ancho y pesado, eco del logo */
.display, h2 {
  font-weight: 820;
  font-variation-settings: "wdth" 62;
  letter-spacing: -0.01em;
  line-height: .92;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--white { background: var(--paper); color: var(--ink); }
.btn--white:hover { background: var(--amber); }
.btn--ghost { border-color: rgb(255 255 255 / .55); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgb(255 255 255 / .08); }
.btn--big { font-size: clamp(1.05rem, 2.2vw, 1.5rem); min-height: 4rem; padding: 1rem 2rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--cobalt);
  color: var(--paper);
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter) clamp(2rem, 5vw, 3.5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem;
  max-width: var(--max); width: 100%; margin-inline: auto;
}
.nav__logo { display: block; color: var(--paper); line-height: 0; }
.nav__logo svg { width: clamp(6.5rem, 12vw, 8.5rem); height: auto; fill: currentColor; }
.nav__links { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); font-size: .95rem; }
.nav__links a { text-decoration: none; font-weight: 500; opacity: .85; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
.nav__links .nav__cta {
  opacity: 1; font-weight: 650;
  padding: .5rem 1rem; border-radius: 999px; background: var(--paper); color: var(--ink);
}
.nav__links .nav__cta:hover { text-decoration: none; background: var(--amber); }

.hero__title {
  align-self: center;
  max-width: var(--max); width: 100%; margin-inline: auto;
  padding-block: clamp(2rem, 6vh, 4rem);
  font-size: clamp(2.1rem, 7.1vw, 8.6rem);
  line-height: .9;
  letter-spacing: -0.02em;
  font-weight: 820;
  display: flex; flex-direction: column;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

/* Letras de ráfaga: el JS fija --w y --g por letra */
.gust__line { display: block; width: max-content; white-space: nowrap; }
.gust__ch {
  font-variation-settings: "wdth" var(--w, 100);
  font-weight: var(--g, inherit);
}
.hero__title .gust__ch { --w: 62; --g: 820; }
.hero__title .gust__line:nth-child(2) { margin-left: auto; }

.hero__foot {
  max-width: var(--max); width: 100%; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem;
  border-top: 2px solid rgb(255 255 255 / .25);
  padding-top: 1.5rem;
}
.hero__foot p { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Qué hacemos ---------- */
.what {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.what__title { font-size: clamp(2.8rem, 8vw, 7.5rem); max-width: 12ch; }
.what__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.what__item h3 {
  font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 820;
  font-variation-settings: "wdth" 62; line-height: .95; margin-block: 1.25rem .75rem;
}
.what__item p { max-width: 36rem; color: var(--ink-2); }
.what__glyph { width: 3.25rem; height: auto; overflow: visible; }
.what__glyph use { fill: transparent; stroke: var(--ink); stroke-width: 16; }
.what__glyph--solid use { fill: var(--cobalt); stroke: none; }
.what__who {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.5rem; border-top: 2px solid var(--ink);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem); max-width: 48rem; line-height: 1.4;
}

/* ---------- Metodología ---------- */
.method {
  background: var(--ink); color: var(--paper);
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.method > * { max-width: calc(var(--max) / 2); }
.method__text { justify-self: end; width: 100%; }
.method h2 { font-size: clamp(2.8rem, 6.4vw, 6.4rem); max-width: 11ch; }
.method__lead { margin-top: 1.5rem; color: var(--fog-light); max-width: 38rem; font-size: 1.15rem; }
.method__steps { counter-reset: paso; margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.75rem; }
.method__steps li {
  counter-increment: paso;
  display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem;
}
.method__steps li::before {
  content: counter(paso);
  grid-row: span 2;
  font-size: 2.6rem; line-height: .9; font-weight: 800; font-variation-settings: "wdth" 125;
  color: transparent; -webkit-text-stroke: 1.5px var(--fog-light);
}
.method__steps h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.method__steps p { color: var(--fog-light); margin-top: .3rem; max-width: 34rem; }

/* La hoja de especificación */
.sheet {
  background: var(--paper); color: var(--ink);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2rem);
  position: sticky; top: 2rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 18px 18px 0 -2px var(--cobalt);
}
.sheet__head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font-size: .9rem; color: var(--fog); padding-bottom: 1rem; border-bottom: 2px solid var(--ink);
}
.sheet__count { font-weight: 700; color: var(--ink); }
.sheet[data-pending="0"] .sheet__count { color: var(--cobalt); }
.sheet__list { display: grid; }
.req {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1rem; border-bottom: 1px solid #DADEE8;
}
.req__text { font-size: 1.05rem; line-height: 1.35; }
.req[data-status="supuesto"] .req__text,
.req[data-status="abierto"] .req__text { color: var(--fog); }

.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 650; line-height: 1;
  padding: .5rem .8rem; border-radius: 999px; border: 2px solid currentColor;
  white-space: nowrap;
}
.chip--ok { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--btn { background: transparent; color: #8A5A00; border-color: var(--amber); border-style: dashed; cursor: pointer; transition: background-color .15s; }
.chip--btn:hover { background: #FFF4DC; }
.chip--btn::after { content: "Confirmar"; color: var(--ink); font-weight: 500; padding-left: .4rem; border-left: 1px solid var(--amber); }
.req[data-status="abierto"] .chip--btn::after { content: "Resolver"; }
.req.is-confirmed .chip--btn {
  background: var(--ink); border: 2px solid var(--ink); color: var(--paper); cursor: default;
  animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1);
}
.req.is-confirmed .chip--btn::after { content: none; }
.req.is-confirmed .req__text { color: var(--ink); }
@keyframes stamp { from { transform: scale(1.25) rotate(-4deg); } to { transform: none; } }

.sheet__rule {
  margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 4px;
  background: var(--ice);
  display: grid; gap: .3rem;
}
.sheet__rule span { font-size: .85rem; font-weight: 700; color: var(--cobalt); }
.sheet__rule p { font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 108; line-height: 1.25; }
.sheet__foot { margin-top: 1.1rem; font-size: .95rem; color: var(--fog); min-height: 2.75rem; }
.sheet__ready { display: none; font-weight: 700; color: var(--cobalt); font-size: 1.1rem; align-items: center; gap: 1rem; }
.sheet__ready button {
  font-size: .85rem; font-weight: 600; color: var(--fog);
  background: none; border: 0; padding: .4rem 0; text-decoration: underline; text-underline-offset: .25em; cursor: pointer;
}
.sheet[data-pending="0"] .sheet__hint { display: none; }
.sheet[data-pending="0"] .sheet__ready { display: flex; }

/* ---------- Proyectos ---------- */
.projects {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.projects__intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.projects__intro h2 { font-size: clamp(2.8rem, 8vw, 7.5rem); max-width: 9ch; }
.projects__intro p { max-width: 32rem; font-size: 1.15rem; color: var(--ink-2); }

/* El fichero: cada solución es una ficha con su color, su logo y su pestaña */
.fichero { padding-top: 3.25rem; display: grid; }
.ficha {
  --pad: clamp(1.5rem, 4vw, 3.5rem);
  --tab-h: 3.1rem;
  --overlap: 1.75rem;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: var(--pad) var(--pad) calc(var(--pad) + var(--overlap));
  background: var(--c); color: var(--on);
  border-radius: 20px;
}
.ficha + .ficha { margin-top: calc(var(--tab-h) - var(--overlap)); }
.ficha:last-child { padding-bottom: var(--pad); }

.ficha--cg { --c: #FF5A1F; --on: var(--ink); --tab-x: 0%; border-top-left-radius: 0; }
.ficha--wv { --c: #0B6E5F; --on: #FFFFFF; --tab-x: 22%; }
.ficha--el { --c: #6B3DF5; --on: #FFFFFF; --tab-x: 44%; }
.ficha--gj { --c: #D1243F; --on: #FFFFFF; --tab-x: 66%; }

.ficha__tab {
  position: absolute; bottom: calc(100% - 1px); left: var(--tab-x);
  height: var(--tab-h);
  display: flex; align-items: center; gap: .6rem;
  padding: 0 1.25rem;
  background: var(--c); color: var(--on);
  border-radius: 14px 14px 0 0;
  font-weight: 750; font-size: 1rem; white-space: nowrap;
}
.ficha__tab svg { height: 1.15rem; width: auto; fill: currentColor; }
.ficha__tab::before, .ficha__tab::after {
  content: ""; position: absolute; bottom: 0; width: 14px; height: 14px;
}
.ficha__tab::before { right: 100%; background: radial-gradient(circle at 0 0, transparent 13.5px, var(--c) 14px); }
.ficha__tab::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent 13.5px, var(--c) 14px); }
.ficha--cg .ficha__tab::before { content: none; }

.case__sector { font-size: 1rem; font-weight: 650; opacity: .88; }
.case__id { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.4rem); margin: .9rem 0 0; }
.case__logo { flex: none; height: clamp(3rem, 6vw, 5.4rem); width: auto; fill: currentColor; }
.case__word { display: block; height: clamp(2.2rem, 4.4vw, 4rem); width: auto; max-width: 100%; fill: currentColor; }
.ficha--small .case__id { margin-top: .9rem; }
.case__name {
  font-size: clamp(3rem, 6.4vw, 6.2rem); font-weight: 820; line-height: .9; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 62;
  white-space: nowrap;
}
.case__name .gust__ch { --w: 62; --g: 820; }
.case__name--small { white-space: normal; margin-top: .6rem; font-size: clamp(2.4rem, 5vw, 4.6rem); max-width: 12ch; }
.case__lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1.15rem; }
.case__does { margin-top: 1.25rem; display: grid; gap: .35rem; }
.case__does li { padding-left: 1.4rem; position: relative; }
.case__does li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; background: currentColor;
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 78% 100%, 50% 38%, 22% 100%, 0 100%);
}
.case__rule {
  margin-top: 1.75rem; padding-left: 1rem; border-left: 4px solid currentColor;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; font-variation-settings: "wdth" 110; line-height: 1.25;
}
.case__link {
  margin-top: 2rem;
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 3.1rem; padding: .75rem 1.4rem; border-radius: 999px;
  background: var(--on); color: var(--c);
  font-weight: 750; font-size: 1.05rem; text-decoration: none;
  border: 2px solid var(--on);
  transition: background-color .2s, color .2s;
}
.case__link svg { width: .7rem; height: .8rem; fill: currentColor; transition: transform .2s; }
.case__link:hover { background: transparent; color: var(--on); }
.case__link:hover svg { transform: translateX(4px); }
.ficha :focus-visible { outline-color: var(--on); }

.ficha--small { grid-template-columns: minmax(0, 1fr) auto; }
.ficha__mark { width: clamp(6rem, 15vw, 12rem); height: auto; fill: currentColor; margin-right: clamp(0rem, 3vw, 3rem); }

/* El espécimen: un fragmento de la pantalla real */
.spec {
  background: var(--paper); color: var(--ink); border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: -14px 14px 0 -2px var(--ink);
  transition: box-shadow .3s;
}
.spec[data-mode="otro"] { box-shadow: -14px 14px 0 -2px var(--fog-light); }
.spec__head {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap;
  font-size: .9rem; color: var(--fog); padding-bottom: 1rem; border-bottom: 2px solid var(--ink);
}

.switch {
  display: inline-grid; grid-template-columns: 1fr 1fr;
  background: var(--ice); border-radius: 999px; padding: 3px; position: relative;
}
.switch::before {
  content: ""; position: absolute; inset: 3px auto 3px 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--ink);
  transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), background-color .3s;
  transform: translateX(100%);
}
.spec[data-mode="otro"] .switch::before { transform: translateX(0); background: var(--fog); }
.switch button {
  position: relative; z-index: 1; background: none; border: 0; cursor: pointer;
  font-size: .82rem; font-weight: 650; padding: .45rem .85rem; border-radius: 999px; color: var(--fog);
  transition: color .3s;
}
.switch button[aria-pressed="true"] { color: var(--paper); }

/* Valores que cambian: ambos ocupan la misma celda */
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; transition: opacity .3s, transform .45s cubic-bezier(.3, 1.2, .5, 1), filter .3s; }
.spec[data-mode="racha"] .v-otro,
.spec[data-mode="otro"] .v-racha { opacity: 0; transform: translateY(-.35em); filter: blur(3px); pointer-events: none; }
.spec[data-mode="otro"] .v-racha { transform: translateY(.35em); }

.spec__pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; padding-block: 1.25rem 1rem; }
.spec__pair > div { display: grid; gap: .25rem; }
.spec__k { font-size: .95rem; color: var(--fog); }
.spec__big {
  font-size: clamp(4rem, 9vw, 7.5rem); line-height: .85; font-weight: 800;
  font-variation-settings: "wdth" 125; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hollow { color: transparent; -webkit-text-stroke: 2px var(--amber); paint-order: stroke; }
.spec__big .hollow { -webkit-text-stroke-width: 3px; }
.spec__none { color: #C9CEDB; }

.spec__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .9rem 1rem; border-radius: 4px; background: var(--ice); font-size: .98rem;
}
.spec__row > :first-child { font-weight: 650; }
.spec__row > :nth-child(2) { color: var(--fog); }
.spec__row > :last-child { margin-left: auto; }

.tag {
  display: inline-block; font-size: .8rem; font-weight: 700; line-height: 1;
  padding: .4rem .65rem; border-radius: 999px;
  background: var(--amber); color: var(--ink); white-space: nowrap;
}
.tag--quiet { background: #DDE1EA; color: var(--fog); }

.spec__foot { margin-top: 1rem; font-size: .95rem; color: var(--fog); line-height: 1.4; display: grid; }

.ledger { padding-top: .5rem; font-variant-numeric: tabular-nums; }
.ledger > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: .8rem; border-bottom: 1px solid #DADEE8;
}
.ledger dt { color: var(--fog); }
.ledger dd { font-weight: 650; font-size: 1.1rem; text-align: right; }
.ledger dd.swap > * { justify-self: end; }
.ledger__gap .hollow { font-size: 1.6rem; font-weight: 800; font-variation-settings: "wdth" 125; -webkit-text-stroke-width: 1.5px; vertical-align: middle; }
.ledger__total { border-bottom: 0 !important; }
.ledger__total dt { color: var(--ink); font-weight: 700; }
.ledger__total dd { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; font-variation-settings: "wdth" 120; line-height: 1; letter-spacing: -0.02em; }
.ledger__total .hollow { -webkit-text-stroke-width: 2.5px; }

/* ---------- Equipo ---------- */
.team {
  background: var(--cobalt); color: var(--paper);
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.team__intro, .team__list { max-width: var(--max); margin-inline: auto; }
.team__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.team__intro h2 { font-size: clamp(2.8rem, 8vw, 7.5rem); }
.team__intro p { font-size: 1.2rem; max-width: 30rem; }
.team__list { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.founder {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 2rem;
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
  border-top: 2px solid rgb(255 255 255 / .3);
  cursor: default;
}
.founder:last-child { border-bottom: 2px solid rgb(255 255 255 / .3); }
.founder__first {
  font-size: clamp(3rem, 9vw, 8.5rem); line-height: .9; font-weight: 820; letter-spacing: -0.01em; white-space: nowrap;
  font-variation-settings: "wdth" 62;
}
.founder .gust__ch { --w: 62; --g: 820; }
.founder__last { font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 500; opacity: .85; }
.founder__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; text-align: right; }
.founder__mail { font-size: clamp(.9rem, 1.3vw, 1.05rem); color: inherit; opacity: .8; text-underline-offset: .2em; }
.founder__mail:hover { opacity: 1; }
.contact .contact__support { margin-top: 1.25rem; font-size: 1.05rem; }
.contact__support a { color: #fff; text-underline-offset: .2em; }

/* ---------- Contacto ---------- */
.contact {
  background: var(--ink); color: var(--paper);
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  position: relative; overflow: hidden; isolation: isolate;
}
.contact__r {
  position: absolute; z-index: -1;
  right: -6vw; bottom: -14vw; width: min(62vw, 54rem); height: auto;
  overflow: visible;
}
.contact__r use { fill: transparent; stroke: var(--cobalt); stroke-width: 3; }
.contact__inner { max-width: var(--max); margin-inline: auto; }
.contact h2 { font-size: clamp(2.6rem, 6.6vw, 6.6rem); max-width: 15ch; }
.contact p { margin-top: 1.5rem; max-width: 34rem; font-size: 1.2rem; color: var(--fog-light); }
.contact .btn { margin-top: 2.25rem; }
.contact .contact__where { margin-top: 1.5rem; font-size: 1rem; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink); color: var(--fog-light);
  padding: 2rem var(--gutter) 2.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .95rem;
}
.foot__logo { width: 8rem; height: auto; fill: var(--paper); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links li:not(:last-child) { display: none; }
  .method, .ficha, .projects__intro, .team__intro { grid-template-columns: minmax(0, 1fr); }
  .method > * { max-width: none; }
  .sheet { position: static; }
  .ficha { align-items: start; }
  .ficha--small { grid-template-columns: minmax(0, 1fr) auto; }
  .ficha--wv { --tab-x: 18%; }
  .ficha--el { --tab-x: 36%; }
  .ficha--gj { --tab-x: 54%; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .what__grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 86svh; }
  .hero__title .gust__seg { display: block; }
  .hero__title .gust__line:nth-child(2) { text-align: right; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .spec { box-shadow: -8px 8px 0 -1px var(--ink); }
  .spec[data-mode="otro"] { box-shadow: -8px 8px 0 -1px var(--fog-light); }
  .sheet { box-shadow: 10px 10px 0 -1px var(--cobalt); }
  .req { flex-direction: column; align-items: start; gap: .6rem; }
  .contact__r { width: 90vw; bottom: -20vw; right: -20vw; }
  .ficha { --tab-h: 2.7rem; }
  .founder__meta { align-items: flex-start; text-align: left; }
  .ficha__tab { font-size: .88rem; padding: 0 .85rem; gap: .45rem; }
  .ficha__tab svg { height: 1rem; }
  .ficha--small { grid-template-columns: minmax(0, 1fr); }
  .ficha__mark { position: absolute; right: var(--pad); top: var(--pad); width: 3.5rem; margin: 0; }
  .ficha--small .case__body { padding-right: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
