/* ═══════════════════════════════════════════════════════════════
   Home «Ensamblaje»
   Papel, tinta y un naranja sacado de los recortes. Producto y collage
   compuestos en la misma pieza: interfaces reales + recortes propios.
   Las piezas usan el sistema de mockups (styles.css) escalado con cqw.
   ═══════════════════════════════════════════════════════════════ */

body.page-home,
body.theme-paper {
  --paper: #f2eee5;
  --paper-2: #e8e2d4;
  --ink: #141312;
  --muted: #5c574e;
  --accent: #d4470f;
  --accent-bright: #f26a2e;
  --line: rgba(20, 19, 18, 0.14);
  --line-light: rgba(242, 238, 229, 0.16);
  --muted-light: rgba(242, 238, 229, 0.68);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --wrap: 1320px;
  background: var(--paper);
  color: var(--ink);
}

.page-home .site-header,
.theme-paper .site-header {
  background: rgba(242, 238, 229, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.home em,
.hub em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ── Botones ── */
.hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.45rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.hbtn:hover {
  background: var(--ink);
  color: var(--paper);
}

.hbtn--solid {
  background: var(--ink);
  color: var(--paper);
}

.hbtn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hbtn--accent {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--ink);
}

.hbtn--accent:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.hbtn--ghost-light {
  border-color: rgba(242, 238, 229, 0.45);
  color: var(--paper);
}

.hbtn--ghost-light:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.hbtn:focus-visible,
.hlink:focus-visible,
.work__link:focus-visible,
.sideb__list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hlink {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

/* ── Hero: titular centrado dentro de un pasillo de proyectos (Image Stream + Perspective Tunnel) ──
   La sección es más alta que la pantalla: al bajar, la cámara avanza por el pasillo (--fly, 0 → 1). */
.hx {
  --fly: 0;
  position: relative;
  height: 165vh;
  overflow: clip;
}

.hx__sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  padding: 5rem var(--gutter) 2.5rem;
  overflow: hidden;
}

.hx__copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 62rem;
  text-align: center;
  opacity: calc(1 - var(--fly) * 1.7);
  transform: translateY(calc(var(--fly) * -9vh)) scale(calc(1 + var(--fly) * 0.06));
}

/* Halo de papel tras el texto: los proyectos pasan por detrás sin restar lectura */
.hx__copy::before {
  content: "";
  position: absolute;
  inset: -18% -16%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 238, 229, 0.9) 50%, rgba(242, 238, 229, 0));
}

.hx__eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hx__eyebrow span + span {
  color: var(--muted);
}

.hx__eyebrow span {
  white-space: nowrap;
}

.hx__title {
  margin: clamp(1.25rem, 3vh, 2rem) 0 clamp(1.5rem, 4vh, 2.5rem);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hx__title > span {
  display: block;
  white-space: nowrap;
}

/* La segunda voz del titular: serif cursiva, más estrecha, puede ocupar dos líneas */
.hx__title-em {
  margin-top: 0.12em;
  font-size: 0.88em;
  line-height: 1.02;
}

.hx__title em {
  color: var(--accent);
}

.hx__foot {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  max-width: 38rem;
}

.hx__lead {
  margin: 0;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
}

.hx__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Pasillo: cada proyecto nace al fondo y avanza pegado a su pared hasta salir por el lado */
.stream {
  --wall: 46cqw;
  position: absolute;
  inset: 0;
  container-type: size;
  perspective: 90cqw;
  perspective-origin: calc(50% + var(--px, 0) * 5%) calc(50% + var(--py, 0) * 5%);
  transition: perspective-origin 0.8s var(--ease);
  /* Los proyectos se desvanecen al cruzar por detrás del titular; al avanzar, el pasillo ocupa todo */
  -webkit-mask-image: radial-gradient(ellipse 34% 46% at 50% 52%, transparent calc(55% - var(--fly) * 80%), #000 calc(100% - var(--fly) * 80%));
  mask-image: radial-gradient(ellipse 34% 46% at 50% 52%, transparent calc(55% - var(--fly) * 80%), #000 calc(100% - var(--fly) * 80%));
}

.stream__world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--fly) * 150cqw));
}

