.edition-spotlight, .editorial, .mc-dossier {
  --case-ink: #102934;
  --case-dark: #0a1d28;
  --case-paper: #faf4e6;
  --case-brass: #dcb575;
  --case-rule: #d7c7a8;
  --case-wine: #7a3945;
}

.edition-spotlight {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  border-color: #1b3542;
  background: #102934;
  color: #faf4e6;
}

.edition-copy { align-self: center; padding: clamp(2rem, 5vw, 4.5rem); }
.edition-copy .edition-series { color: var(--case-brass); }
.edition-copy h2 {
  margin: 1rem 0 .55rem;
  font: 500 clamp(3rem, 6vw, 5.35rem)/.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -.06em;
  color: inherit;
}
.edition-copy .edition-subtitle { font: 400 clamp(1.25rem, 2.3vw, 1.9rem)/1.22 Georgia, serif; color: var(--case-brass); margin: 0 0 1.15rem; }
.edition-copy .edition-description { max-width: 37ch; margin: 0 0 1.45rem; color: #e3e1d5; font-size: 1rem; line-height: 1.65; }
.edition-copy .button { background: var(--case-brass); color: var(--case-dark); }
.edition-copy .button:hover { background: #f6d39f; }
.edition-copy :focus-visible, .dossier-stage :focus-visible { outline: 3px solid #f6d39f; outline-offset: 4px; }

.dossier-stage {
  position: relative;
  display: grid;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, #ffe5ab12 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #ffe5ab12 39px 40px),
    radial-gradient(ellipse at 43% 48%, #374943 0%, #183641 43%, #0a1d28 100%);
}
.dossier-stage::before { position: absolute; z-index: -1; inset: clamp(.65rem, 1.8vw, 1.5rem); border: 1px solid #dcb5754f; content: ''; }
.dossier-stage > * { grid-area: 1 / 1; }
.case-map { position: relative; aspect-ratio: 826 / 446; overflow: hidden; background: #f5efdf; }
.case-map img { position: absolute; width: 126.03%; max-width: none; height: auto; left: -11.14%; top: -109.42%; }
.case-map-theatre { aspect-ratio: 724 / 458; }
.case-map-theatre img { width: 143.79%; left: -19.89%; top: -100.43%; }
.dossier-plan {
  position: relative;
  align-self: center;
  justify-self: start;
  width: 61%;
  padding: .6rem;
  margin: 0 0 12% 6%;
  background: #f8f0de;
  color: #374146;
  box-shadow: 0 1.1rem 2.7rem #07182283;
  transform: rotate(-10deg);
}
.dossier-plan figcaption { margin: .45rem .1rem 0; font-weight: 750; font-size: clamp(.72rem, 1.1vw, .92rem); }
.dossier-cover {
  position: relative;
  z-index: 1;
  display: block;
  align-self: center;
  justify-self: end;
  width: min(51%, 20rem);
  margin: 3% 11% 0 0;
  transform: rotate(7deg);
}
.dossier-cover img { display: block; width: 100%; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: -.42rem .16rem 0 #e1d3b5, 0 1rem 2.6rem #040b0eaa; }
.edition-spotlight .dossier-stage { min-height: 525px; }
.home-slides { display: grid; grid-template-columns: minmax(0, 1fr); }
.home-slides > .home-slide {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.home-slides > .home-slide[aria-hidden='true'] { opacity: 0; visibility: hidden; pointer-events: none; }
.home-slides > .home-slide[aria-hidden='false'] { z-index: 1; transition-delay: 0s; }
.home-carousel .home-carousel-actions > .home-carousel-rotation { display: grid; place-items: center; padding: 0; }
.home-carousel-rotation svg { width: 20px; height: 20px; }
.home-carousel-rotation:not([data-paused]) .home-rotation-play,
.home-carousel-rotation[data-paused] .home-rotation-pause { display: none; }
.home-carousel-rotation[hidden] { display: none; }
.home-carousel .home-carousel-actions > button { width: 44px; height: 44px; }
.home-carousel .home-carousel-dots { gap: 0; }
.home-carousel .home-carousel-dots button, .home-carousel .home-carousel-dots button[aria-current='true'] { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; }
.home-carousel .home-carousel-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 6px; background: #aeb7ac; }
.home-carousel .home-carousel-dots button[aria-current='true']::before { width: 24px; background: var(--orange); }
.page-home #libros { scroll-margin-top: 6rem; }
.home-library .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-library .featured-book { min-width: 0; }
.home-library .featured-book:focus-visible, .editorial :focus-visible { outline: 3px solid #a35a36; outline-offset: 4px; }
.shelf-collections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.shelf-collection {
  display: grid; gap: .2rem; padding: 1.25rem 1.35rem; border: 1px solid #d7decf;
  border-radius: .75rem; background: #eef1e5; color: #173e35;
}
.shelf-collection strong { font-size: 1.16rem; }
.shelf-collection span { color: #4b6156; }
.shelf-collection-mystery { background: #ede8da; border-color: #dbd0b8; color: #102934; }
.shelf-collection-mystery span { color: #515a5a; }
.shelf-collection:hover strong { text-decoration: underline; text-underline-offset: .2em; }

.editorial { color: var(--case-ink); font-size: 1rem; line-height: 1.65; }
.editorial .ed-intro { padding-block: clamp(2.2rem, 5vw, 4.5rem); }
.editorial .ed-intro h1 { color: var(--ink); font-size: clamp(2.9rem, 6vw, 5.9rem); line-height: .99; letter-spacing: -.065em; margin: 0 0 1rem; text-wrap: balance; }
.editorial .ed-intro p { max-width: 58ch; margin: 0; }
.editorial .ed-path { display: flex; gap: .55rem; align-items: baseline; flex-wrap: wrap; padding-block: 1rem; font-size: .9rem; }
.ed-path a { text-decoration: underline; text-underline-offset: .2em; }
.ed-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.8rem); }
.ed-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #dcded1; border-radius: 1rem; overflow: hidden; background: #fffefa; }
.ed-card-art { display: grid; place-items: center; min-height: clamp(15rem, 25vw, 22rem); padding: 1.35rem; background: radial-gradient(ellipse, #fff0cf 0%, #eae1f0 58%, #e0dbeb 100%); }
.ed-card-art-mystery { background: repeating-linear-gradient(90deg, transparent 0 39px, #e9c58e12 39px 40px), radial-gradient(ellipse, #526158 0%, #203e48 52%, #142e39 100%); }
.ed-card-art img { width: clamp(8.5rem, 14vw, 13.2rem); max-height: 16.7rem; object-fit: contain; height: auto; border-radius: 3px; box-shadow: .45rem .55rem 1.15rem #10232646; }
.ed-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.15rem, 3vw, 2rem); }
.ed-card-copy .ed-category-link { font-size: .9rem; font-weight: 750; color: #52665a; text-decoration: underline; text-underline-offset: .2em; }
.ed-card-copy h2, .ed-card-copy h3 { color: #173e35; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.04em; margin: .6rem 0 .55rem; text-wrap: balance; }
.ed-card-mystery h2, .ed-card-mystery h3 { color: #102934; }
.ed-card-copy p { margin: 0 0 .9rem; color: #4a5c53; }
.ed-card-copy .ed-card-action { margin-top: auto; }
.ed-card-copy .ed-card-book { padding-block: .75rem .1rem; text-decoration: underline; text-underline-offset: .18em; font-weight: 650; }
.ed-card-action { min-height: 46px; }
.ed-catalogue { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.ed-catalogue h2.ed-section-heading { margin: 0 0 1.3rem; font-size: clamp(1.7rem, 3.7vw, 3rem); color: #173e35; letter-spacing: -.045em; }
.ed-about-copy { max-width: 50rem; padding-block: 1.5rem clamp(2rem, 5vw, 4rem); }
.ed-about-copy h2 { color: #173e35; }
.ed-about-copy p { color: #485b51; }
.ed-about-copy a { text-decoration: underline; text-underline-offset: .2em; font-weight: 650; }
.ed-hub { padding-bottom: clamp(2rem, 6vw, 4rem); }
.ed-hub .ed-intro { border-top: 1px solid #e3dfd0; }

.collection-mystery { background: #f8f2e5; }
.collection-mystery .ed-intro h1 { color: #faf4e6; max-width: 10ch; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.collection-banner { background: #102934; color: #faf4e6; }
.collection-banner > .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(1.25rem, 5vw, 4rem); padding-block: clamp(3rem, 6vw, 5.5rem); }
.collection-banner .ed-intro { padding: 0; }
.collection-banner .ed-intro p { color: #e6e2d7; }
.collection-banner .collection-illustration { margin: 0; padding: clamp(.6rem, 1.6vw, 1.15rem); border-radius: 3px; background: #f9f0dc; box-shadow: .55rem .55rem 0 #caa57757, 0 1rem 3rem #0004; transform: rotate(2deg); color: #102934; }
.collection-illustration figcaption { margin-top: .45rem; font-size: .875rem; font-weight: 700; }
.collection-feature { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); overflow: hidden; border: 1px solid #d8cbb2; border-radius: 1rem; margin-block: clamp(1.65rem, 5vw, 4.4rem); background: #fffdf7; }
.collection-feature .dossier-stage { min-height: 28rem; }
.collection-feature-copy { align-self: center; padding: clamp(1.5rem, 4vw, 3.7rem); }
.collection-feature-copy h2 { font: 500 clamp(2.6rem, 5vw, 4.5rem)/1.04 Georgia, serif; letter-spacing: -.055em; margin: 0 0 .6rem; }
.collection-feature-copy > p { max-width: 40ch; margin-block: 0 1rem; }
.collection-feature-copy .collection-kind { color: #704447; font-size: .875rem; font-weight: 750; }
.collection-feature-copy > .button { background: #102934; color: #faf4e6; }
.collection-feature-copy > .collection-sample-link { display: block; margin-top: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

.mc-dossier { background: #102934; border-bottom: 1px solid #886c43; }
.mc-dossier > .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(.9rem, 2.2vw, 2rem); padding-block: clamp(1rem, 3.1vw, 2.7rem); }
.mc-dossier .dossier-stage { min-height: clamp(28rem, 43vw, 41rem); overflow: visible; background: radial-gradient(ellipse at 40% 44%, #3b4f49 0%, #243e46 40%, #102934 72%); }
.mc-dossier .dossier-stage::before { inset: 2rem .5rem; }
.mc-dossier .dossier-plan { width: 72%; margin-bottom: 24%; margin-left: 4%; }
.mc-dossier .dossier-cover { width: min(57%, 25rem); margin: 4% 9% 0 0; }
.mc-dossier-copy { position: relative; z-index: 2; background: #fbf4e4; color: var(--case-dark); border: 1px solid #d3bc8e; border-radius: .85rem; padding: clamp(1.25rem, 4.2vw, 3.8rem); box-shadow: 0 1.1rem 3rem #040d1673; }
.mc-dossier-copy .mc-series { color: #743442; font-weight: 800; font-size: .92rem; margin: 0 0 1rem; }
.mc-dossier-copy h1 { font-size: clamp(3.3rem, 7vw, 6.7rem); line-height: .94; letter-spacing: -.075em; margin: 0 0 .5rem; font-weight: 500; }
.mc-dossier-copy .mc-tagline { font: 500 clamp(1.18rem, 2.4vw, 1.95rem)/1.22 Georgia, serif; color: #743442; }
.mc-dossier-copy .mc-dossier-lead { max-width: 46ch; color: #344650; }
.dossier-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; border-block: 1px solid #d6c19b; padding-block: .85rem; margin: 1.3rem 0; }
.dossier-facts div { display: grid; grid-template-rows: auto 1fr; }
.dossier-facts dt { grid-row: 2; color: #495860; font-size: .875rem; line-height: 1.25; }
.dossier-facts dd { grid-row: 1; font: 700 1.55rem Georgia, serif; color: #132a34; margin: 0 0 .2rem; }
.mc-section-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem clamp(.7rem, 4vw, 2.5rem); padding-block: .4rem; border-bottom: 1px solid var(--mc-line); }
.mc-section-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
#investigar, #respuestas { scroll-margin-top: 5.5rem; }
.mc-method { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.25rem, 5vw, 4rem); align-items: start; }
.mc-steps { margin: 1.25rem 0 0; padding-inline-start: 1.45rem; }
.mc-steps li { padding: .75rem 0 .75rem .4rem; border-top: 1px solid var(--mc-line); }
.mc-steps li::marker { font-weight: 800; color: #753a48; }
.mc-steps strong { color: #753a48; }
.mc-steps span { display: block; color: #485860; }
.mc-plan-feature { margin: 0; overflow: hidden; border: 1px solid #d8c6a3; border-radius: .65rem; background: #fffdf7; }
.mc-plan-feature .case-map { margin: clamp(.6rem, 1.6vw, 1.1rem); outline: 1px solid #d3bf99; }
.mc-plan-feature figcaption { padding: .85rem 1rem; background: #fffaf0; color: #3e505b; font-size: .92rem; }
.mc-plan-feature figcaption a { font-weight: 700; }
.mc-method .mc-difficulty { font-weight: 750; margin: 1.2rem 0 0; }
.mc-method .mc-levels { margin-top: .6rem; }
.mc-gallery-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .75rem 1.25rem; margin-bottom: 1.4rem; }
.mc-gallery-header p { margin-bottom: 0; }
.mc-gallery-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.mc-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-gallery-grid .mc-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 775px) {
  .edition-spotlight, .collection-banner > .wrap, .collection-feature, .mc-dossier > .wrap, .mc-method { grid-template-columns: minmax(0, 1fr); }
  .edition-copy { padding-bottom: .5rem; }
  .edition-spotlight .dossier-stage { min-height: clamp(19rem, 59vw, 27rem); }
  .edition-spotlight .dossier-cover, .collection-feature .dossier-cover { width: min(44%, 15rem); }
  .dossier-stage { margin-block: 0; }
  .collection-banner .collection-illustration { margin-inline: .4rem; }
  .collection-feature .dossier-stage { min-height: clamp(16rem, 62vw, 24rem); }
  .mc-dossier > .wrap { gap: 0; }
  .mc-dossier .dossier-stage { min-height: clamp(17rem, 68vw, 26rem); margin: 0 0 .6rem; }
  .mc-dossier .dossier-stage::before { inset: .65rem; }
  .mc-dossier .dossier-cover { width: min(49%, 17rem); margin-right: 11%; }
  .mc-dossier .dossier-plan { width: 62%; margin-bottom: 12%; }
  .mc-dossier-copy { padding: 1.25rem; }
  .mc-gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .home-library .featured-grid, .ed-card-grid { grid-template-columns: minmax(0, 1fr); }
  .shelf-collections { gap: .55rem; }
  .shelf-collection { padding: .65rem .7rem; font-size: .88rem; }
  .shelf-collection strong { font-size: 1rem; }
  .ed-card-art { min-height: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-slides > .home-slide { transition: none; }
}

@media (max-width: 450px) {
  .home-carousel .home-carousel-status { gap: .3rem; }
  .home-carousel .home-carousel-status .slide-line { display: none; }
  .home-carousel .home-carousel-actions { gap: .25rem; }
  .home-carousel .home-carousel-dots button,
  .home-carousel .home-carousel-dots button[aria-current='true'] { width: 36px; }
}
