/* =====================================================
   LXX — CUADERNOS
   Página independiente /cuadernos
   - No toca la home
   - Reutiliza styles.css como base
   - Añade capa editorial específica
===================================================== */

/* ================================
   BLOQUE 1 — Utilidades / shell
================================ */

.cuadernos-page {
  min-height: 100vh;
  min-height: 100svh;
  background: transparent;
}

.cuadernos-page .site-meta--always-visible {
  display: flex;
}

.cuadernos-page .site-label--always-visible {
  display: block;
}

.cuadernos-page .site-footer {
  position: relative;
  z-index: 2;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cuadernos-page .site-bg {
  opacity: 0.24;
  background-size:
    145% 145%,
    118% auto;
  background-position:
    center,
    50% 47%;
}

body.cuadernos-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(248, 242, 235, 0.82) 0%,
      rgba(248, 242, 235, 0.66) 22%,
      rgba(248, 242, 235, 0.32) 46%,
      rgba(248, 242, 235, 0.1) 64%,
      rgba(248, 242, 235, 0) 82%
    ),
    radial-gradient(
      ellipse at 18% 50%,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.16) 34%,
      rgba(255, 255, 255, 0) 72%
    );
}

.cuadernos-archive {
  position: relative;
  z-index: 1;
}

.cuadernos-archive section {
  position: relative;
}

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

/* ================================
   BLOQUE 2 — Hero editorial
================================ */

.cuadernos-hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
}

.cuadernos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(248, 242, 235, 0.82) 0%,
      rgba(248, 242, 235, 0.66) 22%,
      rgba(248, 242, 235, 0.32) 46%,
      rgba(248, 242, 235, 0.1) 64%,
      rgba(248, 242, 235, 0) 82%
    ),
    radial-gradient(
      ellipse at 18% 50%,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.16) 34%,
      rgba(255, 255, 255, 0) 72%
    );
  opacity: 1;
}
.cuadernos-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  padding-top: 7.2rem;
  padding-bottom: 5.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
  gap: 3.8rem;
  align-items: center;
}

.cuadernos-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.cuadernos-hero__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}

.cuadernos-hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: var(--lxx-editorial-title-weight);
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: var(--lxx-editorial-title-line-height);
  letter-spacing: var(--lxx-editorial-title-letter-spacing);
  color: var(--lxx-editorial-title-color);
  text-wrap: balance;
}

.cuadernos-hero__subtitle {
  margin: 1.1rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(0.98rem, 1.55vw, 1.14rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(180, 90, 63, 0.88);
}

.cuadernos-hero__text {
  margin: 0.55rem 0 0;
  max-width: 30rem;
  font-family: var(--font-body);
  font-weight: var(--lxx-editorial-copy-weight);
  font-size: clamp(0.98rem, 1.14vw, 1.04rem);
  line-height: var(--lxx-editorial-copy-line-height);
  letter-spacing: var(--lxx-editorial-copy-letter-spacing);
  color: var(--lxx-editorial-copy-color);
}
.cuadernos-hero__visual {
  position: relative;
  z-index: 1;
  margin: -0.8rem 0 0;
  width: min(100%, 448px);
  justify-self: end;
  transform: translateX(-10px);
}

.cuadernos-hero__visualGlow {
  display: none;
}

.cuadernos-hero__visualFrame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(120, 92, 72, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
}

.cuadernos-hero__visualFrame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(248, 242, 235, 0.26) 0%,
      rgba(248, 242, 235, 0.12) 12%,
      rgba(248, 242, 235, 0.04) 22%,
      rgba(248, 242, 235, 0) 34%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 24%,
      rgba(88, 63, 47, 0.05) 100%
    );
}

.cuadernos-hero__visualFrame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 76%;
  transform: scale(1.035);
  filter: saturate(0.88) contrast(0.96) brightness(0.98) sepia(0.08);
}
.cuadernos-hero__visualFrame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.08;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.26) 0%, transparent 24%),
    radial-gradient(circle at 76% 78%, rgba(180, 90, 63, 0.1) 0%, transparent 28%),
    linear-gradient(
      180deg,
      rgba(90, 68, 54, 0.03) 0%,
      rgba(90, 68, 54, 0) 28%,
      rgba(90, 68, 54, 0.06) 100%
    );
}
.cuadernos-hero__visualPlaceholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  font-family: var(--font-title);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(0, 0, 0, 0.38);
}

.cuadernos-hero__visualTag {
  margin: 0.9rem 0 0;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 90, 63, 0.24);
  background: rgba(248, 242, 235, 0.88);
  font-family: var(--font-title);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 90, 63, 0.9);
}
/* ================================
   BLOQUE 3 — Criterio editorial
================================ */

.cuadernos-editorial {
  padding: 2rem 0 5rem;
}

.cuadernos-editorial__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.82fr);
  gap: 1.6rem;
  align-items: stretch;
}

.cuadernos-editorial__content,
.cuadernos-editorial__aside {
  position: relative;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.78) 0%, rgba(232, 223, 212, 0.52) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.028) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
  border: 1px solid rgba(120, 92, 72, 0.12);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cuadernos-editorial__content::before,
.cuadernos-editorial__aside::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuadernos-editorial__content {
  padding: 2.15rem 2.1rem 2.2rem;
}

.cuadernos-editorial__aside {
  padding: 1.7rem 1.5rem 1.6rem;
  display: grid;
  align-content: start;
}

.cuadernos-editorial__eyebrow,
.cuadernos-editorial__asideKicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-title);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.46);
}

.cuadernos-editorial__title,
.cuadernos-editorial__asideTitle {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
}

.cuadernos-editorial__title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  max-width: 17ch;
}

.cuadernos-editorial__asideTitle {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  max-width: 16ch;
}

.cuadernos-editorial__text {
  margin: 1.1rem 0 0;
  max-width: 60ch;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.68);
}

.cuadernos-editorial__stats {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.cuadernos-stat {
  position: relative;
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(120, 92, 72, 0.12);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.cuadernos-stat__value {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180, 90, 63, 0.9);
}

.cuadernos-stat__label {
  margin: 0.42rem 0 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}
/* ================================
   BLOQUE 3B — Definición / proceso / contenido
================================ */

.cuadernos-guide {
  padding: 2.1rem 0 1.2rem;
}

.cuadernos-guide__inner {
  width: min(1120px, 92vw);
  max-width: none;
}

.cuadernos-guide__head {
  margin-bottom: 1.1rem;
}

.cuadernos-guide__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cuadernos-guide__choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  min-height: 112px;
  padding: 1.08rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(120, 92, 72, 0.14);
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.7) 0%, rgba(232, 223, 212, 0.46) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.026) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.cuadernos-guide__choice::after {
  content: none;
  position: absolute;
  right: 1rem;
  bottom: 0.82rem;
  font-family: var(--font-title);
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(180, 90, 63, 0.78);
}

.cuadernos-guide__choice:hover,
.cuadernos-guide__choice:focus-visible,
.cuadernos-guide__choice.is-active {
  transform: translateY(-2px);
  border-color: rgba(180, 90, 63, 0.28);
  background-color: rgba(248, 242, 235, 0.92);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.065),
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
}

.cuadernos-guide__choice.is-active::after {
  content: none;
}

.cuadernos-guide__dots {
  position: absolute;
  right: 1rem;
  bottom: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  height: 0.45rem;
  pointer-events: none;
}

.cuadernos-guide__dots > span {
  width: 0.26rem;
  height: 0.26rem;
  border-radius: 50%;
  background: rgba(180, 90, 63, 0.78);
  opacity: 0.42;
  animation: cuadernos-guide-dot 1.2s ease-in-out infinite;
}

.cuadernos-guide__dots > span:nth-child(2) {
  animation-delay: 0.16s;
}

.cuadernos-guide__dots > span:nth-child(3) {
  animation-delay: 0.32s;
}

.cuadernos-guide__choice.is-active .cuadernos-guide__dots > span {
  background: rgba(180, 90, 63, 0.92);
  animation: none;
  opacity: 0.78;
  transform: none;
}

@keyframes cuadernos-guide-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.42;
  }
  30% {
    transform: translateY(-0.2rem);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cuadernos-guide__dots > span {
    animation: none;
    opacity: 0.78;
    transform: none;
  }
}

.cuadernos-guide__choice:focus-visible {
  outline: 2px solid rgba(180, 90, 63, 0.42);
  outline-offset: 4px;
}

.cuadernos-guide__index {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(180, 90, 63, 0.82);
}

.cuadernos-guide__choiceText {
  display: grid;
  gap: 0.42rem;
  padding-right: 1.05rem;
}

.cuadernos-guide__choiceTitle {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.68);
}

.cuadernos-guide__choiceSummary {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.58);
}

.cuadernos-guide-panel {
  scroll-margin-top: 5.8rem;
}

.cuadernos-guide-panel[hidden] {
  display: none;
}

