:root {
  --ink: #11100f;
  --ink-soft: #181614;
  --paper: #f2eee6;
  --cream: #d6c1a1;
  --muted: #b8b1a7;
  --line: rgba(242, 238, 230, .22);
  --site-max: 1600px;
  --pad: clamp(20px, 3.9vw, 56px);
  --header-height: 64px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: #090909;
  font-size: 16px;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: #090909;
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button,
input { font: inherit; }
button,
a,
input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  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;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--paper);
  font-size: .75rem;
  font-weight: 900;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: min(100%, var(--site-max));
  margin-inline: auto;
  padding-top: var(--header-height);
  background: var(--ink);
  box-shadow: 0 0 80px rgba(0, 0, 0, .28);
}

.section-kicker {
  margin: 0;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* PROTECTED SECTION: PORTADA. Visual changes require an explicit request and baseline update. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 2048 / 1143;
  background: #151311;
}
.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #151311;
}
.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 6, .84), rgba(7, 7, 6, .31) 42%, rgba(7, 7, 6, .04) 70%),
    linear-gradient(0deg, rgba(7, 7, 6, .76), rgba(7, 7, 6, .15) 47%, rgba(7, 7, 6, .03) 74%);
}
.hero-secondary,
.hero-primary {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  max-width: min(52vw, 760px);
}
.hero-secondary { top: clamp(54px, 10.5vw, 168px); }
.hero-primary { bottom: clamp(24px, 3vw, 42px); }
.hero-secondary-title,
.hero-primary-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-weight: 900;
  letter-spacing: -.078em;
  text-transform: uppercase;
}
.hero-secondary-title {
  font-size: clamp(3.5rem, 5.85vw, 5.25rem);
  line-height: .74;
}
.hero-primary-title {
  font-size: clamp(4.65rem, 7.8vw, 7rem);
  line-height: .72;
}
.hero-secondary-title span,
.hero-primary-title span {
  display: block;
  white-space: nowrap;
}
.outline {
  color: rgba(242, 238, 230, .025);
  -webkit-text-stroke: 1.1px var(--paper);
  paint-order: stroke fill;
}
.hero-secondary-title .small {
  margin-top: .17em;
  font-size: .53em;
  letter-spacing: -.058em;
  line-height: .82;
}
.hero-note {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 800;
  line-height: 1.25;
}

