/* =====================================================
   LXX — CUADERNO INDIVIDUAL
   /cuadernos/peperoncino
===================================================== */

html {
  background:
    linear-gradient(
      180deg,
      rgb(239, 231, 221) 0%,
      rgb(230, 218, 205) 100%
    );
  background-attachment: fixed;
}

.cuaderno-page {
  --leo-map-url: url("../img/imola-leonardo.jpg");
  --lxx-edition-capsule-radius: 999px;
  min-height: 100vh;
  min-height: 100svh;
  background: transparent;
}

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

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

.cuaderno-page .edition-switcher {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.22rem 0.55rem;
  width: fit-content;
  max-width: min(42rem, calc(100vw - 14rem));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  line-height: 1.35;
  pointer-events: auto;
  user-select: text;
  text-shadow: 0 1px 0 rgba(250, 246, 241, 0.68);
}

.edition-switcher__current {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.edition-switcher__edition {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.68);
}

.edition-switcher__separator {
  color: rgba(var(--brand-copper), 0.78);
}

.edition-switcher__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 2px 3px;
  color: rgba(0, 0, 0, 0.64);
  text-decoration: none;
  transition:
    transform 0.25s ease-out,
    color 0.25s ease-out,
    letter-spacing 0.25s ease-out,
    text-shadow 0.25s ease-out;
}

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

.edition-switcher__link:hover,
.edition-switcher__link:focus-visible {
  transform: translateY(-1px);
  color: rgba(var(--brand-copper), 0.96);
  letter-spacing: 0.14em;
  text-shadow:
    0 0 10px rgba(var(--beam-rgb), 0.18),
    0 0 24px rgba(var(--beam-rgb), 0.1);
}

.edition-switcher__link:hover::after,
.edition-switcher__link:focus-visible::after {
  width: 110%;
  opacity: 1;
  background: linear-gradient(
    to right,
    rgba(var(--brand-copper), 0) 0%,
    rgba(var(--brand-copper), 0.85) 50%,
    rgba(var(--brand-copper), 0) 100%
  );
}

.edition-switcher__link:focus-visible {
  outline: 1px solid rgba(var(--brand-copper), 0.48);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .edition-switcher__link,
  .edition-switcher__link::after {
    transition: none;
  }
}

.cuaderno-page .site-footer {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cuaderno-page .site-bg {
  opacity: 0.18;
  background-size:
    140% 140%,
    132% auto;
  background-position:
    center,
    50% 46%;
}

.cuaderno-shell {
  position: relative;
  z-index: 1;
}

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

.cuaderno-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgba(255, 255, 255, 0.68) 0%,
      rgba(255, 255, 255, 0.32) 28%,
      rgba(255, 255, 255, 0.1) 52%,
      rgba(255, 255, 255, 0) 76%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.04) 40%,
      rgba(255, 255, 255, 0) 100%
    );
}

.cuaderno-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  padding-top: 7.5rem;
  padding-bottom: 4rem;
}

.cuaderno-hero__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  gap: clamp(3.5rem, 4vw, 4.5rem);
  align-items: start;
}

.cuaderno-hero__content {
  min-width: 0;
}

.cuaderno-hero__editorial {
  display: contents;
}

.cuaderno-hero__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.48);
}

.cuaderno-hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.84);
}

.cuaderno-hero__subtitle {
  margin: 1rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 90, 63, 0.84);
}

.cuaderno-page--peperoncino .cuaderno-hero__subtitle {
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.cuaderno-hero__hook {
  margin: 1.28rem 0 0;
  max-width: 36rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(180, 90, 63, 0.3);
  font-family: var(--font-title);
  font-size: clamp(0.96rem, 1.24vw, 1.08rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: rgba(93, 62, 49, 0.74);
}

.cuaderno-hero__lead {
  margin: 1.7rem 0 0;
  max-width: 42rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.28vw, 1.08rem);
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.67);
}

.cuaderno-hero__lead:empty {
  display: none;
}

.cuaderno-hero__hook > p,
.cuaderno-hero__lead > p {
  margin: 0;
}

.cuaderno-hero__hook > p + p,
.cuaderno-hero__lead > p + p {
  margin-top: 0.8rem;
}

.cuaderno-hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.cuaderno-hero__cover {
  align-self: start;
  display: grid;
  place-items: start center;
  padding-top: 3.15rem;
}

.cuaderno-hero__coverMedia {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 5 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 92, 72, 0.16);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.cuaderno-hero__coverMedia::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 2;
}

.cuaderno-page--peperoncino .cuaderno-hero__coverMedia::before,
.cuaderno-page--peperoncino .cuaderno-hero__coverMedia::after,
.cuaderno-page--sombrerico .cuaderno-hero__coverMedia::before,
.cuaderno-page--sombrerico .cuaderno-hero__coverMedia::after {
  content: none;
}

.cuaderno-hero__coverMedia::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180, 90, 63, 0.12) 0%,
    rgba(180, 90, 63, 0.05) 34%,
    rgba(180, 90, 63, 0) 70%
  );
  box-shadow:
    0 0 0 1px rgba(180, 90, 63, 0.08),
    0 0 0 42px rgba(180, 90, 63, 0.03),
    0 0 0 92px rgba(180, 90, 63, 0.02);
  pointer-events: none;
  z-index: 1;
}

.cuaderno-hero__coverImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cuaderno-hero__back,
.cuaderno-hero__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 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);
}

.cuaderno-hero__back {
  transition:
    transform 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease;
}

.cuaderno-hero__back:hover,
.cuaderno-hero__back: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);
}

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

/* =====================================================
   PORTADAS WEB · COMPOSICIÓN EDITORIAL DESKTOP
===================================================== */

@media (min-width: 981px) {
  .cuaderno-page--peperoncino .cuaderno-hero__inner,
  .cuaderno-page--sombrerico .cuaderno-hero__inner {
    width: min(1280px, 86vw);
    max-width: none;
    padding-top: clamp(5.8rem, 7.5vh, 7rem);
    padding-bottom: clamp(2.4rem, 4vh, 3.4rem);
  }

  .cuaderno-page--peperoncino .cuaderno-hero__inner--split,
  .cuaderno-page--sombrerico .cuaderno-hero__inner--split {
    grid-template-columns: minmax(440px, 0.96fr) minmax(0, 1.04fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(3.2rem, 5vw, 6rem);
    row-gap: 0;
    align-items: start;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__content,
  .cuaderno-page--sombrerico .cuaderno-hero__content {
    display: contents;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__eyebrow,
  .cuaderno-page--sombrerico .cuaderno-hero__eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 1rem;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__title,
  .cuaderno-page--sombrerico .cuaderno-hero__title {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: clamp(1.65rem, 3vh, 2.25rem);
    font-size: clamp(3.4rem, 5vw, 5.35rem);
  }

  .cuaderno-page--peperoncino .cuaderno-hero__editorial,
  .cuaderno-page--sombrerico .cuaderno-hero__editorial {
    grid-column: 1;
    grid-row: 3;
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 42rem;
    align-self: start;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__subtitle,
  .cuaderno-page--sombrerico .cuaderno-hero__subtitle {
    margin-top: 0;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__lead,
  .cuaderno-page--sombrerico .cuaderno-hero__lead {
    max-width: 39rem;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__cover,
  .cuaderno-page--sombrerico .cuaderno-hero__cover {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    width: 100%;
    padding-top: 0;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__coverMedia,
  .cuaderno-page--sombrerico .cuaderno-hero__coverMedia {
    width: 100%;
    height: clamp(26rem, 50vh, 30.5rem);
    max-width: none;
    aspect-ratio: auto;
    border-radius: 18px;
    box-shadow:
      0 18px 42px rgba(62, 43, 31, 0.09),
      0 1px 0 rgba(255, 255, 255, 0.34) inset;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__title,
  .cuaderno-page--sombrerico .cuaderno-hero__title {
    grid-column: 1;
    max-width: 100%;
    font-size: clamp(3.1rem, 4vw, 4.25rem);
    white-space: nowrap;
  }

  .cuaderno-page--peperoncino .cuaderno-hero__cover,
  .cuaderno-page--sombrerico .cuaderno-hero__cover {
    grid-row: 2 / 4;
  }

  .cuaderno-page--sombrerico .cuaderno-hero__inner--split {
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    grid-template-rows: auto auto auto minmax(23rem, auto);
    column-gap: clamp(3.2rem, 5vw, 6rem);
  }

  .cuaderno-page--sombrerico .cuaderno-hero__title {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
  }

  .cuaderno-page--sombrerico .cuaderno-hero__editorial {
    display: contents;
    max-width: none;
  }

  .cuaderno-page--sombrerico .cuaderno-hero__subtitle {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    max-width: 38rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  .cuaderno-page--sombrerico .cuaderno-hero__cover {
    grid-column: 1;
    grid-row: 4;
    align-self: start;
    width: 100%;
    padding-top: 0;
  }

  .cuaderno-page--sombrerico .cuaderno-hero__coverMedia {
    height: clamp(23rem, 44vh, 27.5rem);
  }

  .cuaderno-page--sombrerico .cuaderno-hero__hook {
    grid-column: 2;
    grid-row: 4;
    align-self: start;
    max-width: 32rem;
    margin: clamp(1.5rem, 5vh, 3.5rem) 0 0;
    padding: 1.2rem 0 1.2rem 1.35rem;
    font-size: clamp(1.08rem, 1.45vw, 1.28rem);
    line-height: 1.68;
  }

  .cuaderno-page--sombrerico .cuaderno-hero__meta {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    margin: 0 0 0.25rem;
  }
}

.cuaderno-reading,
.cuaderno-keys,
.cuaderno-gallery,
.cuaderno-route,
.cuaderno-closure,
.cuaderno-author {
  padding: 1.6rem 0 4.4rem;
}
.cuaderno-block,
.cuaderno-note__box {
  position: relative;
  padding: 2rem 1.7rem 2.1rem;
  border-radius: 28px;
  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);
}

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

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

.cuaderno-block__title,
.cuaderno-note__title,
.cuaderno-section-head__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
}

.cuaderno-block__text,
.cuaderno-note__text {
  margin: 0.9rem 0 0;
  max-width: 60ch;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.67);
}

.lxx-expandable-text {
  display: block;
}

.lxx-expandable-text__more {
  display: block;
}

.lxx-expandable-text__inline[hidden],
.lxx-expandable-text__more[hidden] {
  display: none;
}

.lxx-ellipsis {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75em;
  min-height: 1.12em;
  border: 1px solid rgba(180, 90, 63, 0.12);
  border-radius: 999px;
  margin: 0 0 0 0.48em;
  padding: 0 0.32em 0.08em;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 0.82em;
  line-height: 1;
  letter-spacing: 0.03em;
  vertical-align: 0.08em;
  color: rgba(180, 90, 63, 0.62);
  cursor: pointer;
  text-decoration: none;
}

.lxx-ellipsis[hidden] {
  display: none;
}

.lxx-ellipsis--dots {
  gap: 0.18em;
  padding: 0.18em 0.38em;
}

.lxx-ellipsis--dots span {
  display: block;
  width: 0.22em;
  height: 0.22em;
  border-radius: 999px;
  background: rgba(180, 90, 63, 0.62);
  opacity: 0.36;
  animation: lxxExpandableDotPulse 2.25s ease-in-out infinite;
}

.lxx-ellipsis--dots span:nth-child(2) {
  animation-delay: 0.32s;
}

.lxx-ellipsis--dots span:nth-child(3) {
  animation-delay: 0.64s;
}

.lxx-ellipsis:hover,
.lxx-ellipsis:focus-visible {
  border-color: rgba(180, 90, 63, 0.24);
  background: rgba(255, 255, 255, 0.24);
  color: rgba(180, 90, 63, 0.82);
}

.lxx-ellipsis:focus-visible {
  outline: 1px solid rgba(180, 90, 63, 0.34);
  outline-offset: 3px;
}
/* Shared LXX affordance for expandable reading. */
.lxx-ellipsis--dots {
  min-width: 2rem;
  min-height: 1.4rem;
  border-color: transparent;
  margin-left: 0.42em;
  padding: 0.2rem 0.28rem 0.08rem;
  gap: 0.2rem;
  background: transparent;
}

.lxx-ellipsis--dots span {
  width: 0.26rem;
  height: 0.26rem;
  background: rgba(180, 90, 63, 0.78);
  opacity: 0.42;
  box-shadow: none;
  animation: lxxGuideDotTest 1.2s ease-in-out infinite;
}

.lxx-ellipsis--dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.lxx-ellipsis--dots span:nth-child(3) {
  animation-delay: 0.32s;
}

.lxx-ellipsis--dots:hover,
.lxx-ellipsis--dots:focus-visible {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.16);
}

@keyframes lxxGuideDotTest {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.42;
  }

  30% {
    transform: translateY(-0.2rem);
    opacity: 1;
  }
}

@keyframes lxxExpandableDotPulse {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.94);
    box-shadow: none;
  }

  38%,
  58% {
    opacity: 0.92;
    transform: scale(1.03);
    box-shadow:
      0 0 0 2px rgba(180, 90, 63, 0.08),
      0 0 8px rgba(180, 90, 63, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lxx-ellipsis--dots span {
    animation: none;
    opacity: 0.82;
    transform: none;
  }

  .peperoncino-map__pin,
  .peperoncino-map__pin-text,
  .peperoncino-map__place-card,
  .sombrerico-map__marker-ring {
    transition: none;
  }

  .sombrerico-map__marker-ring {
    animation: none !important;
  }
}

.cuaderno-section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.45rem;
}
.cuaderno-section-intro {
  margin: 0.15rem 0 0;
  max-width: 66ch;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.68;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.67);
}
.cuaderno-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: 1.2rem;
  align-items: stretch;
}

.cuaderno-reading .cuaderno-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2vw, 1.8rem);
}

