/* ==========================================================================
   Software Salvaje — marca y páginas
   Va después del kit (assets/kit). Colores del logo: negro #1B1915, verde #255D34, arena #D5C8A4, café #76552A.
   Modo claro y oscuro: <html data-theme="light|dark">, elegido por el visitante o por su sistema.
   ========================================================================== */

:root {
  --p-bg: #f5f4f0; --p-surface: #eceae3; --p-ink: #1b1915; --p-muted: #5f5a50;
  --p-accent: #255d34; --p-accent-ink: #f5f4f0; --p-action: #255d34; --p-action-ink: #f5f4f0;
  --p-inv-bg: #1b1915; --p-inv-surface: #272521; --p-inv-ink: #f5f4f0; --p-inv-muted: #9a9894;
  --p-inv-accent: #f5f4f0; --p-inv-accent-ink: #1b1915; --p-inv-action: #f5f4f0; --p-inv-action-ink: #1b1915;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
}
/* modo oscuro: el negro del logo como fondo, la arena como tinta, el verde aclarado para el fondo oscuro */
html[data-theme="dark"] {
  --p-bg: #121110; --p-surface: #1c1a17; --p-ink: #ece8df; --p-muted: #a39d91;
  --p-accent: #8cbf97; --p-accent-ink: #10130f; --p-action: #8cbf97; --p-action-ink: #10130f;
  --p-inv-bg: #10261a; --p-inv-surface: #173322; --p-inv-ink: #ece8df; --p-inv-muted: #a9b8aa;
  --p-inv-accent: #ece8df; --p-inv-accent-ink: #10261a; --p-inv-action: #ece8df; --p-inv-action-ink: #10261a;
  color-scheme: dark;
}
html[data-theme="dark"][data-ground="sage"] { --ground-bg: #8fa58c; --ground-surface: #a3b6a0; --ground-ink: #1b2219; --ground-muted: #3c4a3a; --ground-accent: #255d34; }

/* the logo: the client's glyph, the colour file on light, the sand recolour on dark */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand .on-dark, html[data-theme="dark"] .brand .on-light { display: none; }
html[data-theme="dark"] .brand .on-dark { display: block; }
.footer .brand img { width: 40px; height: 40px; }
/* the theme switch: one icon button beside the main action */
.theme-switch { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 99px; color: var(--ink); background: transparent; border: 1px solid var(--line); cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.theme-switch:hover { background: var(--surface); border-color: var(--line-strong); }
.theme-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch .i-sun, html[data-theme="dark"] .theme-switch .i-moon { display: none; }
html[data-theme="dark"] .theme-switch .i-sun { display: block; }
.nav__bar .theme-switch--bar { display: none; }
.nav__logo.brand { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav--centre .nav__links { gap: 0; } .nav--centre .nav__link { padding-inline: 10px; } .nav__actions { gap: var(--s-2); } }
@media (max-width: 1023px) { .nav__bar .theme-switch--bar { display: inline-grid; } .nav:not(.is-open) .nav__actions + .theme-switch--bar + .nav__toggle { margin-left: 0; } }
@media (max-width: 639px) { .nav:not(.is-open) .theme-switch--bar { margin-left: 6px; } }

/* hero: the product window, the system a pyme runs its orders in */
.hero--centred h1 { max-width: 18ch; }
.hero__window .ui-pause:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 6px #10261a; }
@media (max-width: 639px) { .hero--centred .hero__window { min-height: 228px; } }
.sw { --w-bg: #ffffff; --w-ink: #1b1915; --w-muted: #6a655b; --w-line: rgb(27 25 21 / .09); --w-soft: #f4f3ef; --w-on: rgb(37 93 52 / .09);
  background: var(--w-bg); color: var(--w-ink); border-radius: 12px; overflow: hidden; font: 400 13px/1.45 var(--font-text);
  box-shadow: 0 0 0 1px var(--w-line), 0 30px 70px -32px rgb(20 30 20 / .45); text-align: left; }
html[data-theme="dark"] .sw { --w-bg: #1a1917; --w-ink: #ece8df; --w-muted: #9c968a; --w-line: rgb(255 255 255 / .08); --w-soft: #22201d; --w-on: rgb(140 191 151 / .12);
  box-shadow: 0 0 0 1px var(--w-line), 0 30px 70px -30px rgb(0 0 0 / .8); }
.sw__bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--w-line); color: var(--w-muted); }
.sw__dots { display: flex; gap: 6px; } .sw__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--w-line); box-shadow: inset 0 0 0 10px rgb(127 127 127 / .18); }
.sw__bar b { color: var(--w-ink); font-weight: 500; } .sw__bar .sp { flex: 1; }
.sw__search { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--w-soft); min-width: 180px; }
.sw__body { display: grid; grid-template-columns: 168px minmax(0, 1fr) minmax(0, 300px); min-height: 440px; }
.sw__side { border-right: 1px solid var(--w-line); padding: 12px 10px; display: grid; align-content: start; gap: 2px; color: var(--w-muted); }
.sw__side span { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 9px; border-radius: 8px; }
.sw__side span.is-on { background: var(--w-soft); color: var(--w-ink); font-weight: 500; }
.sw__side em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--w-muted); }
.sw__side svg, .sw__search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sw__label { margin: 12px 9px 4px; font-size: 12px; color: var(--w-muted); }
.sw__list { min-width: 0; border-right: 1px solid var(--w-line); }
.sw__cols, .sw__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 92px 112px; gap: 12px; align-items: center; padding: 0 16px; }
.sw__cols { height: 36px; font-size: 12px; color: var(--w-muted); border-bottom: 1px solid var(--w-line); }
.sw__row { height: 46px; border-bottom: 1px solid var(--w-line); }
.sw__row.is-on { background: var(--w-on); }
.sw__row .n { font-family: var(--font-mono); font-size: 12px; color: var(--w-muted); }
.sw__row .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.sw__row .amt { font-family: var(--font-mono); font-size: 12px; text-align: right; }
.st { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; background: var(--w-soft); color: var(--w-muted); white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.st--go { color: var(--w-ink); }
.st--new { background: var(--p-accent); color: var(--p-accent-ink); } .st--new::before { opacity: 1; }
.sw__open { padding: 16px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.sw__open .sw__h { font: 500 15px/1.3 var(--font-text); margin: 0; }
.sw__open .meta { color: var(--w-muted); font-size: 12px; margin-top: -8px; }
.sw__items { display: grid; gap: 0; border-top: 1px solid var(--w-line); }
.sw__items div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--w-line); }
.sw__items span:last-child { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.sw__stock { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--w-soft); font-size: 12px; color: var(--w-muted); }
.sw__stock b { color: var(--w-ink); font-weight: 500; }
.sw__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sw__acts span { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font-weight: 500; background: var(--w-ink); color: var(--w-bg); }
.sw__acts span + span { background: transparent; color: var(--w-ink); box-shadow: inset 0 0 0 1px var(--w-line); }
@media (max-width: 1279px) { .sw__body { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 270px); } }
@media (max-width: 1023px) { .sw__body { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); } .sw__side { display: none; } .sw__search { min-width: 0; } }
@media (max-width: 639px) { .sw__body { grid-template-columns: minmax(0, 1fr); } .sw__open, .sw__bar .sp ~ * { display: none; } .sw__cols, .sw__row { grid-template-columns: 52px minmax(0, 1fr) 84px; } .sw__row .amt, .sw__cols span:last-child { display: none; } }