/* PROTECTED SECTION: CIERRE. Visual changes require an explicit request and baseline update. */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  color: var(--paper);
  background: var(--cream);
}
.closing-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.closing-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.closing-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 16, 15, .72) 0%, rgba(17, 16, 15, .42) 31%, rgba(17, 16, 15, .08) 53%, rgba(17, 16, 15, 0) 66%),
    linear-gradient(0deg, rgba(17, 16, 15, .18) 0%, rgba(17, 16, 15, 0) 30%);
}
.closing-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(250px, .88fr);
  grid-template-rows: auto 1fr auto;
  padding: clamp(42px, 4vw, 58px) var(--pad) clamp(38px, 3.6vw, 52px);
}
.closing-primary,
.closing-outline {
  margin: 0;
  text-transform: uppercase;
}
.closing-copy {
  display: contents;
}
.closing-primary span,
.closing-outline span { display: block; }
.closing-primary {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 680px;
  color: var(--cream);
  font-size: clamp(4.6rem, 7.65vw, 6.9rem);
  font-weight: 900;
  letter-spacing: -.078em;
  line-height: .74;
}
.closing-outline {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: min(100%, 410px);
  margin-right: 1.4%;
  color: rgba(23, 21, 20, .025);
  -webkit-text-stroke: 1.05px #171514;
  paint-order: stroke fill;
  font-size: clamp(2.7rem, 4.9vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.072em;
  line-height: 1;
  text-align: left;
}
.closing-outline-main {
  font-size: 1em;
  font-weight: 900;
  letter-spacing: -.072em;
  line-height: .88;
}
.closing-outline-middle {
  display: inline-block;
  margin: .16em 0 .1em;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .62em;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.closing-statement {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  max-width: 460px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.05rem, 1.55vw, 1.38rem);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}
.closing-statement span {
  display: block;
}

/* English outline is longer; only its scale/width changes, never its line spacing. */
html[lang="en"] .closing-outline {
  font-size: clamp(2.35rem, 3.7vw, 3.2rem);
}
html[lang="en"] .closing-outline-main {
  white-space: nowrap;
}

.noscript-note {
  margin: 0;
  padding: 16px var(--pad);
  color: var(--paper);
  background: #090909;
  font-size: .8rem;
}

@media (max-width: 900px) {
  .hero-secondary,
  .hero-primary { max-width: min(70vw, 620px); }
  .hero-secondary-title { font-size: clamp(3.2rem, 7.3vw, 4rem); }
  .hero-primary-title { font-size: clamp(4.2rem, 9.7vw, 5.2rem); }
  .closing-content {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  }
  .closing-primary { font-size: clamp(4rem, 9.4vw, 4.8rem); }
  .closing-outline { font-size: clamp(2.45rem, 5.6vw, 2.9rem); }
}

@media (max-width: 700px) {
  :root { --header-height: 56px; }

  /* Portada móvil: un mensaje antes de la imagen y el segundo sobre la fotografía. */
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
    overflow: hidden;
    background: #151311;
  }
  .hero-secondary {
    position: relative;
    left: auto;
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    padding: 38px var(--pad) 26px;
    background: #151311;
  }
  .hero-media {
    position: relative;
    z-index: 0;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    aspect-ratio: 2048 / 1143;
  }
  .hero-media img {
    object-fit: cover;
    object-position: center;
  }
  .hero-shade {
    position: relative;
    z-index: 1;
    display: block;
    grid-column: 1;
    grid-row: 2;
    inset: auto;
    min-width: 0;
    min-height: 0;
    background:
      linear-gradient(90deg, rgba(9, 8, 7, .72) 0%, rgba(9, 8, 7, .36) 48%, rgba(9, 8, 7, .03) 74%),
      linear-gradient(0deg, rgba(9, 8, 7, .64) 0%, rgba(9, 8, 7, .12) 58%, rgba(9, 8, 7, 0) 100%);
  }
  .hero-primary {
    position: relative;
    left: auto;
    z-index: 2;
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    width: min(70%, 286px);
    max-width: none;
    padding: 0 0 clamp(20px, 5.6vw, 28px) var(--pad);
    background: transparent;
    pointer-events: none;
  }
  .hero-secondary-title {
    font-size: clamp(2.15rem, 10vw, 2.55rem);
    line-height: .78;
  }
  .hero-primary-title {
    font-size: clamp(2.25rem, 10.8vw, 2.8rem);
    line-height: .76;
  }
  .outline { -webkit-text-stroke-width: .65px; }
  .hero-secondary-title .small { margin-top: 9px; }
  .hero-note {
    max-width: 230px;
    margin-top: 9px;
    font-size: clamp(.76rem, 3.2vw, .88rem);
    line-height: 1.2;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  }

  .closing {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
    background: #141210;
  }
  .closing-content {
    display: contents;
  }
  .closing-outline {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    justify-self: start;
    width: min(84vw, 360px);
    max-width: none;
    margin: 0;
    padding: 36px var(--pad) 24px;
    color: rgba(214, 193, 161, .025);
    background: #141210;
    -webkit-text-stroke: .65px var(--cream);
    font-size: clamp(2.55rem, 14vw, 4rem);
    line-height: .9;
    text-align: left;
  }
  .closing-outline-middle {
    margin: .16em 0 .1em;
    color: var(--cream);
    font-size: .58em;
  }
  .closing-copy {
    position: relative;
    z-index: 2;
    grid-row: 2;
    grid-column: 1;
    align-self: start;
    justify-self: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(76vw, 320px);
    padding: 28px var(--pad) 0;
    pointer-events: none;
  }
  .closing-primary {
    align-self: flex-start;
    max-width: none;
    color: #a68f6d;
    font-size: clamp(2.45rem, 13vw, 3.4rem);
    line-height: .78;
  }
  .closing-statement {
    width: 100%;
    max-width: 270px;
    color: #826f56;
    font-size: clamp(.92rem, 3.8vw, 1rem);
    line-height: 1.24;
    text-wrap: pretty;
  }
  .closing-statement span {
    display: block;
  }
  html[lang="en"] .closing-outline {
    width: min(92vw, 380px);
    font-size: clamp(2.05rem, 9.7vw, 2.75rem);
  }
  .closing-media,
  .closing-shade {
    grid-row: 2;
    grid-column: 1;
  }
  .closing-media {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    height: clamp(360px, 92vw, 470px);
  }
  .closing-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
  }
  .closing-shade { display: none; }
}

@media (max-width: 430px) {
  .closing-outline {
    width: min(88vw, 330px);
    padding-top: 32px;
    padding-bottom: 20px;
    font-size: clamp(2.3rem, 13.2vw, 3.4rem);
  }
  .closing-copy {
    width: min(80vw, 300px);
    padding-top: 24px;
  }
  .closing-primary {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }
  .closing-statement {
    max-width: 250px;
    font-size: .9rem;
  }
  .closing-media {
    height: clamp(340px, 96vw, 430px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