.cuaderno-split__content,
.cuaderno-split__media {
  min-width: 0;
}

.cuaderno-reading .cuaderno-split__content {
  display: flex;
}

.cuaderno-split__frame {
  position: relative;
  height: 100%;
  min-height: 260px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.72) 0%, rgba(232, 223, 212, 0.48) 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 12px 30px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.44);
}

.cuaderno-split__frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuaderno-reading .cuaderno-split__media {
  align-self: stretch;
}

.cuaderno-reading .cuaderno-split__frame {
  width: 100%;
  height: 100%;
  min-height: clamp(320px, 25vw, 380px);
  aspect-ratio: 3 / 2;
  max-height: none;
  overflow: hidden;
}

.cuaderno-reading .cuaderno-split__frame:has(.cuaderno-route-real__img) {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cuaderno-reading .cuaderno-split__frame:has(.cuaderno-route-real__img)::before {
  content: none;
}

.cuaderno-page--peperoncino .cuaderno-reading .cuaderno-split__frame {
  aspect-ratio: 1 / 1;
}

.cuaderno-reading .cuaderno-split__frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cuaderno-reading .cuaderno-split__frame .cuaderno-route-real__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map) {
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cuaderno-reading .cuaderno-split__media:has(.peperoncino-map) {
  align-self: center;
}

.cuaderno-page--sombrerico .cuaderno-reading .cuaderno-split__media:has(.sombrerico-map) {
  align-self: start;
}

.cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map)::before {
  content: none;
}

.cuaderno-page--peperoncino .cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map) {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.cuaderno-page--sombrerico .cuaderno-reading .cuaderno-split__frame:has(.sombrerico-map) {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

.peperoncino-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(212, 229, 226, 0.96) 0%, rgba(193, 216, 216, 0.9) 100%),
    radial-gradient(circle at 1px 1px, rgba(47, 107, 123, 0.045) 1px, transparent 1.3px);
  background-size:
    auto,
    12px 12px;
  border: 1px solid rgba(116, 83, 54, 0.2);
  box-shadow:
    0 18px 42px rgba(55, 41, 30, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.34) inset;
  font-family: var(--font-title);
  color: rgba(58, 42, 32, 0.82);
}

.peperoncino-map__paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.42), transparent 30%),
    radial-gradient(circle at 74% 72%, rgba(119, 83, 42, 0.1), transparent 34%),
    linear-gradient(90deg, rgba(112, 76, 46, 0.09), transparent 12%, transparent 88%, rgba(112, 76, 46, 0.08));
  mix-blend-mode: multiply;
}

.peperoncino-map__accessible-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.peperoncino-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.peperoncino-map__sea {
  fill: rgba(167, 205, 209, 0.34);
}

.peperoncino-map__italy {
  color: rgba(214, 183, 112, 0.86);
  opacity: 0.72;
  filter: sepia(0.34) saturate(0.72) brightness(1.08);
}

.peperoncino-map__spain {
  pointer-events: none;
}

.peperoncino-map__spain-frame {
  fill: rgba(255, 248, 226, 0.22);
  stroke: rgba(67, 113, 142, 0.42);
  stroke-width: 0.24;
  stroke-dasharray: 0.9 0.72;
}

.peperoncino-map__spain-shape {
  fill: rgba(214, 183, 112, 0.66);
  stroke: rgba(98, 75, 50, 0.36);
  stroke-width: 0.28;
  stroke-linejoin: round;
  filter: sepia(0.34) saturate(0.72) brightness(1.08);
}

.peperoncino-map__spain-island {
  fill: none;
  stroke: rgba(98, 75, 50, 0.32);
  stroke-width: 0.18;
  stroke-linecap: round;
}

.peperoncino-map__spain text {
  font-size: 1px;
  font-weight: 400;
  letter-spacing: 0;
  text-anchor: middle;
  text-transform: uppercase;
  fill: rgba(153, 78, 48, 0.5);
  paint-order: stroke;
  stroke: rgba(238, 224, 196, 0.24);
  stroke-width: 0.28px;
}

.peperoncino-map__italy-shape {
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
  stroke-linejoin: round;
}

.peperoncino-map__italy-shape--sicily {
  color: inherit;
}

.sombrerico-map--illustrated {
  aspect-ratio: 3 / 2;
  background: rgba(231, 210, 169, 0.92);
}

.sombrerico-map--illustrated picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sombrerico-map__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sombrerico-map__markers {
  position: absolute;
  inset: 0;
}