/* services bento: one panel height for the group */
#servicios .panel { --p-h: 256px; }
@media (max-width: 1279px) { #servicios .panel { --p-h: 280px; } }
@media (max-width: 1023px) { #servicios .panel { --p-h: 240px; } }
@media (max-width: 639px) { #servicios .panel { --p-h: 160px; } #servicios .ui-chat__day { display: none; } }

.grid--top > .section-head { align-self: start; align-content: start; }
/* how we work: three steps in type on the band */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.steps-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-2) var(--s-4); padding: var(--s-6) 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps-list li:last-child { border-bottom: 1px solid var(--line); }
.steps-list li::before { content: "0" counter(s); grid-row: span 2; font: 400 14px/1.9 var(--font-mono); color: var(--muted); }
.steps-list h3 { font: 500 var(--t-h3)/1.25 var(--font-display); letter-spacing: var(--display-tracking); margin: 0; }
.steps-list p { color: var(--muted); max-width: 46ch; margin: 0; }
@media (max-width: 639px) { .steps-list li { padding: var(--s-4) 0; grid-template-columns: 40px minmax(0, 1fr); } }

/* client cards: the client's logo on a white tile, what we did as a short list */
.did { list-style: none; margin: var(--s-2) 0 0; padding: var(--s-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); color: var(--c-text, var(--ink)); }
.did li { display: flex; gap: var(--s-3); align-items: baseline; }
.did li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: translateY(-2px); }

.case { display: flex; flex-direction: column; gap: var(--s-3); }
.case__logo { height: 168px; margin-bottom: var(--s-3); border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgb(27 25 21 / .08); display: grid; place-items: center; }
.case__logo img { height: 56px; width: auto; }
.case__logo img[alt="abis"] { height: 72px; }
@media (max-width: 1023px) { .case__logo { height: 120px; } .cases .did { display: none; } }
/* contact: WhatsApp and the town under the words */
.contact-lines { display: grid; gap: var(--s-3); margin-top: var(--s-7); }
.contact-lines .wa { display: flex; align-items: center; gap: var(--s-3); }
.contact-lines div { align-items: center; }
.contact-lines div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-3); }
.contact-lines dt { color: var(--muted); } .contact-lines dd { margin: 0; font-weight: 500; }
.form-panel { background: var(--g-alt, var(--surface)); border-radius: var(--r-lg); padding: var(--s-7); }
@media (max-width: 639px) { .form-panel { padding: var(--s-5); } }
.form-panel .form { grid-template-columns: minmax(0, 1fr); }
.field textarea { min-height: 136px; resize: vertical; }
@media (max-width: 1023px) { .field textarea { min-height: 96px; } }
/* the name across the wrap: set to fit its 16 letters at every width */
.footer .close__word { font-size: 9.6vw; line-height: 1; padding-top: .06em; overflow: visible; white-space: nowrap; }
@media (min-width: 1440px) { .footer .close__word { font-size: 138px; } }

