/* ==========================================================================
   RUIDO — Agencia creativa
   Sistema visual según el Manual de identidad (octubre 2026)
   · Color: negro #171717 · blanco cálido #F3F0E8 · verde ácido #C8FF31
   · Tipografía: DejaVu Sans Bold (titulares) y Regular (texto)
   · Gesto gráfico: el corte ascendente (≈ 3,43°, medido sobre el logo)
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, subset latino) ---------- */
@font-face {
  font-family: "DejaVu Sans";
  src: url("../fonts/dejavu-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DejaVu Sans";
  src: url("../fonts/dejavu-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --negro: #171717;
  --crema: #F3F0E8;      /* blanco cálido */
  --lima:  #C8FF31;      /* verde ácido */

  /* grises derivados de la paleta, con contraste AA verificado */
  --muted-claro:  #5A5953;   /* sobre crema: 6,2:1 */
  --muted-oscuro: #ADAAA5;   /* sobre negro: 7,7:1 */
  --muted-lima:   #2B2B28;   /* sobre lima: 12:1 */

  --font: "DejaVu Sans", Verdana, "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1440px;
  --gutter: clamp(1.25rem, 4.2vw, 3.5rem);
  --header-h: 3.75rem;

  /* El corte: tan(3,43°) = 0,06. Altura de la arista inclinada entre secciones. */
  --cut: min(calc(100vw * 0.06), 100px);

  --ease: cubic-bezier(.2, .75, .2, 1);
}
@media (min-width: 900px) { :root { --header-h: 4.25rem; } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--negro);
  color: var(--crema);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--lima); color: var(--negro); }

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

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--lima); color: var(--negro);
  padding: .75rem 1rem; font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; outline: 3px solid var(--crema); outline-offset: 2px; }

:focus-visible { outline: 3px solid var(--focus, var(--lima)); outline-offset: 3px; }

/* ---------- Superficies: cada sección fija sus propios colores ---------- */
.sec {
  --sec-pad: clamp(4.25rem, 8.6vw, 8rem);
  position: relative;
  padding-block: var(--sec-pad);
  background: var(--bg);
  color: var(--fg);
}
.sec--negro {
  --bg: var(--negro); --fg: var(--crema); --muted: var(--muted-oscuro);
  --line: rgba(243, 240, 232, .3); --focus: var(--lima); --accent: var(--lima);
}
.sec--crema {
  --bg: var(--crema); --fg: var(--negro); --muted: var(--muted-claro);
  --line: var(--negro); --focus: var(--negro); --accent: var(--negro);
}
.sec--lima {
  --bg: var(--lima); --fg: var(--negro); --muted: var(--muted-lima);
  --line: var(--negro); --focus: var(--negro); --accent: var(--negro);
}

/* La arista inclinada: el mismo ángulo del corte del logo, de abajo-izquierda a arriba-derecha. */
.seam {
  margin-top: calc(var(--cut) * -1);
  padding-top: calc(var(--sec-pad) + var(--cut));
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */
.h2, .h3, h1 { font-weight: 700; text-wrap: balance; }

.h2 {
  font-size: clamp(2.35rem, 6.1vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.h2--xl { font-size: clamp(2.6rem, 8.3vw, 7.75rem); line-height: .98; }

.h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .875rem;
  max-width: 60ch;
}

/* Fila de sección: etiqueta + filete, como en el manual */
.rule {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rule b { font-weight: 700; }
@media (min-width: 900px) {
  .rule { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .8125rem; }
  .rule > :first-child { grid-column: 1 / 8; }
  .rule > :last-child  { grid-column: 8 / -1; }
}

@media (max-width: 520px) { .hide-s { display: none; } }
@media (max-width: 359px) { .hero .rule > :last-child { display: none; } }

.rule + .h2,
.rule + .hero__title { margin-top: clamp(2rem, 5vw, 4rem); }

/* Marcadores de contenido pendiente: visibles y fáciles de encontrar */
.ph {
  display: inline-block;
  padding: .1em .45em;
  border: 2px dashed currentColor;
  font-weight: 700;
  font-size: .95em;
  line-height: 1.3;
}

.contact__list a, .footer__contact a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}
.footer__contact a:hover { color: var(--lima); }
.contact__list a:hover { text-decoration-thickness: 4px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--lima); --btn-fg: var(--negro);
  --btn-hover-bg: var(--crema); --btn-hover-fg: var(--negro);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .85rem 1.6rem;
  border: 2px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s ease .06s, border-color .3s ease;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover-bg);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path .45s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg); border-color: var(--btn-hover-bg); }