.sombrerico-map__marker {
  position: absolute;
  left: var(--sombrerico-map-x);
  top: var(--sombrerico-map-y);
  width: clamp(16px, 3.3%, 25px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.sombrerico-map__marker-ring {
  position: absolute;
  inset: -16%;
  border: 2px solid rgba(255, 244, 210, 0.96);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(153, 61, 38, 0.5),
    0 0 18px 6px rgba(255, 223, 144, 0.5);
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.sombrerico-map__marker.is-active .sombrerico-map__marker-ring {
  opacity: 1;
  transform: scale(1);
  animation: sombrericoMapStopPulse 1.8s ease-in-out infinite;
}

.sombrerico-map__place-card {
  background: rgba(255, 245, 214, 0.94);
  border-color: rgba(105, 67, 38, 0.28);
}

@keyframes sombrericoMapStopPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(153, 61, 38, 0.46),
      0 0 14px 4px rgba(255, 223, 144, 0.42);
  }

  50% {
    box-shadow:
      0 0 0 5px rgba(153, 61, 38, 0.22),
      0 0 24px 9px rgba(255, 226, 151, 0.58);
  }
}

.peperoncino-map__italy-outline {
  pointer-events: none;
  opacity: 0.72;
}

.peperoncino-map__italy-outline-shape {
  fill: none;
  stroke: rgba(88, 72, 50, 0.7);
  stroke-width: 0.52;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.peperoncino-map__italy-outline-shape--mainland {
  stroke-width: 0.52;
}

.peperoncino-map__italy-outline-shape--sicily {
  stroke-width: 0.52;
}

.peperoncino-map__italy,
.peperoncino-map__italy-outline,
.peperoncino-map__region-labels,
.peperoncino-map__sea-labels,
.peperoncino-map__transport-cues,
.peperoncino-map__route {
  pointer-events: none;
}

.peperoncino-map__region-label {
  font-size: 1.55px;
  font-weight: 400;
  letter-spacing: 0;
  text-anchor: middle;
  text-transform: uppercase;
  fill: rgba(153, 78, 48, 0.48);
  paint-order: stroke;
  stroke: rgba(238, 224, 196, 0.26);
  stroke-width: 0.38px;
}

.peperoncino-map__region-label--secondary {
  opacity: 0.82;
}

.peperoncino-map__sea-labels text {
  font-size: 2.55px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: uppercase;
  fill: rgba(47, 107, 123, 0.48);
}

.peperoncino-map__route-segment {
  fill: none;
  stroke: rgba(167, 64, 39, 0.38);
  stroke-width: 0.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.peperoncino-map__route-segment--ferry {
  stroke-dasharray: 1.2 1.4;
}

.peperoncino-map__transport-segment {
  fill: none;
  stroke: rgba(67, 113, 142, 0.46);
  stroke-width: 0.18;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1.05 1.25;
}

.peperoncino-map__transport-segment--plane {
  stroke: rgba(67, 113, 142, 0.46);
}

.peperoncino-map__transport-segment--ferry {
  stroke: rgba(67, 113, 142, 0.46);
}

.peperoncino-map__transport-segment--camper {
  stroke: rgba(67, 113, 142, 0.46);
}

.peperoncino-map__transport-arrow--plane {
  fill: rgba(67, 113, 142, 0.72);
}

.peperoncino-map__transport-arrow--ferry {
  fill: rgba(67, 113, 142, 0.72);
}

.peperoncino-map__transport-arrow--camper {
  fill: rgba(67, 113, 142, 0.72);
}

.peperoncino-map__transport-arrowhead {
  fill: rgba(67, 113, 142, 0.76);
  stroke: none;
}

.peperoncino-map__transport-icon {
  fill: none;
  stroke-width: 0.24;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.peperoncino-map__transport-icon--plane {
  stroke: rgba(67, 113, 142, 0.72);
}

.peperoncino-map__transport-icon--ferry {
  stroke: rgba(44, 124, 132, 0.72);
}

.peperoncino-map__transport-icon--camper {
  stroke: rgba(149, 91, 47, 0.72);
}

.peperoncino-map__transport-icon-fill {
  fill: rgba(255, 248, 226, 0.46);
}

.peperoncino-map__transport-wave {
  fill: none;
  stroke-width: 0.18;
}

.peperoncino-map__arrow {
  fill: rgba(167, 64, 39, 0.38);
}

.peperoncino-map__markers {
  pointer-events: none;
}

.peperoncino-map__marker {
  pointer-events: none;
}

.peperoncino-map__hit {
  fill: transparent;
}

.peperoncino-map__pin {
  fill: rgba(180, 90, 63, 0.94);
  stroke: rgba(255, 241, 215, 0.96);
  stroke-width: 0.34;
  filter: drop-shadow(0 0.55px 0.9px rgba(64, 37, 24, 0.35));
  transform-box: fill-box;
  transform-origin: center;
  transition:
    fill 180ms ease,
    stroke-width 180ms ease,
    transform 180ms ease;
}

.peperoncino-map__pin-text {
  font-family: var(--font-body);
  font-size: 1.02px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: rgba(255, 248, 231, 0.98);
  transition: fill 180ms ease;
  pointer-events: none;
  user-select: none;
}

.peperoncino-map__marker.is-active .peperoncino-map__pin {
  transform: scale(1.1);
  fill: rgba(142, 74, 52, 1);
  stroke-width: 0.46;
}

.peperoncino-map__marker.is-active .peperoncino-map__pin-text {
  fill: rgba(255, 255, 245, 1);
}

.peperoncino-map__place-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 0.06rem;
  width: max-content;
  max-width: min(172px, calc(100% - 20px));
  padding: 0.32rem 0.42rem;
  border-radius: 7px;
  background: rgba(255, 248, 226, 0.82);
  border: 1px solid rgba(116, 83, 54, 0.18);
  box-shadow: 0 6px 18px rgba(55, 41, 30, 0.08);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    visibility 0s linear 220ms;
}

.peperoncino-map__place-card.is-active {
  visibility: visible;
  opacity: 0.98;
  transform: translateY(0);
  transition-delay: 0s;
}

.peperoncino-map__place-day {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(165, 62, 38, 0.86);
}

.peperoncino-map__place-name {
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: 0.66rem;
  line-height: 1.12;
  letter-spacing: 0;
  color: rgba(49, 36, 28, 0.82);
}

.cuaderno-gallery-days {
  display: grid;
  gap: 1.2rem;
}

.edition-switcher__back {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 2px 3px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.88em;
  text-decoration: none;
}

.edition-switcher__back:hover,
.edition-switcher__back:focus-visible {
  color: rgba(var(--brand-copper), 0.96);
}

.edition-switcher__back:focus-visible {
  outline: 1px solid rgba(var(--brand-copper), 0.48);
  outline-offset: 4px;
}

.cuaderno-day-browser {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.65fr);
  gap: clamp(1.4rem, 3.5vw, 3.5rem);
  align-items: start;
}

.cuaderno-day-browser__index {
  position: sticky;
  top: 1.5rem;
  min-width: 0;
}

.cuaderno-day-browser__toggle {
  display: none;
}

.cuaderno-day-browser__mobile-controls,
.cuaderno-day-browser__mobile-step {
  display: none;
}

.cuaderno-day-browser__choices {
  display: grid;
  max-height: min(72vh, 680px);
  overflow-y: auto;
  border-top: 1px solid rgba(120, 92, 72, 0.2);
  scrollbar-width: thin;
}

.cuaderno-day-browser__choice {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.7rem;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 0.58rem 0;
  border: 0;
  border-bottom: 1px solid rgba(120, 92, 72, 0.14);
  background: transparent;
  color: rgba(34, 27, 22, 0.68);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    color 180ms ease,
    padding-left 180ms ease,
    border-color 180ms ease;
}

.cuaderno-day-browser__number {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(180, 90, 63, 0.82);
}

.cuaderno-day-browser__place {
  font-family: var(--font-title);
  font-size: 0.88rem;
  line-height: 1.25;
}

.cuaderno-day-browser__choice:hover,
.cuaderno-day-browser__choice:focus-visible,
.cuaderno-day-browser__choice.is-active {
  padding-left: 0.28rem;
  border-color: rgba(180, 90, 63, 0.32);
  color: rgba(34, 27, 22, 0.96);
}

.cuaderno-day-browser__choice:focus-visible {
  outline: 1px solid rgba(180, 90, 63, 0.5);
  outline-offset: -2px;
}

.cuaderno-day-browser__reading {
  min-width: 0;
}

.cuaderno-day-browser__panel {
  min-width: 0;
  scroll-margin-top: 1rem;
}

@media (min-width: 769px) {
  .cuaderno-day-browser {
    height: clamp(520px, 70dvh, 720px);
    align-items: stretch;
  }

  .cuaderno-day-browser__index {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .cuaderno-day-browser__choices {
    height: 100%;
    max-height: none;
    align-content: start;
  }

  .cuaderno-day-browser__reading {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .cuaderno-day-browser__panel {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 0.35rem;
  }
}

.cuaderno-day-browser__pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(120, 92, 72, 0.16);
}

.cuaderno-day-browser__pager button {
  min-height: 42px;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: rgba(34, 27, 22, 0.68);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cuaderno-day-browser__pager button:first-child {
  text-align: left;
}

.cuaderno-day-browser__pager button:last-child {
  text-align: right;
}

.cuaderno-day-browser__pager button:hover,
.cuaderno-day-browser__pager button:focus-visible {
  color: rgba(180, 90, 63, 0.96);
}

.cuaderno-day-browser__pager button:focus-visible {
  outline: 1px solid rgba(180, 90, 63, 0.5);
  outline-offset: 2px;
}

.cuaderno-day-browser__pager button:disabled {
  cursor: default;
  opacity: 0.28;
}

.cuaderno-day-browser__pager p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: rgba(34, 27, 22, 0.54);
}

@media (max-width: 768px),
  (max-width: 940px) and (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  body.cuaderno-page:not(.pro-page) {
    overflow-x: clip;
    overflow-y: visible;
  }

  .cuaderno-gallery {
    padding-bottom: 4.75rem;
  }

  .cuaderno-day-browser {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .cuaderno-day-browser__index {
    position: sticky;
    top: calc(max(8px, env(safe-area-inset-top)) + 52px);
    z-index: 38;
    display: grid;
    width: min(15rem, calc(100vw - 2rem));
    height: auto;
    min-height: 0;
    margin: 0 0 0 auto;
    overflow: visible;
    isolation: isolate;
  }

  .cuaderno-day-browser__index.is-open {
    z-index: 946;
  }

  .cuaderno-day-browser__toggle {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-height: 56px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.58rem 0.72rem;
    border: 1px solid rgba(180, 90, 63, 0.34);
    border-radius: 15px;
    background:
      linear-gradient(135deg, rgba(252, 248, 243, 0.97), rgba(238, 228, 218, 0.94)),
      radial-gradient(circle at 1px 1px, rgba(72, 48, 34, 0.022) 1px, transparent 1.2px);
    background-size: auto, 9px 9px;
    box-shadow:
      0 10px 24px rgba(67, 49, 38, 0.11),
      0 1px 0 rgba(255, 255, 255, 0.66) inset;
    color: rgba(34, 27, 22, 0.84);
    cursor: pointer;
    text-align: left;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .cuaderno-day-browser__mobile-controls {
    position: relative;
    display: block;
    margin-bottom: 0.45rem;
  }

  .cuaderno-day-browser__mobile-controls::before,
  .cuaderno-day-browser__mobile-controls::after {
    position: absolute;
    right: 0.45rem;
    bottom: -0.34rem;
    left: 0.45rem;
    z-index: 1;
    height: 100%;
    border: 1px solid rgba(180, 90, 63, 0.2);
    border-radius: 14px;
    background: rgba(244, 236, 228, 0.8);
    content: "";
    pointer-events: none;
  }

  .cuaderno-day-browser__mobile-controls::after {
    right: 0.82rem;
    bottom: -0.62rem;
    left: 0.82rem;
    z-index: 0;
    border-color: rgba(180, 90, 63, 0.12);
    background: rgba(236, 225, 214, 0.62);
  }

  .cuaderno-day-browser__toggle-copy {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
  }

  .cuaderno-day-browser__toggle-meta {
    font-family: var(--font-body);
    font-size: 0.54rem;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(180, 90, 63, 0.9);
  }

  .cuaderno-day-browser__toggle-label {
    overflow: hidden;
    font-family: var(--font-title);
    font-size: 0.83rem;
    line-height: 1.18;
    letter-spacing: 0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cuaderno-day-browser__toggle-side {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
  }

  .cuaderno-day-browser__toggle-action {
    color: rgba(180, 90, 63, 0.94);
    font-family: var(--font-body);
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .cuaderno-day-browser__stack {
    display: inline-flex;
    gap: 0.18rem;
    align-items: center;
  }

  .cuaderno-day-browser__stack span {
    width: 0.23rem;
    height: 0.23rem;
    border-radius: 50%;
    background: rgba(180, 90, 63, 0.86);
  }

  .cuaderno-day-browser__toggle:focus-visible {
    outline: 1px solid rgba(180, 90, 63, 0.52);
    outline-offset: 3px;
  }

  .cuaderno-day-browser__choices {
    position: absolute;
    box-sizing: border-box;
    top: calc(100% + 0.6rem);
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 5;
    display: none;
    width: min(19rem, calc(100vw - 2rem));
    height: auto;
    max-height: min(
      42dvh,
      18rem,
      var(--cuaderno-day-list-max-height, 18rem)
    );
    gap: 0.36rem;
    overflow-y: auto;
    padding: 0.48rem;
    border: 1px solid rgba(180, 90, 63, 0.3);
    border-radius: 17px;
    background:
      linear-gradient(160deg, rgba(250, 246, 241, 0.985), rgba(235, 225, 215, 0.98)),
      radial-gradient(circle at 1px 1px, rgba(72, 48, 34, 0.02) 1px, transparent 1.2px);
    background-size: auto, 9px 9px;
    box-shadow:
      0 16px 38px rgba(48, 34, 25, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.52) inset;
    overscroll-behavior: contain;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .cuaderno-day-browser__choices.is-open {
    display: grid;
  }

  .cuaderno-day-browser__index.opens-up .cuaderno-day-browser__choices {
    top: auto;
    bottom: calc(100% + 0.6rem);
  }

  .cuaderno-day-browser__choice {
    min-height: 46px;
    padding: 0.48rem 0.62rem;
    border: 1px solid rgba(120, 92, 72, 0.14);
    border-radius: 12px;
    background: rgba(255, 252, 248, 0.52);
    box-shadow: 0 3px 9px rgba(62, 44, 32, 0.035);
  }

  .cuaderno-day-browser__choice:hover,
  .cuaderno-day-browser__choice:focus-visible,
  .cuaderno-day-browser__choice.is-active {
    padding-left: 0.82rem;
    border-color: rgba(180, 90, 63, 0.42);
    background: rgba(247, 236, 227, 0.88);
  }

  .cuaderno-day-browser__pager {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: clamp(0.35rem, 2vw, 0.55rem);
    margin-top: 0.8rem;
    padding-top: 0.65rem;
  }

  .cuaderno-day-browser__pager button {
    min-height: 44px;
    font-size: 0.56rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .cuaderno-day-browser__pager p {
    min-width: 0;
    overflow: hidden;
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    text-align: center;
    text-overflow: ellipsis;
  }

  .cuaderno-day-browser__reading {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .cuaderno-day-browser__panel {
    overflow: visible;
    padding-right: 0;
    scroll-margin-top: 7.5rem;
  }
}

/* Desplazamiento LXX: cobre translúcido sobre una pista invisible. */
html,
.cuaderno-day-browser__choices,
.cuaderno-day-browser__panel {
  scrollbar-color: rgba(180, 90, 63, 0.68) transparent;
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 8px;
}

.cuaderno-day-browser__choices::-webkit-scrollbar,
.cuaderno-day-browser__panel::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track,
.cuaderno-day-browser__choices::-webkit-scrollbar-track,
.cuaderno-day-browser__panel::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
.cuaderno-day-browser__choices::-webkit-scrollbar-thumb,
.cuaderno-day-browser__panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(180, 90, 63, 0.68);
}

html::-webkit-scrollbar-thumb:hover,
.cuaderno-day-browser__choices::-webkit-scrollbar-thumb:hover,
.cuaderno-day-browser__panel::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 90, 63, 0.88);
}

.cuaderno-route-real__list {
  display: grid;
  gap: 1.2rem;
}

.cuaderno-route-real__item {
  position: relative;
  padding: 1.35rem 1.2rem 1.28rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.72) 0%, rgba(232, 223, 212, 0.48) 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 12px 30px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: 1rem;
  align-items: center;
}

.cuaderno-route-real__item::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuaderno-route-real__text,
.cuaderno-route-real__media {
  min-width: 0;
}
.cuaderno-route-real__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}

.cuaderno-route-real__image-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
}

.cuaderno-route-real__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.cuaderno-route-real__placeholder {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.72) 0%, rgba(232, 223, 212, 0.48) 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 12px 30px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.44);
}

.cuaderno-route-real__placeholder::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuaderno-gallery__photo {
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cuaderno-gallery__photo .cuaderno-route-real__img {
  object-fit: cover;
}

.cuaderno-gallery-day[data-day-number="7"] .cuaderno-gallery-figure:first-child .cuaderno-route-real__img {
  object-position: right center;
}

.cuaderno-gallery-day[data-day-number="16"] .cuaderno-gallery-figure:first-child .cuaderno-route-real__img {
  object-position: 72% 28%;
}

.cuaderno-route-real__photo .cuaderno-route-real__img {
  overflow: hidden;
  border-radius: 22px;
}

.cuaderno-route-real__caption {
  margin: 0.55rem 0 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.58);
}

.cuaderno-gallery-day {
  position: relative;
  scroll-margin-top: 5.5rem;
  padding: 1.35rem 1.2rem 1.28rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.72) 0%, rgba(232, 223, 212, 0.48) 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 12px 30px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cuaderno-gallery-day::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuaderno-gallery-day__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.76);
}

.cuaderno-gallery-day.is-map-target {
  border-color: rgba(174, 65, 39, 0.28);
  box-shadow:
    0 16px 38px rgba(174, 65, 39, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.34) inset;
}

.cuaderno-gallery-day:focus {
  outline: none;
}

.cuaderno-gallery-day__header {
  margin: 0 0 0.75rem;
}

.cuaderno-gallery-day__text {
  min-width: 0;
}

.cuaderno-gallery-day__summary {
  max-width: 78ch;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.58;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.66);
}

.cuaderno-gallery-day__summary,
.cuaderno-route-real__summary {
  display: block;
}

.cuaderno-gallery-day__summary p,
.cuaderno-route-real__summary p {
  margin: 0;
}

.cuaderno-gallery-day__summary p + p,
.cuaderno-route-real__summary p + p {
  margin-top: 0.85em;
}

.cuaderno-gallery-day:not(.cuaderno-gallery-day--logistics) .cuaderno-gallery-day__summary {
  max-width: none;
  width: 100%;
}

.cuaderno-gallery-day--intro,
.cuaderno-gallery-day--logistics {
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.82) 0%, rgba(232, 223, 212, 0.5) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.024) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
}

.cuaderno-gallery-day__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.cuaderno-gallery-figure {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.cuaderno-gallery-figure__caption {
  margin: 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.58);
}
.cuaderno-gallery-day__grid:has(> :only-child) {
  grid-template-columns: 1fr;
}

.cuaderno-gallery-day--single .cuaderno-gallery-day__grid {
  grid-template-columns: 1fr;
}

@media (min-width: 981px) {
  .cuaderno-gallery-day--single:not(.cuaderno-gallery-day--intro):not(.cuaderno-gallery-day--logistics):not(
      .cuaderno-gallery-day--no-media
    ) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 1rem 1.25rem;
    align-items: center;
  }

  .cuaderno-gallery-day--single:not(.cuaderno-gallery-day--intro):not(.cuaderno-gallery-day--logistics)
    .cuaderno-gallery-day__text {
    grid-column: 1;
    grid-row: 1;
  }

  .cuaderno-gallery-day--single:not(.cuaderno-gallery-day--intro):not(.cuaderno-gallery-day--logistics)
    .cuaderno-gallery-day__grid {
    grid-column: 2;
    grid-row: 1;
  }

  .cuaderno-gallery-day--single:not(.cuaderno-gallery-day--intro):not(.cuaderno-gallery-day--logistics)
    .cuaderno-gallery-day__summary {
    margin-bottom: 0;
  }
}

.cuaderno-gallery-day--intro .cuaderno-gallery-day__grid,
.cuaderno-gallery-day--logistics .cuaderno-gallery-day__grid {
  justify-items: center;
}

.cuaderno-gallery-day--intro .cuaderno-gallery-figure,
.cuaderno-gallery-day--logistics .cuaderno-gallery-figure {
  width: min(100%, 700px);
}

.cuaderno-gallery-day--intro .cuaderno-gallery__photo,
.cuaderno-gallery-day--logistics .cuaderno-gallery__photo {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 7;
  height: clamp(200px, 20vw, 280px);
  max-height: 280px;
}

.cuaderno-gallery__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cuaderno-gallery-day--intro .cuaderno-gallery__photo .cuaderno-route-real__img,
.cuaderno-gallery-day--logistics .cuaderno-gallery__photo .cuaderno-route-real__img {
  max-height: 280px;
}

.cuaderno-gallery-day--intro .cuaderno-gallery__photo .cuaderno-route-real__img {
  object-fit: cover;
  background: rgba(248, 242, 235, 0.52);
}

.cuaderno-gallery-day--logistics .cuaderno-gallery__photo .cuaderno-route-real__img {
  object-fit: cover;
}
.cuaderno-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.85fr));
  gap: 1.2rem;
  align-items: stretch;
}