.cuadernos-definition,
.cuadernos-process,
.cuadernos-includes {
  padding: 1.8rem 0 4.2rem;
}
.cuadernos-definition {
  padding-top: 2rem;
}

.cuadernos-definition > .container {
  width: min(1120px, 92vw);
  max-width: none;
}

.cuadernos-definition__layout--split {
  transform: translateY(-0.8rem);
}
.cuadernos-definition__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 1.6rem;
  align-items: stretch;
}

.cuadernos-definition__content,
.cuadernos-definition__blocks,
.cuadernos-process__step,
.cuadernos-includes__item {
  position: relative;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.78) 0%, rgba(232, 223, 212, 0.52) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.028) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
  border: 1px solid rgba(120, 92, 72, 0.12);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cuadernos-definition__content::before,
.cuadernos-definition__blocks::before,
.cuadernos-process__step::before,
.cuadernos-includes__item::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuadernos-definition__content {
  width: 100%;
  justify-self: stretch;
  padding: 2.15rem 2.1rem 2.2rem;
}

.cuadernos-definition__blocks {
  padding: 1.4rem 1.25rem;
  display: grid;
  gap: 0.95rem;
  align-content: start;
}
.cuadernos-definition__layout--split {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.05fr);
  gap: 2.4rem;
  align-items: stretch;
}

.cuadernos-definition__visual {
  margin: 0;
  position: relative;
  order: -1;
  width: min(100%, 448px);
  justify-self: start;
  align-self: stretch;
  border-radius: 22px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(120, 92, 72, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cuadernos-definition__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 28%,
    rgba(90, 68, 54, 0.04) 100%
  );
}

.cuadernos-definition__visualMedia {
  position: relative;
  aspect-ratio: 4 / 5;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(120, 92, 72, 0.08);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.cuadernos-definition__visualImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cuadernos-definition__eyebrow,
.cuadernos-definition__itemTitle,
.cuadernos-process__stepTitle,
.cuadernos-includes__title {
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cuadernos-definition__eyebrow {
  margin-bottom: 0.85rem;
  font-size: 0.74rem;
  color: rgba(0, 0, 0, 0.46);
}

.cuadernos-definition__title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
}

.cuadernos-definition__text {
  margin: 0.95rem 0 0;
  max-width: 58ch;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.67);
}
.cuadernos-definition__text--signature {
  margin-top: 1.15rem;
}

.cuadernos-definition__editorialLink {
  color: rgba(180, 90, 63, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 90, 63, 0.28);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.cuadernos-definition__editorialLink:hover,
.cuadernos-definition__editorialLink:focus-visible {
  color: rgba(180, 90, 63, 1);
  border-color: rgba(180, 90, 63, 0.52);
}

.cuadernos-definition__editorialLink:focus-visible {
  outline: none;
}
.cuadernos-definition__item {
  position: relative;
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(120, 92, 72, 0.12);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.cuadernos-definition__itemTitle,
.cuadernos-process__stepTitle,
.cuadernos-includes__title {
  font-size: 0.8rem;
  color: rgba(180, 90, 63, 0.88);
}

.cuadernos-definition__itemText,
.cuadernos-process__stepText,
.cuadernos-includes__text {
  margin: 0.65rem 0 0;
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.62;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.68);
}
.cuadernos-process__grid,
.cuadernos-includes__grid {
  display: grid;
  gap: 1.2rem;
}

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

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

@media (min-width: 981px) {
  .cuadernos-includes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .cuadernos-includes__item:nth-child(2) {
    padding: 1.55rem 1.5rem 1.45rem;
  }
}

.cuadernos-process__step,
.cuadernos-includes__item {
  padding: 1.35rem 1.2rem 1.28rem;
}

.cuadernos-includes__item {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.cuadernos-includes__subtitle {
  margin: 0.45rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.78);
}

.cuadernos-includes__label {
  margin: 1rem 0 0;
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.48);
}

.cuadernos-includes__indicator {
  width: fit-content;
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(180, 90, 63, 0.24);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.56);
}

.cuadernos-includes__printBadge {
  width: fit-content;
  margin: 1.25rem 0 0;
  padding: 0.42rem 0.66rem;
  border: 1px solid rgba(180, 90, 63, 0.24);
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(180, 90, 63, 0.88);
  background: rgba(180, 90, 63, 0.06);
}

.cuadernos-includes__printText {
  margin: 0.65rem 0 0;
  max-width: 45ch;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.58;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.62);
}

.cuadernos-includes__cta {
  position: relative;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 1.4rem 0 0.62rem;
  display: inline-flex;
  align-self: center;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow-wrap: anywhere;
  color: rgba(0, 0, 0, 0.66);
  transition:
    transform 0.25s ease-out,
    color 0.25s ease-out,
    letter-spacing 0.25s ease-out,
    text-shadow 0.25s ease-out;
}

.cuadernos-includes__cta::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 1px;
  transform: translateX(-50%);
  opacity: 0;
  transition:
    width 0.35s ease-out,
    opacity 0.35s ease-out;
}

.cuadernos-includes__cta:hover,
.cuadernos-includes__cta:focus-visible {
  transform: translateY(-1px);
  color: var(--color-accent);
  text-shadow:
    0 0 10px rgba(var(--beam-rgb), 0.18),
    0 0 24px rgba(var(--beam-rgb), 0.1);
}

.cuadernos-includes__cta:hover::after,
.cuadernos-includes__cta:focus-visible::after {
  width: 110%;
  opacity: 1;
  background: linear-gradient(
    to right,
    rgba(196, 107, 76, 0) 0%,
    rgba(196, 107, 76, 0.85) 50%,
    rgba(196, 107, 76, 0) 100%
  );
}

.cuadernos-includes__cta:focus-visible {
  outline: 1px solid rgba(var(--brand-copper), 0.5);
  outline-offset: 4px;
}

.cuadernos-includes__list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.52;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.68);
}

.cuadernos-guide__choiceSummary--versions {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
}

.cuadernos-guide__choiceSeparator {
  color: rgba(var(--brand-copper), 0.9);
}

.cuadernos-includes__list li {
  position: relative;
  padding-left: 0.9rem;
}

.cuadernos-includes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(180, 90, 63, 0.72);
}
.cuadernos-process__grid--phases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.cuadernos-process__phase {
  position: relative;
  border-radius: 28px;
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.78) 0%, rgba(232, 223, 212, 0.52) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.028) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
  border: 1px solid rgba(120, 92, 72, 0.12);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cuadernos-process__phase::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuadernos-process__phaseVisual {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 18px;
  border: 1px solid rgba(120, 92, 72, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(232, 223, 212, 0.14) 100%),
    radial-gradient(circle at center, rgba(180, 90, 63, 0.08) 0%, rgba(180, 90, 63, 0) 72%);
  overflow: hidden;
}
.cuadernos-process__phaseVisual--diagram {
  display: block;
  padding: 0;
}

.cuadernos-process__diagram {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.97) brightness(0.99) sepia(0.04);
  color: rgba(180, 90, 63, 0.78);
}
.cuadernos-process__diagram--spiral {
  transform: scaleX(-1) translateX(-2px);
}
.diagram-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-fill {
  stroke: none;
  fill: currentColor;
}

.diagram-soft {
  opacity: 0.18;
}

.diagram-mid {
  opacity: 0.34;
}

.diagram-strong {
  opacity: 0.7;
}
.cuadernos-process__phaseBody {
  padding: 1rem 0.2rem 0.15rem;
}

.cuadernos-process__phaseVisual--prepare .cuadernos-process__ring:nth-child(1) {
  width: 64px;
  height: 64px;
  left: 20px;
  top: 26px;
  border-radius: 50%;
  border: 1px solid rgba(180, 90, 63, 0.18);
}

.cuadernos-process__phaseVisual--prepare .cuadernos-process__ring:nth-child(2) {
  width: 92px;
  height: 92px;
  left: 46px;
  top: 14px;
  border-radius: 50%;
  border: 1px solid rgba(180, 90, 63, 0.14);
}

.cuadernos-process__phaseVisual--prepare .cuadernos-process__ring:nth-child(3) {
  width: 124px;
  height: 124px;
  left: 88px;
  top: -2px;
  border-radius: 50%;
  border: 1px solid rgba(180, 90, 63, 0.1);
}

.cuadernos-process__phaseVisual--field .cuadernos-process__dot:nth-child(1) {
  width: 10px;
  height: 10px;
  left: 30px;
  top: 70px;
  border-radius: 50%;
  background: rgba(180, 90, 63, 0.74);
}

.cuadernos-process__phaseVisual--field .cuadernos-process__dot:nth-child(2) {
  width: 10px;
  height: 10px;
  left: 110px;
  top: 28px;
  border-radius: 50%;
  background: rgba(180, 90, 63, 0.58);
}

/* ================================
   BLOQUE 3C — Puentes narrativos
================================ */

