/* ==========================================================================
   Namaste por el Mundo — hoja de estilo única
   Sin framework. Sin build. Sin dependencias.
   ========================================================================== */

:root {
  --bone: #f2eee7;
  --carbon: #1a1917;
  --wood: #b08155;
  --sage: #8c9b8a;
  --copper: #a5643f;

  --bone-2: #e8e2d7;
  --line: rgba(26, 25, 23, 0.16);
  --line-strong: rgba(26, 25, 23, 0.32);
  --line-light: rgba(242, 238, 231, 0.18);
  --ink-soft: rgba(26, 25, 23, 0.68);
  --bone-soft: rgba(242, 238, 231, 0.66);
  --error: #8e3b25;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --navh: 4.75rem;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --gap: clamp(1.25rem, 2.6vw, 3rem);
  --section: clamp(5rem, 11vw, 10rem);
  --max: 1600px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-door: cubic-bezier(0.77, 0, 0.18, 1);
}

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

::selection {
  background: var(--copper);
  color: var(--bone);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

.section--dark :focus-visible,
.footer :focus-visible,
.build :focus-visible,
.quote :focus-visible,
.directions :focus-visible,
.gallery__note :focus-visible,
.lightbox :focus-visible,
.project-hero :focus-visible,
.page-head :focus-visible,
.notfound :focus-visible {
  outline-color: var(--bone);
}

body.menu-open .nav :focus-visible {
  outline-color: var(--copper);
}

#main:focus {
  outline: none;
}

.nav:not(.is-scrolled) :focus-visible {
  outline-color: var(--bone);
}

[id] {
  scroll-margin-top: calc(var(--navh) + 1.5rem);
}

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  transform: translateY(-180%);
  background: var(--bone);
  color: var(--carbon);
  border: 1px solid var(--carbon);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.label::before {
  content: "";
  display: block;
  width: 1.9rem;
  height: 1px;
  background: var(--copper);
  flex: 0 0 auto;
}

.section--dark .label,
.page-head .label,
.quote .label,
.build .label {
  color: var(--bone-soft);
}

.section--dark .label::before,
.page-head .label::before,
.quote .label::before,
.build .label::before {
  background: var(--wood);
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.title em {
  font-style: italic;
  font-weight: 300;
}

.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.24;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  line-height: 1.2;
  transition: gap 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cta-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}

.cta-link:hover {
  gap: 1.3rem;
  border-color: var(--copper);
}

.cta-link--light:hover {
  border-color: var(--wood);
}

.cta-link--big {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  padding-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.5rem;
  background: var(--carbon);
  color: var(--bone);
  border: 1px solid var(--carbon);
  font-size: 0.9rem;
  line-height: 1.2;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--carbon);
}

.btn--light {
  background: var(--bone);
  color: var(--carbon);
  border-color: var(--bone);
}

.btn--light:hover {
  background: transparent;
  color: var(--bone);
}

.btn--ghost {
  background: transparent;
  color: var(--carbon);
}

.btn--ghost:hover {
  background: var(--carbon);
  color: var(--bone);
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem var(--gutter);
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), padding 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.nav.is-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: var(--bone);
  color: var(--carbon);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1;
  flex: 0 0 auto;
}

.brand__name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.8rem);
  margin-left: auto;
}

.nav__links a {
  position: relative;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.3rem 0;
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.2rem 0;
  font-size: 0.82rem;
  line-height: 1;
}

.nav__toggle-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.4rem;
  height: 0.72rem;
}

.nav__toggle-lines span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

body.menu-open .nav {
  background: var(--bone);
  color: var(--carbon);
  border-bottom-color: transparent;
}

body.menu-open .nav__toggle-lines span:first-child {
  transform: translateY(0.36rem) rotate(45deg);
}

body.menu-open .nav__toggle-lines span:last-child {
  transform: translateY(-0.36rem) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--navh) + 2.2rem) var(--gutter) 2rem;
  background: var(--bone);
  color: var(--carbon);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__list li {
  border-bottom: 1px solid var(--line);
}

.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(0.8rem, 2vw, 1.2rem) 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 11vw, 4.8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.25s var(--ease), padding-left 0.35s var(--ease);
}

.menu__list a:hover,
.menu__list a:focus-visible {
  color: var(--copper);
  padding-left: 0.4rem;
}

.menu__list .n {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.menu__social {
  display: flex;
  gap: 1.4rem;
}

.menu__social a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem;
}

