/* Empyreon · Libro digital v5. Mejora el area de lectura,
   la paginacion sin letras recortadas y la presentacion inmersiva.
   No modifica documentos, licencias ni capitulos guardados. */
.et-store .ed-reader{
 box-sizing:border-box;width:100%;max-width:100%;min-width:0;
}
.et-store .ed-reader .ed-reading-layout{
 box-sizing:border-box;width:100%;max-width:none;min-width:0;
 padding:clamp(12px,1.7vw,22px)!important;
}
.et-store .ed-reader .ed-reading-main,
.et-store .ed-reader .ed-page-stack{
 box-sizing:border-box;min-width:0;width:100%;max-width:none;
}
.et-store .ed-reader[data-ed-formato="texto"][data-ed-presentacion="pagina"] .ed-page-stack .ed-paper,
.et-store .ed-reader[data-ed-formato="texto"][data-ed-presentacion="doble"] .ed-page-stack .ed-paper{
 width:100%;max-width:none!important;min-width:0;
}
.et-store .ed-reader[data-ed-formato="texto"]:is([data-ed-presentacion="pagina"],[data-ed-presentacion="doble"]) .ed-prose{
 box-sizing:border-box;
 width:100%;max-width:none!important;
 /* La pagina siguiente no debe ser visible en el relleno derecho.
    El JS usa una separacion mayor que ambos rellenos horizontales. */
 overflow-x:hidden!important;
 overflow-y:hidden!important;
 column-fill:auto;
 height:clamp(420px,72dvh,950px);
 padding:clamp(26px,2.5vw,42px) clamp(26px,3vw,46px)!important;
 overscroll-behavior-x:contain;
 overflow-wrap:anywhere;
}
.et-store .ed-reader[data-ed-paginado="1"] .ed-prose>:is(p,h1,h2,h3,h4,h5,h6,blockquote,ul,ol,table){
 max-width:100%;
 box-sizing:border-box;
}
.et-store .ed-reader[data-ed-paginado="1"] .ed-prose :is(h1,h2,h3,h4,h5,h6){
 word-break:normal;
 overflow-wrap:anywhere;
 break-inside:avoid-column;
}
/* Cuarta presentacion: ocupa la pantalla, con fondo opaco y sin bordes decorativos. */
.ed-reader.ed-immersive{
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 box-sizing:border-box!important;
 width:100vw!important;height:100dvh!important;max-width:100vw!important;
 max-height:100dvh!important;border:0!important;border-radius:0!important;
 margin:0!important;padding:0!important;
 background:#06101d!important;color:#eaf4ff!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain;
}
.ed-reader.ed-immersive::backdrop{background:#030b16!important}
.ed-reader.ed-immersive .ed-reading-layout{
 padding:clamp(10px,1.65vw,26px)!important;
 max-width:none!important;
}
.ed-reader.ed-immersive .ed-reading-main,
.ed-reader.ed-immersive .ed-page-stack{max-width:none!important;width:100%!important}
.ed-reader.ed-immersive .ed-paper{
 box-shadow:none!important;
 border-radius:0!important;
 width:100%!important;max-width:none!important;
 background:var(--ed-paper)!important;
}
.ed-reader.ed-immersive .ed-prose{
 width:min(100%,1120px)!important;max-width:1120px!important;
 height:auto!important;min-height:50dvh!important;
 margin:0 auto!important;
 column-count:1!important;column-width:auto!important;column-gap:normal!important;
 overflow:visible!important;
 padding:clamp(24px,3.6vw,60px)!important;
}
.ed-reader.ed-immersive .ed-paper-footer{
 max-width:none;width:100%;
}
.ed-reader.ed-immersive .ed-reading-tools{position:relative;z-index:10}
.ed-reader.ed-immersive [data-ed-fullscreen]{
 background:#173e57!important;color:#fff4dc!important;
}
@media(max-width:720px){
 .et-store .ed-reader .ed-reading-layout{padding:10px!important}
 .et-store .ed-reader[data-ed-paginado="1"] .ed-prose{padding:22px 19px!important}
 .ed-reader.ed-immersive .ed-prose{padding:24px 19px!important}
}
/* Titulares artisticos elegidos por la administracion de cada libro. */
.ed-reader .ed-prose [data-ed-heading-style="subrayado"]{
 border:0!important;border-bottom:2px solid #a98951!important;
 padding:.18em .06em .35em!important;
 background:none!important;color:var(--ed-ink)!important;
}
.ed-reader .ed-prose [data-ed-heading-style="recuadro"]{
 display:block!important;
 padding:.5em .8em!important;
 border:1px solid #8e8b81!important;
 border-radius:.25em!important;
 background:color-mix(in srgb,var(--ed-ink) 5%,var(--ed-paper))!important;
 color:var(--ed-ink)!important;
}
.ed-reader .ed-prose [data-ed-heading-style="dorado"]{
 display:block!important;
 padding:.55em .8em!important;
 border:2px solid #ab7c30!important;
 border-radius:.15em!important;
 background:linear-gradient(145deg,#fff9e7,#f2dfb4)!important;
 color:#32230b!important;
 box-shadow:inset 0 0 0 3px #c8a25c45!important;
 text-align:center!important;
}
.ed-reader .ed-prose [data-ed-heading-style="celestial"]{
 display:block!important;
 box-sizing:border-box;
 padding:.7em .85em!important;
 border:8px solid transparent!important;
 border-image:url('/temas/planeta-divino/assets/control-celestial-v5.svg') 20 / 1 stretch!important;
 border-radius:0!important;
 background:#102347!important;background-clip:padding-box!important;
 color:#fbe2a4!important;
 box-shadow:none!important;
 text-align:center!important;
}
.ed-reader .ed-prose [data-ed-heading-style="manuscrito"]{
 padding:.3em .65em!important;
 border:0!important;border-left:4px solid #b69765!important;
 background:color-mix(in srgb,var(--ed-ink) 4%,var(--ed-paper))!important;
 color:var(--ed-ink)!important;
 font-family:Georgia,serif!important;font-style:italic!important;
}
.ed-reader .ed-prose [data-ed-artistic-style="nota"]{
 margin:1.2em 0!important;padding:1.2em 1.5em!important;
 border-left:4px solid #ae8b50!important;
 background:color-mix(in srgb,var(--ed-paper) 90%,#b5985c)!important;
 color:var(--ed-ink)!important;
}
.ed-reader .ed-prose [data-ed-artistic-style="recuadro"]{
 margin:1.3em 0!important;padding:1.3em 1.55em!important;
 border:2px solid #947750!important;border-radius:8px!important;
 background:color-mix(in srgb,var(--ed-paper) 84%,#cfb987)!important;
 color:var(--ed-ink)!important;
}
.ed-reader .ed-prose [data-ed-artistic-style="celestial"]{
 display:block!important;
 padding:1.5em!important;margin:1.4em 0!important;
 border:8px solid transparent!important;
 border-image:url('/temas/planeta-divino/assets/control-celestial-v5.svg') 20 / 1 stretch!important;
 background:#102347!important;color:#fce5b5!important;
 font-style:italic!important;
}
.ed-reader .ed-prose [data-ed-heading-style]:is(h1,h2,h3,h4,h5,h6)::before,
.ed-reader .ed-prose [data-ed-heading-style]:is(h1,h2,h3,h4,h5,h6)::after{
 content:none!important;display:none!important;
}

/* Pantalla inmersiva: una sola columna, visible de lado a lado y sin marco. */
.ed-reader[data-ed-presentacion="inmersiva"] .ed-page-stack{
 display:block!important;
 box-sizing:border-box;width:100%!important;max-width:none!important;
}
.ed-reader[data-ed-presentacion="inmersiva"] .ed-page-stack .ed-paper{
 width:100%!important;max-width:none!important;min-width:0!important;
}
body .ed-reader.ed-immersive[data-ed-presentacion="inmersiva"][data-ed-formato="texto"] .ed-prose{
 max-width:min(100%,1180px)!important;
 width:min(100%,1180px)!important;
 margin-inline:auto!important;
 column-count:1!important;column-width:auto!important;
 height:auto!important;overflow:visible!important;
}
body .ed-reader.ed-immersive[data-ed-presentacion="inmersiva"][data-ed-formato="texto"] .ed-story-entry{
 max-width:100%;
 overflow-wrap:break-word;
}


/* Lector v6 (19/11/2026): boton de biblioteca de ancho natural, sin deformar el preset. */
.et-store .ed-library-book .ed-library-info>a.et-button{
 display:inline-flex!important;
 flex:0 0 auto!important;
 box-sizing:border-box!important;
 align-self:flex-start!important;
 justify-content:center!important;
 align-items:center!important;
 width:min(100%,324px)!important;
 max-width:100%!important;
 min-width:0!important;
 min-height:64px!important;
 height:auto!important;
 padding:13px 28px!important;
 margin:10px 0 4px!important;
 line-height:1.35!important;
 text-align:center!important;
 white-space:normal!important;
}
/* Lectura vertical: quitar las antiguas tapas de 900px y 68ch. */
.et-store .ed-reader[data-ed-formato="texto"][data-ed-presentacion="vertical"] .ed-page-stack{
 display:block!important;
 width:100%!important;max-width:none!important;
 min-width:0!important;
}
.et-store .ed-reader[data-ed-formato="texto"][data-ed-presentacion="vertical"] .ed-page-stack .ed-paper{
 box-sizing:border-box!important;
 display:block!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 margin:0!important;
}
.et-store .ed-reader[data-ed-formato="texto"][data-ed-presentacion="vertical"]:not([data-ed-paginado="1"]) .ed-page-stack .ed-paper .ed-prose,
.et-store .ed-reader[data-ed-formato="texto"][data-ed-presentacion="vertical"] .ed-page-stack .ed-paper .ed-prose{
 box-sizing:border-box!important;
 display:block!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 height:auto!important;overflow:visible!important;
 margin:0!important;
 padding:clamp(22px,3.3vw,48px)!important;
 column-count:1!important;column-width:auto!important;
 overflow-wrap:break-word;
}
/* Visor flotante: deja percibir la pagina de fondo alrededor del panel. */
.ed-reader.ed-immersive{
 position:fixed!important;
 inset:clamp(12px,2vw,28px)!important;
 z-index:2147483000!important;
 box-sizing:border-box!important;
 display:block!important;
 width:auto!important;height:auto!important;
 max-width:none!important;max-height:none!important;
 padding:0!important;margin:0!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain;
 border:1px solid #60839a!important;
 border-radius:12px!important;
 background:#071523!important;
 color:#e9f3fb!important;
 box-shadow:0 25px 90px #000b,0 0 0 1px #8bbfda25!important;
}
.ed-reader.ed-immersive::backdrop{background:rgb(2 7 18 / .50)!important}
.ed-reader.ed-immersive .ed-reader-header,
.ed-reader.ed-immersive .ed-reading-tools,
.ed-reader.ed-immersive .ed-reader-index,
.ed-reader.ed-immersive .ed-page-caption,
.ed-reader.ed-immersive .ed-print-message,
.ed-reader.ed-immersive .ed-save-status,
.ed-reader.ed-immersive .ed-reading-main>.ed-reader-navigation{
 display:none!important;
}
.ed-reader.ed-immersive .ed-reading-layout{
 display:block!important;
 box-sizing:border-box!important;
 width:100%!important;max-width:none!important;
 margin:0!important;
 padding:10px clamp(10px,2vw,28px) 26px!important;
}
.ed-reader.ed-immersive .ed-reading-main,
.ed-reader.ed-immersive .ed-page-stack,
.ed-reader.ed-immersive .ed-page-stack .ed-paper{
 box-sizing:border-box!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 margin:0!important;
}
.ed-reader.ed-immersive .ed-page-stack .ed-paper{
 background:var(--ed-paper)!important;
 border:0!important;
 border-radius:7px!important;
 box-shadow:none!important;
 overflow:visible!important;
}
.ed-reader.ed-immersive .ed-page-stack .ed-paper .ed-prose,
body .ed-reader.ed-immersive[data-ed-formato="texto"][data-ed-presentacion="inmersiva"] .ed-page-stack .ed-paper .ed-prose{
 box-sizing:border-box!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 height:auto!important;min-height:0!important;
 margin:0!important;
 padding:clamp(22px,3vw,48px)!important;
 column-width:auto!important;column-count:1!important;
 overflow:visible!important;
}
.ed-reader.ed-immersive .ed-immersive-toolbar{
 position:sticky!important;top:0!important;z-index:80!important;
 box-sizing:border-box!important;
 display:grid!important;
 grid-template-columns:minmax(110px,1fr) auto auto;
 align-items:center!important;gap:clamp(7px,1.5vw,18px)!important;
 min-height:64px!important;
 width:100%!important;
 margin:0!important;padding:9px clamp(12px,2.2vw,32px)!important;
 background:linear-gradient(110deg,#112e43,#091d2e)!important;
 border:0!important;border-bottom:1px solid #466780!important;
 box-shadow:0 8px 20px #0005!important;
 font:500 14px/1.3 system-ui,sans-serif!important;
 color:#edf7ff!important;
}
.ed-reader.ed-immersive .ed-immersive-title{
 display:block;min-width:0;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 color:#e8f4ff;font-weight:750;font-size:clamp(12px,1vw,16px);
}
.ed-reader.ed-immersive .ed-immersive-toolbar .ed-reader-navigation{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-wrap:nowrap!important;
 margin:0!important;padding:0!important;
 min-width:0!important;gap:8px!important;
 border:0!important;
}
.ed-reader.ed-immersive .ed-immersive-toolbar .ed-reader-navigation [data-ed-page-counter]{
 max-width:185px;min-width:0!important;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 font-size:12px;
}
.ed-reader.ed-immersive .ed-immersive-toolbar .ed-reader-navigation .ed-control,
.ed-reader.ed-immersive .ed-immersive-close{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;
 width:auto!important;min-height:38px!important;height:38px!important;
 margin:0!important;
 padding:6px 13px!important;
 white-space:nowrap!important;
 font:650 13px/1.2 system-ui,sans-serif!important;
 color:#f5faff!important;background:#17374c!important;
 border:1px solid #719bb3!important;border-radius:7px!important;
 text-decoration:none!important;box-shadow:none!important;
 cursor:pointer;
}
.ed-reader.ed-immersive .ed-immersive-close{background:#234960!important}
.ed-reader.ed-immersive .ed-immersive-toolbar :is(a,button):focus-visible{
 outline:2px solid #f3cf80!important;outline-offset:2px!important;
}
@media(max-width:740px){
 .ed-reader.ed-immersive{
  inset:8px!important;border-radius:8px!important;
 }
 .ed-reader.ed-immersive .ed-immersive-toolbar{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:6px!important;padding:8px 10px!important;
 }
 .ed-reader.ed-immersive .ed-immersive-title{display:none!important}
 .ed-reader.ed-immersive .ed-immersive-toolbar .ed-reader-navigation{
  justify-content:flex-start!important;
 }
 .ed-reader.ed-immersive .ed-immersive-toolbar .ed-reader-navigation [data-ed-page-counter]{
  display:none!important;
 }
 .ed-reader.ed-immersive .ed-immersive-toolbar .ed-reader-navigation .ed-control,
 .ed-reader.ed-immersive .ed-immersive-close{
  min-height:36px!important;height:36px!important;padding:6px 9px!important;
  font-size:12px!important;
 }
 .ed-reader.ed-immersive .ed-reading-layout{padding:8px!important}
 .ed-reader.ed-immersive .ed-page-stack .ed-paper .ed-prose{
  padding:20px 15px!important;
 }
 .et-store .ed-library-book .ed-library-info>a.et-button{align-self:center!important}
}


/* Diario digital: jerarquia editorial legible, misma paleta en papel claro y oscuro.
   No modifica el texto de los testimonios ni impone este diseno a otras obras. */
.et-store .ed-library-book .ed-library-info>a.et-button{
  align-self:center!important;
  margin:10px auto 4px!important;
}
.ed-reader.ed-diary-book{
  --ed-diary-year:#79500f;
  --ed-diary-title:#71420c;
  --ed-diary-date:#16596f;
  --ed-diary-marker:#8e590c;
  --ed-diary-rule:color-mix(in srgb,var(--ed-ink) 18%,transparent);
  --ed-diary-tint:color-mix(in srgb,#deebef 48%,var(--ed-paper));
}
.ed-reader.ed-diary-book[data-ed-fondo="oscuro"]{
  --ed-diary-year:#ffdf9d;
  --ed-diary-title:#ffdc99;
  --ed-diary-date:#a8e7ef;
  --ed-diary-marker:#ffcf77;
  --ed-diary-rule:color-mix(in srgb,#b5e5f3 30%,transparent);
  --ed-diary-tint:color-mix(in srgb,#27495b 48%,var(--ed-paper));
}
.ed-reader.ed-diary-book[data-ed-fondo="sepia"]{
  --ed-diary-year:#79500f;
  --ed-diary-title:#71420c;
  --ed-diary-date:#155769;
  --ed-diary-marker:#8a5012;
  --ed-diary-rule:color-mix(in srgb,#8d6a45 26%,transparent);
  --ed-diary-tint:color-mix(in srgb,#e5d2a7 38%,var(--ed-paper));
}
.ed-reader.ed-diary-book .ed-prose .ed-story-part:not([data-ed-heading-style]){
  box-sizing:border-box!important;
  text-align:center!important;
  font-weight:800!important;
  font-size:clamp(1.35em,2.8vw,1.7em)!important;
  line-height:1.35!important;
  color:var(--ed-diary-year)!important;
  margin:2em auto .95em!important;
  padding:.45em .7em!important;
  border-bottom:2px solid var(--ed-diary-rule)!important;
  text-wrap:balance;
}
.ed-reader.ed-diary-book .ed-story-entry-header{
  text-align:center;
  padding:.5em 0 1.1em;
  margin:0 0 1.3em!important;
  border-bottom:1px solid var(--ed-diary-rule);
}
.ed-reader.ed-diary-book .ed-prose .ed-story-entry-header h2:not([data-ed-heading-style]),
.ed-reader.ed-diary-book .ed-paper:not(.ed-paper-stories) .ed-prose>h2:first-child:not([data-ed-heading-style]){
  text-align:center!important;
  font-weight:750!important;
  font-size:clamp(1.3em,2.2vw,1.65em)!important;
  line-height:1.4!important;
  color:var(--ed-diary-title)!important;
  margin:.3em auto .65em!important;
  padding:.15em 0 .45em!important;
  text-wrap:balance;
}
.ed-reader.ed-diary-book .ed-story-date{
  display:inline-block;
  box-sizing:border-box;
  margin:0 auto .2em!important;
  padding:.35em .9em!important;
  border:1px solid var(--ed-diary-rule);
  border-radius:999px;
  color:var(--ed-diary-date)!important;
  background:var(--ed-diary-tint)!important;
  font:750 .78em/1.45 system-ui,sans-serif!important;
  letter-spacing:.045em!important;
  text-transform:none!important;
  opacity:1!important;
}
.ed-reader.ed-diary-book .ed-prose .ed-entry-source{
  display:block!important;
  box-sizing:border-box;
  width:100%;
  margin:0 0 1.35em!important;
  padding:.85em 1.05em!important;
  background:var(--ed-diary-tint)!important;
  border-left:4px solid var(--ed-diary-date)!important;
  border-radius:0 7px 7px 0;
  font-size:.94em;
  line-height:1.7!important;
  color:var(--ed-ink)!important;
}
.ed-reader.ed-diary-book .ed-prose .ed-entry-source strong{
  color:var(--ed-diary-date)!important;
  font-weight:800!important;
}
.ed-reader.ed-diary-book .ed-story-body>p{
  line-height:1.87!important;
  margin-bottom:1.15em!important;
}
.ed-reader.ed-diary-book .ed-chronological-index :is(h3,h4):not([data-ed-heading-style]){
  display:block!important;
  box-sizing:border-box!important;
  text-align:center!important;
  color:var(--ed-diary-year)!important;
  font:800 clamp(1.3em,2.4vw,1.65em)/1.35 Georgia,serif!important;
  margin:1.65em 0 .65em!important;
  padding:.35em .5em .55em!important;
  border-bottom:2px solid var(--ed-diary-rule)!important;
  text-wrap:balance;
}
.ed-reader.ed-diary-book .ed-chronological-index ol{
  box-sizing:border-box!important;
  margin:.25em 0 1.8em!important;
  padding-left:clamp(27px,4vw,46px)!important;
  list-style-type:decimal!important;
}
.ed-reader.ed-diary-book .ed-chronological-index ol li{
  padding:.65em .25em .75em!important;
  line-height:1.72!important;
  border-bottom:1px solid var(--ed-diary-rule);
  color:var(--ed-ink)!important;
  break-inside:avoid;
}
.ed-reader.ed-diary-book .ed-chronological-index ol li::marker{
  color:var(--ed-diary-marker)!important;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.ed-reader.ed-diary-book .ed-chronological-index ol li strong{
  color:var(--ed-diary-title)!important;
  font-weight:800!important;
}
.ed-reader.ed-diary-book .ed-reader-index .ed-year-group{
  color:#afebfb!important;
  font-size:16px!important;
  font-weight:800!important;
  text-align:center!important;
}
@media(max-width:680px){
 .ed-reader.ed-diary-book .ed-story-entry-header{padding:.35em 0 .8em}
 .ed-reader.ed-diary-book .ed-prose .ed-entry-source{padding:.75em}
}


/* En el indice, fechas y fuentes legibles y distintas del titulo. */
.ed-reader.ed-diary-book .ed-chronological-index ol li .ed-index-metadata{
 color:var(--ed-diary-date)!important;
 font-weight:650!important;
 font-size:.91em!important;
 line-height:1.75!important;
}

/* Marca editorial para los cinco testimonios nuevos; respeta fondo claro, oscuro y sepia. */
.ed-reader.ed-diary-book .ed-prose p.emp-edicion-novedad{
 display:block!important;
 width:max-content!important;
 max-width:100%!important;
 margin:.6em auto 1.35em!important;
 padding:8px 16px!important;
 box-sizing:border-box!important;
 text-align:center!important;
 color:var(--ed-diary-year)!important;
 background:var(--ed-diary-tint)!important;
 border:1px solid var(--ed-diary-rule)!important;
 border-radius:999px!important;
 font:700 .76em/1.55 system-ui,sans-serif!important;
 letter-spacing:.025em!important;
}
.ed-reader.ed-diary-book .ed-prose p.emp-edicion-novedad strong{
 color:inherit!important;
 font-weight:800!important;
}

/* Ilustraciones del diario: contener la imagen en la pagina de lectura
   aunque el editor sanee los estilos del HTML. No afecta al modo imagen. */
.ed-reader.ed-diary-book[data-ed-formato="texto"] .ed-prose figure{
 box-sizing:border-box!important;
 display:block;
 width:auto!important;
 min-width:0!important;
 max-width:100%!important;
 margin:1.5em auto!important;
 padding:0!important;
 text-align:center;
}
.ed-reader.ed-diary-book[data-ed-formato="texto"] .ed-prose img{
 box-sizing:border-box!important;
 max-width:100%!important;
 min-width:0!important;
 height:auto!important;
 object-fit:contain!important;
}
.ed-reader.ed-diary-book[data-ed-formato="texto"] .ed-prose figure img{
 display:block!important;
 margin:0 auto!important;
 border-radius:8px;
}
.ed-reader.ed-diary-book[data-ed-formato="texto"] .ed-prose figure > img[width="480"][height="640"]{
 width:min(100%,480px)!important;
 max-width:100%!important;
 height:auto!important;
}
.ed-reader.ed-diary-book[data-ed-formato="texto"] .ed-prose figure figcaption{
 max-width:100%;
 font-size:.85em;
 line-height:1.5;
 margin:.6em auto 0;
 overflow-wrap:anywhere;
 text-align:center;
}
.ed-reader.ed-diary-book[data-ed-formato="texto"][data-ed-paginado="1"] .ed-prose figure img{
 max-height:50dvh!important;
 width:auto!important;
}