.cuaderno-gallery__item {
  margin: 0;
  position: relative;
  padding: 0.9rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.72) 0%, rgba(232, 223, 212, 0.48) 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 12px 30px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cuaderno-gallery__item::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuaderno-gallery__item--large {
  grid-row: span 2;
}

.cuaderno-gallery__placeholder {
  min-height: 240px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(120, 92, 72, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(232, 223, 212, 0.18) 100%),
    radial-gradient(circle at center, rgba(180, 90, 63, 0.1) 0%, rgba(180, 90, 63, 0) 72%);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.44);
}

.cuaderno-gallery__item--large .cuaderno-gallery__placeholder {
  min-height: 100%;
}

.cuaderno-gallery__caption {
  margin: 0.85rem 0 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.64);
}
.cuaderno-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.cuaderno-card-block {
  position: relative;
  padding: 1.35rem 1.2rem 1.28rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.72) 0%, rgba(232, 223, 212, 0.48) 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 12px 30px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cuaderno-card-block::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.cuaderno-card-block__eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(180, 90, 63, 0.82);
}

.cuaderno-keys .cuaderno-card-block__eyebrow {
  line-height: 1.35;
  letter-spacing: 0.14em;
}

.cuaderno-card-block__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.82);
}

.cuaderno-card-block__text {
  margin: 0.72rem 0 0;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.62;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.67);
}

@media (min-width: 981px) {
  .cuaderno-gallery-day--intro,
  .cuaderno-gallery-day--logistics {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: center;
  }

  .cuaderno-gallery-day--intro .cuaderno-gallery-day__grid,
  .cuaderno-gallery-day--logistics .cuaderno-gallery-day__grid {
    grid-column: 1;
    grid-row: 1;
  }

  .cuaderno-gallery-day--intro .cuaderno-gallery-day__text,
  .cuaderno-gallery-day--logistics .cuaderno-gallery-day__text {
    grid-column: 2;
    grid-row: 1;
  }

  .cuaderno-gallery-day--no-media.cuaderno-gallery-day--intro,
  .cuaderno-gallery-day--no-media.cuaderno-gallery-day--logistics {
    display: block;
  }

  .cuaderno-gallery-day--no-media.cuaderno-gallery-day--intro .cuaderno-gallery-day__text,
  .cuaderno-gallery-day--no-media.cuaderno-gallery-day--logistics .cuaderno-gallery-day__text {
    grid-column: auto;
    grid-row: auto;
  }

  .cuaderno-gallery-day--intro .cuaderno-gallery-day__summary,
  .cuaderno-gallery-day--logistics .cuaderno-gallery-day__summary {
    margin-bottom: 0;
  }

  .cuaderno-gallery-day--intro .cuaderno-gallery-figure,
  .cuaderno-gallery-day--logistics .cuaderno-gallery-figure {
    width: 100%;
  }
}
/* =========================================
   BLOQUE EXTRA — Expedición / archivo / cierre
========================================= */

.cuaderno-reading .cuaderno-block,
.cuaderno-closure .cuaderno-note__box {
  background:
    linear-gradient(180deg, rgba(248, 242, 235, 0.8) 0%, rgba(232, 223, 212, 0.54) 100%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.028) 1px, transparent 1.2px);
  background-size:
    auto,
    10px 10px;
}

.cuaderno-reading .cuaderno-block {
  width: 100%;
  min-height: clamp(320px, 25vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cuaderno-reading .cuaderno-block__text,
.cuaderno-closure .cuaderno-note__text {
  max-width: none;
  width: 100%;
}

.cuaderno-tools .cuaderno-section-intro {
  max-width: 66ch;
}

.cuaderno-tools .cuaderno-cards-grid {
  gap: 1.15rem;
}

.cuaderno-tools .cuaderno-card-block {
  min-height: 100%;
}

.cuaderno-tools .cuaderno-card-block__title {
  max-width: 18ch;
}

.cuaderno-closure .cuaderno-note__box {
  text-align: left;
}

.cuaderno-closure .cuaderno-note__title {
  max-width: 24ch;
}

.cuaderno-closure .cuaderno-note__text {
  max-width: none;
  width: 100%;
}

.cuaderno-closure .cuaderno-note__text + .cuaderno-note__text {
  margin-top: 0.85rem;
}
.cuaderno-note__cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(180, 90, 63, 0.24);
  background: rgba(180, 90, 63, 0.08);
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 90, 63, 0.88);
  transition:
    transform 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease;
}

.cuaderno-note__cta:hover,
.cuaderno-note__cta:focus-visible {
  transform: translateY(-1px);
  color: rgba(180, 90, 63, 1);
  border-color: rgba(180, 90, 63, 0.36);
  background: rgba(180, 90, 63, 0.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

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

.cuaderno-reading + .cuaderno-keys,
.cuaderno-keys + .cuaderno-gallery,
.cuaderno-gallery + .cuaderno-closure {
  padding-top: 0.4rem;
}

/* =========================================
   FIRMA EDITORIAL
========================================= */

.cuaderno-author {
  padding-top: 0.4rem;
}

.cuaderno-author__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.4rem, 4vw, 4.6rem);
  align-items: start;
  padding: clamp(1.7rem, 3.5vw, 2.8rem);
  border-radius: 24px;
  background:
    linear-gradient(112deg, rgba(248, 242, 235, 0.72), rgba(238, 228, 216, 0.36)),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.022) 1px, transparent 1.2px);
  background-size:
    auto,
    11px 11px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.34) inset;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cuaderno-author__inner::before {
  content: "";
  position: absolute;
  top: clamp(1.7rem, 3.5vw, 2.8rem);
  left: 0;
  width: 3px;
  height: 2.8rem;
  border-radius: 0 999px 999px 0;
  background: rgba(180, 90, 63, 0.72);
}

.cuaderno-author__heading,
.cuaderno-author__content {
  min-width: 0;
}

.cuaderno-author__eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 90, 63, 0.86);
}

.cuaderno-author__title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.025em;
  color: rgba(0, 0, 0, 0.82);
}

.cuaderno-author__content {
  display: grid;
  gap: 1.15rem;
  justify-items: start;
}

.cuaderno-author__content p {
  margin: 0;
  max-width: 62ch;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.72;
  color: rgba(0, 0, 0, 0.66);
}

.cuaderno-author__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(180, 90, 63, 0.42);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(123, 57, 40, 0.92);
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.cuaderno-author__link:hover {
  transform: translateY(-1px);
  color: rgba(102, 43, 29, 1);
  border-color: rgba(180, 90, 63, 0.78);
}

.cuaderno-author__link:focus-visible {
  outline: 2px solid rgba(180, 90, 63, 0.48);
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .cuaderno-author__inner {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.55rem 1.35rem 1.7rem;
    border-radius: 20px;
  }

  .cuaderno-author__inner::before {
    top: 1.55rem;
    height: 2.25rem;
  }

  .cuaderno-author__title {
    max-width: none;
  }

  .cuaderno-author__content {
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cuaderno-author__link {
    transition: none;
  }
}
@media (max-width: 980px) {
  .cuaderno-cards-grid,
  .cuaderno-gallery-day__grid,
  .cuaderno-split,
  .cuaderno-route-real__item {
    grid-template-columns: 1fr;
  }

  .cuaderno-reading .cuaderno-split {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .cuaderno-reading .cuaderno-block {
    min-height: 0;
  }

  .cuaderno-reading .cuaderno-split__frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .cuaderno-gallery-day--intro .cuaderno-gallery__photo,
  .cuaderno-gallery-day--logistics .cuaderno-gallery__photo {
    height: 220px;
    max-height: 240px;
  }

  .cuaderno-gallery-day--intro .cuaderno-gallery__photo .cuaderno-route-real__img,
  .cuaderno-gallery-day--logistics .cuaderno-gallery__photo .cuaderno-route-real__img {
    max-height: 240px;
  }
}
@media (max-width: 768px) {
  body.cuaderno-page:not(.print-page) .site-bg {
    opacity: 0.2;
    background-size:
      140% 140%,
      auto 100svh;
    background-position:
      center,
      50% 47%;
  }

  .cuaderno-hero {
    position: relative;
  }

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

  .cuaderno-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;
  }

  .cuaderno-page .edition-switcher {
    align-content: center;
    align-items: center;
    max-width: calc(100vw - 10.5rem);
    min-height: 44px;
    padding: 0;
    border-radius: 0;
    gap: 0 0.42rem;
    line-height: 1.25;
  }

  .cuaderno-page .edition-switcher__link {
    min-height: 44px;
  }

  .cuaderno-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;
  }

  .cuaderno-hero__inner {
    padding-top: 6.7rem;
    padding-bottom: 3rem;
  }

  .cuaderno-hero__inner--split {
    position: relative;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 6.4rem 1.15rem 1.2rem;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(248, 242, 235, 0.72) 0%, rgba(232, 223, 212, 0.48) 100%),
      radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.026) 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.05),
      0 1px 0 rgba(255, 255, 255, 0.28) inset;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .cuaderno-hero__content {
    display: contents;
  }

  .cuaderno-hero__eyebrow {
    order: 1;
  }

  .cuaderno-hero__title {
    order: 2;
  }

  .cuaderno-hero__cover {
    order: 3;
    width: calc(100% + 2.3rem);
    margin: 0.45rem -1.15rem 0;
  }

  .cuaderno-hero__subtitle {
    order: 4;
  }

  .cuaderno-page--sombrerico .cuaderno-hero__subtitle {
    order: 3;
  }

  .cuaderno-page--sombrerico .cuaderno-hero__cover {
    order: 4;
  }

  .cuaderno-hero__hook {
    order: 5;
  }

  .cuaderno-hero__lead {
    order: 6;
  }