/* --------------------------------------------------------------------------
   Héroe
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: clip;
  background: var(--carbon);
  color: var(--bone);
}

.hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--carbon);
  clip-path: inset(0 0 0 0);
  animation: door-open 1.2s 0.12s var(--ease-door) both;
}

.hero__img {
  position: absolute;
  inset: -5% 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: 48% 50%;
  transform: scale(1.03);
  transform-origin: 50% 60%;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0.28);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--navh) + 2.2rem);
  padding-bottom: clamp(2rem, 5.5vh, 4.2rem);
}

.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(242, 238, 231, 0.78);
}

.hero__top p {
  margin: 0;
}

.hero__place {
  text-align: right;
}

.hero__bottom {
  width: 100%;
}

.hero__title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 8.6vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.038em;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(2rem, 4vh, 3.2rem);
  max-width: none;
  width: min(100%, 74rem);
}

.hero__note {
  margin: 0;
  max-width: 26ch;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(242, 238, 231, 0.72);
}

.hero__side {
  position: absolute;
  right: 1.3rem;
  bottom: 30%;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(242, 238, 231, 0.6);
}

@keyframes door-open {
  from {
    clip-path: inset(0 50% 0 50%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* --------------------------------------------------------------------------
   Prueba
   -------------------------------------------------------------------------- */

.proof {
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--bone);
}

.proof__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.85vw, 1.7rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.proof__line span {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  white-space: nowrap;
}

.proof__line span:not(:last-child)::after {
  content: "·";
  color: var(--copper);
  font-size: 1.35em;
  line-height: 0;
}

/* --------------------------------------------------------------------------
   Sección de proyectos
   -------------------------------------------------------------------------- */

.projects {
  padding: var(--section) 0;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(2.8rem, 6vw, 5.5rem);
}

.section-head__title {
  grid-column: 1 / 9;
}

.section-head__title .title {
  margin-top: 1.6rem;
}

.section-head__aside {
  grid-column: 9 / 13;
  justify-self: end;
  text-align: right;
  padding-bottom: 0.4rem;
}

.section-head__aside p {
  margin: 0 0 1.2rem;
  max-width: 26ch;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.projects__grid > *,
.detail-grid > *,
.build__grid > *,
.feature > *,
.project-intro__grid > *,
.page-head__grid > *,
.contact__grid > *,
.legal__grid > *,
.footer__top > * {
  min-width: 0;
}

.project-card--a {
  grid-column: 1 / 8;
}

.project-card--b {
  grid-column: 9 / 13;
  padding-top: 16vh;
}

.project-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bone-2);
}

.project-card--a .project-card__media {
  aspect-ratio: 4 / 5;
}

.project-card--b .project-card__media {
  aspect-ratio: 3 / 4;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transition: transform 1.1s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.035);
}

.project-card__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.55rem;
  background: rgba(242, 238, 231, 0.94);
  color: var(--carbon);
  font-size: 0.68rem;
  line-height: 1.2;
}

.project-card__stamp {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.35rem 0.6rem;
  background: rgba(26, 25, 23, 0.74);
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
}

.project-card__stamp span {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--wood);
}

.project-card__body {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.project-card--b .project-card__body {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.project-card--b .project-card__meta {
  text-align: left;
}

.project-card__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.3vw, 3.3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.project-card__meta {
  margin: 0;
  text-align: right;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.project-card__meta span {
  display: block;
}

.project-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}

.project-card:hover .project-card__arrow {
  border-color: var(--copper);
  gap: 0.8rem;
}

/* --------------------------------------------------------------------------
   Cómo se construye
   -------------------------------------------------------------------------- */

.build {
  padding: var(--section) 0;
  background: var(--carbon);
  color: var(--bone);
}

.build__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.build__aside {
  grid-column: 1 / 5;
  position: sticky;
  top: calc(var(--navh) + 2.5rem);
  align-self: start;
}

.build__aside .title {
  margin-top: 1.7rem;
}

.build__intro {
  max-width: 34ch;
  margin: 2rem 0 0;
  color: var(--bone-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.build__index {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
}

.build__index li {
  border-bottom: 1px solid var(--line-light);
}

.build__index a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 0.7rem 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgba(242, 238, 231, 0.58);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.build__index a .n {
  font-variant-numeric: tabular-nums;
  color: var(--wood);
}

.build__index a:hover,
.build__index a.is-active {
  color: var(--bone);
  padding-left: 0.2rem;
}

.build__list {
  grid-column: 6 / 13;
  list-style: none;
  margin: 0;
  padding: 0;
}

.layer {
  position: relative;
  padding: clamp(2.4rem, 4.6vw, 3.8rem) 0;
  border-top: 1px solid var(--line-light);
}

.layer:last-child {
  border-bottom: 1px solid var(--line-light);
}

.layer::after {
  content: attr(data-num);
  position: absolute;
  top: 1.2rem;
  right: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 231, 0.11);
  pointer-events: none;
}

.layer__head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.layer__num {
  flex: 0 0 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--wood);
  font-variant-numeric: tabular-nums;
}

.layer__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.layer__phrase {
  position: relative;
  z-index: 1;
  max-width: 28ch;
  margin: 1.35rem 0 0 3.2rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.layer__decision {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  max-width: 46rem;
  margin: 2rem 0 0 3.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-light);
}

.layer__decision dt {
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(242, 238, 231, 0.62);
}

.layer__decision dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--bone-soft);
}

