@font-face {
  font-family: "Baubau";
  src: url("https://www.nehnah.com/wp-content/themes/nehnah/assets/fonts/baubau-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Baubau";
  src: url("https://www.nehnah.com/wp-content/themes/nehnah/assets/fonts/baubau-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f2f0ec;
  --paper-light: #f2f0ec;
  --ink: #0f1928;
  --ink-soft: rgba(15, 25, 40, 0.78);
  --red: #e1523d;
  --red-dark: #b33b2d;
  --rule: rgba(18, 29, 54, 0.22);
  --sans: "Baubau", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Baubau", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: 1480px;
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection,
body *::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: inherit;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.reading-progress {
  position: fixed;
  z-index: 1001;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 5.25rem;
  padding: 1rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(242, 240, 236, 0.94);
  border-color: var(--rule);
  backdrop-filter: blur(12px);
}

.site-header .brand {
  width: 8.5rem;
  justify-self: start;
}

.site-header > p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.download-link span,
.jump-link span,
.closing-link span {
  transition: transform 180ms ease;
}

.download-link:hover span,
.jump-link:hover span {
  transform: translateY(0.2rem);
}

.cover {
  position: relative;
  min-height: 100svh;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(8rem, 14vh, 11rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.7fr);
  grid-template-rows: 1fr auto;
  gap: 3rem 7vw;
  align-items: end;
  overflow: hidden;
}

.cover-mark {
  position: absolute;
  z-index: -1;
  top: 45%;
  left: 28%;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(22rem, 44vw, 44rem);
  line-height: 0.5;
  transform: translate(-50%, -50%);
  user-select: none;
}

.cover-title {
  align-self: center;
  grid-row: 1 / span 2;
}

.overline {
  margin-bottom: 1.25rem;
  color: var(--red-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.overline.first{
margin-bottom:2.55rem;
}

.cover h1 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5.4rem, 13vw, 12rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.72;
}


.cover-intro {
  align-self: end;
  max-width: 28rem;
  padding-bottom: 1rem;
}

.love {
  margin-bottom: 1.1rem;
  color: var(--red-dark);
  font-family: var(--display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
}

.lead {
  margin-bottom: 2rem;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.42;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

.reader {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  align-items: start;
  max-width: var(--content);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.toc {
  align-self: stretch;
  padding: 0 var(--gutter);
}

.toc-inner {
  position: sticky;
  top: 7.25rem;
  padding: 3.5rem 0;
}

.toc-label {
  margin-bottom: 1.75rem;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc nav {
  display: grid;
}

.toc nav a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.45rem;
  padding: 0.56rem 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.25;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.toc nav a span {
  color: var(--red-dark);
  font-size: 0.74rem;
}

.toc nav a:hover,
.toc nav a[aria-current="true"] {
  color: var(--ink);
  transform: translateX(0.25rem);
}

.toc nav a[aria-current="true"] {
  font-weight: 700;
}

.scope {
  max-width: 18rem;
  margin: 2.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.45;
}

.chapters {
  min-width: 0;
  border-left: 1px solid var(--rule);
}

.chapter {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8.5rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.chapter-header {
  position: relative;
  max-width: 64rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.chapter-number {
  position: absolute;
  top: 0.1rem;
  right: 0;
  margin: 0;
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 1.4rem;
}

.chapter h2 {
  max-width: 17ch;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.2vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.chapter h2 sup {
  color: var(--red-dark);
  font-size: 0.36em;
  vertical-align: top;
}

.footnote {
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.chapter-copy {
  max-width: 48rem;
  margin-left: auto;
}

.chapter-copy p {
  margin-bottom: 1.15rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
}

.chapter-copy p:first-child {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle-grid article {
  padding: 2rem clamp(1rem, 3vw, 3rem) 2.5rem 0;
}

.principle-grid article:nth-child(odd) {
  padding-right: clamp(2rem, 4vw, 4rem);
}

.principle-grid article:nth-child(even) {
  padding-left: clamp(2rem, 4vw, 4rem);
}

.item-number {
  margin-bottom: 1.5rem;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.principle-grid h3 {
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.principle-grid article > p:last-child {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.52;
}

.values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid article {
  padding: 2rem clamp(1.5rem, 3vw, 3rem) 2.75rem;
  border-right: 1px solid var(--rule);
}

.values-grid article:first-child {
  padding-left: 0;
}

.values-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.chapter-dark {
  margin-left: -1px;
  background: var(--ink);
  color: var(--paper-light);
  border-color: rgba(255, 255, 255, 0.18);
}

.chapter-dark .overline,
.chapter-dark .chapter-number,
.chapter-dark .item-number {
  color: var(--red);
}

.chapter-dark .principle-grid,
.chapter-dark .principle-grid article {
  border-color: rgba(255, 255, 255, 0.22);
}

.chapter-dark .principle-grid article > p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.representation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 5rem;
}

.representation-grid article {
  padding: 2rem clamp(1.5rem, 3vw, 3rem) 2.75rem;
  border-right: 1px solid var(--rule);
}

.representation-grid article:first-child {
  padding-left: 0;
}

.representation-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.chapter-update {
  padding-bottom: clamp(6rem, 12vw, 12rem);
}

.summary {
  margin-top: clamp(5rem, 10vw, 10rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.summary p {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary strong {
  display: block;
  max-width: 12ch;
  color: var(--red-dark);
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.closing {
  position: relative;
  min-height: auto;
  padding: clamp(4.5rem, 7vw, 7rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: end;
  gap: 3rem;
  overflow: hidden;
  background: var(--red);
  color: var(--ink);
}

.closing::before {
  content: "&";
  position: absolute;
  z-index: 0;
  right: -0.04em;
  bottom: -0.33em;
  color: rgba(242, 240, 236, 0.28);
  font-family: var(--display);
  font-size: clamp(27rem, 60vw, 58rem);
  line-height: 1;
}

.closing > * {
  position: relative;
  z-index: 1;
}

.closing-site {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.closing h2 span {
  color: var(--paper-light);
}

.closing-link {
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  text-decoration: none;
}

.closing-link:hover span {
  transform: translate(0.22rem, -0.22rem);
}

.site-footer {
  padding: 2.5rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: end;
  gap: 2rem;
  background: var(--ink);
  color: var(--paper-light);
}

.site-footer .brand {
  width: 8.5rem;
  filter: brightness(0) invert(1);
}

.site-footer p,
.site-footer > a:not(.brand) {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-footer > a:not(.brand) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.js .reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .cover {
    grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  }

  .reader {
    grid-template-columns: 15.5rem minmax(0, 1fr);
  }

  .toc {
    padding-right: 1.5rem;
  }

  .values-grid,
  .representation-grid {
    grid-template-columns: 1fr;
  }

  .values-grid article,
  .values-grid article:first-child,
  .values-grid article:last-child,
  .representation-grid article,
  .representation-grid article:first-child,
  .representation-grid article:last-child {
    min-height: 0;
    padding: 2rem 0 2.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .values-grid article:last-child,
  .representation-grid article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 9rem;
  }

  .site-header {
    min-height: 4.5rem;
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .site-header > p {
    display: none;
  }

  .site-header .brand {
    width: 7.25rem;
  }

  .download-link {
    font-size: 0.78rem;
  }

  .cover {
    min-height: 100svh;
    padding-top: 7rem;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 2rem;
  }

  .cover-title {
    grid-row: auto;
    align-self: center;
  }

  .cover h1 {
    font-size: clamp(4.6rem, 24vw, 7.8rem);
    line-height: 0.76;
  }

.cover-mark {
  top: 43%;
  left: 42%;
  font-size: clamp(18rem, 95vw, 28rem);
}

  .cover-intro {
    max-width: 32rem;
  }

  .love {
    font-size: 2.4rem;
  }

  .reader {
    display: block;
  }

  .toc {
    position: sticky;
    z-index: 50;
    top: 4.5rem;
    padding: 0;
    overflow-x: auto;
    background: rgba(242, 240, 236, 0.96);
    border-bottom: 1px solid var(--rule);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
  }

  .toc::-webkit-scrollbar {
    display: none;
  }

  .toc-inner {
    position: static;
    width: max-content;
    padding: 0 var(--gutter);
  }

  .toc-label,
  .scope {
    display: none;
  }

  .toc nav {
    display: flex;
  }

  .toc nav a {
    display: block;
    padding: 1rem 1.1rem 0.85rem 0;
    white-space: nowrap;
  }

  .toc nav a span {
    margin-right: 0.35rem;
  }

  .toc nav a:hover,
  .toc nav a[aria-current="true"] {
    transform: none;
  }

  .toc nav a[aria-current="true"] {
    text-decoration: underline;
    text-decoration-color: var(--red-dark);
    text-underline-offset: 0.3rem;
  }

  .chapters {
    border-left: 0;
  }

  .chapter {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .chapter-header {
    margin-bottom: 3.5rem;
  }

  .chapter-number {
    position: static;
    margin-bottom: 2.5rem;
  }

.chapter h2 {
  max-width: 19ch;
  font-size: clamp(1.9rem, 7.2vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

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

.principle-grid article,
.principle-grid article:nth-child(odd),
.principle-grid article:nth-child(even) {
  min-height: 0;
  padding: 1.25rem 0 1.5rem;
  border-right: 0;
}

  .item-number {
    margin-bottom: 0.75rem;
  }

  .chapter-copy {
    margin-left: 0;
  }

  .representation-grid {
    margin-top: 3rem;
  }

 .summary strong {
  font-size: clamp(2.5rem, 11vw, 4rem);
}

 .closing {
  min-height: auto;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 4rem;
}

 .closing h2 {
  font-size: clamp(2.6rem, 11vw, 4rem);
}

  .closing-link {
    justify-self: start;
  }

  .site-footer {
    min-height: 0;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .reading-progress,
  .toc,
  .closing-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .cover {
    min-height: 95vh;
  }

  .reader {
    display: block;
    border-top-color: #777;
  }

  .chapters {
    border-left: 0;
  }

  .chapter,
  .principle-grid article {
    break-inside: avoid;
  }

  .chapter-dark,
  .closing,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .chapter-dark .principle-grid article > p:last-child,
  .site-footer p,
  .site-footer > a:not(.brand) {
    color: #000;
  }
}

/* Enlace al PDF oculto temporalmente.
   Eliminar esta regla para volver a mostrarlo. */
.download-link {
  display: none;
}