.stream__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24cqw;
  aspect-ratio: 4 / 3;
  margin: -9cqw 0 0 -12cqw;
  overflow: hidden;
  border-radius: 0.9cqw;
  background: var(--paper-2);
  box-shadow: 0 2.2cqw 4cqw -1.2cqw rgba(20, 19, 18, 0.45);
  backface-visibility: hidden;
  animation: stream 54s linear infinite;
  animation-delay: calc(var(--i) * -3s);
}

.stream__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stream__card figcaption {
  position: absolute;
  left: 0.8cqw;
  bottom: 0.8cqw;
  padding: 0.3cqw 0.75cqw;
  border-radius: 999px;
  background: rgba(20, 19, 18, 0.8);
  color: var(--paper);
  font-size: 1.05cqw;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes stream {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--side) * var(--wall)), calc(var(--y) * 1cqh), -420cqw) rotateY(calc(var(--side) * -24deg));
  }

  14% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(calc(var(--side) * var(--wall)), calc(var(--y) * 1cqh), 80cqw) rotateY(calc(var(--side) * -24deg));
  }
}

@keyframes stream-v {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--y) * 1.6cqw), calc(var(--side) * var(--wall)), -420cqw) rotateX(calc(var(--side) * 24deg));
  }

  14% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(calc(var(--y) * 1.6cqw), calc(var(--side) * var(--wall)), 80cqw) rotateX(calc(var(--side) * 24deg));
  }
}

.hx.is-idle .stream__card {
  animation-play-state: paused;
}