/* ---------------------------------------------------------------- páginas internas */
/* la cabecera de una página interna: etiqueta, título, línea y acciones, bajo la barra fija */
.page-head .wrap { display: grid; gap: var(--s-5); }
.page-head h1 { max-width: 20ch; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; }
.page-head .t-lead { max-width: 60ch; color: var(--muted); }
.page-head .btn-row { margin-top: var(--s-2); }
.page-head__top { display: flex; align-items: center; gap: var(--s-4); }
.eyebrow { font: 500 var(--t-small)/1.4 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.ground-inverse .eyebrow { color: var(--muted); }

/* secciones de páginas internas: el aire del kit, sin la regla de una pantalla (esa regla es solo de la portada) */
main > section:is(.block, .page-head):not(.x) { height: auto !important; min-height: 0 !important; display: block; }
main > section:is(.block, .page-head):not(.x) > .wrap { height: auto !important; }
main > section.block:not(.x) { padding: var(--section-band) 0; }
main > section.block:not([class*="ground-"]) + section.block:not([class*="ground-"]) { padding-top: 0; }
main > section.page-head:not(.x) { padding: calc(var(--nav, 72px) + var(--s-9, 96px)) 0 var(--s-8, 64px); }
.block .section-head { margin-bottom: var(--s-8, 64px); max-width: 760px; }
.block .section-head p { color: var(--muted); }

/* listas de puntos con título: valores, garantías, compromisos, especialidades */
.points { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--s-6) var(--card-gap, 24px); }
.points > div { display: grid; align-content: start; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.points h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin: 0; }
.points p { color: var(--muted); margin: 0; max-width: 46ch; }
.points .eyebrow { margin-bottom: var(--s-1); }
@media (max-width: 1023px) { .points { --cols: 2 !important; } }
@media (max-width: 639px) { .points { --cols: 1 !important; } }

/* misión y visión: dos textos grandes lado a lado */
.statement { font: var(--display-weight) clamp(22px, 2vw, 30px)/1.3 var(--font-display); letter-spacing: var(--display-tracking); margin: 0; text-wrap: pretty; }