.layer__figure {
  position: relative;
  z-index: 1;
  margin: 1.8rem 0 0 3.2rem;
  max-width: 32rem;
}

.layer__figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.layer__figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: rgba(242, 238, 231, 0.62);
}

/* --------------------------------------------------------------------------
   El detalle
   -------------------------------------------------------------------------- */

.detail {
  padding: var(--section) 0;
}

.detail .section-head__aside {
  text-align: left;
  justify-self: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.detail-card {
  grid-column: span 6;
}

.detail-card--1 {
  grid-column: 1 / 7;
}

.detail-card--2 {
  grid-column: 9 / 13;
  margin-top: 12vh;
}

.detail-card--3 {
  grid-column: 1 / 5;
  margin-top: 7vh;
}

.detail-card--4 {
  grid-column: 6 / 13;
  margin-top: 2vh;
}

.detail-card--5 {
  grid-column: 2 / 6;
  margin-top: 9vh;
}

.detail-card--6 {
  grid-column: 8 / 13;
  margin-top: 15vh;
}

.detail-card--photo figure {
  margin: 0;
}

.detail-card--photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-card--photo .detail-card__label {
  margin-top: 0.85rem;
  color: var(--ink-soft);
}

.detail-card--photo .detail-card__text {
  margin: 0.5rem 0 0;
  max-width: 28ch;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--carbon);
}

.detail-card--type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(270px, 32vw, 410px);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  background: var(--carbon);
  color: var(--bone);
}

.detail-card--type .detail-card__label {
  color: var(--wood);
}

.detail-card--type .detail-card__title {
  margin: 1.6rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.detail-card--type .detail-card__text {
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.32;
  color: var(--bone);
}

.detail-card__label {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Diego
   -------------------------------------------------------------------------- */

.quote {
  padding: var(--section) 0;
  background: var(--carbon);
  color: var(--bone);
  border-top: 1px solid var(--line-light);
}

.quote__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.quote__label {
  grid-column: 1 / 4;
  padding-top: 0.5rem;
}

.quote__body {
  grid-column: 4 / 12;
}

.quote blockquote {
  margin: 0;
  padding-left: clamp(1rem, 3vw, 2.6rem);
  border-left: 1px solid var(--copper);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.7vw, 4.8rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.quote__bio {
  grid-column: 4 / 9;
  margin: 2.5rem 0 0;
  max-width: 54ch;
  color: var(--bone-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.quote__link {
  grid-column: 4 / 9;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Taller (home)
   -------------------------------------------------------------------------- */

.workshop {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--line);
}

.workshop__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.workshop__label {
  grid-column: 1 / 3;
}

.workshop__title {
  grid-column: 3 / 9;
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.5vw, 5.6rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.workshop__aside {
  grid-column: 9 / 13;
  padding-top: 1.7rem;
}

.workshop__aside p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 28ch;
}

.workshop__aside .cta-link {
  margin-top: 1.2rem;
}

.workshop__drawing {
  grid-column: 9 / 13;
  margin-top: 3rem;
  color: var(--wood);
}

.workshop__drawing svg {
  width: min(100%, 19rem);
  height: auto;
}

.workshop__drawing figcaption {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.final {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-bottom: 1px solid var(--line);
}

.final__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}

.final__title {
  grid-column: 1 / 9;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7.6rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.final__title em {
  font-style: italic;
}

.final__aside {
  grid-column: 10 / 13;
  padding-bottom: 0.5rem;
}

.final__aside p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.footer {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 1.5rem;
  background: var(--carbon);
  color: var(--bone);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.footer__big {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.footer__tag {
  margin: 1.2rem 0 0;
  max-width: 28ch;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--bone-soft);
}

.footer__col h2 {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(242, 238, 231, 0.62);
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__col li + li {
  margin-top: 0.55rem;
}

.footer__col a {
  font-size: 0.82rem;
  color: rgba(242, 238, 231, 0.78);
  transition: color 0.25s var(--ease);
}

.footer__col a:hover {
  color: var(--bone);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.7rem;
  color: rgba(242, 238, 231, 0.62);
}

.footer__bottom p {
  margin: 0;
}

.footer__top-link {
  border-bottom: 1px solid rgba(242, 238, 231, 0.3);
  padding-bottom: 0.1rem;
  color: rgba(242, 238, 231, 0.7);
}

/* --------------------------------------------------------------------------
   Cabeceras de página interior
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  padding: calc(var(--navh) + clamp(3rem, 7vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--carbon);
  color: var(--bone);
  overflow: clip;
}

.page-head__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}

.page-head__main {
  grid-column: 1 / 9;
}

.page-head__title {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 8.4rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.page-head__title em {
  font-style: italic;
}

.page-head__intro {
  max-width: 54ch;
  margin: 1.6rem 0 0;
  color: var(--bone-soft);
  font-size: 0.94rem;
  line-height: 1.62;
}

.page-head__media {
  grid-column: 9 / 13;
  margin: 0;
}

.page-head__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-head__media figcaption {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  color: rgba(242, 238, 231, 0.62);
}

.page-head__index {
  position: absolute;
  right: var(--gutter);
  bottom: -0.16em;
  font-family: var(--serif);
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 300;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 231, 0.07);
  pointer-events: none;
}

.page-head--compact {
  padding-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.page-head--compact .page-head__title {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

/* --------------------------------------------------------------------------
   Ficha de proyecto
   -------------------------------------------------------------------------- */

.project-hero {
  position: relative;
  height: min(90svh, 940px);
  min-height: 600px;
  overflow: clip;
  background: var(--carbon);
  color: var(--bone);
}

.project-hero__media {
  position: absolute;
  inset: 0;
}

.project-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 25, 23, 0.55) 0%, rgba(26, 25, 23, 0.12) 24%, transparent 46%);
  pointer-events: none;
}

.project-hero__veil {
  position: absolute;
  inset: 0;
  background: rgba(26, 25, 23, 0.3);
}

.project-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--navh) + 2rem);
  padding-bottom: clamp(2rem, 5vh, 3.4rem);
}

.project-hero__crumb {
  font-size: 0.75rem;
  color: rgba(242, 238, 231, 0.66);
}

.project-hero__crumb a {
  border-bottom: 1px solid rgba(242, 238, 231, 0.34);
  padding-bottom: 0.1rem;
}

.project-hero__crumb a:hover {
  color: var(--bone);
}

.project-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 11.5vw, 10rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.4rem;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 238, 231, 0.28);
  font-size: 0.75rem;
  color: rgba(242, 238, 231, 0.72);
}