.cuadernos-bridge {
  padding: 0.5rem 0 2.2rem;
}

.cuadernos-bridge__text {
  margin: 0;
  max-width: 52rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.58);
}

/* ================================
   BLOQUE 4 — Cabecera de sección
================================ */

.cuadernos-section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.45rem;
}

.cuadernos-section-head__eyebrow {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.46);
}

.cuadernos-section-head__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
}

.cuadernos-section-head__text {
  margin: 0.25rem 0 0;
  max-width: 62ch;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  line-height: 1.68;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.62);
}

/* ================================
   BLOQUE 5 — Biblioteca
================================ */

.cuadernos-library {
  padding: 0.8rem 0 4.2rem;
}

.cuadernos-library__list {
  display: grid;
  gap: 1.2rem;
}

.cuaderno-card {
  position: relative;
  display: grid;
  grid-template-columns: 168px minmax(118px, 140px) minmax(280px, 1fr) minmax(286px, 300px);
  gap: 1.1rem;
  align-items: center;
  padding: 1.35rem 1.35rem 1.35rem 1.4rem;
  border-radius: 24px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.8) 0%, rgba(232, 223, 212, 0.56) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
  border: 1px solid rgba(120, 92, 72, 0.12);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.34) inset;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease;
}

.cuaderno-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
.cuaderno-card__media {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.cuaderno-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cuaderno-card:hover,
.cuaderno-card:focus-visible,
.cuaderno-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(180, 90, 63, 0.2);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.08),
    0 0 0 3px rgba(180, 90, 63, 0.04);
}

.cuaderno-card:focus-visible {
  outline: 2px solid rgba(180, 90, 63, 0.45);
  outline-offset: 4px;
}
.cuaderno-card--disabled {
  cursor: default;
}

.cuaderno-card--disabled:hover {
  transform: none;
  border-color: rgba(120, 92, 72, 0.12);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.34) inset;
}

.cuaderno-card--disabled .cuaderno-card__action {
  color: rgba(0, 0, 0, 0.46);
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.08);
}
.cuaderno-card__ref {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.cuaderno-card__code {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.56);
}

.cuaderno-card__status {
  width: fit-content;
  margin: 0;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 90, 63, 0.24);
  background: rgba(180, 90, 63, 0.08);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(180, 90, 63, 0.9);
}

.cuaderno-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.cuaderno-card__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.82);
}

.cuaderno-card__destino {
  margin: 0.35rem 0 0;
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  color: rgba(0, 0, 0, 0.48);
}

.cuaderno-card__destinationSeparator {
  color: rgba(var(--brand-copper), 0.9);
  letter-spacing: 0;
}

.cuaderno-card__access {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: rgba(var(--brand-copper), 0.96);
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.cuaderno-card__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.62);
  transition:
    color 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease;
}

.cuaderno-card__decision {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.cuaderno-card__actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.65rem;
}

.cuaderno-card > .cuaderno-card__action {
  justify-self: end;
  align-self: center;
}

.cuaderno-card:hover .cuaderno-card__action,
.cuaderno-card:focus-visible .cuaderno-card__action,
.cuaderno-card:focus-within .cuaderno-card__action,
.cuaderno-card__action:hover,
.cuaderno-card__action:focus-visible {
  color: rgba(0, 0, 0, 0.78);
  border-color: rgba(180, 90, 63, 0.24);
  background: rgba(255, 255, 255, 0.2);
}

.cuaderno-card__action:focus-visible {
  outline: 2px solid rgba(180, 90, 63, 0.45);
  outline-offset: 3px;
}

/* ================================
   BLOQUE 6 — CTA final
================================ */

.cuadernos-cta {
  padding: 1rem 0 6rem;
}

.cuadernos-cta__box {
  position: relative;
  padding: 2.2rem 1.8rem;
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.76) 0%, rgba(232, 223, 212, 0.5) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.028) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
  border: 1px solid rgba(120, 92, 72, 0.12);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cuadernos-cta__box::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuadernos-cta__eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.46);
}

.cuadernos-cta__title {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
  text-wrap: balance;
}

.cuadernos-cta__text {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.68);
}

.cuadernos-cta__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.cuadernos-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.62);
  transition:
    transform 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease;
}

