/* F5-02: Espejo Negro. Same light editorial surface as Mexico Encantado. */
.chapter-shell-espejo .contrast-band{
  background:radial-gradient(ellipse 70% 80% at 48% 26%,#f9f5eb,#eee6d9 70%,#e8e0d2);
  color:var(--obsidian);
}
.chapter-shell-espejo .contrast-band::before{height:1px;background:rgba(29,27,23,.16)}
.chapter-shell-espejo .espejo-editorial .eyebrow{color:#805b40}
.chapter-shell-espejo .espejo-editorial .cta{color:var(--obsidian);border-color:var(--obsidian)}
.chapter-shell-espejo .espejo-editorial .cta:hover{background:var(--obsidian);color:var(--sand)}
.chapter-shell-espejo .super-espejo,.chapter-shell-espejo .espejo-reflection-text{color:var(--obsidian)}
/* Retire the legacy, fullscreen inversion; the visual asset alone owns the effect. */
.chapter-shell-espejo .espejo-inversion,.chapter-shell-espejo .espejo-seam{display:none!important}
.chapter-shell-espejo .espejo-layout .espejo-visual{
  grid-area:visual;grid-column:auto;grid-row:auto;
  position:relative;isolation:isolate;
  display:block;width:100%;max-width:490px;
  aspect-ratio:1350/1104;max-height:clamp(225px,39vh,320px);
  justify-self:center;align-self:end;margin:0;
}
.chapter-shell-espejo .espejo-layout .espejo-visual .espejo-image,
.chapter-shell-espejo .espejo-layout .espejo-visual .espejo-negative{
  position:absolute;inset:0;display:block;
  width:100%;height:100%;max-width:none;max-height:none;margin:0;
  object-fit:contain;object-position:center;
  grid-area:auto;grid-row:auto;
  pointer-events:none;
}
.chapter-shell-espejo .espejo-layout .espejo-visual .espejo-negative{
  z-index:1;filter:invert(1) grayscale(.92);
  clip-path:inset(0 100% 0 0);
  will-change:clip-path;
}
@media(min-width:950px) and (max-height:800px){
  .chapter-shell-espejo .espejo-layout .espejo-visual{max-height:clamp(210px,35vh,280px)}
}
@media(max-width:949px){
  .chapter-shell-espejo .espejo-layout .espejo-visual{max-height:310px}
}
@media(max-width:760px){
  .chapter-shell-espejo .espejo-layout .espejo-visual{
    grid-area:visual;grid-row:auto;width:min(76%,390px);max-height:275px;
    margin:0 auto;align-self:center;
  }
}
@media(prefers-reduced-motion:reduce){
  .chapter-shell-espejo .espejo-visual .espejo-negative{display:none!important}
}

/* Hold the original mirror in view longer; no scroll lock, only the existing desktop chapter rest. */
@media(min-width:950px) and (min-height:760px){
 .chapter-shell-espejo{height:calc(100svh + clamp(220px,31svh,310px))!important}
}

/* Wider-screen emphasis: show more of the authentic mirror without touching the copy. */
@media(min-width:1120px) and (min-height:820px){
 .chapter-shell-espejo .espejo-layout .espejo-visual{
  max-width:540px;
  max-height:370px;
 }
}