.cuaderno-hero__meta {
    order: 7;
  }

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

  .cuaderno-hero__coverMedia {
    width: 100%;
    aspect-ratio: 4 / 3;
    justify-self: center;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .cuaderno-hero__coverMedia::before,
  .cuaderno-hero__coverMedia::after {
    content: none;
  }

  .cuaderno-hero__coverImg {
    object-position: center 42%;
  }

  .edition-switcher__back,
  .edition-switcher__separator--back {
    display: none !important;
  }

  .cuaderno-hero__meta {
    width: 100%;
  }

  .cuaderno-hero__back {
    width: 100%;
    box-sizing: border-box;
  }

  .cuaderno-hero__title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .cuaderno-hero__hook {
    margin-top: 1.05rem;
    padding-left: 0.82rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .cuaderno-reading .cuaderno-split__frame {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 2;
  }

  .cuaderno-reading .cuaderno-split {
    position: relative;
    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);
  }

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

  .cuaderno-reading .cuaderno-block {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cuaderno-reading .cuaderno-block::before,
  .cuaderno-reading .cuaderno-split__frame::before {
    content: none;
  }

  .cuaderno-reading .cuaderno-split__frame {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 18px;
  }

  .cuaderno-block,
  .cuaderno-note__box {
    padding: 1.28rem 1.08rem 1.35rem;
    border-radius: 22px;
  }

  .cuaderno-section-head {
    margin-bottom: 1.2rem;
  }

  .cuaderno-keys,
  .cuaderno-gallery,
  .cuaderno-route,
  .cuaderno-closure {
    padding-bottom: 3.4rem;
  }
}

.cuaderno-page:not(.pro-page) .cuaderno-hero__meta {
  display: none;
}

/* Selector de ediciones del cuaderno: navegación superior móvil */
@media (max-width: 768px) {
  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher
    .site-label[data-edition-switcher] {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: auto;
    left: 50%;
    z-index: 950;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    width: 150px;
    max-width: calc(100vw - 2rem);
    min-height: 40px;
    padding: 3px;
    gap: 3px;
    border: 1px solid rgba(var(--brand-copper), 0.38);
    border-radius: 999px;
    background: rgba(246, 240, 233, 0.96);
    box-shadow:
      0 8px 24px rgba(58, 42, 31, 0.09),
      0 1px 0 rgba(255, 255, 255, 0.72) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
    pointer-events: auto;
    user-select: none;
    text-shadow: none;
  }

  body.pro-page.has-mobile-bottom-nav.has-mobile-edition-switcher
    .site-label[data-edition-switcher] {
    grid-template-columns: 0.82fr 0.72fr 1.18fr;
    width: 238px;
    gap: 0;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__separator {
    display: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(55, 44, 37, 0.58);
    font: inherit;
    font-size: 0;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-height: 30px;
    border-left: 1px solid rgba(var(--brand-copper), 0.34);
    border-radius: 0 999px 999px 0;
    background: rgba(var(--brand-copper), 0.07);
    box-shadow: none;
    cursor: pointer;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    [data-mobile-label="WEB"] {
    grid-column: 1;
    grid-row: 1;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    [data-mobile-label="PRO"] {
    grid-column: 2;
    grid-row: 1;
  }

  body.pro-page.has-mobile-edition-switcher
    [data-mobile-label="WEB"] {
    margin-right: 3px;
  }

  body.pro-page.has-mobile-edition-switcher
    [data-mobile-label="PRO"] {
    border-radius: 999px 0 0 999px;
    background: rgba(var(--brand-copper), 0.12);
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current {
    background: rgba(var(--brand-copper), 0.12);
    color: rgba(var(--brand-copper), 0.98);
    box-shadow: 0 0 0 1px rgba(var(--brand-copper), 0.2) inset;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current > * {
    display: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current::before,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link::before,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index::before {
    content: attr(data-mobile-label);
    font-family: var(--font-title);
    font-size: 0.69rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link::after {
    display: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link:hover,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link:focus-visible,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index:hover,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index:focus-visible {
    transform: none;
    color: rgba(var(--brand-copper), 0.98);
    letter-spacing: 0;
    text-shadow: none;
  }

  body.pro-page.has-mobile-edition-switcher .edition-switcher__pro-index.is-active {
    border-left-color: rgba(var(--brand-copper), 0.52);
    background: rgba(var(--brand-copper), 0.14);
    color: rgba(var(--brand-copper), 0.98);
    box-shadow: 0 0 0 1px rgba(var(--brand-copper), 0.2) inset;
  }

  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher .cuaderno-hero__inner,
  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher .pro-hero__inner {
    padding-top: calc(4.65rem + env(safe-area-inset-top));
  }

  body.cuaderno-page.has-mobile-edition-switcher .pro-section {
    scroll-margin-top: calc(4rem + env(safe-area-inset-top));
  }
}

/* En escritorio se conserva la misma jerarquía WEB | PRO · Índice PRO. */
@media (min-width: 769px) {
  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher
    .site-label[data-edition-switcher] {
    position: fixed;
    top: 1.1rem;
    right: auto;
    left: 50%;
    z-index: 20;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    width: 150px;
    min-height: 40px;
    padding: 3px;
    gap: 3px;
    border: 1px solid rgba(var(--brand-copper), 0.38);
    border-radius: 999px;
    background: rgba(246, 240, 233, 0.96);
    box-shadow:
      0 8px 24px rgba(58, 42, 31, 0.09),
      0 1px 0 rgba(255, 255, 255, 0.72) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
    pointer-events: auto;
    user-select: none;
    text-shadow: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .site-label[data-edition-switcher] {
    grid-template-columns: 0.82fr 0.72fr 1.18fr;
    width: 238px;
    gap: 0;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__separator {
    display: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(55, 44, 37, 0.58);
    font: inherit;
    font-size: 0;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index {
    grid-column: 3;
    grid-row: 1;
    min-height: 30px;
    border-left: 1px solid rgba(var(--brand-copper), 0.34);
    border-radius: 0 999px 999px 0;
    background: rgba(var(--brand-copper), 0.07);
    cursor: pointer;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    [data-mobile-label="WEB"] {
    grid-column: 1;
    grid-row: 1;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    [data-mobile-label="PRO"] {
    grid-column: 2;
    grid-row: 1;
  }

  body.pro-page.has-mobile-edition-switcher
    [data-mobile-label="WEB"] {
    margin-right: 3px;
  }

  body.pro-page.has-mobile-edition-switcher
    [data-mobile-label="PRO"] {
    border-radius: 999px 0 0 999px;
    background: rgba(var(--brand-copper), 0.12);
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current {
    background: rgba(var(--brand-copper), 0.12);
    color: rgba(var(--brand-copper), 0.98);
    box-shadow: 0 0 0 1px rgba(var(--brand-copper), 0.2) inset;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current > * {
    display: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current::before,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link::before,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index::before {
    content: attr(data-mobile-label);
    font-family: var(--font-title);
    font-size: 0.69rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link::after {
    display: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link:hover,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__link:focus-visible,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index:hover,
  body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__pro-index:focus-visible {
    transform: none;
    color: rgba(var(--brand-copper), 0.98);
    letter-spacing: 0;
    text-shadow: none;
  }

  body.pro-page.has-mobile-edition-switcher .edition-switcher__pro-index.is-active {
    border-left-color: rgba(var(--brand-copper), 0.52);
    background: rgba(var(--brand-copper), 0.14);
    color: rgba(var(--brand-copper), 0.98);
    box-shadow: 0 0 0 1px rgba(var(--brand-copper), 0.2) inset;
  }

  body.pro-page.has-mobile-edition-switcher .pro-reading-navigation {
    pointer-events: none;
  }

  body.pro-page.has-mobile-edition-switcher .pro-reading-navigation__summary {
    display: none;
  }

  body.pro-page.has-mobile-edition-switcher .pro-reading-navigation__panel {
    position: fixed;
    right: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 1.25rem;
    pointer-events: auto;
  }
}

@media (max-width: 980px) {
  .cuaderno-page--peperoncino .cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map) {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .cuaderno-page--sombrerico .cuaderno-reading .cuaderno-split__frame:has(.sombrerico-map) {
    aspect-ratio: 3 / 2;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .cuaderno-page--peperoncino .cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map) {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .cuaderno-page--sombrerico .cuaderno-reading .cuaderno-split__frame:has(.sombrerico-map) {
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .peperoncino-map {
    border-radius: 18px;
  }

  .peperoncino-map__region-label {
    font-size: 2.7px;
    letter-spacing: 0;
  }

  .peperoncino-map__sea-labels text {
    font-size: 2.25px;
    letter-spacing: 0;
  }

  .peperoncino-map__route-segment {
    stroke-width: 0.24;
  }

  .peperoncino-map__place-card {
    max-width: min(152px, calc(100% - 16px));
    padding: 0.27rem 0.35rem;
  }

  .peperoncino-map__place-day {
    font-size: 0.52rem;
  }

  .peperoncino-map__place-name {
    font-size: 0.59rem;
  }

}

@media (max-width: 520px) {
  .cuaderno-page--peperoncino .cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map),
  .cuaderno-page--sombrerico .cuaderno-reading .cuaderno-split__frame:has(.sombrerico-map) {
    min-height: 0;
  }

  .peperoncino-map__region-label {
    font-size: 2.4px;
  }

  .peperoncino-map__sea-labels {
    opacity: 0.62;
  }

}

.cuaderno-hero__eyebrow,
.cuaderno-note__eyebrow,
.cuaderno-section-head__eyebrow,
.cuaderno-card-block__eyebrow {
  color: var(--lxx-editorial-label-color);
}

/* Barra editorial del cuaderno: una única secuencia, sin saltos de línea. */
@media (min-width: 769px) {
  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher
    .site-label[data-edition-switcher] {
    display: flex !important;
    width: max-content;
    min-width: 0;
    max-width: calc(100vw - 3rem);
    min-height: 42px;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 3px;
    overflow: hidden;
    white-space: nowrap;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__back,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__current,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__link,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__print {
    position: static;
    box-sizing: border-box;
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 0.88rem;
    border: 0;
    border-left: 1px solid rgba(var(--brand-copper), 0.28);
    border-radius: 0;
    background: transparent;
    color: rgba(55, 44, 37, 0.62);
    font-family: var(--font-title);
    font-size: 0;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__back {
    order: 1;
    border-left: 0;
    font-size: 0.69rem;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    [data-mobile-label="WEB"] {
    order: 2;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    [data-mobile-label="PRO"] {
    order: 3;
    margin: 0;
    border-radius: 999px 0 0 999px;
    background: rgba(var(--brand-copper), 0.06);
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index {
    order: 4;
    grid-column: auto;
    grid-row: auto;
    padding-right: 0.78rem;
    padding-left: 0.72rem;
    border-left-color: rgba(var(--brand-copper), 0.34);
    border-radius: 0;
    background: rgba(var(--brand-copper), 0.06);
    cursor: pointer;
    text-transform: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search {
    order: 5;
    padding-inline: 0.72rem;
    border-radius: 0 999px 999px 0;
    background: rgba(var(--brand-copper), 0.06);
    cursor: pointer;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__print {
    order: 6;
    font-size: 0.69rem;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__current {
    background: rgba(var(--brand-copper), 0.12);
    color: rgba(var(--brand-copper), 0.98);
    box-shadow: 0 0 0 1px rgba(var(--brand-copper), 0.2) inset;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__current::before,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__link::before,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index::before,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search::before {
    content: attr(data-mobile-label);
    font-size: 0.69rem;
    letter-spacing: 0.12em;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index::before,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search::before {
    font-size: 0.61rem;
    letter-spacing: 0.1em;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__back:hover,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__back:focus-visible,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__link:hover,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__link:focus-visible,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index:hover,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index:focus-visible,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search:hover,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search:focus-visible,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__print:hover,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__print:focus-visible {
    color: rgba(var(--brand-copper), 0.98);
  }

  body.pro-page.has-mobile-edition-switcher
    .pro-reading-navigation__panel {
    top: 4.35rem;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher
    .site-label[data-edition-switcher] {
    display: flex !important;
    width: min(390px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    min-height: 42px;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 3px;
    overflow: hidden;
    white-space: nowrap;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__back,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__current,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__link,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__print {
    position: static;
    box-sizing: border-box;
    display: inline-flex !important;
    width: auto;
    min-width: 0;
    min-height: 34px;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 clamp(0.3rem, 1.5vw, 0.5rem);
    border: 0;
    border-left: 1px solid rgba(var(--brand-copper), 0.28);
    border-radius: 0;
    background: transparent;
    color: rgba(55, 44, 37, 0.62);
    font-family: var(--font-title);
    font-size: 0;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__back {
    order: 1;
    border-left: 0;
    font-size: 0.75rem;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    [data-mobile-label="WEB"] {
    order: 2;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    [data-mobile-label="PRO"] {
    order: 3;
    margin: 0;
    border-radius: 999px 0 0 999px;
    background: rgba(var(--brand-copper), 0.06);
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index {
    order: 4;
    grid-column: auto;
    grid-row: auto;
    padding-inline: clamp(0.38rem, 1.9vw, 0.62rem);
    border-left-color: rgba(var(--brand-copper), 0.34);
    border-radius: 0;
    background: rgba(var(--brand-copper), 0.06);
    text-transform: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search {
    order: 5;
    padding-inline: clamp(0.32rem, 1.55vw, 0.52rem);
    border-radius: 0 999px 999px 0;
    background: rgba(var(--brand-copper), 0.06);
    cursor: pointer;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__print {
    order: 6;
    font-size: 0.75rem;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__current::before,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__link::before {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-index::before,
  body.cuaderno-page.has-mobile-edition-switcher
    .edition-switcher__pro-search::before {
    content: attr(data-mobile-label);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: none;
  }

  /* La portada funciona como una banda editorial, no como una segunda pantalla. */
  .cuaderno-page:not(.pro-page) .cuaderno-hero__cover {
    width: 100%;
    margin: 0.65rem 0 0.45rem;
    padding: 0.42rem 0;
    border-top: 1px solid rgba(var(--brand-copper), 0.26);
    border-bottom: 1px solid rgba(var(--brand-copper), 0.26);
  }

  .cuaderno-page:not(.pro-page) .cuaderno-hero__coverMedia {
    height: clamp(7.5rem, 34vw, 9.25rem);
    aspect-ratio: auto;
    border-radius: 2px;
  }

  .cuaderno-page--peperoncino:not(.pro-page)
    .cuaderno-hero__coverImg {
    object-position: center 46%;
  }
}

.cuaderno-closure__toggle {
  display: none;
}

.cuaderno-closure__content {
  display: contents;
}

.cuaderno-day-browser__choice--closure {
  margin-top: 0.3rem;
  border-top: 1px solid rgba(var(--brand-copper), 0.34);
  color: rgba(var(--brand-copper), 0.9);
}

/* =====================================================
   PORTADAS WEB · COMPOSICIÓN EDITORIAL INTEGRADA
   Peperoncino y El Sombrerico comparten una página plana:
   la retícula y las líneas sustituyen a tarjetas y sombras.
===================================================== */

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page) .cuaderno-hero {
  min-height: auto;
  align-items: flex-start;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-hero::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 68%);
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-hero__inner {
  width: min(1540px, calc(100vw - clamp(3rem, 10vw, 12rem)));
  max-width: none;
  padding-top: clamp(7.5rem, 12vh, 9rem);
  padding-bottom: clamp(2.5rem, 4vh, 3.5rem);
  border-bottom: 0;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-hero__coverMedia {
  max-width: none;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  outline: 1px solid rgba(105, 77, 59, 0.16);
  outline-offset: -1px;
  box-shadow: none;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-hero__coverMedia::before,
body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-hero__coverMedia::after {
  content: none;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(4.5rem, 8vw, 7.5rem);
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading > .container {
  width: min(1540px, calc(100vw - clamp(3rem, 10vw, 12rem)));
  max-width: none;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-split {
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(3.5rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(1.4rem, 2.5vw, 2.5rem) 0;
  border: 0;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-split__content {
  display: block;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-block {
  width: auto;
  min-height: 0;
  justify-content: flex-start;
  padding: 0 0 0 clamp(1.15rem, 2vw, 1.7rem);
  border: 0;
  border-left: 1px solid rgba(var(--brand-copper), 0.38);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-block::before,
body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-split__frame::before {
  content: none;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-block__kicker {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-block__kicker::before {
  content: "01";
  color: rgba(var(--brand-copper), 0.92);
  letter-spacing: 0.16em;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-block__title {
  max-width: 17ch;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-block__text {
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.74;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-split__media {
  align-self: center;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .cuaderno-split__frame {
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cuaderno-page--peperoncino:not(.pro-page)
  .cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map) {
  aspect-ratio: 4 / 3;
}

body.cuaderno-page--sombrerico:not(.pro-page)
  .cuaderno-reading .cuaderno-split__frame:has(.sombrerico-map) {
  aspect-ratio: 3 / 2;
}

body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
  .cuaderno-reading .peperoncino-map {
  border: 1px solid rgba(105, 77, 59, 0.16);
  border-radius: 4px;
  box-shadow: none;
}

@media (min-width: 981px) {
  body.cuaderno-page--peperoncino:not(.pro-page) .cuaderno-hero__inner--split {
    grid-template-columns: minmax(360px, 0.72fr) minmax(540px, 1.28fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(3.5rem, 5vw, 6.5rem);
    row-gap: 0;
  }

  body.cuaderno-page--peperoncino:not(.pro-page) .cuaderno-hero__eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  body.cuaderno-page--peperoncino:not(.pro-page) .cuaderno-hero__title {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0.9rem;
    font-size: clamp(3.35rem, 4vw, 4.6rem);
    white-space: nowrap;
  }

  body.cuaderno-page--peperoncino:not(.pro-page) .cuaderno-hero__editorial {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    max-width: 39rem;
    padding-top: 0;
    border-top: 0;
  }

  body.cuaderno-page--peperoncino:not(.pro-page) .cuaderno-hero__cover {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: stretch;
    padding-top: 0;
  }

  body.cuaderno-page--peperoncino:not(.pro-page) .cuaderno-hero__coverMedia {
    width: 100%;
    height: clamp(31rem, 58vh, 36rem);
  }

  body.cuaderno-page--sombrerico:not(.pro-page) .cuaderno-hero__inner--split {
    grid-template-columns: minmax(520px, 1.08fr) minmax(360px, 0.92fr);
    grid-template-rows: auto auto auto minmax(21rem, auto);
    column-gap: clamp(3.5rem, 5vw, 6.5rem);
    row-gap: 0;
  }

  body.cuaderno-page--sombrerico:not(.pro-page) .cuaderno-hero__title {
    margin-bottom: clamp(1.5rem, 3vh, 2.2rem);
    font-size: clamp(3.5rem, 4.7vw, 5rem);
  }

  body.cuaderno-page--sombrerico:not(.pro-page) .cuaderno-hero__subtitle {
    margin-bottom: 1.35rem;
  }

  body.cuaderno-page--sombrerico:not(.pro-page) .cuaderno-hero__coverMedia {
    width: 100%;
    height: clamp(21rem, 42vh, 26.5rem);
  }

  body.cuaderno-page--sombrerico:not(.pro-page) .cuaderno-hero__hook {
    align-self: center;
    max-width: 36rem;
    margin: 0;
    padding: 1.5rem 0 1.5rem clamp(1.4rem, 2.2vw, 2.1rem);
    border-left-color: rgba(var(--brand-copper), 0.42);
    font-size: clamp(1.12rem, 1.45vw, 1.34rem);
    line-height: 1.72;
  }

  /* La navegación conserva su jerarquía, pero deja de ser una cápsula flotante. */
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page).has-mobile-edition-switcher
    .site-label[data-edition-switcher] {
    min-height: 38px;
    padding: 0 0 0.18rem;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(var(--brand-copper), 0.34);
    border-radius: 0;
    background: rgba(242, 235, 227, 0.42);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page).has-mobile-edition-switcher
    .edition-switcher__current {
    border-radius: 0;
    background: transparent;
    box-shadow: inset 0 -2px rgba(var(--brand-copper), 0.78);
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page).has-mobile-edition-switcher
    [data-mobile-label="PRO"],
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page).has-mobile-edition-switcher
    .edition-switcher__pro-index,
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page).has-mobile-edition-switcher
    .edition-switcher__pro-search {
    border-radius: 0;
    background: transparent;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__inner,
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading > .container {
    width: calc(100vw - 4rem);
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__inner--split {
    grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
    gap: 2.5rem;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__coverMedia {
    height: clamp(25rem, 52vw, 31rem);
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading .cuaderno-split {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
}

@media (max-width: 768px) {
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__inner,
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading > .container {
    width: calc(100vw - 2rem);
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__inner--split {
    gap: 1.15rem;
    padding: calc(5.25rem + env(safe-area-inset-top)) 0 3rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__inner--split::before {
    content: none;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__eyebrow {
    margin-bottom: 0.25rem;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__title {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 0.98;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__cover {
    width: calc(100% + 2rem);
    margin: 0.7rem -1rem 0.4rem;
    padding: 0;
    border: 0;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__coverMedia {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    outline: 0;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-hero__coverImg {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  body.cuaderno-page--sombrerico:not(.pro-page) .cuaderno-hero__hook {
    margin-top: 0.35rem;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading {
    padding: 2.75rem 0 4.8rem;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading .cuaderno-split {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 1.75rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading .cuaderno-split::before {
    content: none;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading .cuaderno-block {
    padding-left: 1rem;
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading .cuaderno-block__title {
    max-width: 19ch;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading .cuaderno-split__frame,
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page)
    .cuaderno-reading .peperoncino-map {
    border-radius: 2px;
  }
}

@media (max-width: 768px) {
  .cuaderno-closure {
    padding-top: 0.45rem;
  }

  .cuaderno-closure .cuaderno-note__box {
    min-height: 0;
    padding: 0.7rem;
    border-radius: 22px;
  }

  .cuaderno-closure__toggle {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.8rem;
    width: 100%;
    min-height: 66px;
    align-items: center;
    padding: 0.45rem 0.5rem;
    border: 0;
    background: transparent;
    color: rgba(34, 27, 22, 0.86);
    cursor: pointer;
    text-align: left;
  }

  .cuaderno-closure__toggleEyebrow {
    grid-column: 1;
    font-family: var(--font-title);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(var(--brand-copper), 0.94);
  }

  .cuaderno-closure__toggleTitle {
    grid-column: 1;
    font-family: var(--font-title);
    font-size: 1.12rem;
    font-weight: 300;
    line-height: 1.2;
  }

  .cuaderno-closure__toggleAction {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(var(--brand-copper), 0.9);
    white-space: nowrap;
  }

  .cuaderno-closure__toggleDots {
    display: inline-flex;
    min-width: 2rem;
    min-height: 1.4rem;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
  }

  .cuaderno-closure__toggleDots > span {
    width: 0.26rem;
    height: 0.26rem;
    border-radius: 999px;
    background: rgba(var(--brand-copper), 0.78);
    opacity: 0.42;
    animation: lxxGuideDotTest 1.2s ease-in-out infinite;
  }

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

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

  .cuaderno-closure__toggle:focus-visible {
    outline: 1px solid rgba(var(--brand-copper), 0.52);
    outline-offset: 3px;
  }

  .cuaderno-closure__content {
    display: none;
    margin-top: 0.35rem;
    padding: 1rem 0.5rem 0.45rem;
    border-top: 1px solid rgba(var(--brand-copper), 0.22);
  }

  .cuaderno-note__box.is-open .cuaderno-closure__content {
    display: block;
  }

  .cuaderno-closure__content > .cuaderno-note__eyebrow,
  .cuaderno-closure__content > .cuaderno-note__title {
    display: none;
  }
}

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

/* La edición actual debe reconocerse de un vistazo en el navegador fijo. */
body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current {
  background: rgba(var(--brand-copper), 0.94);
  color: rgba(255, 250, 244, 0.98);
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(106, 47, 31, 0.44) inset,
    0 3px 8px rgba(77, 41, 29, 0.18);
}

body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current::before,
body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current .edition-switcher__reading,
body.cuaderno-page.has-mobile-edition-switcher .edition-switcher__current .edition-switcher__edition {
  color: rgba(255, 250, 244, 0.98);
  font-weight: 700;
  text-shadow: none;
}

@media (max-width: 768px) {
  .cuaderno-block__text,
  .cuaderno-note__text,
  .cuaderno-section-intro,
  .cuaderno-gallery-day__summary,
  .cuaderno-route-real__summary,
  .cuaderno-route-real__caption,
  .cuaderno-gallery-figure__caption,
  .cuaderno-gallery__caption,
  .cuaderno-card-block__text,
  .cuaderno-author__content p {
    font-size: 1rem;
  }
}

@media (min-width: 981px) {
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page).has-mobile-edition-switcher
    .edition-switcher__current::before,
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page).has-mobile-edition-switcher
    .edition-switcher__current .edition-switcher__reading,
  body:is(.cuaderno-page--peperoncino, .cuaderno-page--sombrerico):not(.pro-page).has-mobile-edition-switcher
    .edition-switcher__current .edition-switcher__edition {
    color: rgba(var(--brand-copper), 0.98);
    font-weight: 600;
  }
}

/* =====================================================
   SISTEMA EDITORIAL WEB · SIN CÁPSULAS
   Se aplica a todos los cuadernos WEB presentes y futuros.
   PRO y PRINT conservan su lenguaje propio.
===================================================== */

body.cuaderno-page[data-version="web"]
  :is(.cuaderno-keys, .cuaderno-gallery, .cuaderno-route, .cuaderno-closure, .cuaderno-author)
  > .container {
  width: min(1540px, calc(100vw - clamp(3rem, 10vw, 12rem)));
  max-width: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-hero__coverMedia,
body.cuaderno-page[data-version="web"] .cuaderno-split__frame,
body.cuaderno-page[data-version="web"] .cuaderno-gallery__photo,
body.cuaderno-page[data-version="web"] .cuaderno-route-real__photo,
body.cuaderno-page[data-version="web"] .cuaderno-route-real__image-frame,
body.cuaderno-page[data-version="web"] .peperoncino-map {
  border-radius: 4px;
  box-shadow: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-hero__coverMedia {
  border: 0;
  outline: 1px solid rgba(105, 77, 59, 0.14);
  outline-offset: -1px;
}

body.cuaderno-page[data-version="web"] .cuaderno-hero__coverMedia::before,
body.cuaderno-page[data-version="web"] .cuaderno-hero__coverMedia::after {
  content: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-reading .cuaderno-split {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cuaderno-page[data-version="web"]
  :is(
    .cuaderno-block,
    .cuaderno-card-block,
    .cuaderno-route-real__item,
    .cuaderno-gallery-day,
    .cuaderno-gallery__item,
    .cuaderno-note__box,
    .cuaderno-author__inner
  ) {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cuaderno-page[data-version="web"]
  :is(
    .cuaderno-block,
    .cuaderno-card-block,
    .cuaderno-route-real__item,
    .cuaderno-gallery-day,
    .cuaderno-gallery__item,
    .cuaderno-note__box,
    .cuaderno-author__inner
  )::before {
  content: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-section-head {
  max-width: 72ch;
  padding-left: clamp(1.1rem, 2vw, 1.7rem);
  border-left: 1px solid rgba(var(--brand-copper), 0.38);
}

body.cuaderno-page[data-version="web"] .cuaderno-section-head__title {
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
}

body.cuaderno-page[data-version="web"] .cuaderno-cards-grid {
  gap: clamp(2.2rem, 4.5vw, 4.5rem) clamp(2rem, 4vw, 4rem);
}

body.cuaderno-page[data-version="web"] .cuaderno-card-block {
  min-height: 0;
  padding: 0.2rem 0 0.35rem clamp(1.1rem, 2vw, 1.55rem);
  border: 0;
  border-left: 1px solid rgba(var(--brand-copper), 0.3);
}

body.cuaderno-page[data-version="web"] .cuaderno-card-block__title {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

body.cuaderno-page[data-version="web"] .cuaderno-card-block__text {
  max-width: 54ch;
  line-height: 1.7;
}

body.cuaderno-page[data-version="web"] .cuaderno-route-real__list,
body.cuaderno-page[data-version="web"] .cuaderno-gallery-days {
  gap: clamp(2.5rem, 5vw, 5rem);
}

body.cuaderno-page[data-version="web"] .cuaderno-route-real__item,
body.cuaderno-page[data-version="web"] .cuaderno-gallery-day {
  padding: 0.4rem 0 0.8rem clamp(1.1rem, 2vw, 1.55rem);
  border: 0;
  border-left: 1px solid rgba(var(--brand-copper), 0.3);
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-day--intro,
body.cuaderno-page[data-version="web"] .cuaderno-gallery-day--logistics {
  background: transparent;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-day.is-map-target {
  border-color: rgba(var(--brand-copper), 0.72);
  box-shadow: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-day__title {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-day__summary,
body.cuaderno-page[data-version="web"] .cuaderno-route-real__summary {
  line-height: 1.7;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery__item {
  padding: 0;
  border: 0;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery__photo,
body.cuaderno-page[data-version="web"] .cuaderno-route-real__photo,
body.cuaderno-page[data-version="web"] .cuaderno-route-real__image-frame,
body.cuaderno-page[data-version="web"] .cuaderno-route-real__img {
  overflow: hidden;
  border-radius: 3px;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery__placeholder,
body.cuaderno-page[data-version="web"] .cuaderno-route-real__placeholder {
  border: 1px dashed rgba(var(--brand-copper), 0.32);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery__item::before,
body.cuaderno-page[data-version="web"] .cuaderno-route-real__placeholder::before {
  content: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-closure .cuaderno-note__box {
  min-height: 0;
  padding: 0.35rem 0 0.5rem clamp(1.1rem, 2vw, 1.7rem);
  border: 0;
  border-left: 1px solid rgba(var(--brand-copper), 0.38);
  text-align: left;
}

body.cuaderno-page[data-version="web"] .cuaderno-closure .cuaderno-note__text {
  max-width: 72ch;
}

body.cuaderno-page[data-version="web"] .cuaderno-author__inner {
  padding: 0.35rem 0 0.5rem clamp(1.1rem, 2vw, 1.7rem);
  border: 0;
  border-left: 1px solid rgba(var(--brand-copper), 0.38);
}

body.cuaderno-page[data-version="web"] .cuaderno-author__inner::before {
  content: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choices,
body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager {
  border-top: 0;
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice {
  padding-left: 0.75rem;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice:hover,
body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice:focus-visible,
body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice.is-active {
  padding-left: 0.95rem;
  border-left-color: rgba(var(--brand-copper), 0.72);
  background: rgba(var(--brand-copper), 0.045);
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice--closure,
body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager {
  border-top: 0;
}

/* Navegación WEB plana en escritorio y móvil. */
body.cuaderno-page[data-version="web"].has-mobile-edition-switcher
  .site-label[data-edition-switcher] {
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(var(--brand-copper), 0.34);
  border-radius: 0;
  background: rgba(242, 235, 227, 0.82);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.cuaderno-page[data-version="web"].has-mobile-edition-switcher
  :is(
    .edition-switcher__back,
    .edition-switcher__current,
    .edition-switcher__link,
    .edition-switcher__pro-index,
    .edition-switcher__pro-search,
    .edition-switcher__print
  ) {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cuaderno-page[data-version="web"].has-mobile-edition-switcher
  .edition-switcher__current {
  background: transparent;
  color: rgba(var(--brand-copper), 0.98);
  box-shadow: inset 0 -2px rgba(var(--brand-copper), 0.78);
}

body.cuaderno-page[data-version="web"].has-mobile-edition-switcher
  .edition-switcher__current::before,
body.cuaderno-page[data-version="web"].has-mobile-edition-switcher
  .edition-switcher__current .edition-switcher__reading,
body.cuaderno-page[data-version="web"].has-mobile-edition-switcher
  .edition-switcher__current .edition-switcher__edition {
  color: rgba(var(--brand-copper), 0.98);
  font-weight: 600;
}

@media (max-width: 980px) {
  body.cuaderno-page[data-version="web"]
    :is(.cuaderno-keys, .cuaderno-gallery, .cuaderno-route, .cuaderno-closure, .cuaderno-author)
    > .container {
    width: calc(100vw - 4rem);
  }
}

@media (max-width: 768px) {
  body.cuaderno-page[data-version="web"]
    :is(.cuaderno-keys, .cuaderno-gallery, .cuaderno-route, .cuaderno-closure, .cuaderno-author)
    > .container {
    width: calc(100vw - 2rem);
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__inner--split {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__inner--split::before,
  body.cuaderno-page[data-version="web"] .cuaderno-reading .cuaderno-split::before {
    content: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-reading .cuaderno-split {
    padding: 0;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-cards-grid {
    gap: 2.25rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-section-head,
  body.cuaderno-page[data-version="web"] .cuaderno-card-block,
  body.cuaderno-page[data-version="web"] .cuaderno-route-real__item,
  body.cuaderno-page[data-version="web"] .cuaderno-gallery-day,
  body.cuaderno-page[data-version="web"] .cuaderno-closure .cuaderno-note__box,
  body.cuaderno-page[data-version="web"] .cuaderno-author__inner {
    padding-left: 1rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-gallery__photo,
  body.cuaderno-page[data-version="web"] .cuaderno-route-real__photo,
  body.cuaderno-page[data-version="web"] .cuaderno-route-real__image-frame,
  body.cuaderno-page[data-version="web"] .cuaderno-route-real__img,
  body.cuaderno-page[data-version="web"] .peperoncino-map {
    border-radius: 2px;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-closure__content {
    border-top: 0;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__mobile-controls::before,
  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__mobile-controls::after {
    content: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__toggle {
    border: 0;
    border-left: 1px solid rgba(var(--brand-copper), 0.48);
    border-radius: 0;
    background: rgba(246, 240, 233, 0.9);
    box-shadow: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choices {
    gap: 0.2rem;
    padding: 0.5rem;
    border-radius: 2px;
    background: rgba(246, 240, 233, 0.98);
    box-shadow: 0 12px 28px rgba(48, 34, 25, 0.11);
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice {
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice:hover,
  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice:focus-visible,
  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice.is-active {
    border-left-color: rgba(var(--brand-copper), 0.72);
    background: rgba(var(--brand-copper), 0.055);
  }
}

/* Navegación inferior de días: visible, táctil y coherente con las CTA LXX. */
body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager {
  gap: clamp(0.55rem, 1.5vw, 1rem);
  margin-top: 0.8rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(95, 85, 77, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button {
  width: fit-content;
  min-width: clamp(7.5rem, 12vw, 9.5rem);
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(var(--brand-copper), 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  color: rgba(34, 27, 22, 0.78);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button:first-child {
  justify-self: start;
  text-align: center;
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button:last-child {
  justify-self: end;
  text-align: center;
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button:hover,
body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-copper), 0.48);
  background: rgba(var(--brand-copper), 0.1);
  color: rgba(var(--brand-copper), 0.98);
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button:disabled {
  visibility: hidden;
}

body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager p {
  font-size: 0.67rem;
  font-weight: 500;
  color: rgba(34, 27, 22, 0.7);
}

@media (max-width: 768px) {
  body.cuaderno-page[data-version="web"] {
    overflow-anchor: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "status status"
      "previous next";
    gap: 0.5rem 0.6rem;
    padding: 0.5rem;
    border-radius: 14px;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button {
    width: 100%;
    min-width: 0;
    padding-inline: 0.5rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button:first-child {
    grid-area: previous;
    justify-self: stretch;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager button:last-child {
    grid-area: next;
    justify-self: stretch;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager p {
    grid-area: status;
    width: 100%;
    overflow: hidden;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.cuaderno-page[data-version="web"]
    :is(.cuaderno-day-browser__reading, .cuaderno-day-browser__panel) {
    overflow-anchor: none;
  }
}

/* En escritorio, la navegación completa se alinea bajo "punto de partida". */
@media (min-width: 769px) {
  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher
    .site-label[data-edition-switcher] {
    top: 4rem;
    right: 1.25rem;
    left: auto;
    transform: none;
  }

  body.pro-page.has-mobile-edition-switcher .pro-reading-navigation__panel {
    top: 7.15rem;
    right: 1.25rem;
    left: auto;
    transform: none;
  }
}

/* Días WEB: recupera la superficie editorial y deja visibles los pies de foto. */
body.cuaderno-page[data-version="web"] .cuaderno-gallery-day,
body.cuaderno-page[data-version="web"] .cuaderno-gallery-day--intro,
body.cuaderno-page[data-version="web"] .cuaderno-gallery-day--logistics {
  padding: clamp(0.9rem, 1.6vw, 1.2rem);
  border: 1px solid rgba(95, 85, 77, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure {
  align-content: start;
  gap: 0.58rem;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure__caption {
  padding-inline: 0.1rem;
  color: rgba(34, 27, 22, 0.68);
}

@media (min-width: 769px) {
  body.cuaderno-page[data-version="web"] .cuaderno-day-browser {
    height: clamp(560px, 82dvh, 760px);
  }
}

/* Escala editorial común: una sola medida para todo el texto de lectura WEB. */
body.cuaderno-page[data-version="web"] {
  --lxx-reading-size: 1rem;
}

body.cuaderno-page[data-version="web"]
  :is(
    .cuaderno-hero__lead,
    .cuaderno-block__text,
    .cuaderno-note__text,
    .cuaderno-section-intro,
    .cuaderno-gallery-day__summary,
    .cuaderno-route-real__summary,
    .cuaderno-route-real__caption,
    .cuaderno-gallery-figure__caption,
    .cuaderno-gallery__caption,
    .cuaderno-card-block__text,
    .cuaderno-author__content p
  ) {
  font-size: var(--lxx-reading-size);
}

/* Garantía tipográfica LXX para contenido y controles de los cuadernos. */
body.cuaderno-page,
body.cuaderno-page :where(button, input, select, textarea) {
  font-family: var(--font-base);
}

/* =====================================================
   PORTADAS WEB DESKTOP · VENTANA EDITORIAL INTEGRADA
   El texto y la imagen comparten una sola superficie. La
   fotografía se funde en el borde interior de la cápsula.
===================================================== */

@media (min-width: 981px) {
  body.cuaderno-page[data-version="web"] .cuaderno-hero__inner--split {
    grid-template-columns: minmax(23rem, 0.82fr) minmax(34rem, 1.18fr);
    grid-template-rows: clamp(31rem, 66vh, 39rem);
    gap: 0;
    align-items: stretch;
    height: clamp(31rem, 66vh, 39rem);
    min-height: 0;
    box-sizing: border-box;
    margin-top: clamp(8rem, 14vh, 9.5rem);
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(95, 85, 77, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__inner--split {
    grid-template-columns: minmax(34rem, 1.18fr) minmax(24rem, 0.82fr);
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__content {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.35rem, 4.2vw, 4.5rem) clamp(1.8rem, 3.5vw, 3.8rem);
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__editorial {
    display: block;
    width: 100%;
    max-width: 38rem;
  }

  body.cuaderno-page[data-version="web"]
    :is(
      .cuaderno-hero__eyebrow,
      .cuaderno-hero__title,
      .cuaderno-hero__editorial,
      .cuaderno-hero__subtitle,
      .cuaderno-hero__hook,
      .cuaderno-hero__meta
    ) {
    grid-column: auto;
    grid-row: auto;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__title {
    max-width: 100%;
    margin-bottom: clamp(1.1rem, 2.2vh, 1.7rem);
    font-size: clamp(3rem, 4vw, 4.45rem);
    white-space: normal;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__subtitle {
    margin: 0;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__hook {
    align-self: auto;
    max-width: 34rem;
    margin: clamp(1.35rem, 2.8vh, 2rem) 0 0;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__cover {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__coverMedia {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    outline: 0;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__coverMedia::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 0;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__coverMedia::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.12) 12%,
      rgba(255, 255, 255, 0) 28%
    );
    pointer-events: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__coverImg {
    transform: scale(1.015);
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverMedia {
    display: grid;
    place-items: stretch end;
    background: rgba(255, 255, 255, 0.08);
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverMedia::before {
    background: transparent;
    box-shadow: inset 1px 0 0 rgba(95, 85, 77, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverImg {
    position: relative;
    z-index: 2;
    width: min(100%, 29rem);
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    transform: none;
    box-shadow:
      -1px 0 rgba(95, 85, 77, 0.08),
      1px 0 rgba(95, 85, 77, 0.08);
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverMedia::after {
    content: none;
  }
}

/* =====================================================
   MÓVIL · MARCADOR DE DÍAS Y PORTADA WEB
   Recupera el marcador apilado LXX y da a la fotografía
   de portada la misma proporción serena que usa PRO.
===================================================== */

@media (max-width: 768px) {
  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__index {
    width: min(100%, calc(100vw - 2rem));
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__mobile-controls {
    margin-bottom: 0.7rem;
    isolation: isolate;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__mobile-controls::before,
  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__mobile-controls::after {
    content: "";
    position: absolute;
    right: 0.55rem;
    bottom: -0.38rem;
    left: 0.55rem;
    z-index: -1;
    height: 100%;
    border: 1px solid rgba(var(--brand-copper), 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__mobile-controls::after {
    right: 1rem;
    bottom: -0.68rem;
    left: 1rem;
    z-index: -2;
    border-color: rgba(var(--brand-copper), 0.11);
    background: rgba(255, 255, 255, 0.1);
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__toggle {
    min-height: 78px;
    gap: 1rem;
    padding: 0.86rem 1rem;
    border: 1px solid rgba(95, 85, 77, 0.1);
    border-left: 2px solid rgba(var(--brand-copper), 0.52);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__toggle-copy {
    gap: 0.24rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__toggle-meta {
    font-size: 0.66rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__toggle-label {
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: clip;
    white-space: normal;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__toggle-side {
    gap: 0.36rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__toggle-action {
    font-size: 0.62rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__stack span {
    width: 0.3rem;
    height: 0.3rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__cover {
    width: calc(100% - 2.5rem);
    margin: 0.72rem auto 0.62rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__coverMedia {
    width: 100%;
    height: auto;
    aspect-ratio: 2.48 / 1;
    border-radius: 2px;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-hero__coverImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverImg {
    object-position: center 46%;
  }
}

/* Días WEB: la navegación sigue siempre al final real de la cápsula activa. */
@media (min-width: 769px) {
  body.cuaderno-page[data-version="web"] .cuaderno-day-browser {
    height: auto;
    align-items: start;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__index {
    position: sticky;
    top: 7.2rem;
    height: auto;
    max-height: calc(100dvh - 8.4rem);
    overflow: hidden;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choices {
    height: auto;
    max-height: calc(100dvh - 8.4rem);
    overflow-y: auto;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__reading {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__panel {
    min-height: 0;
    padding-right: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__pager {
    position: static;
  }
}

/* Peperoncino · lectura del viaje: lámina cartográfica sobre paspartú. */
@media (min-width: 981px) {
  body.cuaderno-page--peperoncino[data-version="web"]
    .cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map) {
    box-sizing: border-box;
    padding: clamp(0.75rem, 1.25vw, 1.1rem);
    overflow: hidden;
    border: 1px solid rgba(95, 85, 77, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
  }

  body.cuaderno-page--peperoncino[data-version="web"]
    .cuaderno-reading .cuaderno-split__frame:has(.peperoncino-map)::before {
    content: "";
    position: absolute;
    inset: clamp(0.75rem, 1.25vw, 1.1rem);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    pointer-events: none;
  }

  body.cuaderno-page--peperoncino[data-version="web"]
    .cuaderno-reading .peperoncino-map {
    border: 0;
    border-radius: 10px;
    filter: saturate(0.86) contrast(0.97);
  }
}

/* Peperoncino WEB: adopta la composicion editorial equilibrada de la portada PRO. */
@media (min-width: 981px) {
  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__inner--split {
    grid-template-columns: minmax(30rem, 0.94fr) minmax(30rem, 1.06fr);
    grid-template-rows: clamp(34rem, 69vh, 40rem);
    height: clamp(34rem, 69vh, 40rem);
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__content {
    grid-column: 2;
    max-width: none;
    padding: clamp(2.4rem, 4vw, 4.3rem) clamp(2.1rem, 3.8vw, 4.1rem);
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__editorial {
    max-width: 42rem;
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__cover {
    grid-column: 1;
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverMedia {
    display: block;
    background: transparent;
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverMedia::before {
    background: linear-gradient(
      270deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.12) 12%,
      rgba(255, 255, 255, 0) 28%
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverMedia::after {
    content: none;
  }

  body.cuaderno-page--peperoncino[data-version="web"] .cuaderno-hero__coverImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    transform: scale(1.015);
    box-shadow: none;
  }
}

/* Cuatro claves: misma cápsula translúcida que los días PRO. */
body.cuaderno-page[data-version="web"] .cuaderno-keys .cuaderno-cards-grid {
  gap: clamp(1rem, 2vw, 1.4rem);
}

body.cuaderno-page[data-version="web"] .cuaderno-keys .cuaderno-card-block {
  min-height: 100%;
  padding: clamp(0.9rem, 1.6vw, 1.2rem);
  border: 1px solid rgba(95, 85, 77, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.cuaderno-page[data-version="web"] .cuaderno-keys .cuaderno-card-block::before {
  content: none;
}

@media (max-width: 768px) {
  body.cuaderno-page[data-version="web"] .cuaderno-keys .cuaderno-cards-grid {
    gap: 1rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-keys .cuaderno-card-block {
    padding: clamp(0.9rem, 1.6vw, 1.2rem);
    border-radius: 16px;
  }
}

/* Navegación por edición y herramientas de lectura separadas. */
body.cuaderno-page .site-label[data-edition-switcher].edition-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, auto));
  align-items: stretch;
  gap: 0;
  width: auto;
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(95, 85, 77, 0.16);
  border-radius: var(--lxx-edition-capsule-radius);
  background: rgba(246, 240, 233, 0.88);
  box-shadow: 0 8px 22px rgba(55, 40, 31, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.cuaderno-page .edition-switcher__current,
body.cuaderno-page .edition-switcher__link,
body.cuaderno-page .edition-switcher__print {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0.58rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: rgba(33, 26, 22, 0.65);
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: none;
}

body.cuaderno-page .edition-switcher__current {
  background: rgba(var(--brand-copper), 0.12);
  color: rgba(var(--brand-copper), 0.98);
  box-shadow: inset 0 -2px rgba(var(--brand-copper), 0.72);
}

body.cuaderno-page .edition-switcher__link + .edition-switcher__link,
body.cuaderno-page .edition-switcher__current + .edition-switcher__link,
body.cuaderno-page .edition-switcher__link + .edition-switcher__current {
  border-left: 1px solid rgba(95, 85, 77, 0.12);
}

body.cuaderno-page .edition-switcher__link::before,
body.cuaderno-page .edition-switcher__link::after,
body.cuaderno-page .edition-switcher__current::before {
  content: none !important;
}

body.cuaderno-page .edition-switcher__link:hover,
body.cuaderno-page .edition-switcher__link:focus-visible {
  transform: none;
  letter-spacing: 0.13em;
  background: rgba(var(--brand-copper), 0.07);
  color: rgba(var(--brand-copper), 0.98);
  text-shadow: none;
}

.edition-context {
  position: fixed;
  z-index: 54;
  top: 4.2rem;
  left: 1.25rem;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(33, 26, 22, 0.62);
  text-decoration: none;
  text-transform: uppercase;
}

.edition-navigation {
  display: contents;
}

.edition-context:hover,
.edition-context:focus-visible {
  color: rgba(var(--brand-copper), 0.98);
}

.edition-reading-status {
  position: fixed;
  z-index: 53;
  top: 7.25rem;
  right: 1.25rem;
  max-width: min(34rem, calc(100vw - 2.5rem));
  margin: 0;
  font-family: var(--font-title);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  color: rgba(33, 26, 22, 0.56);
  text-align: right;
  text-transform: uppercase;
}

body.pro-page .pro-reading-navigation__tool {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body.pro-page .pro-reading-navigation__group--tools {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(95, 85, 77, 0.12);
}

/* El pie de foto aparece con su imagen, no sobre un hueco vacío. */
body.cuaderno-page[data-version="web"] .cuaderno-gallery__photo {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(205, 194, 182, 0.34) 25%, rgba(255, 255, 255, 0.55) 43%, rgba(205, 194, 182, 0.34) 62%);
  background-size: 240% 100%;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure.is-loading .cuaderno-gallery__photo {
  animation: cuaderno-day-image-loading 1.25s ease-in-out infinite;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure.is-loading img {
  opacity: 0;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure img {
  opacity: 1;
  transition: opacity 0.22s ease;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure.is-loading .cuaderno-gallery-figure__caption {
  visibility: hidden;
  opacity: 0;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure__caption {
  opacity: 1;
  transition: opacity 0.18s ease;
}

body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure.has-image-error .cuaderno-gallery__photo {
  min-height: 180px;
  background: rgba(205, 194, 182, 0.28);
}

@keyframes cuaderno-day-image-loading {
  to { background-position: -120% 0; }
}

@media (max-width: 768px) {
  .edition-context {
    display: none;
  }

  body.cuaderno-page .site-label[data-edition-switcher].edition-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100vw - 1rem);
    max-width: none;
    border-radius: 14px;
  }

  body.cuaderno-page .edition-switcher__current,
  body.cuaderno-page .edition-switcher__link,
  body.cuaderno-page .edition-switcher__print {
    min-width: 0;
    min-height: 44px;
    padding: 0.5rem 0.4rem;
  }

  body.cuaderno-page.has-mobile-edition-switcher .site-label[data-edition-switcher].edition-switcher .edition-switcher__current,
  body.cuaderno-page.has-mobile-edition-switcher .site-label[data-edition-switcher].edition-switcher .edition-switcher__link,
  body.cuaderno-page.has-mobile-edition-switcher .site-label[data-edition-switcher].edition-switcher .edition-switcher__print {
    display: inline-flex !important;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em;
  }

  body.cuaderno-page.has-mobile-edition-switcher .site-label[data-edition-switcher].edition-switcher .edition-switcher__current::before,
  body.cuaderno-page.has-mobile-edition-switcher .site-label[data-edition-switcher].edition-switcher .edition-switcher__link::before,
  body.cuaderno-page.has-mobile-edition-switcher .site-label[data-edition-switcher].edition-switcher .edition-switcher__print::before {
    content: none !important;
  }

  .edition-reading-status {
    top: 6.7rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    font-size: 0.56rem;
    line-height: 1.4;
    text-align: center;
  }

  body.pro-page.has-mobile-edition-switcher .pro-reading-navigation {
    display: block;
    pointer-events: auto;
  }

  body.pro-page.has-mobile-edition-switcher .pro-reading-navigation__summary {
    display: flex;
    pointer-events: auto;
    cursor: pointer;
  }

  body.pro-page.has-mobile-edition-switcher .pro-reading-navigation__panel {
    top: 9.5rem;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-gallery__photo {
    min-height: 0;
  }
}

/* Móvil LXX: un único criterio editorial para navegación y selección de días. */
@media (max-width: 768px) {
  body.cuaderno-page .site-label[data-edition-switcher].edition-switcher {
    border-radius: 2px;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__mobile-controls::before,
  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__mobile-controls::after {
    content: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__toggle {
    border: 0;
    border-left: 1px solid rgba(var(--brand-copper), 0.48);
    border-radius: 0;
    background: rgba(246, 240, 233, 0.92);
    box-shadow: none;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choices {
    border-radius: 2px;
    background: rgba(246, 240, 233, 0.98);
    box-shadow: 0 12px 28px rgba(48, 34, 25, 0.11);
  }

  body.cuaderno-page[data-version="web"] .cuaderno-day-browser__choice {
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.cuaderno-page[data-version="web"]
    .cuaderno-day-browser__choice:is(:hover, :focus-visible, .is-active) {
    border-left-color: rgba(var(--brand-copper), 0.72);
    background: rgba(var(--brand-copper), 0.055);
  }
}

/* Navegación y ritmo WEB compartidos por cualquier cuaderno generado. */
@media (min-width: 769px) {
  .edition-navigation {
    position: absolute;
    top: 4rem;
    right: 1.25rem;
    z-index: 54;
    display: flex;
    align-items: stretch;
    gap: 0.8rem;
  }

  .edition-navigation .edition-context,
  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher
    .edition-navigation .site-label[data-edition-switcher].edition-switcher {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    min-height: 42px;
    transform: none;
  }

  .edition-navigation .edition-context {
    padding-inline: 0.2rem 0.9rem;
    border-right: 1px solid rgba(var(--brand-copper), 0.34);
  }

  body.cuaderno-page.has-mobile-bottom-nav.has-mobile-edition-switcher
    .edition-navigation .site-label[data-edition-switcher].edition-switcher {
    display: grid !important;
    grid-template-columns: repeat(3, 72px);
  }

  .edition-navigation
    :is(.edition-switcher__current, .edition-switcher__link, .edition-switcher__print) {
    width: 100%;
    min-width: 0;
    padding: 0.58rem 0.75rem;
    font-size: 0.68rem !important;
  }

  body.cuaderno-page[data-version="web"] .cuaderno-reading {
    padding-top: clamp(2rem, 3vw, 2.8rem);
    padding-bottom: clamp(2rem, 3vw, 2.8rem);
  }

  body.cuaderno-page[data-version="web"] .cuaderno-split {
    align-items: start;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  body.cuaderno-page[data-version="web"] .cuaderno-reading {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  body.cuaderno-page[data-version="web"] :is(.cuaderno-keys, .cuaderno-gallery, .cuaderno-closure) {
    padding-bottom: 2rem;
  }
}

/* Ritmo WEB compartido: la primera lectura continúa el hero sin vacío ni centrado flotante. */
@media (min-width: 769px) {
  body.cuaderno-page[data-version="web"]:not(.pro-page) .cuaderno-reading {
    padding-top: clamp(1.25rem, 2vw, 1.5rem);
    padding-bottom: clamp(2rem, 3vw, 2.5rem);
  }

  body.cuaderno-page[data-version="web"]:not(.pro-page)
    .cuaderno-reading
    > .container
    > .cuaderno-split {
    align-items: start;
    padding-top: 0;
    padding-bottom: 0;
  }

  body.cuaderno-page[data-version="web"]:not(.pro-page)
    .cuaderno-reading
    .cuaderno-split__media {
    align-self: start;
  }

  /* Un único componente superior para WEB y PRO de cualquier cuaderno. */
  body.cuaderno-page.has-mobile-edition-switcher .edition-navigation {
    position: fixed;
    top: 4rem;
    right: 1.25rem;
    z-index: 949;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-navigation
    .edition-context {
    padding-right: 0.45rem;
    border-right: 0;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-navigation
    .site-label[data-edition-switcher].edition-switcher {
    box-sizing: border-box;
    overflow: hidden;
    padding: 3px;
    border: 1px solid rgba(var(--brand-copper), 0.38);
    border-radius: var(--lxx-edition-capsule-radius);
    background: rgba(246, 240, 233, 0.96);
    box-shadow:
      0 8px 24px rgba(58, 42, 31, 0.09),
      0 1px 0 rgba(255, 255, 255, 0.72) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-navigation
    .site-label[data-edition-switcher].edition-switcher
    > :is(.edition-switcher__current, .edition-switcher__link, .edition-switcher__print) {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.cuaderno-page.has-mobile-edition-switcher
    .edition-navigation
    .site-label[data-edition-switcher].edition-switcher
    > .edition-switcher__current {
    color: rgba(var(--brand-copper), 0.98);
    box-shadow: inset 0 -2px rgba(var(--brand-copper), 0.78);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cuaderno-page[data-version="web"] .cuaderno-gallery-figure.is-loading .cuaderno-gallery__photo {
    animation: none;
  }
}

/* La cápsula móvil también es única para WEB y PRO. */
@media (max-width: 768px) {
  body.cuaderno-page.has-mobile-edition-switcher
    .site-label[data-edition-switcher].edition-switcher {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: 0.5rem;
    left: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
    width: auto;
    padding: 3px;
    border: 1px solid rgba(var(--brand-copper), 0.38);
    border-radius: var(--lxx-edition-capsule-radius) !important;
    background: rgba(246, 240, 233, 0.96);
    box-shadow: none;
    transform: none;
  }
}