.cuadernos-cta__link:hover,
.cuadernos-cta__link:focus-visible {
  transform: translateY(-1px);
  color: rgba(0, 0, 0, 0.78);
  border-color: rgba(180, 90, 63, 0.24);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.cuadernos-cta__link:focus-visible {
  outline: 2px solid rgba(180, 90, 63, 0.45);
  outline-offset: 4px;
}
/* ================================
   BLOQUE 7 — Responsive
================================ */

/* ---------- TABLET ---------- */
@media (max-width: 980px) {
  .cuadernos-hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .cuadernos-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 6.8rem;
    padding-bottom: 4.2rem;
  }

  .cuadernos-hero__visual {
    justify-self: start;
    width: min(100%, 400px);
  }

  .cuadernos-definition__layout,
  .cuadernos-process__grid,
  .cuadernos-includes__grid,
  .cuadernos-definition__layout--split,
  .cuadernos-process__grid--phases,
  .cuadernos-editorial__layout {
    grid-template-columns: 1fr;
  }
  .cuadernos-definition__layout--split {
    transform: translateY(-0.8rem);
    min-height: 0;
  }

  .cuadernos-definition__visual {
    order: 0;
  }

  .cuadernos-definition__visualMedia {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .cuaderno-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cuaderno-card__actions,
  .cuaderno-card__decision,
  .cuaderno-card > .cuaderno-card__action,
  .cuaderno-card__action {
    justify-self: start;
  }

  .cuaderno-card__access {
    text-align: left;
  }

  .cuaderno-card__media {
    width: min(180px, 100%);
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .cuadernos-page {
    --cuadernos-mobile-media-w: min(100%, 308px);
    --cuadernos-mobile-media-radius: 22px;
  }

  body.cuadernos-page .site-bg {
    opacity: 0.28;
    background-size:
      145% 145%,
      auto 112%;
    background-position:
      center,
      50% 47%;
  }

  .cuadernos-page .site-meta {
    top: 1rem;
    right: 1rem;
  }

  .cuadernos-page .site-label {
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    line-height: 1.1;
  }

  .cuadernos-page .site-meta .hero-meta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 0.6rem;
    font-size: 0.72rem;
    line-height: 1.1;
    letter-spacing: 0.1em;
  }

  .cuadernos-hero__inner {
    padding-top: 6.4rem;
    padding-bottom: 3.6rem;
    gap: 2rem;
  }

  .cuadernos-guide {
    padding: 1.35rem 0 0.65rem;
  }

  .cuadernos-guide__head {
    margin-bottom: 0.9rem;
  }

  .cuadernos-guide__choices {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .cuadernos-guide__choice {
    min-height: 0;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.62rem;
    padding: 0.92rem 0.9rem;
    border-radius: 18px;
  }

  .cuadernos-guide__dots {
    right: 0.86rem;
    bottom: 0.74rem;
  }

  .cuadernos-guide__choiceText {
    gap: 0.26rem;
    padding-right: 1.4rem;
  }

  .cuadernos-guide__choiceTitle {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .cuadernos-guide__choiceSummary {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .cuadernos-guide-panel {
    scroll-margin-top: 4.8rem;
  }

  .cuadernos-definition {
    padding-top: 1.8rem;
  }
  .cuadernos-definition__layout--split {
    position: relative;
    transform: none;
    gap: 1.05rem;
    padding: 1.15rem;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(248, 242, 235, 0.78) 0%, rgba(232, 223, 212, 0.52) 100%),
      radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.028) 1px, transparent 1.2px);
    background-size:
      auto,
      10px 10px;
    border: 1px solid rgba(120, 92, 72, 0.12);
    box-shadow:
      0 16px 38px rgba(0, 0, 0, 0.06),
      0 1px 0 rgba(255, 255, 255, 0.32) inset;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }

  .cuadernos-definition__layout--split::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
  }

  .cuadernos-hero__title {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .cuadernos-hero__subtitle {
    letter-spacing: 0.14em;
  }

  .cuadernos-hero__text {
    max-width: 100%;
  }

  .cuadernos-hero__visual {
    width: var(--cuadernos-mobile-media-w);
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .cuadernos-hero__visualFrame {
    border-radius: var(--cuadernos-mobile-media-radius);
  }

  .cuadernos-definition__content,
  .cuadernos-definition__blocks {
    border-radius: 22px;
  }

  .cuadernos-definition__content {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cuadernos-definition__content::before {
    content: none;
  }

  .cuadernos-definition__blocks {
    padding: 1.2rem 1.1rem 1.2rem;
  }

  .cuadernos-definition__title {
    max-width: 100%;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .cuadernos-definition__visual {
    width: 100%;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    border-radius: var(--cuadernos-mobile-media-radius);
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cuadernos-definition__visual::before {
    content: none;
  }

  .cuaderno-card__media {
    width: var(--cuadernos-mobile-media-w);
    justify-self: center;
    border-radius: var(--cuadernos-mobile-media-radius);
  }

  .cuaderno-card__destino {
    max-width: 100%;
    font-size: 0.86rem;
    line-height: 1.65;
    letter-spacing: 0.08em;
  }

  .cuadernos-definition__visualMedia {
    border-radius: calc(var(--cuadernos-mobile-media-radius) - 4px);
  }

  .cuadernos-process__step,
  .cuadernos-process__phase {
    border-radius: 22px;
    padding: 0.95rem;
  }

  .cuadernos-includes__item {
    border-radius: 22px;
    padding: 1.2rem 1.1rem 1.2rem;
  }

  .cuadernos-bridge {
    padding: 0.2rem 0 1.8rem;
  }

  .cuadernos-editorial__content,
  .cuadernos-editorial__aside,
  .cuadernos-cta__box {
    border-radius: 22px;
  }

  .cuadernos-editorial__content {
    padding: 1.45rem 1.35rem 1.55rem;
  }

  .cuadernos-editorial__aside {
    padding: 1.35rem 1.25rem 1.35rem;
  }

  .cuadernos-cta__box {
    padding: 1.7rem 1.25rem;
  }

  .cuadernos-cta__actions {
    flex-direction: column;
  }

  .cuadernos-cta__link {
    width: 100%;
    min-width: 0;
  }
}

.cuadernos-hero__eyebrow,
.cuadernos-editorial__eyebrow,
.cuadernos-editorial__asideKicker,
.cuadernos-stat__label,
.cuadernos-includes__label,
.cuadernos-section-head__eyebrow,
.cuaderno-card__code,
.cuadernos-cta__eyebrow {
  color: var(--lxx-editorial-label-color);
}

/* ================================
   Portada índice / mini biblioteca
================================ */

.cuadernos-hero {
  min-height: 100svh;
  padding: 0;
}

.cuadernos-hero::before {
  content: none;
}

.cuadernos-hero__inner {
  width: min(1200px, 93vw);
  padding-top: 6.8rem;
  padding-bottom: 3.8rem;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.32fr);
  gap: clamp(2rem, 4vw, 4.2rem);
  align-items: center;
}

.cuadernos-hero__copy {
  max-width: 32rem;
}

.cuadernos-hero__title {
  font-size: clamp(3rem, 5.4vw, 4.9rem);
}

.cuadernos-hero__text {
  margin-top: 1.15rem;
  max-width: 31rem;
  font-size: clamp(0.98rem, 1.12vw, 1.06rem);
  line-height: 1.65;
}

.cuadernos-hero__actions {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.6rem;
}

.cuadernos-hero__primary {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.15rem;
  border: 1px solid rgba(180, 90, 63, 0.36);
  border-radius: 999px;
  background: rgba(180, 90, 63, 0.1);
  color: rgba(126, 56, 36, 0.94);
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.cuadernos-hero__primary:hover,
.cuadernos-hero__primary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(180, 90, 63, 0.58);
  background: rgba(180, 90, 63, 0.15);
}

.cuadernos-hero__primary:focus-visible,
.cuadernos-hero__indexLink:focus-visible,
.cuadernos-hero-card--link:focus-visible {
  outline: 2px solid rgba(180, 90, 63, 0.58);
  outline-offset: 4px;
}

.cuadernos-hero__index {
  display: grid;
  width: min(100%, 29rem);
  border-top: 1px solid rgba(120, 92, 72, 0.16);
}

.cuadernos-hero__indexLink {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  padding: 0.62rem 0;
  border: 0;
  border-bottom: 1px solid rgba(120, 92, 72, 0.13);
  background: transparent;
  color: rgba(0, 0, 0, 0.64);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-align: left;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.cuadernos-hero__indexLink::before {
  color: rgba(180, 90, 63, 0.82);
  font-family: var(--font-title);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.cuadernos-hero__indexLink:nth-child(1)::before {
  content: "01";
}

.cuadernos-hero__indexLink:nth-child(2)::before {
  content: "02";
}

.cuadernos-hero__indexLink:nth-child(3)::before {
  content: "03";
}

.cuadernos-hero__indexLink:hover,
.cuadernos-hero__indexLink:focus-visible,
.cuadernos-hero__indexLink.is-active {
  padding-left: 0.28rem;
  color: rgba(126, 56, 36, 0.96);
}

.cuadernos-hero__library {
  min-width: 0;
}

.cuadernos-hero__libraryLabel {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lxx-editorial-label-color);
}

.cuadernos-hero__libraryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.62rem, 1.25vw, 0.95rem);
}

.cuadernos-hero-card {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 0.55rem;
  border: 1px solid rgba(120, 92, 72, 0.13);
  border-radius: 18px;
  background: rgba(248, 242, 235, 0.5);
  box-shadow: 0 10px 24px rgba(70, 47, 33, 0.045);
  color: inherit;
  text-decoration: none;
}

.cuadernos-hero-card--link {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cuadernos-hero-card--link:hover,
.cuadernos-hero-card--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(180, 90, 63, 0.34);
  box-shadow: 0 14px 28px rgba(70, 47, 33, 0.08);
}

.cuadernos-hero-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.2);
}

.cuadernos-hero-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
}

.cuadernos-hero-card__meta {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.62rem;
}

.cuadernos-hero-card__ref,
.cuadernos-hero-card__status {
  font-family: var(--font-title);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cuadernos-hero-card__ref {
  color: rgba(0, 0, 0, 0.48);
}

.cuadernos-hero-card__status {
  color: rgba(180, 90, 63, 0.96);
  text-align: right;
}

.cuadernos-hero-card[data-library-state="en-preparacion"] .cuadernos-hero-card__status {
  color: rgba(122, 89, 68, 0.88);
}

.cuadernos-hero-card[data-library-state="proximamente"] .cuadernos-hero-card__status {
  color: rgba(0, 0, 0, 0.46);
}

.cuadernos-hero-card__title {
  margin-top: 0.38rem;
  color: rgba(0, 0, 0, 0.77);
  font-family: var(--font-title);
  font-size: clamp(0.74rem, 1.04vw, 0.91rem);
  font-weight: 300;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* =====================================================
   Portada jerárquica de biblioteca · agosto 2026
===================================================== */

body.cuadernos-page::before,
.cuadernos-hero::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.64), transparent 34%),
    linear-gradient(180deg, rgba(248, 242, 235, 0.82), rgba(248, 242, 235, 0.34));
}

.cuadernos-hero {
  min-height: auto;
  align-items: start;
}

.cuadernos-hero__inner {
  width: min(1180px, calc(100vw - 3rem));
  padding-top: clamp(7.4rem, 12vw, 9.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.3rem, 5vw, 4.5rem);
  align-items: start;
}

.cuadernos-hero__copy {
  max-width: 54rem;
}

.cuadernos-hero__title {
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.cuadernos-hero__text {
  max-width: 43rem;
  margin-top: 0.85rem;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}

.cuadernos-hero__library {
  min-width: 0;
}

.cuadernos-hero__libraryLabel {
  display: none;
}

.cuadernos-hero__libraryGrid {
  display: grid;
  gap: clamp(2rem, 3vw, 2.4rem);
  min-width: 0;
}

.cuadernos-featured__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  align-items: center;
}

.cuadernos-featured__media {
  min-width: 0;
}

.cuadernos-featured__mediaLink,
.cuadernos-card__mediaLink {
  display: block;
  color: inherit;
}

.cuadernos-featured__media picture,
.cuadernos-card__media picture {
  display: contents;
}

.cuadernos-featured__media .cuadernos-library-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 1px solid rgba(95, 85, 77, 0.12);
  background: rgba(214, 205, 193, 0.45);
  box-shadow: 0 20px 48px rgba(75, 52, 38, 0.1);
}

.cuadernos-featured__content {
  display: grid;
  align-content: center;
  min-width: 0;
}

.cuadernos-featured__eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-title);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--brand-copper), 0.92);
}

.cuadernos-featured__title,
.cuadernos-card__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(33, 26, 22, 0.9);
}

.cuadernos-featured__title {
  font-size: clamp(2.35rem, 4.8vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: 0.035em;
}

.cuadernos-featured__title a,
.cuadernos-card__title a {
  color: inherit;
  text-decoration: none;
}

.cuadernos-featured__title a:hover,
.cuadernos-featured__title a:focus-visible,
.cuadernos-card__title a:hover,
.cuadernos-card__title a:focus-visible {
  color: rgba(var(--brand-copper), 0.98);
}

.cuadernos-featured__title a:focus-visible,
.cuadernos-card__title a:focus-visible,
.cuadernos-featured__mediaLink:focus-visible,
.cuadernos-card__mediaLink:focus-visible {
  outline: 2px solid rgba(var(--brand-copper), 0.68);
  outline-offset: 5px;
}

.cuadernos-featured__description,
.cuadernos-card__description {
  font-family: var(--font-body);
  color: rgba(33, 26, 22, 0.68);
}

.cuadernos-featured__description {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.65;
}

.cuadernos-access {
  display: grid;
  gap: 0.5rem;
  margin: 1.45rem 0 0;
}

.cuadernos-access > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: baseline;
}