@media (max-width: 767px) {
  .hx {
    height: 150vh;
  }

  /* En vertical el pasillo es techo y suelo: el texto ocupa todo el ancho */
  .stream {
    --wall: 38cqh;
    -webkit-mask-image: radial-gradient(ellipse 90% 44% at 50% 50%, transparent calc(64% - var(--fly) * 80%), #000 calc(100% - var(--fly) * 80%));
    mask-image: radial-gradient(ellipse 90% 44% at 50% 50%, transparent calc(64% - var(--fly) * 80%), #000 calc(100% - var(--fly) * 80%));
  }

  .stream__card {
    width: 46cqw;
    margin: -17.25cqw 0 0 -23cqw;
    border-radius: 1.6cqw;
    animation-name: stream-v;
  }

  .stream__card figcaption {
    font-size: 2.2cqw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx {
    height: auto;
  }

  .stream__card {
    animation-play-state: paused;
  }
}

/* ── Composiciones (producto + collage) ── */
.comp {
  position: relative;
  width: 100%;
  aspect-ratio: var(--comp-ar, 16 / 10);
  container-type: inline-size;
}

.comp--hero {
  --comp-ar: 1 / 0.9;
}

.comp__item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z, 1);
  width: var(--w);
  margin: 0;
  transform: rotate(var(--r, 0deg));
  transition: translate 0.7s var(--ease);
}

.comp .mock {
  gap: 0;
}

.comp .mock__frame {
  box-shadow:
    0 0.2cqw 0.4cqw rgba(0, 0, 0, 0.08),
    0 2.4cqw 5cqw -1.6cqw rgba(0, 0, 0, 0.38);
}

.comp .mock--browser .mock__frame {
  border-radius: 1.1cqw;
}

.comp .mock__bar {
  height: 3.2cqw;
  gap: 1cqw;
  padding: 0 1.3cqw;
}

.comp .mock__dots {
  width: 4cqw;
  height: 1cqw;
  background:
    radial-gradient(circle at 0.5cqw 50%, #cfccd6 0.48cqw, transparent 0.52cqw),
    radial-gradient(circle at 2cqw 50%, #cfccd6 0.48cqw, transparent 0.52cqw),
    radial-gradient(circle at 3.5cqw 50%, #cfccd6 0.48cqw, transparent 0.52cqw);
}

.comp .mock--browser .mock__bar::after {
  width: 4cqw;
}

.comp .mock__url {
  height: 2cqw;
  max-width: 45%;
  padding: 0 1.4cqw;
  font-size: max(0.5rem, 1.15cqw);
}

.comp .mock--phone .mock__frame {
  padding: 0.85cqw;
  border-radius: 3.6cqw;
}

.comp .mock--phone .mock__screen {
  border-radius: 2.8cqw;
}

.comp .mock--phone .mock__frame::before {
  top: 1.7cqw;
  height: 1.3cqw;
}

.comp .mock--feed .mock__frame {
  padding: 0.8cqw 0.8cqw 1.2cqw;
  border-radius: 1.6cqw;
}

.comp .mock--feed .mock__bar {
  height: 3.4cqw;
  gap: 0.9cqw;
  padding: 0 0.3cqw;
}

.comp .mock--feed .mock__bar::before {
  width: 2cqw;
  height: 2cqw;
}

.comp .mock--feed .mock__bar::after {
  height: 0.8cqw;
}

.comp .mock--feed .mock__frame::after {
  height: 0.8cqw;
  margin: 1.1cqw 0.3cqw 0;
}

.comp .mock--print .mock__frame {
  padding: 1cqw;
}

.comp .mock__screen > img {
  height: auto;
}

.comp .mock--phone .mock__screen > img,
.comp .mock--feed .mock__screen > img {
  height: 100%;
}

.comp__cut {
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 1.2cqw 1.4cqw rgba(0, 0, 0, 0.22));
}

/* Hero: capas con profundidad que siguen al puntero (home.js) */
.comp--hero .comp__item {
  translate: calc(var(--px, 0) * var(--z, 1) * 0.55cqw) calc(var(--py, 0) * var(--z, 1) * 0.55cqw);
}

@media (prefers-reduced-motion: no-preference) {
  .comp--hero .comp__cut {
    animation:
      comp-in 1.1s var(--ease) 0.35s both,
      comp-sway 9s ease-in-out 1.5s infinite;
  }

  .comp--hero .comp__cut:nth-of-type(2n) {
    animation:
      comp-in 1.1s var(--ease) 0.5s both,
      comp-sway 11s ease-in-out 1.5s infinite;
  }

  .comp--hero .mock {
    animation: comp-in 1s var(--ease) both;
  }

  .comp--hero .mock:nth-of-type(2) {
    animation-delay: 0.15s;
  }
}

@keyframes comp-sway {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: 3deg;
  }
}

@keyframes comp-in {
  from {
    opacity: 0;
    translate: 0 4cqw;
  }
}

/* ── Banda de logos ── */
.logos {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  background: var(--ink);
  color: var(--paper);
}

.logos__label {
  margin: 0 0 1.5rem;
  padding: 0 var(--gutter);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-align: center;
}

.logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logos__track {
  display: flex;
  width: max-content;
}

.logos__row {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0;
  padding: 0 clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
}

.logos__row img {
  display: block;
  width: auto;
  height: clamp(1.75rem, 2.4vw, 2.25rem);
  max-width: 9rem;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.82;
}

@media (prefers-reduced-motion: no-preference) {
  .logos__track {
    animation: logos-run 46s linear infinite;
  }

  .logos:hover .logos__track {
    animation-play-state: paused;
  }
}

@keyframes logos-run {
  to {
    transform: translateX(-50%);
  }
}

/* ── Cifras ── */
.facts {
  padding: clamp(3rem, 7vw, 5.5rem) max(var(--gutter), calc((100% - var(--wrap)) / 2)) 0;
}

/* Tras las cifras no hace falta el aire completo de sección */
.facts + .works {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.25rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts__list li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.facts__list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.facts__list span {
  display: block;
  max-width: 24ch;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Secciones ── */
.hsec {
  padding: clamp(4.5rem, 10vw, 8.5rem) max(var(--gutter), calc((100% - var(--wrap)) / 2));
}

.hsec--ink {
  background: var(--ink);
  color: var(--paper);
}

.hsec__head {
  max-width: 54rem;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}

.hsec__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
}

.hsec__kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hsec__kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent-bright);
}

.hsec__title {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hsec__lead {
  max-width: 46ch;
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hsec__head--row .hsec__lead {
  margin: 0;
}

.hsec--ink .hsec__lead {
  color: var(--muted-light);
}

/* ── Trabajo ── */
.works__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 2.6vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work--wide {
  grid-column: 1 / -1;
}

.work__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work__stage {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--stage);
}

.work--wide .comp {
  --comp-ar: 21 / 10;
}

.work--half .comp {
  --comp-ar: 1 / 0.8;
}

.work__stage .comp {
  transition: scale 0.8s var(--ease);
}

.work__link:hover .work__stage .comp,
.work__link:focus-visible .work__stage .comp {
  scale: 1.025;
}

.work__info {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: start;
  padding-top: 1.4rem;
}

.work--wide .work__info {
  grid-template-columns: 2.75rem minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
}

.work__num {
  padding-top: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.work__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.work__meta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.work__text {
  grid-column: 2 / 3;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.work--wide .work__text {
  grid-column: 3 / 4;
  grid-row: 1;
  padding-top: 0.35rem;
}

.work__role {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.work__arrow {
  grid-column: -2 / -1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 1.1rem;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    rotate 0.3s var(--ease);
}

.work__link:hover .work__arrow,
.work__link:focus-visible .work__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  rotate: -45deg;
}

.works__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
}

/* ── Cómo trabajo ── */
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.process .hsec__head {
  margin: 0;
}

.process .hsec__title {
  font-size: clamp(2.3rem, 4.4vw, 4rem);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-light);
}

.steps li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line-light);
}