.project-hero__meta span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.project-hero__meta span:not(:last-child)::after {
  content: "·";
  color: var(--wood);
}

.project-intro {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--line);
}

.project-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.project-intro__label {
  grid-column: 1 / 3;
  padding-top: 0.55rem;
}

.project-intro__lead {
  grid-column: 3 / 10;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

.project-intro__lead em {
  font-style: italic;
}

.project-intro__text {
  grid-column: 3 / 8;
  margin: 2.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.66;
}

.project-facts {
  grid-column: 9 / 13;
  margin: 0;
  border-top: 1px solid var(--line);
}

.project-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.project-facts dd {
  margin: 0;
  font-size: 0.78rem;
  text-align: right;
}

.features {
  padding: var(--section) 0;
}

.features__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}

.features__head .label {
  grid-column: 1 / 4;
}

.features__head .title {
  grid-column: 4 / 10;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
}

.feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  padding: clamp(2.4rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature__text {
  grid-column: 1 / 6;
}

.feature__media {
  grid-column: 7 / 13;
  margin: 0;
}

.feature--flip .feature__text {
  grid-column: 8 / 13;
}

.feature--flip .feature__media {
  grid-column: 1 / 7;
}

.feature--panel .feature__text {
  grid-column: 1 / 7;
}

.feature__num {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.feature__title {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.feature__text p {
  max-width: 44ch;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feature__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.feature__panel {
  grid-column: 8 / 13;
  display: flex;
  align-items: flex-end;
  min-height: clamp(260px, 30vw, 420px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--carbon);
  color: var(--bone);
}

.feature__panel p {
  margin: 0;
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 300;
  line-height: 1.16;
}

.project-gallery {
  padding: 0 0 var(--section);
}

.project-gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.project-gallery__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.project-gallery__head p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1.1rem);
}

.gallery a {
  position: relative;
  display: block;
  grid-column: span 6;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone-2);
}

.gallery a.is-wide {
  grid-column: span 12;
  aspect-ratio: 16 / 9;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity 0.4s var(--ease);
}

.gallery a:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.gallery__note {
  grid-column: span 6;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.3rem, 2.6vw, 2.2rem);
  background: var(--carbon);
  color: var(--bone);
}

.gallery__note .label {
  color: var(--bone-soft);
}

.gallery__note .label::before {
  background: var(--wood);
}