.cuadernos-access dt,
.cuadernos-access dd {
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cuadernos-access dt {
  color: rgba(33, 26, 22, 0.86);
}

.cuadernos-access dd {
  display: inline-flex;
  gap: 0.45rem;
  align-items: baseline;
  color: rgba(var(--brand-copper), 0.94);
}

.cuadernos-access__separator {
  color: rgba(var(--brand-copper), 0.94);
}

@media (min-width: 1280px) {
  body.cuadernos-page .cuadernos-featured__content .cuadernos-access__row--pro {
    width: max-content;
    grid-template-columns: max-content max-content;
  }

  body.cuadernos-page .cuadernos-featured__content .cuadernos-access__row--pro dd {
    white-space: nowrap;
  }
}

.cuadernos-featured__actions,
.cuadernos-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.55rem;
}

.cuadernos-library-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(var(--brand-copper), 0.38);
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cuadernos-library-cta--primary {
  background: rgba(var(--brand-copper), 0.92);
  color: rgb(255, 251, 247);
}

.cuadernos-library-cta--secondary {
  background: rgba(255, 255, 255, 0.22);
  color: rgba(33, 26, 22, 0.78);
}

.cuadernos-library-cta:hover,
.cuadernos-library-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-copper), 0.72);
}

.cuadernos-library-cta:focus-visible,
.cuadernos-guide-link:focus-visible {
  outline: 2px solid rgba(var(--brand-copper), 0.68);
  outline-offset: 3px;
}

.cuadernos-others__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.2rem;
}

.cuadernos-others__head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(33, 26, 22, 0.78);
}

.cuadernos-others__hint {
  display: none;
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(var(--brand-copper), 0.84);
}

.cuadernos-others__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.2rem);
}

.cuadernos-others__track:focus-visible {
  outline: 1px solid rgba(var(--brand-copper), 0.48);
  outline-offset: 8px;
}

.cuadernos-card {
  --cuadernos-card-title-size: clamp(1.45rem, 2.8vw, 2.3rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(95, 85, 77, 0.16);
  padding-top: 0.8rem;
}

.cuadernos-card__media {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(214, 205, 193, 0.48);
}

.cuadernos-card__media .cuadernos-library-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cuadernos-card[data-notebook-slug="andalucia"] .cuadernos-library-image {
  object-position: center bottom;
}

.cuadernos-card__mediaLink:hover .cuadernos-library-image,
.cuadernos-card__mediaLink:focus-visible .cuadernos-library-image {
  transform: scale(1.015);
}

.cuadernos-card[data-library-state="proximamente"] .cuadernos-library-image,
.cuadernos-card[data-library-state="en-preparacion"] .cuadernos-library-image {
  filter: saturate(0.68) contrast(0.94);
}

.cuadernos-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 0.15rem 0;
}

.cuadernos-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--brand-copper), 0.9);
}

.cuadernos-card__title {
  margin-top: 0.68rem;
  font-size: var(--cuadernos-card-title-size);
  line-height: 1.03;
  letter-spacing: 0.04em;
}

.cuadernos-card__description {
  margin: 0.8rem 0 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.cuadernos-card .cuadernos-access {
  margin-top: 1rem;
}

.cuadernos-card__actions {
  margin-top: auto;
  padding-top: 1.25rem;
}

.cuadernos-card__actions .cuadernos-library-cta {
  flex: 1 1 11rem;
}

.cuadernos-hero__libraryPagination {
  display: none;
}

.cuadernos-hero__actions--secondary {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(95, 85, 77, 0.14);
}

.cuadernos-guide-link {
  min-height: 44px;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid rgba(var(--brand-copper), 0.34);
  background: transparent;
  font-family: var(--font-title);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: rgba(33, 26, 22, 0.72);
  text-transform: uppercase;
  cursor: pointer;
}

.cuadernos-guide-link:hover,
.cuadernos-guide-link.is-active {
  color: rgba(var(--brand-copper), 0.98);
}

.cuadernos-library-skeleton {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(205, 194, 182, 0.32) 25%, rgba(255, 255, 255, 0.56) 43%, rgba(205, 194, 182, 0.32) 62%);
  background-size: 240% 100%;
  animation: cuadernos-skeleton-shimmer 1.3s ease-in-out infinite;
}

.cuadernos-library-skeleton--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: clamp(2rem, 5vw, 4.8rem);
  background: none;
  animation: none;
}

.cuadernos-library-skeleton__media {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: rgba(205, 194, 182, 0.38);
}

.cuadernos-library-skeleton__copy {
  align-self: center;
  height: 48%;
  border-radius: 12px;
  background: rgba(205, 194, 182, 0.3);
}

.cuadernos-library-skeleton__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.2rem);
}

.cuadernos-library-skeleton--card {
  aspect-ratio: 4 / 3;
}

@keyframes cuadernos-skeleton-shimmer {
  to { background-position: -120% 0; }
}

body.cuadernos-page #como-funcionan-cuadernos {
  width: min(1120px, calc(100vw - 2rem));
  max-width: 1120px;
  height: min(92dvh, 900px);
  max-height: 92dvh;
  overflow-y: auto;
}

body.cuadernos-page #como-funcionan-cuadernos > .container {
  display: grid;
  gap: clamp(2.4rem, 5vw, 4.5rem);
}

.cuadernos-guide-panel__process,
.cuadernos-guide-panel__versions {
  padding-top: clamp(2rem, 4vw, 3.4rem);
  border-top: 1px solid rgba(95, 85, 77, 0.14);
}

.cuadernos-guide-panel__sample {
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(var(--brand-copper), 0.42);
  font-family: var(--font-body);
  line-height: 1.6;
  color: rgba(33, 26, 22, 0.7);
}

@media (max-width: 760px) {
  .cuadernos-hero__inner {
    width: 100%;
    padding-top: 6.7rem;
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
    gap: 2.35rem;
  }

  .cuadernos-hero__copy,
  .cuadernos-hero__actions--secondary,
  .cuadernos-others__head {
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .cuadernos-hero__title {
    max-width: 9ch;
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .cuadernos-featured__layout,
  .cuadernos-library-skeleton--featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .cuadernos-featured__media .cuadernos-library-image,
  .cuadernos-library-skeleton__media {
    border-radius: 0;
    border-inline: 0;
    aspect-ratio: 4 / 3;
  }

  .cuadernos-featured__content {
    padding-inline: 1rem;
  }

  .cuadernos-featured__title {
    font-size: clamp(2.55rem, 12vw, 3.6rem);
  }

  .cuadernos-featured__description {
    font-size: 1rem;
  }

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

  .cuadernos-library-cta {
    min-height: 48px;
    padding-inline: 0.8rem;
  }

  .cuadernos-others__head {
    align-items: end;
  }

  .cuadernos-others__hint {
    display: block;
    max-width: 9rem;
    text-align: right;
  }

  .cuadernos-others__track,
  .cuadernos-library-skeleton__row {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    overscroll-behavior-inline: contain;
    padding: 0.15rem 1rem 1.2rem;
    scrollbar-width: thin;
  }

  .cuadernos-card,
  .cuadernos-library-skeleton--card {
    flex: 0 0 min(82vw, 355px);
    scroll-snap-align: start;
  }

  .cuadernos-card__media {
    border-radius: 8px;
  }

  .cuadernos-card__title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

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

  .cuadernos-card__actions .cuadernos-library-cta {
    min-width: 0;
  }

  .cuadernos-hero__libraryPagination {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
  }

  .cuadernos-hero__libraryDot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(var(--brand-copper), 0.4);
    border-radius: 50%;
    background: transparent;
  }

  .cuadernos-hero__libraryDot.is-active {
    background: rgba(var(--brand-copper), 0.78);
  }

  body.cuadernos-page #como-funcionan-cuadernos {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
  }

  body.cuadernos-page #como-funcionan-cuadernos > .container {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  body.cuadernos-page #como-funcionan-cuadernos .cuadernos-process__phase {
    padding-left: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cuadernos-library-skeleton,
  .cuadernos-card__media .cuadernos-library-image,
  .cuadernos-library-cta {
    animation: none;
    transition: none;
  }
}