.btn:hover::before, .btn:focus-visible::before {
  clip-path: polygon(0 0, calc(100% + 16px) 0, 100% 100%, 0 100%);
}
.btn:active { transform: translateY(1px); }

.btn--negro {
  --btn-bg: var(--negro); --btn-fg: var(--crema);
  --btn-hover-bg: var(--crema); --btn-hover-fg: var(--negro);
}
.btn--negro:hover, .btn--negro:focus-visible { border-color: var(--negro); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 3.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
  text-decoration-color: var(--lima);
}
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--lima); }
.link-arrow:hover span { transform: translateY(4px); }

/* ==========================================================================
   Cabecera
   ========================================================================== */
/* Base (sin JS o navegador antiguo): la cabecera fluye con la página.
   Se fija solo cuando hay JS o la pantalla es ancha (ver bloque más abajo). */
.site-header {
  position: relative; z-index: 60;
  background: var(--negro);
  color: var(--crema);
  border-bottom: 1px solid rgba(243, 240, 232, .22);
}
.site-header__bar {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; width: 9rem; min-height: 2.75rem; flex: none; line-height: 0; }
.brand img { width: 100%; }
.brand:focus-visible { outline-color: var(--lima); }

.menu-toggle { display: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; }
.nav__list { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); flex-wrap: wrap; }
.nav__list a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  font-size: .9375rem;
  text-decoration: none;
}
.nav__n { display: none; }
.nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .45rem;
  height: 3px; background: var(--lima);
  transform-origin: left; transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav__list a:hover::after,
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__list a:hover { color: var(--lima); }
.nav__cta { min-height: 2.75rem; padding: .55rem 1.25rem; }

/* Menú móvil (solo si hay JS; sin JS el menú queda visible en línea) */
@media (scripting: enabled) and (max-width: 899px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .75rem;
    min-height: 2.75rem; padding: 0 .25rem;
    background: none; border: 0; cursor: pointer;
    font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  }
  .menu-toggle__bars { position: relative; width: 1.6rem; height: .75rem; }
  .menu-toggle__bars i {
    position: absolute; left: 0; width: 100%; height: 3px; background: var(--lima);
    transition: transform .35s var(--ease), top .35s var(--ease);
  }
  .menu-toggle__bars i:first-child { top: 0; }
  .menu-toggle__bars i:last-child  { top: calc(100% - 3px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: calc(50% - 1.5px); transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child  { top: calc(50% - 1.5px); transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; justify-content: space-between; flex-wrap: nowrap;
    gap: 2rem;
    padding: 1.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: var(--negro);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-1rem);
    transition: opacity .3s ease, transform .4s var(--ease), visibility 0s linear .4s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; flex-wrap: nowrap; }
  .nav__list li { border-bottom: 1px solid rgba(243, 240, 232, .22); }
  .nav__list a {
    width: 100%; min-height: 4.5rem; gap: 1rem;
    font-weight: 700; font-size: clamp(1.5rem, 7vw, 2.25rem); line-height: 1.1; letter-spacing: -.01em;
  }
  .nav__list a::after { display: none; }
  .nav__n { display: inline; width: 2rem; color: var(--lima); font-size: .875rem; letter-spacing: .08em; }
  .nav__cta { width: 100%; min-height: 3.75rem; font-size: 1rem; }
  html.menu-open { overflow: hidden; }
}

/* ==========================================================================
   Inicio
   ========================================================================== */
.hero {
  padding-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: calc(var(--sec-pad) + .5rem);
}

@media (scripting: enabled), (min-width: 900px) {
  html { scroll-padding-top: var(--header-h); }
  .site-header { position: fixed; inset: 0 0 auto 0; }
  .hero { padding-top: calc(var(--header-h) + clamp(1.75rem, 4vw, 3.5rem)); }
}