.steps__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-bright);
}

.steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0.4rem 0 0;
  color: var(--muted-light);
}

.products {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.products ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.products li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-light);
}

.products li > a,
.products li > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}

.products strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.products li > a:hover strong {
  color: var(--accent-bright);
}

.products li span span {
  font-size: 0.9375rem;
  color: var(--muted-light);
}

.products em {
  flex: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--muted-light);
}

.products em.is-live {
  color: #6ee7a0;
}

.products em.is-proto {
  color: #fcd34d;
}

.products em.is-dev {
  color: #c4b5fd;
}

/* ── Trayectoria ── */
.career__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.career__list li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 0.5rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.career__date {
  padding-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.career__role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.career__role span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0;
  color: var(--muted);
}

.career__list p {
  margin: 0;
  color: var(--muted);
}

.career__list a {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.career__edu {
  max-width: 80ch;
  margin: 2rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.career__edu strong {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Sobre mí ── */
.about {
  background: var(--paper-2);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.about__portrait {
  position: relative;
  margin: 0;
}

.about__portrait > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(1) contrast(1.05);
}

.about__cut {
  position: absolute;
  right: -12%;
  bottom: -9%;
  width: 46%;
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.22));
}

.about__copy p {
  max-width: 54ch;
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
}

.about__quote {
  max-width: 22ch;
  margin: 2.25rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent-bright);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.2;
}

/* ── Lado B ── */
.sideb__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sideb__list a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.sideb__list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  transition: scale 0.7s var(--ease);
}

.sideb__list a:hover img {
  scale: 1.02;
}