.cuadernos-hero-card__access {
  display: block;
  margin-top: 0.48rem;
  color: rgba(137, 59, 36, 0.92);
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 0.76vw, 0.66rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cuadernos-hero-card__cta {
  display: block;
  width: fit-content;
  margin-top: 0.52rem;
  color: rgba(0, 0, 0, 0.62);
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 0.78vw, 0.68rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cuadernos-hero-card--link:hover .cuadernos-hero-card__cta,
.cuadernos-hero-card--link:focus-visible .cuadernos-hero-card__cta {
  color: rgba(var(--brand-copper), 0.98);
}

.cuadernos-panel-back {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin: 2rem auto 0;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid rgba(180, 90, 63, 0.25);
  background: transparent;
  color: rgba(126, 56, 36, 0.9);
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.cuadernos-panel-back:hover,
.cuadernos-panel-back:focus-visible {
  border-color: rgba(180, 90, 63, 0.58);
  color: rgba(126, 56, 36, 1);
}

.cuadernos-panel-back:focus-visible {
  outline: 2px solid rgba(180, 90, 63, 0.58);
  outline-offset: 4px;
}

.cuadernos-dialog-open {
  overflow: hidden;
}

.cuadernos-panel-dialog {
  position: fixed;
  inset: 1rem;
  width: min(1160px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(249, 244, 238, 0.98) 0%, rgba(239, 229, 218, 0.98) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.025) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
  box-shadow: 0 28px 80px rgba(52, 34, 24, 0.22);
  color: var(--color-text);
  scrollbar-gutter: stable;
}

/* Cierre LXX: réplica del control de cierre usado en los demás diálogos. */
.cuadernos-panel-close {
  position: sticky;
  top: 16px;
  z-index: 30;

  display: inline-flex;
  float: right;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 16px 18px -60px 0;
  padding: 0.55rem 0.9rem;

  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);

  font-size: 22px;
  line-height: 1;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cuadernos-panel-close:hover {
  transform: translateY(-1px);
  border-color: rgba(180, 90, 63, 0.28);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.cuadernos-panel-close:focus-visible {
  outline: 2px solid rgba(180, 90, 63, 0.55);
  outline-offset: 4px;
}

.cuadernos-panel-dialog:not([open]) {
  display: none;
}

.cuadernos-panel-dialog:focus {
  outline: none;
}

.cuadernos-panel-dialog::backdrop {
  background: rgba(76, 57, 44, 0.28);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cuadernos-panel-dialog > .container {
  width: 100%;
  max-width: 1120px;
  padding: clamp(1.35rem, 3vw, 2.4rem);
}

.cuadernos-panel-dialog.cuadernos-definition,
.cuadernos-panel-dialog.cuadernos-process,
.cuadernos-panel-dialog.cuadernos-includes,
.cuadernos-panel-dialog.cuadernos-library {
  padding: 0;
}

.cuadernos-panel-dialog .cuadernos-definition__layout--split {
  transform: none;
}

.cuaderno-card[data-library-state="en-preparacion"] .cuaderno-card__status {
  border-color: rgba(122, 89, 68, 0.22);
  background: rgba(122, 89, 68, 0.07);
  color: rgba(105, 75, 57, 0.88);
}

.cuaderno-card[data-library-state="proximamente"] .cuaderno-card__status {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(0, 0, 0, 0.48);
}

@media (max-width: 980px) {
  .cuadernos-hero {
    min-height: auto;
  }

  .cuadernos-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 6.5rem;
    padding-bottom: 3.2rem;
  }

  .cuadernos-hero__copy {
    max-width: 42rem;
  }

  .cuadernos-hero__index {
    width: min(100%, 36rem);
  }
}

@media (max-width: 768px) {
  .cuadernos-hero__inner {
    width: min(100% - 2rem, 620px);
    gap: 1.55rem;
    padding-top: 5.8rem;
    padding-bottom: 2.7rem;
  }

  .cuadernos-hero__title {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
    line-height: 0.98;
  }

  .cuadernos-hero__text {
    margin-top: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.56;
  }

  .cuadernos-hero__actions {
    gap: 0.9rem;
    margin-top: 1.15rem;
  }

  .cuadernos-hero__primary {
    width: 100%;
  }

  .cuadernos-hero__indexLink {
    min-height: 40px;
    padding: 0.52rem 0;
    font-size: 0.84rem;
  }

  .cuadernos-hero__libraryLabel {
    margin-bottom: 0.6rem;
  }

  .cuadernos-hero__libraryGrid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 47vw);
    gap: 0.72rem;
    margin-right: -1rem;
    padding: 0 1rem 0.55rem 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .cuadernos-hero-card {
    scroll-snap-align: start;
  }

  .cuadernos-hero-card__title {
    font-size: 0.72rem;
  }

  .cuadernos-hero-card__access,
  .cuadernos-hero-card__cta {
    font-size: 0.58rem;
  }

  .cuadernos-hero-card__ref,
  .cuadernos-hero-card__status {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .cuadernos-panel-dialog {
    inset: 0.5rem;
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 20px;
  }

  .cuadernos-panel-dialog > .container {
    padding: 1.15rem;
  }

  .cuadernos-panel-dialog .cuadernos-library__list {
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cuadernos-hero__primary,
  .cuadernos-hero__indexLink,
  .cuadernos-hero-card--link {
    scroll-behavior: auto;
    transition: none;
  }
}

/* ================================
   ARCHIVO DE VIAJES · SISTEMA EDITORIAL SIN CÁPSULAS
================================ */

body.cuadernos-page .cuadernos-hero {
  min-height: 100svh;
}

body.cuadernos-page .cuadernos-hero__inner {
  width: min(1480px, calc(100vw - 3rem));
  grid-template-columns: minmax(360px, 0.72fr) minmax(650px, 1.28fr);
  gap: clamp(3rem, 5vw, 5.2rem);
  padding-top: clamp(7rem, 10vh, 8.6rem);
  padding-bottom: clamp(3.8rem, 7vh, 5.8rem);
}

body.cuadernos-page .cuadernos-hero__copy {
  max-width: 34rem;
  padding-left: clamp(1.25rem, 2vw, 1.8rem);
  border-left: 1px solid rgba(180, 90, 63, 0.34);
}

body.cuadernos-page .cuadernos-hero__eyebrow {
  margin-bottom: 1.15rem;
}

body.cuadernos-page .cuadernos-hero__title {
  font-size: var(--lxx-editorial-section-title-size);
  line-height: var(--lxx-editorial-title-line-height);
}

body.cuadernos-page .cuadernos-hero__text {
  max-width: 29rem;
  margin-top: 1.35rem;
  font-size: var(--lxx-editorial-section-copy-size);
  line-height: var(--lxx-editorial-copy-line-height);
}

body.cuadernos-page .cuadernos-hero__actions {
  margin-top: 1.8rem;
}

body.cuadernos-page .cuadernos-hero__index {
  width: min(100%, 27rem);
  gap: 0.18rem;
  border-top: 0;
}

body.cuadernos-page .cuadernos-hero__indexLink {
  grid-template-columns: 2.4rem minmax(0, 1fr);
  padding: 0.62rem 0;
  border-bottom: 0;
}

body.cuadernos-page .cuadernos-hero__indexLink:hover,
body.cuadernos-page .cuadernos-hero__indexLink:focus-visible,
body.cuadernos-page .cuadernos-hero__indexLink.is-active {
  padding-left: 0.38rem;
}

body.cuadernos-page .cuadernos-hero__library {
  align-self: center;
}

body.cuadernos-page .cuadernos-hero__libraryLabel {
  margin: 0 0 1.1rem 0.9rem;
}

body.cuadernos-page .cuadernos-hero__libraryGrid {
  gap: clamp(1.1rem, 1.8vw, 1.7rem);
}

body.cuadernos-page .cuadernos-hero__libraryPagination {
  display: none;
}

body.cuadernos-page .cuadernos-hero__libraryPagination[hidden] {
  display: none !important;
}

body.cuadernos-page .cuadernos-hero-card {
  padding: 0 0 0.6rem 0.9rem;
  border: 0;
  border-left: 1px solid rgba(180, 90, 63, 0.28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cuadernos-page .cuadernos-hero-card--link {
  transition: border-color 0.2s ease;
}

body.cuadernos-page .cuadernos-hero-card--link:hover,
body.cuadernos-page .cuadernos-hero-card--link:focus-visible {
  transform: none;
  border-color: rgba(180, 90, 63, 0.68);
  box-shadow: none;
}

body.cuadernos-page .cuadernos-hero-card__media {
  border-radius: 3px;
  background: transparent;
}

body.cuadernos-page .cuadernos-hero-card__image {
  transition: filter 0.22s ease;
}

body.cuadernos-page .cuadernos-hero-card--link:hover .cuadernos-hero-card__image,
body.cuadernos-page .cuadernos-hero-card--link:focus-visible .cuadernos-hero-card__image {
  filter: saturate(1) contrast(1);
}

body.cuadernos-page .cuadernos-hero-card__meta {
  margin-top: 0.72rem;
}

body.cuadernos-page .cuadernos-hero-card__title {
  margin-top: 0.45rem;
}

/* El diálogo conserva una superficie opaca para la lectura, pero deja de ser una tarjeta. */
body.cuadernos-page .cuadernos-panel-dialog {
  inset: 1rem;
  width: min(1480px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  border-radius: 3px;
  background: rgba(246, 240, 233, 0.985);
  box-shadow: 0 24px 70px rgba(52, 34, 24, 0.2);
}

body.cuadernos-page .cuadernos-panel-dialog::backdrop {
  background: rgba(76, 57, 44, 0.34);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.cuadernos-page .cuadernos-panel-dialog > .container {
  max-width: none;
  padding: clamp(2.4rem, 4.6vw, 4.8rem);
}

body.cuadernos-page .cuadernos-definition__layout--split {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: clamp(2.8rem, 5vw, 5.4rem);
  align-items: center;
}

body.cuadernos-page .cuadernos-definition__layout--split::before,
body.cuadernos-page .cuadernos-definition__content::before,
body.cuadernos-page .cuadernos-definition__blocks::before,
body.cuadernos-page .cuadernos-process__step::before,
body.cuadernos-page .cuadernos-process__phase::before,
body.cuadernos-page .cuadernos-includes__item::before {
  content: none;
}

body.cuadernos-page .cuadernos-definition__content,
body.cuadernos-page .cuadernos-definition__blocks,
body.cuadernos-page .cuadernos-process__step,
body.cuadernos-page .cuadernos-process__phase,
body.cuadernos-page .cuadernos-includes__item {
  border: 0;
  border-left: 1px solid rgba(180, 90, 63, 0.32);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cuadernos-page .cuadernos-panel-dialog::backdrop {
  background: rgba(235, 228, 220, 0.26);
  backdrop-filter: blur(5px) saturate(0.55);
  -webkit-backdrop-filter: blur(5px) saturate(0.55);
}

/* Al abrir una guia queda el plano cartografico, no las tarjetas bajo el texto. */
body.cuadernos-page:has(.cuadernos-panel-dialog[open])
  :is(.cuadernos-hero, .site-footer) {
  visibility: hidden;
}

body.cuadernos-page .cuadernos-definition__content {
  align-self: center;
  padding: 0.4rem 0 0.4rem clamp(1.35rem, 2.3vw, 2.2rem);
}

body.cuadernos-page .cuadernos-definition__visual {
  width: min(100%, 500px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cuadernos-page .cuadernos-definition__visual::before {
  content: none;
}

body.cuadernos-page .cuadernos-definition__visualMedia {
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
}

body.cuadernos-page .cuadernos-section-head {
  max-width: 58rem;
  margin-bottom: clamp(1.8rem, 3vw, 2.7rem);
  padding-left: clamp(1.25rem, 2vw, 1.8rem);
  border-left: 1px solid rgba(180, 90, 63, 0.34);
}

body.cuadernos-page .cuadernos-process__grid--phases {
  gap: clamp(1.7rem, 2.8vw, 2.8rem);
}

body.cuadernos-page .cuadernos-process__phase {
  padding: 0 0 0.35rem clamp(0.9rem, 1.5vw, 1.3rem);
}

body.cuadernos-page .cuadernos-process__phaseVisual {
  border: 0;
  border-radius: 3px;
  background: transparent;
}

body.cuadernos-page .cuadernos-process__phaseBody {
  padding: 1.15rem 0 0;
}

body.cuadernos-page .cuadernos-includes__grid {
  gap: clamp(2.2rem, 4vw, 4.5rem);
}

body.cuadernos-page .cuadernos-includes__item,
body.cuadernos-page .cuadernos-includes__item:nth-child(2) {
  padding: 0.25rem 0 0.4rem clamp(1.25rem, 2vw, 1.8rem);
}

body.cuadernos-page .cuadernos-includes__printBadge {
  margin-top: 1.2rem;
  padding: 0.78rem 0 0;
  border: 0;
  border-top: 1px solid rgba(180, 90, 63, 0.28);
  border-radius: 0;
  background: transparent;
}

body.cuadernos-page .cuadernos-panel-back {
  margin-top: clamp(2rem, 3.5vw, 3.2rem);
}

@media (max-width: 1100px) {
  body.cuadernos-page .cuadernos-hero__inner {
    grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
    gap: 2.5rem;
  }
}

@media (max-width: 980px) {
  body.cuadernos-page .cuadernos-hero {
    min-height: auto;
  }

  body.cuadernos-page .cuadernos-hero__inner {
    width: min(100% - 3rem, 760px);
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  body.cuadernos-page .cuadernos-hero__copy {
    max-width: 39rem;
  }

  body.cuadernos-page .cuadernos-definition__layout--split,
  body.cuadernos-page .cuadernos-process__grid--phases,
  body.cuadernos-page .cuadernos-includes__grid {
    grid-template-columns: 1fr;
  }

  body.cuadernos-page .cuadernos-definition__visual {
    order: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.cuadernos-page .cuadernos-hero__inner {
    width: min(100% - 2rem, 620px);
    gap: 1.45rem;
    padding-top: 5.6rem;
    padding-bottom: 1.6rem;
  }

  body.cuadernos-page .cuadernos-hero__copy {
    padding-left: 1rem;
  }

  body.cuadernos-page .cuadernos-hero__title {
    font-size: var(--lxx-editorial-section-title-size);
  }

  body.cuadernos-page .cuadernos-hero__eyebrow {
    margin-bottom: 0.75rem;
  }

  body.cuadernos-page .cuadernos-hero__actions {
    margin-top: 0.85rem;
  }

  body.cuadernos-page .cuadernos-hero__libraryLabel {
    margin-left: 0.7rem;
  }

  body.cuadernos-page .cuadernos-hero__libraryGrid {
    grid-auto-columns: minmax(156px, 58vw);
    gap: 1rem;
    scrollbar-width: none;
  }

  body.cuadernos-page .cuadernos-hero__libraryGrid::-webkit-scrollbar {
    display: none;
  }

  body.cuadernos-page .cuadernos-hero-card {
    padding: 0.65rem 0.65rem 0.75rem;
    border: 1px solid var(--cuadernos-lxx-surface-border);
    border-radius: var(--cuadernos-lxx-surface-radius);
    background: var(--cuadernos-lxx-surface-background);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cuadernos-page .cuadernos-hero-card__media {
    border-radius: 13px;
  }

  body.cuadernos-page .cuadernos-hero-card__title {
    font-size: 0.9rem;
    line-height: 1.28;
  }

  body.cuadernos-page .cuadernos-hero-card__ref,
  body.cuadernos-page .cuadernos-hero-card__status {
    font-size: 0.61rem;
  }

  body.cuadernos-page .cuadernos-hero__libraryPagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 1.25rem;
    margin: 0.85rem 0.75rem 0;
  }

  body.cuadernos-page .cuadernos-hero__libraryDot {
    width: 0.42rem;
    height: 0.42rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(180, 90, 63, 0.28);
    box-shadow: none;
    transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
  }

  body.cuadernos-page .cuadernos-hero__libraryDot.is-active {
    width: 1.15rem;
    border-radius: 999px;
    background: rgba(180, 90, 63, 0.72);
  }

  body.cuadernos-page .cuadernos-hero__libraryDot:focus-visible {
    outline: 1px solid rgba(180, 90, 63, 0.72);
    outline-offset: 4px;
  }

  body.cuadernos-page .cuadernos-hero__index {
    width: 100%;
    gap: 0.4rem;
  }

  body.cuadernos-page .cuadernos-hero__indexLink {
    min-height: 2.85rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--cuadernos-lxx-surface-border);
    border-radius: var(--cuadernos-lxx-surface-radius);
    background: var(--cuadernos-lxx-surface-background);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cuadernos-page .cuadernos-hero__indexLink:hover,
  body.cuadernos-page .cuadernos-hero__indexLink:focus-visible,
  body.cuadernos-page .cuadernos-hero__indexLink.is-active {
    padding: 0.55rem 0.8rem;
    border-color: rgba(180, 90, 63, 0.34);
  }

  body.cuadernos-page .site-footer {
    margin-top: 1.4rem;
  }

  body.cuadernos-page .footer-inner {
    width: calc(100vw - 2rem);
    align-items: center;
    gap: 0.7rem;
    padding-block: 1.25rem 1.6rem;
    text-align: center;
  }

  body.cuadernos-page .site-footer .legal-links {
    justify-content: center;
  }

  body.cuadernos-page .cuadernos-panel-dialog {
    inset: 0;
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }

  body.cuadernos-page .cuadernos-panel-dialog > .container {
    padding: 1.5rem 1.15rem 2rem;
  }

  body.cuadernos-page .cuadernos-definition__layout--split {
    gap: 1.8rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cuadernos-page .cuadernos-definition__content {
    padding: 0 0 0 1rem;
  }

  body.cuadernos-page .cuadernos-definition__visualMedia {
    border-radius: 3px;
  }

  body.cuadernos-page .cuadernos-section-head {
    padding-left: 1rem;
  }

  body.cuadernos-page .cuadernos-process__grid--phases,
  body.cuadernos-page .cuadernos-includes__grid {
    gap: 2rem;
  }

  body.cuadernos-page .cuadernos-process__phase,
  body.cuadernos-page .cuadernos-includes__item,
  body.cuadernos-page .cuadernos-includes__item:nth-child(2) {
    padding-left: 1rem;
  }
}

/* Ventanas del Archivo: superficie LXX translúcida y lectura completa en escritorio. */
body.cuadernos-page .cuadernos-panel-dialog {
  overflow: hidden;
  border: 1px solid rgba(95, 85, 77, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(52, 34, 24, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.cuadernos-page .cuadernos-panel-dialog::backdrop {
  background: rgba(76, 57, 44, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.cuadernos-page .cuadernos-panel-dialog > .container {
  padding: clamp(1.4rem, 3.4vh, 2.5rem) clamp(1.5rem, 4vw, 4rem);
}

body.cuadernos-page .cuadernos-definition__visualMedia {
  height: min(61dvh, 540px);
  aspect-ratio: auto;
}

body.cuadernos-page .cuadernos-panel-dialog .cuadernos-section-head {
  margin-bottom: clamp(1.2rem, 2.2vh, 1.8rem);
}

body.cuadernos-page .cuadernos-panel-dialog .cuadernos-process__phaseVisual {
  max-height: min(21dvh, 180px);
}

body.cuadernos-page .cuadernos-panel-dialog .cuadernos-panel-back {
  margin-top: clamp(1rem, 2.2vh, 1.6rem);
}

@media (min-width: 769px) and (max-height: 700px) {
  body.cuadernos-page .cuadernos-panel-dialog {
    overflow-y: auto;
  }

  body.cuadernos-page .cuadernos-definition__visualMedia {
    height: min(50dvh, 390px);
  }

  body.cuadernos-page .cuadernos-panel-dialog .cuadernos-process__phaseVisual {
    max-height: 120px;
  }

  body.cuadernos-page .cuadernos-panel-dialog .cuadernos-process__stepText {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

@media (max-width: 768px) {
  body.cuadernos-page .cuadernos-panel-dialog {
    overflow-y: auto;
    border-radius: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.cuadernos-page .cuadernos-definition__visualMedia {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

/* Final cascade for the data-driven notebook library. */
body.cuadernos-page .cuadernos-hero {
  min-height: auto;
  align-items: start;
}

body.cuadernos-page .cuadernos-hero__inner {
  width: min(1180px, calc(100vw - 3rem));
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.3rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: clamp(7.4rem, 12vw, 9.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

body.cuadernos-page .cuadernos-hero__copy {
  max-width: 54rem;
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

body.cuadernos-page .cuadernos-hero__library {
  width: 100%;
  min-width: 0;
  align-self: start;
}

body.cuadernos-page .cuadernos-hero__libraryGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: clamp(3.3rem, 7vw, 6.5rem);
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

body.cuadernos-page .cuadernos-featured,
body.cuadernos-page .cuadernos-others {
  width: 100%;
  min-width: 0;
}

body.cuadernos-page .cuadernos-featured__layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  grid-template-areas:
    "intro intro"
    "media content";
  grid-template-rows: auto auto;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: clamp(1.15rem, 2vw, 1.65rem);
  align-items: start;
}

body.cuadernos-page .cuadernos-featured__intro {
  grid-area: intro;
  align-self: start;
  min-width: 0;
}

body.cuadernos-page .cuadernos-featured__media {
  grid-area: media;
  align-self: center;
}

body.cuadernos-page .cuadernos-featured__content {
  grid-area: content;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

body.cuadernos-page .cuadernos-featured__title {
  font-size: clamp(2.35rem, 4.3vw, 3.8rem);
}

body.cuadernos-page .cuadernos-featured__media .cuadernos-library-image,
body.cuadernos-page .cuadernos-card__media .cuadernos-library-image {
  height: auto;
}

body.cuadernos-page .cuadernos-featured__media .cuadernos-library-image {
  aspect-ratio: 16 / 9;
}

body.cuadernos-page .cuadernos-others__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow: visible;
  scroll-snap-type: none;
}

@media (max-width: 900px) {
  body.cuadernos-page .cuadernos-hero__inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding-top: 6.7rem;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  }

  body.cuadernos-page .cuadernos-hero__copy,
  body.cuadernos-page .cuadernos-hero__actions--secondary,
  body.cuadernos-page .cuadernos-others__head {
    margin-right: 1rem;
    margin-left: 1rem;
  }

  body.cuadernos-page .cuadernos-hero__copy {
    padding-left: 1.25rem;
  }

  body.cuadernos-page .cuadernos-hero__libraryGrid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  body.cuadernos-page .cuadernos-featured__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "media"
      "content";
    grid-template-rows: auto;
    gap: 1.5rem;
  }

  body.cuadernos-page .cuadernos-featured__intro {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  body.cuadernos-page .cuadernos-featured__media .cuadernos-library-image {
    aspect-ratio: 4 / 3;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body.cuadernos-page .cuadernos-featured__content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  body.cuadernos-page .cuadernos-others__track {
    display: flex;
    gap: 0.9rem;
    padding: 0.15rem 1rem 1.2rem;
    overflow-x: auto;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body.cuadernos-page .cuadernos-others__track::-webkit-scrollbar {
    display: none;
  }

  body.cuadernos-page .cuadernos-card {
    --cuadernos-card-title-size: 1.75rem;
    flex: 0 0 min(72vw, 300px);
    scroll-snap-align: start;
  }

  body.cuadernos-page .cuadernos-hero__actions--secondary {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  body.cuadernos-page #como-funcionan-cuadernos
    .cuadernos-guide-panel__process .cuadernos-process__phaseVisual {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  body.cuadernos-page #como-funcionan-cuadernos
    .cuadernos-guide-panel__process .cuadernos-process__diagram {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Desktop LXX: la portada destacada se integra como lámina, no como tarjeta. */
@media (min-width: 901px) {
  body.cuadernos-page .cuadernos-featured__media {
    position: relative;
    padding: 0.45rem 0 0.45rem 0.7rem;
    border-left: 1px solid rgba(var(--brand-copper), 0.42);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 72%);
  }

  body.cuadernos-page .cuadernos-featured__media .cuadernos-library-image {
    border: 0;
    border-radius: 2px;
    box-shadow: none;
  }
}

/* La entrada completa debe caber en escritorios panorámicos de poca altura. */
@media (min-width: 901px) and (max-height: 900px) {
  body.cuadernos-page .cuadernos-hero__inner {
    gap: clamp(1.5rem, 4vh, 2rem);
    padding-top: clamp(4.5rem, 10vh, 5.25rem);
    padding-bottom: 2rem;
  }

  body.cuadernos-page .cuadernos-hero__title {
    font-size: clamp(3.25rem, 5vw, 4.6rem);
  }

  body.cuadernos-page .cuadernos-featured__layout {
    row-gap: 0.7rem;
  }

  body.cuadernos-page .cuadernos-featured__eyebrow {
    margin-bottom: 0.55rem;
  }

  body.cuadernos-page .cuadernos-featured__title {
    font-size: clamp(2.65rem, 4vw, 3.35rem);
  }

  body.cuadernos-page .cuadernos-featured__media .cuadernos-library-image {
    width: 100%;
    height: clamp(220px, 42vh, 292px);
    aspect-ratio: auto;
    object-fit: cover;
  }
}

@media (min-width: 901px) {
  body.cuadernos-page .cuadernos-hero__libraryGrid {
    gap: 2rem;
  }
}

/* Sistema LXX comun: las tres guias del Archivo usan la misma superficie. */
body.cuadernos-page {
  --cuadernos-lxx-surface-background: rgba(255, 255, 255, 0.18);
  --cuadernos-lxx-surface-border: rgba(95, 85, 77, 0.1);
  --cuadernos-lxx-surface-radius: 16px;
}

body.cuadernos-page .cuadernos-panel-dialog {
  border: 1px solid var(--cuadernos-lxx-surface-border);
  border-radius: var(--cuadernos-lxx-surface-radius);
  background: var(--cuadernos-lxx-surface-background);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 768px) {
  body.cuadernos-page .cuadernos-panel-dialog {
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cuadernos-page #proceso-cuaderno .cuadernos-process__phase {
    padding-left: 0;
    border-left: 0;
  }

  body.cuadernos-page #proceso-cuaderno .cuadernos-process__phaseVisual {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  body.cuadernos-page #proceso-cuaderno .cuadernos-process__diagram {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  body.cuadernos-page #proceso-cuaderno .cuadernos-process__phaseBody {
    margin-top: 1rem;
    padding: 0 0 0 1rem;
    border-left: 1px solid rgba(var(--brand-copper), 0.34);
  }
}