.gallery__note p:nth-of-type(2) {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.gallery__note .cta-link {
  align-self: flex-start;
}

.gallery a::after {
  content: "+";
  position: absolute;
  right: 0.8rem;
  bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  background: rgba(242, 238, 231, 0.92);
  color: var(--carbon);
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.gallery a:hover::after,
.gallery a:focus-visible::after {
  opacity: 1;
}

.next-project {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}

.next-project__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.next-project__label {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.next-project__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.next-project__name a {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.next-project__name svg {
  width: 0.7em;
  height: 0.7em;
  transition: transform 0.35s var(--ease);
}

.next-project__name a:hover svg {
  transform: translateX(0.3em);
}

/* --------------------------------------------------------------------------
   Proceso
   -------------------------------------------------------------------------- */

.process {
  padding: var(--section) 0;
}

.process__intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.process__intro .label {
  grid-column: 1 / 3;
  padding-top: 0.5rem;
}

.process__intro .lead {
  grid-column: 3 / 10;
  margin: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: clamp(2.4rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step__num {
  grid-column: 1 / 2;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.step__head {
  grid-column: 2 / 7;
}

.step__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.028em;
}

.step__time {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.step__body {
  grid-column: 8 / 13;
  padding-top: 0.2rem;
}

.step__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.68;
}

.step__body p + p {
  margin-top: 1rem;
}

.duration {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  margin: clamp(3rem, 7vw, 6rem) 0;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--carbon);
  color: var(--bone);
}

.duration__num {
  grid-column: 1 / 7;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.duration__text {
  grid-column: 8 / 13;
  margin: 0;
  color: var(--bone-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.brief {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.brief > h2 {
  grid-column: 1 / 4;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brief__list {
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.brief__list li {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.brief__list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--carbon);
  font-weight: 500;
}

.honesty {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line-strong);
}

.honesty h2 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.honesty ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.honesty li {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Taller (página)
   -------------------------------------------------------------------------- */

.workshop-page {
  padding: var(--section) 0;
}

.workshop-page__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.workshop-page__label {
  grid-column: 1 / 3;
  padding-top: 0.5rem;
}

.workshop-page__statement {
  grid-column: 3 / 9;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.workshop-page__statement em {
  font-style: italic;
}

.workshop-page__aside {
  grid-column: 10 / 13;
  padding-top: 0.5rem;
}

.workshop-page__aside p {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

.workshop-page__drawing {
  grid-column: 10 / 13;
  margin: 2.5rem 0 0;
  color: var(--wood);
}

.workshop-page__drawing svg {
  width: min(100%, 18rem);
  height: auto;
}

.workshop-page__drawing figcaption {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  color: var(--ink-soft);
}

.workshop-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.workshop-facts div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.workshop-facts dt {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.workshop-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 300;
  line-height: 1.1;
}

.directions {
  background: var(--carbon);
  color: var(--bone);
  padding: var(--section) 0;
}

.directions__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.directions__title {
  grid-column: 1 / 7;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.directions__list {
  grid-column: 8 / 13;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.directions__list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.9rem;
  color: var(--bone-soft);
}

.directions__list .n {
  color: var(--wood);
  font-variant-numeric: tabular-nums;
}

.directions__note {
  grid-column: 1 / 7;
  margin: 2rem 0 0;
  max-width: 42ch;
  color: var(--bone-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.contact {
  padding: var(--section) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.contact__aside {
  grid-column: 1 / 5;
  position: sticky;
  top: calc(var(--navh) + 2rem);
}

.contact__aside .lead {
  margin: 1.8rem 0 0;
}

.contact__aside > p {
  margin: 1.4rem 0 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.contact__channels {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.9rem;
}

.contact__channels a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  transition: color 0.25s var(--ease);
}

.contact__channels a:hover {
  color: var(--carbon);
  border-bottom-color: var(--copper);
}

.contact__channels span {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.contact__form-wrap {
  grid-column: 6 / 13;
}

.contact__form-head {
  margin-bottom: 2rem;
}

.contact__form-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.contact__form-head p {
  margin: 0.7rem 0 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.notice {
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--copper);
  background: var(--carbon);
  color: var(--bone);
  font-size: 0.86rem;
  line-height: 1.6;
}

.notice a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.notice strong {
  font-weight: 500;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.6rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.field .req {
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.7rem 0;
  background: transparent;
  color: var(--carbon);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
}

.field select {
  cursor: pointer;
}

.field textarea {
  min-height: 8rem;
  padding: 0.8rem;
  border: 1px solid var(--line-strong);
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--carbon);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--error);
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 0.2rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--carbon);
}

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.form__submit p {
  margin: 0;
  max-width: 30ch;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.form-status {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-status--error {
  border-color: var(--error);
  color: var(--error);
}

.form-status ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.form-result {
  margin-bottom: 2rem;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  background: var(--bone-2);
  border: 1px solid var(--line-strong);
}

.form-result h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.form-result p {
  margin: 0.7rem 0 1.2rem;
  max-width: 52ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.form-result textarea {
  width: 100%;
  min-height: 19rem;
  padding: 0.9rem;
  border: 1px solid var(--line-strong);
  background: var(--bone);
  color: var(--carbon);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  resize: vertical;
}

.form-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.form-result__actions .btn {
  min-height: 2.8rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.82rem;
}

.form-result__actions .btn[hidden] {
  display: none;
}

.form-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.after {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
}

.after__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.after__title {
  grid-column: 1 / 5;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
}

.after__list {
  grid-column: 6 / 13;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.after__list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.after__list .n {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */

.legal {
  padding: var(--section) 0;
}

.legal__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: start;
}

.legal__toc {
  grid-column: 1 / 3;
  position: sticky;
  top: calc(var(--navh) + 2rem);
  font-size: 0.76rem;
}

.legal__toc p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}

.legal__toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.legal__toc a {
  color: var(--ink-soft);
}

.legal__toc a:hover {
  color: var(--carbon);
}

.prose {
  grid-column: 4 / 11;
  max-width: 68ch;
}

.prose h2 {
  margin: 3rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: rgba(26, 25, 23, 0.78);
  font-size: 0.92rem;
  line-height: 1.7;
}

.prose ul {
  padding-left: 1.1rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  border-bottom: 1px solid var(--line-strong);
}

.prose a:hover {
  border-color: var(--copper);
}

.pending {
  padding: 0 0.2rem;
  border-bottom: 1px dashed var(--copper);
  background: rgba(165, 100, 63, 0.1);
}

.legal__updated {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: calc(var(--navh) + 5rem) 0 5rem;
  background: var(--carbon);
  color: var(--bone);
  overflow: clip;
}

.notfound__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}

.notfound__num {
  grid-column: 1 / 8;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(8rem, 26vw, 24rem);
  font-weight: 300;
  line-height: 0.72;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 231, 0.34);
}

.notfound__body {
  grid-column: 8 / 13;
  padding-bottom: 0.5rem;
}

.notfound__body h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.notfound__body p {
  margin: 1.2rem 0 0;
  max-width: 32ch;
  color: var(--bone-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Visor de imágenes
   -------------------------------------------------------------------------- */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(26, 25, 23, 0.98);
  color: var(--bone);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: rgba(26, 25, 23, 0.98);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  font-size: 0.75rem;
  color: var(--bone-soft);
}

.lightbox__close {
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(242, 238, 231, 0.5);
  color: var(--bone);
  font-size: 0.8rem;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 clamp(3rem, 8vw, 7rem) 1rem;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  min-height: 0;
}

.lightbox__figure img {
  max-width: min(92vw, 1200px);
  max-height: 76svh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__figure figcaption {
  font-size: 0.75rem;
  color: var(--bone-soft);
  text-align: center;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(242, 238, 231, 0.3);
  color: var(--bone);
  font-size: 1.1rem;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lightbox__nav:hover {
  background: var(--bone);
  color: var(--carbon);
}

.lightbox__nav--prev {
  left: var(--gutter);
}

.lightbox__nav--next {
  right: var(--gutter);
}

/* --------------------------------------------------------------------------
   Revelados y movimiento
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__frame {
    clip-path: none;
    animation: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Adaptación
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .build__aside {
    grid-column: 1 / 5;
  }

  .build__list {
    grid-column: 5 / 13;
  }

  .project-card--b {
    padding-top: 10vh;
  }

  .detail-card--2 {
    margin-top: 8vh;
  }
}

@media (max-width: 960px) {
  :root {
    --navh: 4.25rem;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .brand__sub {
    font-size: 0.56rem;
  }

  .hero__side {
    display: none;
  }

  .section-head__title,
  .section-head__aside {
    grid-column: 1 / -1;
  }

  .section-head__aside {
    justify-self: start;
    text-align: left;
  }

  .project-card--a,
  .project-card--b {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .project-card--b {
    margin-top: 1rem;
  }

  .project-card--a .project-card__media,
  .project-card--b .project-card__media {
    aspect-ratio: 4 / 5;
  }

  .build__aside {
    position: static;
    grid-column: 1 / -1;
  }

  .build__index {
    display: none;
  }

  .build__list {
    grid-column: 1 / -1;
    margin-top: 3rem;
  }

  .detail-card--1,
  .detail-card--2,
  .detail-card--3,
  .detail-card--4,
  .detail-card--5,
  .detail-card--6 {
    grid-column: span 6;
    margin-top: 0;
  }

  .detail-card--2,
  .detail-card--4,
  .detail-card--6 {
    margin-top: 3rem;
  }

  .quote__label,
  .quote__body,
  .quote__bio,
  .quote__link {
    grid-column: 1 / -1;
  }

  .quote__body {
    margin-top: 2rem;
  }

  .workshop__label {
    grid-column: 1 / -1;
  }

  .workshop__title {
    grid-column: 1 / 8;
  }

  .workshop__aside {
    grid-column: 8 / 13;
  }

  .workshop__drawing {
    grid-column: 8 / 13;
  }

  .final__title {
    grid-column: 1 / 9;
  }

  .final__aside {
    grid-column: 9 / 13;
  }

  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__col--contact {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    align-items: baseline;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-light);
  }

  .footer__col--contact h2 {
    margin: 0;
  }

  .footer__col--contact ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .footer__col--contact li + li {
    margin-top: 0;
  }

  .page-head__main,
  .page-head__media {
    grid-column: 1 / -1;
  }

  .page-head__media {
    margin-top: 2.5rem;
  }

  .project-intro__label {
    grid-column: 1 / -1;
  }

  .project-intro__lead {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
  }

  .project-intro__text {
    grid-column: 1 / 8;
  }

  .project-facts {
    grid-column: 9 / 13;
  }

  .features__head .label,
  .features__head .title {
    grid-column: 1 / -1;
  }

  .features__head .title {
    margin-top: 1.2rem;
  }

  .feature__text,
  .feature__media,
  .feature--flip .feature__text,
  .feature--flip .feature__media,
  .feature--panel .feature__text,
  .feature__panel {
    grid-column: 1 / -1;
  }

  .feature__media,
  .feature__panel {
    margin-top: 2rem;
  }

  .feature--flip .feature__media {
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .process__intro .label,
  .process__intro .lead {
    grid-column: 1 / -1;
  }

  .process__intro .lead {
    margin-top: 1.5rem;
  }

  .step__num {
    grid-column: 1 / 2;
  }

  .step__head {
    grid-column: 2 / 7;
  }

  .step__body {
    grid-column: 8 / 13;
  }

  .brief > h2 {
    grid-column: 1 / -1;
  }

  .brief__list {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
  }

  .honesty ul {
    grid-template-columns: 1fr;
  }

  .contact__aside {
    grid-column: 1 / -1;
    position: static;
  }

  .contact__form-wrap {
    grid-column: 1 / -1;
    margin-top: 3rem;
  }

  .contact__channels {
    max-width: 34rem;
  }

  .after__title {
    grid-column: 1 / -1;
  }

  .after__list {
    grid-column: 1 / -1;
    margin-top: 2rem;
  }

  .legal__toc {
    display: none;
  }

  .prose {
    grid-column: 1 / -1;
  }

  .workshop-page__label {
    grid-column: 1 / -1;
  }

  .workshop-page__statement {
    grid-column: 1 / 8;
  }

  .workshop-page__aside {
    grid-column: 9 / 13;
  }

  .workshop-page__drawing {
    grid-column: 9 / 13;
  }

  .workshop-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .directions__title,
  .directions__list,
  .directions__note {
    grid-column: 1 / -1;
  }

  .directions__list {
    margin-top: 2rem;
  }

  .notfound__num {
    grid-column: 1 / -1;
  }

  .notfound__body {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
  }
}

@media (max-width: 720px) {
  :root {
    --navh: 4rem;
    --section: clamp(4rem, 14vw, 6rem);
  }

  .hero {
    min-height: 600px;
  }

  .hero__inner {
    padding-bottom: 1.8rem;
  }

  .hero__top {
    flex-direction: column;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem 0.7rem;
    background: rgba(26, 25, 23, 0.5);
    font-size: 0.7rem;
  }

  .project-hero__media::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 11rem;
    background: rgba(26, 25, 23, 0.42);
  }

  .hero__place {
    text-align: left;
  }

  .hero__bottom {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(2.5rem, 13vw, 4.4rem);
  }

  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    margin-top: 1.8rem;
  }

  .proof__line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1rem;
    font-size: 1.05rem;
  }

  .proof__line span {
    white-space: normal;
  }

  .proof__line span:not(:last-child)::after {
    display: none;
  }

  .projects__grid {
    column-gap: 0;
    row-gap: 2.5rem;
  }

  .project-card__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .project-card__meta {
    text-align: left;
  }

  .layer__phrase,
  .layer__decision,
  .layer__figure {
    margin-left: 0;
  }

  .layer__decision {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .layer__head {
    gap: 0.8rem;
  }

  .layer__num {
    flex-basis: 1.6rem;
  }

  .layer__title {
    font-size: clamp(1.8rem, 7.5vw, 2.6rem);
  }

  .detail-grid {
    column-gap: 0;
    row-gap: 1.6rem;
  }

  .detail-card--1,
  .detail-card--2,
  .detail-card--3,
  .detail-card--4,
  .detail-card--5,
  .detail-card--6 {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .detail-card--type {
    min-height: 240px;
  }

  .detail-card--photo img {
    aspect-ratio: 4 / 5;
  }

  .quote blockquote {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .workshop__title,
  .workshop__aside,
  .workshop__drawing {
    grid-column: 1 / -1;
  }

  .workshop__aside {
    padding-top: 0;
  }

  .workshop__drawing {
    margin-top: 1.5rem;
  }

  .final__grid {
    display: block;
  }

  .final__aside {
    margin-top: 2rem;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col--contact {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    align-items: flex-start;
  }

  .page-head__title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .page-head__index {
    display: none;
  }

  .project-hero {
    min-height: 520px;
    height: 80svh;
  }

  .project-hero__title {
    font-size: clamp(2.6rem, 13vw, 5.5rem);
  }

  .project-hero__meta {
    gap: 0.4rem 1.2rem;
  }

  .project-hero__meta span:not(:last-child)::after {
    display: none;
  }

  .project-intro__text,
  .project-facts {
    grid-column: 1 / -1;
  }

  .project-facts {
    margin-top: 2rem;
  }

  .feature__media img {
    aspect-ratio: 4 / 3;
  }

  .gallery a,
  .gallery a.is-wide {
    grid-column: span 12;
    aspect-ratio: 4 / 5;
  }

  .gallery__note {
    grid-column: span 12;
    aspect-ratio: auto;
    min-height: 20rem;
  }

  .step__num,
  .step__head,
  .step__body {
    grid-column: 1 / -1;
  }

  .step__head {
    margin-top: 0.5rem;
  }

  .step__body {
    margin-top: 1.2rem;
  }

  .duration__num,
  .duration__text {
    grid-column: 1 / -1;
  }

  .duration__text {
    margin-top: 1.5rem;
  }

  .brief__list {
    grid-template-columns: 1fr;
  }

  .workshop-page__statement,
  .workshop-page__aside,
  .workshop-page__drawing {
    grid-column: 1 / -1;
  }

  .workshop-page__aside {
    margin-top: 1.5rem;
  }

  .workshop-page__drawing {
    display: none;
  }

  .workshop-facts {
    grid-template-columns: 1fr 1fr;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .form__submit {
    flex-direction: column;
    align-items: flex-start;
  }

  .form__submit .btn {
    width: 100%;
  }

  .legal__grid {
    display: block;
  }

  .legal__toc {
    display: none;
  }

  .lightbox__stage {
    padding: 0 0.8rem 1rem;
  }

  .lightbox__nav {
    top: auto;
    bottom: 1.2rem;
    transform: none;
    width: 2.6rem;
    height: 2.6rem;
  }

  .lightbox__nav--prev {
    left: 1.2rem;
  }

  .lightbox__nav--next {
    right: 1.2rem;
  }

  .lightbox__figure img {
    max-height: 70svh;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .workshop-facts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-card--type {
    min-height: 0;
  }
}

/* ==========================================================================
   Carta de Diego
   ========================================================================== */

.letter {
  padding: var(--section) 0;
  background: var(--bone);
  border-top: 1px solid var(--line);
}

.letter__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.letter__lead {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 1.1rem 0 1.6rem;
}

.letter__text p:not(.label):not(.letter__lead):not(.letter__sign) {
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
}

.letter__sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-top: 2.2rem;
  color: var(--carbon);
}

.letter__facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.letter__facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.letter__facts span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.letter__facts strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
}

/* ==========================================================================
   La entrega (vídeo)
   ========================================================================== */

.film {
  padding: var(--section) 0;
  background: var(--bone-2);
}

.film__frame {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  background: var(--carbon);
  aspect-ratio: 16 / 9;
}

.film__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}

.film__frame:hover img {
  opacity: 0.6;
  transform: scale(1.015);
}

.film__play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--bone);
  text-align: left;
  padding: 2rem;
}

.film__play-icon {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border: 1px solid rgba(242, 238, 231, 0.55);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.film__play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--bone);
}

.film__play:hover .film__play-icon {
  background: var(--bone);
  border-color: var(--bone);
  transform: scale(1.06);
}

.film__play:hover .film__play-icon::after {
  border-left-color: var(--carbon);
}

.film__play-text {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

.film__play-text small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
  text-transform: none;
}

.film__caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.film__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .letter__grid { grid-template-columns: 1fr; gap: 3rem; }
  .letter__facts { max-width: 26rem; }
  .film__frame { aspect-ratio: 4 / 5; }
  .film__play { flex-direction: column; text-align: center; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .film__frame img, .film__play-icon { transition: none; }
}

/* ==========================================================================
   Del canal
   ========================================================================== */

.canal {
  padding: var(--section) 0;
  background: var(--bone);
}

.canal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  margin-top: clamp(2rem, 4vw, 3.2rem);
}

.canal-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.canal-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--carbon);
}

.canal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.5s var(--ease);
  opacity: 0.94;
}

.canal-card:hover .canal-card__media img {
  transform: scale(1.03);
  opacity: 1;
}

.canal-card__time {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(26, 25, 23, 0.78);
  color: var(--bone);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.canal-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.canal-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .canal__grid { grid-template-columns: 1fr; }
}