.sideb__title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.sideb__text {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Contacto ── */
.contact__title {
  margin: 1.25rem 0 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 10.5vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.contact__title span {
  color: var(--accent-bright);
}

.contact__lead {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted-light);
}

.home .contact__email {
  justify-content: flex-start;
  margin: 2.25rem 0 0;
}

.home .contact__email a {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--accent-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.home .contact__email .cta-block__copy {
  border-color: rgba(242, 238, 229, 0.4);
  background: transparent;
  color: var(--paper);
}

.home .contact__email .cta-block__copied {
  color: var(--muted-light);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
}

.contact__meta {
  margin: 2rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-light);
}

body.page-home .site-footer,
body.theme-paper .site-footer {
  border-top: 1px solid var(--line-light);
  background: var(--ink);
  color: var(--muted-light);
}

body.page-home .site-footer a,
body.theme-paper .site-footer a {
  color: var(--paper);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hx__title {
    font-size: clamp(2.6rem, 10vw, 5rem);
  }

  .process__grid {
    grid-template-columns: 1fr;
  }

  .career__list li {
    grid-template-columns: 8rem minmax(0, 1fr);
  }

  .career__list p {
    grid-column: 2 / -1;
  }
}

@media (max-width: 767px) {
  .facts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works__list {
    grid-template-columns: 1fr;
  }

  .work--wide .comp {
    --comp-ar: 4 / 3;
  }

  .work--wide .work__info,
  .work__info {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  }

  .work--wide .work__text,
  .work__text {
    grid-column: 2 / -1;
    grid-row: auto;
    padding-top: 0;
  }

  .products ul {
    grid-template-columns: 1fr;
  }

  .career__list li {
    grid-template-columns: 1fr;
  }

  .career__list p {
    grid-column: auto;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__portrait {
    width: min(78%, 20rem);
  }

  .hsec__head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sideb__list {
    grid-template-columns: 1fr;
  }

  .sideb__list a {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 1rem;
    align-content: center;
  }

  .sideb__list img {
    grid-row: span 2;
  }

  .sideb__title {
    margin-top: 0;
  }

  .hx__actions .hbtn {
    flex: 1 1 auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Archivo de proyectos (proyectos.html): misma estética que la home
   ═══════════════════════════════════════════════════════════════ */

.hub {
  padding: clamp(3rem, 7vw, 6rem) max(var(--gutter), calc((100% - var(--wrap)) / 2)) clamp(4.5rem, 9vw, 8rem);
}

.hub__head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hub__title {
  display: flex;
  align-items: flex-start;
  gap: 0.15em;
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hub__title .projects-hub__hero-numeral {
  position: static;
  margin-top: 0.12em;
  font-size: 0.32em;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 1;
}

.hub__lead {
  max-width: 58ch;
  margin: 1.75rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hub__bar {
  position: sticky;
  top: calc(var(--site-header-h, 4.2rem) + 0.5rem);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 229, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hub__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub .projects-hub__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.hub .projects-hub__tag:hover {
  border-color: var(--ink);
}

.hub .projects-hub__tag.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.hub .projects-hub__tag:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hub .projects-hub__tag-count {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

.hub__count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 4.5vw, 4rem) clamp(1.25rem, 2.4vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub__grid > li[hidden] {
  display: none;
}

.hcard {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hcard__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--paper-2);
}

.hcard__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.8s var(--ease);
}

.hcard__media--stage {
  background: var(--stage);
}

.comp--card {
  --comp-ar: 4 / 3;
  display: block;
  transition: scale 0.8s var(--ease);
}

.hcard:hover .hcard__media > img,
.hcard:hover .comp--card,
.hcard:focus-visible .hcard__media > img,
.hcard:focus-visible .comp--card {
  scale: 1.035;
}

.hcard:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 6px;
}

.hcard__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.hcard__num {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.hcard__title {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hcard__status {
  flex: none;
  align-self: center;
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--muted);
}

.hcard__status.is-live {
  color: #17803d;
}

.hcard__status.is-proto {
  color: #a35a00;
}

.hcard__status.is-dev,
.hcard__status.is-demo {
  color: #6531c9;
}

.hcard__meta {
  display: block;
  margin: 0.45rem 0 0 2.05rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub__empty {
  margin: 2rem 0 0;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hub__grid {
    grid-template-columns: 1fr;
  }

  .hub__bar {
    position: static;
  }

  .hub__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }

  .hub .projects-hub__tag {
    white-space: nowrap;
  }
}

/* ── Ajustes de la revisión final de diseño ── */
.page-home .scroll-progress__bar,
.theme-paper .scroll-progress__bar {
  height: 3px;
  background: var(--accent);
}

/* Cabecera opaca: sobre secciones en tinta no se ensucia */
.page-home .site-header,
.theme-paper .site-header {
  background: var(--paper);
}

.work__meta {
  text-wrap: balance;
}

@media (max-width: 767px) {
  .work__arrow {
    display: none;
  }

  .work__title {
    font-size: clamp(1.5rem, 7.2vw, 2rem);
  }

  .work--half .comp {
    --comp-ar: 1 / 1;
  }

  .hx__lead {
    font-size: 1rem;
  }

  .hx__eyebrow span + span {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hub__title {
    font-size: 10.5vw;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Fichas de proyecto con la estética de la home (body.theme-paper)
   ═══════════════════════════════════════════════════════════════ */

.theme-paper .liquid-bg,
.theme-paper .ambient-grain {
  display: none;
}

.theme-paper .case-page {
  color: var(--ink);
}

/* Primero quién y qué (título, entradilla, datos); después la imagen */
.theme-paper .case-page > .section__inner {
  display: flex;
  flex-direction: column;
}

.theme-paper .case-page > .section__inner > .case-back {
  order: -3;
}

.theme-paper .case-page > .section__inner > header {
  order: -2;
}

.theme-paper .case-page > .section__inner > .case-meta {
  order: -1;
}

.theme-paper .case-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.theme-paper .case-eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  background: var(--accent-bright);
}

.theme-paper .case-title {
  font-size: clamp(2.6rem, 7vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.theme-paper .case-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  color: var(--muted);
}

.theme-paper .case-meta {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--ink);
  border-bottom-color: var(--line);
}

.theme-paper .case-meta dt {
  color: var(--muted);
}

.theme-paper .case-section-title {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.theme-paper .case-text-full {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.theme-paper .case-text-full p,
.theme-paper .case-prose {
  max-width: 62ch;
  color: var(--muted);
}

.theme-paper .case-text-full strong {
  color: var(--ink);
}

.theme-paper .case-list li::marker {
  color: var(--accent-bright);
}

.theme-paper .mock-grid {
  --mock-stage: var(--paper-2);
}

.theme-paper .case-back,
.theme-paper .case-next a {
  color: var(--ink);
}

.theme-paper .case-next a:hover,
.theme-paper .case-back:hover {
  color: var(--accent);
}

.theme-paper .btn--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.theme-paper .btn--primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.theme-paper .btn--ghost {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.theme-paper .case-hero-media,
.theme-paper .case-hero-media__mask {
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   Módulos interactivos (adaptados de 21st.dev a JS sin framework)
   ═══════════════════════════════════════════════════════════════ */

/* Text Rotate: la última palabra del titular cambia */
.rotator {
  position: relative;
  display: inline-block;
  height: 1.12em;
  overflow: hidden;
  vertical-align: bottom;
  transition: width 0.55s var(--ease);
}

.rotator__word {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
}

.rotator__word.is-in {
  animation: rot-in 0.6s var(--ease) both;
}

.rotator__word.is-out {
  animation: rot-out 0.6s var(--ease) both;
}

@keyframes rot-in {
  from {
    transform: translateY(105%);
  }
}

@keyframes rot-out {
  to {
    transform: translateY(-105%);
  }
}

/* Container Scroll: el estudio llega tumbado y se abre al bajar (--open, 0 → 1).
   Ya abierto, la pantalla recorre sus vistas y al final entra el apuntador en el móvil (--phone). */
.cscroll {
  --open: 0;
  --phone: 0;
  position: relative;
  height: 260vh;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
}

.cscroll__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.6vh, 1.75rem);
  height: 100vh;
  height: 100svh;
  padding: 4.75rem 0 1.25rem;
}

.cscroll__head {
  text-align: center;
  transform: translateY(calc((1 - var(--open)) * 2.5rem));
}

.cscroll__title {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.cscroll__title em {
  color: var(--accent-bright);
}

/* La perspectiva va en el padre directo del dispositivo: si no, el giro se aplana */
.cscroll__stage {
  position: relative;
  width: min(100%, 62rem, (100svh - 22rem) * 1.5);
  perspective: 1000px;
  perspective-origin: 50% 0;
}

.cscroll__device {
  padding: 0 clamp(0.35rem, 0.8vw, 0.65rem) clamp(0.35rem, 0.8vw, 0.65rem);
  border: 1px solid #45423d;
  border-radius: clamp(14px, 1.8vw, 26px);
  background: #24221f;
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.29),
    0 37px 37px rgba(0, 0, 0, 0.26),
    0 84px 50px rgba(0, 0, 0, 0.15),
    0 149px 60px rgba(0, 0, 0, 0.04);
  transform-origin: 50% 100%;
  transform: translateY(calc((1 - var(--open)) * 2rem)) rotateX(calc((1 - var(--open)) * 52deg)) scale(calc(0.8 + var(--open) * 0.2));
  will-change: transform;
}

.cscroll__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: clamp(1.6rem, 2.4vw, 2.1rem);
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-light);
}

.cscroll__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: clamp(6px, 1vw, 14px);
  background: #f4efe4;
  /* La pantalla se «enciende» mientras se abre */
  filter: brightness(calc(0.45 + var(--open) * 0.55)) saturate(calc(0.6 + var(--open) * 0.4));
}

/* Brillo de cristal que se va mientras la pantalla se endereza */
.cscroll__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%);
  opacity: calc(1 - var(--open));
  pointer-events: none;
}

/* Doble clase: styles.css fuerza opacity:1 en img[loading="lazy"].
   Dentro de cada tramo la pantalla se acerca a su detalle (--zoom, 0 → 1) */
.cscroll__screen .cscroll__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: opacity 0.6s var(--ease);
}

.cscroll__screen .cscroll__shot.is-on {
  opacity: 1;
  transform: scale(calc(1 + var(--zoom, 0) * 0.55));
}

.cscroll__phone {
  position: absolute;
  right: -2%;
  bottom: -3%;
  width: 18%;
  padding: 0.3rem;
  border-radius: clamp(10px, 1.25vw, 17px);
  background: #141312;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  opacity: var(--phone);
  transform: translate(calc((1 - var(--phone)) * 35%), calc((1 - var(--phone)) * 12%)) rotate(calc(4deg + (1 - var(--phone)) * 8deg));
}

.cscroll__phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(7px, 0.9vw, 12px);
}

.cscroll__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  margin-top: 0.75rem;
  list-style: none;
  counter-reset: step;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-light);
  opacity: var(--open);
}

.cscroll__steps li {
  counter-increment: step;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.cscroll__steps li::before {
  content: "0" counter(step) " ";
  color: var(--accent-bright);
}

.cscroll__steps li.is-on {
  border-color: var(--accent-bright);
  color: var(--paper);
}

.cscroll__caption {
  max-width: 60ch;
  margin: 0;
  font-size: 0.875rem;
  text-align: center;
  color: var(--muted-light);
}

.cscroll__caption a {
  color: var(--paper);
  text-decoration-color: var(--accent-bright);
  text-underline-offset: 0.2em;
}

@media (max-width: 767px) {
  .cscroll {
    height: 230vh;
  }

  .cscroll__phone {
    width: 24%;
    bottom: -4%;
  }

  .cscroll__steps {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    gap: 0.3rem 1rem;
  }

  .cscroll__caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cscroll {
    --open: 1;
    --phone: 1;
    height: auto;
  }

  .cscroll__sticky {
    position: static;
    height: auto;
    padding-bottom: 3rem;
  }
}


/* Halftone wordmark: VYPUNTO en puntos al cierre */
.contact {
  padding-bottom: 0;
}

.wordmark {
  display: block;
  width: 100vw;
  height: clamp(3.5rem, 11vw, 10.5rem);
  margin: clamp(3rem, 6vw, 5rem) 0 0 calc(50% - 50vw);
}

/* ── Formulario de contacto ── */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact__grid .contact__email {
  margin-top: 2rem;
}

.cform {
  display: grid;
  gap: 1.35rem;
}

.cform__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.cform__field {
  display: grid;
  gap: 0.45rem;
}

.cform__field > span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.cform__field em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

.cform input:not([type="checkbox"]),
.cform select,
.cform textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(242, 238, 229, 0.22);
  border-radius: 10px;
  background: rgba(242, 238, 229, 0.05);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.cform textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}

.cform select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.cform select option {
  color: var(--ink);
}

.cform ::placeholder {
  color: rgba(242, 238, 229, 0.38);
}

.cform input:not([type="checkbox"]):focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: rgba(242, 238, 229, 0.09);
}

.cform [aria-invalid="true"] {
  border-color: #ff8a6a !important;
}

.cform__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-light);
  cursor: pointer;
}

.cform__check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--accent-bright);
}

.cform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cform__foot .hbtn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.cform__status {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted-light);
}

.cform__status.is-ok {
  color: #9be7b4;
}

.cform__status.is-error {
  color: #ffb39e;
}

.cform__status a {
  color: var(--paper);
}

@media (max-width: 1023px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cform__row {
    grid-template-columns: 1fr;
  }
}

/* ── Aviso legal y privacidad ── */
.cform__check a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent-bright);
  text-underline-offset: 0.2em;
}

.legal .case-prose {
  max-width: 68ch;
}

.legal .case-prose h3 {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal .case-prose a {
  color: var(--ink);
  text-decoration-color: var(--accent-bright);
  text-underline-offset: 0.2em;
}

.legal .case-next {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