.hero__title {
  font-size: clamp(2.6rem, 15.2vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.hero__title .w > span { display: inline-block; }
.hero__title .hl { color: var(--lima); }
.br-d { display: none; }

@media (min-width: 641px) {
  .hero__title { font-size: clamp(3rem, 9.35vw, 8.6rem); }
  .br-m { display: none; }
  .br-d { display: inline; }
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-top: clamp(2rem, 4.5vw, 4rem);
}
.hero__lead { font-size: clamp(1.15rem, 1.9vw, 1.65rem); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; margin-top: 1.75rem; }
.hero__cta .btn { min-width: 12rem; }

.lines { color: var(--lima); width: 7.5rem; justify-self: end; overflow: visible; }
.lines g { stroke-width: 8; }
.lines line { stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .lines { width: clamp(11rem, 21vw, 21rem); }
  .lines g { stroke-width: 5; }
}

.hero__tags {
  display: flex; flex-wrap: wrap; gap: .25rem .75rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--lima);
  font-size: clamp(.8rem, 1.4vw, 1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero__tags i { font-style: normal; opacity: .9; }

/* ==========================================================================
   Nosotros
   ========================================================================== */
.about__top { display: grid; gap: 1.75rem; margin-top: clamp(2rem, 5vw, 4rem); }
.about__top .about__title { margin-top: 0; }
@media (min-width: 900px) {
  .about__top { grid-template-columns: repeat(12, 1fr); align-items: end; gap: 0 clamp(1.5rem, 3vw, 3rem); }
  .about__title { grid-column: 1 / 9; }
  .about__lead  { grid-column: 9 / -1; padding-bottom: .5rem; }
}

.verbs { display: grid; gap: 2.25rem; margin-top: clamp(3.5rem, 8vw, 7rem); }
.verb { border-top: 2px solid var(--line); padding-top: 1.25rem; }
.verb h3 { font-size: clamp(2.4rem, 4.8vw, 4.4rem); line-height: 1; letter-spacing: -.02em; margin-bottom: .9rem; }
.verb p { max-width: 24ch; font-size: 1.125rem; }
@media (min-width: 760px) {
  .verbs { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
}

.traits { display: grid; gap: 2rem; margin-top: clamp(4.5rem, 9vw, 8rem); }
.traits__head .muted { margin-top: .75rem; }
.trait {
  display: grid; gap: .6rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.trait:last-child { border-bottom: 1px solid var(--line); }
.trait dt { font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.05; letter-spacing: -.015em; }
.trait dd { max-width: 38ch; align-self: center; }
@media (min-width: 640px) {
  .trait { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: baseline; }
}
@media (min-width: 900px) {
  .traits { grid-template-columns: repeat(12, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); }
  .traits__head { grid-column: 1 / 5; }
  .traits__list { grid-column: 5 / -1; }
}

/* ==========================================================================
   Qué hacemos
   ========================================================================== */
.svc-list { margin-top: clamp(2.5rem, 6vw, 5rem); border-bottom: 2px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .5rem 1.25rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-top: 2px solid var(--line);
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, padding .35s var(--ease);
}
.svc__n { font-weight: 700; font-size: .9375rem; letter-spacing: .06em; }
.svc__name { grid-column: 2; font-weight: 700; font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.025em; }
.svc__txt { grid-column: 2; max-width: 44ch; }
.svc__go { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 2.25rem; line-height: 1; transition: transform .35s var(--ease); }

@media (min-width: 900px) {
  .svc {
    grid-template-columns: 4rem minmax(0, 1.25fr) minmax(0, 1fr) 4rem;
    gap: 0 2rem;
    align-items: center;
    padding: 2.1rem 0;
  }
  .svc__name, .svc__txt, .svc__go { grid-column: auto; grid-row: auto; }
  .svc__go { justify-self: end; font-size: 2.75rem; }
}
.svc:hover, .svc:focus-visible {
  background: var(--negro); color: var(--crema);
  padding-inline: clamp(1rem, 2vw, 1.75rem);
}
.svc:hover .svc__n, .svc:focus-visible .svc__n,
.svc:hover .svc__go, .svc:focus-visible .svc__go { color: var(--lima); }
.svc:hover .svc__go, .svc:focus-visible .svc__go { transform: translate(.4rem, -.4rem); }
.svc:focus-visible { outline: 3px solid var(--crema); outline-offset: -3px; }

/* ==========================================================================
   Cómo trabajamos
   ========================================================================== */
.process__head { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 5vw, 4rem); }
.process__head .h2 { margin: 0; }
@media (min-width: 900px) {
  .process__head { grid-template-columns: repeat(12, 1fr); align-items: end; gap: 0 clamp(1.5rem, 3vw, 3rem); }
  .process__head .h2 { grid-column: 1 / 8; }
  .process__head .lead { grid-column: 9 / -1; padding-bottom: .5rem; }
}

.steps { --rise: 3.75rem; display: grid; gap: 2.75rem; margin-top: clamp(3.5rem, 7vw, 6rem); }
.step__line {
  display: block; position: relative; height: 1.5rem; margin-bottom: 1rem;
}
.step__line::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: var(--lima);
  transform-origin: left bottom; transform: rotate(-3.43deg);
}
.step__n { display: block; color: var(--lima); font-weight: 700; font-size: .9375rem; letter-spacing: .08em; margin-bottom: .75rem; }
.step h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem; }
.step p { color: var(--muted); max-width: 30ch; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: start; padding-top: calc(var(--rise) * 0); }
  .step:nth-child(1) { margin-top: calc(var(--rise) * 3); }
  .step:nth-child(2) { margin-top: calc(var(--rise) * 2); }
  .step:nth-child(3) { margin-top: calc(var(--rise) * 1); }
  .step:nth-child(4) { margin-top: 0; }
}

/* ==========================================================================
   Universo
   ========================================================================== */
.palette {
  display: flex;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  min-height: clamp(220px, 30vw, 380px);
  border: 2px solid var(--negro);
}
.swatch { display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; padding: 1.1rem 1.25rem; font-size: .9375rem; line-height: 1.35; }
.swatch b { font-size: clamp(1.1rem, 1.9vw, 1.6rem); line-height: 1.1; margin-bottom: .35rem; }
.swatch__rgb { font-size: .8125rem; opacity: .85; }
.swatch--negro { flex: 5; background: var(--negro); color: var(--crema); }
.swatch--crema { flex: 3; background: var(--crema); color: var(--negro); }
.swatch--lima  { flex: 2; background: var(--lima);  color: var(--negro); }
@media (max-width: 640px) {
  .palette { flex-direction: column; min-height: 0; }
  .swatch--negro { min-height: 12.5rem; }
  .swatch--crema { min-height: 9rem; }
  .swatch--lima  { min-height: 7.5rem; }
}

.block-head { display: grid; gap: .75rem; margin-top: clamp(4.5rem, 9vw, 8rem); max-width: 52rem; }

.plates { --step: 2.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.plates img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .plates li:nth-child(1) { margin-top: calc(var(--step) * 3); }
  .plates li:nth-child(2) { margin-top: calc(var(--step) * 2); }
  .plates li:nth-child(3) { margin-top: var(--step); }
  .plates li:nth-child(4) { margin-top: 0; }
}

.apps { display: grid; gap: clamp(.75rem, 1.6vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.apps img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 760px) {
  .apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact__grid { display: grid; gap: 3rem; margin-top: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: repeat(12, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); align-items: start; }
  .contact__info { grid-column: 1 / 6; }
  .form { grid-column: 7 / -1; }
}
.contact__list { display: grid; margin-top: 2.25rem; border-top: 2px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.form { display: grid; gap: 1.35rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.4rem;
  padding: .85rem 1rem;
  background: var(--crema);
  color: var(--negro);
  border: 2px solid var(--negro);
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
  color-scheme: light;
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23171717' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: .9rem;
}
.field :is(input, select, textarea):focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }
.field [aria-invalid="true"] { border-width: 4px; padding: calc(.85rem - 2px) calc(1rem - 2px); }
.field__err { font-weight: 700; font-size: .9375rem; }
.field__err::before { content: "× "; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .25rem; }
.form__actions .btn { min-width: 14rem; }
.form__status { font-weight: 700; max-width: 40ch; }
.form__status:empty { display: none; }

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.footer__grid { display: grid; gap: 2.75rem; }
.footer__tag { font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3.25rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.hl-text { color: var(--lima); }
.footer__h { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer__contact li { display: block; padding: .3rem 0; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.footer__nav a:hover { color: var(--lima); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: repeat(12, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); align-items: start; }
  .footer__brand   { grid-column: 1 / 6; }
  .footer__nav     { grid-column: 6 / 9; }
  .footer__contact { grid-column: 9 / -1; }
}

/* Firma grande con revelado por el corte */
.logo-cut {
  display: block; position: relative; overflow: hidden;
  margin-top: clamp(4rem, 9vw, 8rem);
  line-height: 0;
}
.logo-cut img { width: 100%; height: auto; }
.logo-cut__b { position: absolute; inset: 0; }
/* Línea del corte medida sobre el archivo del logo: de 61,29 % (izq.) a 34,63 % (der.) de la altura */
.logo-cut__a { clip-path: polygon(0 0, 100% 0, 100% 34.63%, 0 61.29%); }
.logo-cut__b { clip-path: polygon(0 61.29%, 100% 34.63%, 100% 100%, 0 100%); }

.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
}
.to-top { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-weight: 700; text-decoration: none; }
.to-top:hover { color: var(--lima); }

/* ==========================================================================
   Páginas simples (gracias / 404)
   ========================================================================== */
.simple { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 2rem; padding: 6rem var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.simple .brand { width: 10rem; }
.simple h1 { font-size: clamp(2.4rem, 8vw, 6rem); line-height: 1; letter-spacing: -.025em; }
.simple p { max-width: 36ch; font-size: 1.25rem; }

/* ==========================================================================
   Movimiento
   Solo si hay JS (scripting) y la persona no pidió reducirlo.
   ========================================================================== */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {

  /* Titular: el texto entra por bloques, de abajo hacia arriba */
  .hero__title .w > span {
    transform: translateY(110%) skewY(3.43deg);
    transform-origin: left bottom;
    animation: rise .95s var(--ease) both;
    animation-delay: calc(var(--n, 0) * 90ms + 150ms);
  }
  .hero__title .w:nth-of-type(1) > span { --n: 0; }
  .hero__title .w:nth-of-type(2) > span { --n: 1; }
  .hero__title .w:nth-of-type(3) > span { --n: 2; }
  .hero__title .w:nth-of-type(4) > span { --n: 3; }
  .hero__title .w:nth-of-type(5) > span { --n: 4; }
  @keyframes rise { to { transform: none; } }

  .hero__copy, .hero__tags { animation: fade .9s ease both; animation-delay: .75s; }
  .hero__tags { animation-delay: 1.05s; }
  @keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* Líneas ascendentes: se dibujan una por una */
  .lines line { stroke-dashoffset: 1; animation: draw 1.1s var(--ease) both; }
  .lines line:nth-child(1) { animation-delay: .35s; }
  .lines line:nth-child(2) { animation-delay: .43s; }
  .lines line:nth-child(3) { animation-delay: .51s; }
  .lines line:nth-child(4) { animation-delay: .59s; }
  .lines line:nth-child(5) { animation-delay: .67s; }
  .lines line:nth-child(6) { animation-delay: .75s; }
  .lines line:nth-child(7) { animation-delay: .83s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* Aparición al hacer scroll */
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s ease, transform .9s var(--ease);
  }
  .reveal.is-in { opacity: 1; transform: none; }
  .steps .step:nth-child(2), .svc-list li:nth-child(2), .plates li:nth-child(2), .apps li:nth-child(2), .verbs li:nth-child(2), .traits__list .trait:nth-child(2) { transition-delay: .08s; }
  .steps .step:nth-child(3), .svc-list li:nth-child(3), .plates li:nth-child(3), .apps li:nth-child(3), .verbs li:nth-child(3), .traits__list .trait:nth-child(3) { transition-delay: .16s; }
  .steps .step:nth-child(4), .svc-list li:nth-child(4), .plates li:nth-child(4), .traits__list .trait:nth-child(4) { transition-delay: .24s; }

  /* La firma se revela por el corte: dos mitades que se encuentran sobre la línea */
  .logo-cut__a, .logo-cut__b { opacity: 0; transition: transform 1.2s var(--ease), opacity .6s ease; }
  .logo-cut__a { transform: translate(-14%, 3.7%); }
  .logo-cut__b { transform: translate(14%, -3.7%); }
  .logo-cut.is-in .logo-cut__a, .logo-cut.is-in .logo-cut__b { opacity: 1; transform: none; }
}