/* tarjeta enlazada (servicio, proyecto): toda la tarjeta es el enlace */
a.card { color: inherit; text-decoration: none; }
.card .more { margin-top: auto; padding-top: var(--s-3); font-weight: 500; display: inline-flex; gap: var(--s-2); align-items: center; }
.card .more::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
@media (hover: hover) { a.card:hover .more::after { transform: translateX(3px); } }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* servicios en la portada: toda la tarjeta lleva a su página */
#servicios a.card { display: flex; flex-direction: column; }
#servicios a.card > p { color: var(--c-text, var(--ink)); }
#servicios .card h3 { display: flex; align-items: center; gap: var(--s-3); }

/* página de servicios: foto del servicio, título, línea y enlace */
.svc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap, 24px); }
.svc-list .card { display: flex; flex-direction: column; gap: var(--s-3); }
.svc-list .card__media { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface); margin-bottom: var(--s-2); }
.svc-list .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) { .svc-list a.card:hover .card__media img { transform: scale(1.025); } }
.svc-list .card__title { display: flex; align-items: center; gap: var(--s-3); }
.svc-list .card__title .ic-tile { --tile: 40px; }
@media (max-width: 1023px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .svc-list { grid-template-columns: minmax(0, 1fr); } }

/* detalle de servicio y de proyecto: la imagen principal y los bloques de texto */
.feature-img { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); aspect-ratio: 21 / 9; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .feature-img { aspect-ratio: 4 / 3; } }
.detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5) var(--card-gap, 24px); padding-block: var(--s-7); border-top: 1px solid var(--line); }
.detail:last-child { border-bottom: 1px solid var(--line); }
.detail h3 { font: 500 var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); margin: 0; }
.detail .eyebrow { display: block; margin-bottom: var(--s-2); }
@media (max-width: 1023px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 68ch; color: var(--c-text, var(--ink)); }
.prose > * + * { margin-top: var(--s-4); }
.prose ul { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin-top: var(--s-6); }

/* resultado clave de un proyecto */
.impact { padding: var(--s-8, 64px) var(--s-7); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: var(--s-4); }
.impact p { margin: 0; }

/* logotipo del cliente en una ficha blanca */
.logo-tile { display: inline-grid; place-items: center; height: 72px; padding: 0 var(--s-5); border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgb(27 25 21 / .08); }
.logo-tile img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }

/* stack tecnológico: los logos reales de cada grupo */
.stack { display: grid; gap: 0; }
.stack > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.stack > div:last-child { border-bottom: 1px solid var(--line); }
.stack__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.stack__head h3 { margin: 0; font: 500 var(--t-body, 16px)/1.4 var(--font-text); }
.stack__head p { margin: 0; color: var(--muted); }
.stack__logos { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.stack__logos .ic-tile { --tile: 44px; }
.why { display: grid; gap: 0; }
.why > div { padding-block: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.why > div:last-child { border-bottom: 1px solid var(--line); }
.why h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0; }
.why p { margin: 0; color: var(--muted); }
.col-title { font: 500 var(--t-small)/1.4 var(--font-mono); color: var(--muted); margin: 0 0 var(--s-4); }

/* el problema y la solución, con el diagrama debajo */
.ps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--card-gap, 24px); }
.ps h2, .ps h3 { font: var(--display-weight) clamp(26px, 2.6vw, 40px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); margin: var(--s-2) 0 var(--s-4); max-width: 18ch; }
.ps p { color: var(--muted); max-width: 52ch; margin: 0; }
#problema .panel { --p-h: 340px; margin-top: var(--s-8, 64px); border-radius: var(--r-lg); }
@media (max-width: 1023px) { #problema .panel { --p-h: 300px; } }
@media (max-width: 639px) { .ps { grid-template-columns: minmax(0, 1fr); } #problema .panel { --p-h: 320px; } }

/* contacto: lista de pasos y datos directos */
.steps-mini { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps-mini li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-1) var(--s-3); padding-block: var(--s-4); border-top: 1px solid var(--line); counter-increment: s; }
.steps-mini li::before { content: "0" counter(s); grid-row: span 2; font: 400 13px/1.8 var(--font-mono); color: var(--muted); }
.steps-mini b { font-weight: 500; }
.steps-mini span { color: var(--muted); }
.contact-lines a:not(.link) { color: inherit; }

/* Contact Form 7 sobre los campos del kit */
.form-panel .wpcf7 .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 639px) { .form-panel .wpcf7 .form { grid-template-columns: minmax(0, 1fr); } }
.wpcf7 .field textarea { min-height: 120px; height: 120px; }
.wpcf7 .field { margin: 0; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .field :is(input, textarea) { width: 100%; }
.wpcf7 .field :is(input, textarea):focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.wpcf7-not-valid { border: 2px solid var(--error, #b42318) !important; }
.wpcf7-not-valid-tip { display: block; margin-top: var(--s-2); font: 500 var(--t-small)/1.4 var(--font-text); color: var(--error, #b42318); }
.wpcf7-not-valid-tip::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: var(--s-2); border-radius: 50%; background: var(--error, #b42318); color: var(--bg); font-size: 12px; line-height: 1; vertical-align: -2px; }
.wpcf7 .wpcf7-submit { cursor: pointer; }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 var(--s-3); vertical-align: middle; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); border: 1px solid var(--line-strong); font-size: var(--t-small); }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--accent); }
.wpcf7 form:is(.invalid, .failed, .aborted, .spam) .wpcf7-response-output { border-color: var(--error, #b42318); }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .form__note { color: var(--muted); font-size: var(--t-small); margin: 0; }

.footer .socials a { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 99px; border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); color: var(--ink); }
.footer .socials a:hover { color: var(--action); border-color: currentColor; }
.footer .socials svg { width: 18px; height: 18px; display: block; }

/* pie: la altura la pone el contenido (nunca se monta el nombre sobre los enlaces) */
footer.closing.footer { height: auto !important; min-height: 0 !important; }
footer.closing.footer > .wrap { height: auto !important; display: block; }
.footer .closing__cta { gap: var(--s-6); }
.footer .close__word { margin: var(--s-7, 48px) 0 0; padding: 0 0 var(--s-7, 48px); font-size: clamp(52px, 10.4vw, 150px); line-height: .95;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
.footer .closing__links { padding-top: var(--s-8, 64px); }
.footer .footer__col h3 { color: color-mix(in oklab, var(--ink) 72%, transparent); }
.footer ul { gap: var(--s-3); }
.footer ul a { line-height: 1.4; }
@media (max-width: 639px) {
  .footer ul:has(> li > a) { gap: var(--s-2, 8px); }
  .footer ul a:not(.btn) { min-height: 40px; padding-block: 8px; }
  .footer .closing__links .grid { row-gap: var(--s-7, 40px); }
}

/* selector de idioma: un botón redondo como el de tema */
.lang-switch { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 99px; border: 1px solid var(--line);
  font: 500 12px/1 var(--font-mono); letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.lang-switch:hover { border-color: currentColor; color: var(--action); }
.nav__bar .lang-switch--bar { display: none; }
@media (max-width: 1023px) { .nav__bar .lang-switch--bar { display: inline-grid; margin-left: auto; } .nav:not(.is-open) .lang-switch--bar + .theme-switch--bar { margin-left: 8px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__actions .btn { padding-inline: 14px; } .nav--centre .nav__link { padding-inline: 7px; font-size: 14px; } .nav__actions { gap: 6px; } }
@media (max-width: 639px) { .footer .close__word { white-space: normal; font-size: 16vw; line-height: .95; } }

/* contraste AA: los grises tenues de las piezas de interfaz y los textos largos con un ancho cómodo */
.ui { --u-soft: var(--u-muted); }
.detail .prose, .detail .prose p { max-width: 36em; }
.statement { max-width: 62ch; }

/* lista de proyectos */
.case a.more { color: inherit; }
.related .card { min-height: 100%; }

/* 1024-1279: el menú completo, el idioma, el tema y el botón caben dejando solo el glifo del logo */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__logo .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.footer .socials a { display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav--centre .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; }
  .nav--centre .nav__links { justify-content: center; min-width: 0; }
}
