/*
Versión: 0.26.1106.21
Fecha: 2026-11-06
Cambio:
- Mejora el contraste y compacta el retorno al catálogo exclusivamente en fichas individuales.
- Excluye el modal y backdrop Bootstrap del contexto de apilamiento de fichas individuales.
- Sustituye el modal editorial personalizado por estilos compatibles con el componente nativo de Bootstrap 5.
- Corrige contraste, restaura tarjetas compactas horizontales en Otras obras y aísla el footer de estilos interiores.
- Reorganiza visualmente las fichas de obra con acciones tempranas, tiendas y contenido complementario plegable.
- Muestra las portadas completas, grandes y centradas, sin recortes ni deformaciones.
- Recupera el protagonismo de las portadas mediante una zona visual amplia y una superficie editorial superpuesta en flujo.
- Divide las tarjetas del catálogo en zonas visual, editorial y comercial para impedir superposiciones.
- Recompone las seis tarjetas del catálogo como piezas editoriales verticales con identidades cromáticas sobrias.
- Crea una identidad comercial aislada para Del Engaño dentro del catálogo editorial.
- Retira estilos del encabezado eliminado y aumenta 50px la zona visual de portadas.
- Sitúa el panel editorial al terminar la zona visual (margen superior 0), también en móvil.
*/

body.page-books-interior,
body.page-book-interior { background:transparent; position:relative; isolation:isolate; }
body.page-books-interior::before,
body.page-book-interior::before { content:""; position:fixed; inset:0; z-index:0; background-image:url('/assets/img/fondo_catalogo.webp'); background-position:center; background-size:cover; background-repeat:no-repeat; filter:none; opacity:1; pointer-events:none; }
body.page-book-interior.page-book-entre-penumbras::before { background-image:url('/assets/img/fondo_entre_penumbras.webp'); }
body.page-book-interior.page-book-del-engano::before { background-image:url('/assets/img/fondo_del_engano.webp'); }
body.page-books-interior::after,
body.page-book-interior::after { content:none; }
body.page-books-interior > :not(script):not(.public-back-to-top):not(.sample-viewer):not(.header),
body.page-book-interior > :not(script):not(.public-back-to-top):not(.modal):not(.modal-backdrop):not(.header) { position:relative; z-index:1; }

.page-books-interior .books-page,
.page-book-interior .book-page { width:min(1180px,calc(100% - 2rem)); margin:0 auto; padding:clamp(2rem,5vw,4rem) 0; }
.page-book-interior .book-page { padding-top:.4rem; }
.page-books-interior .lc-breadcrumbs { width:min(1180px,calc(100% - 2rem)); padding:clamp(1rem,2vw,1.5rem) 0 clamp(1.5rem,2.5vw,2rem); }
.page-books-interior .books-page { padding:0 0 clamp(2rem,4vw,3rem); }
.page-book-interior .book-detail,
.page-book-interior .also-available { background:rgba(243,231,213,.93); border:1px solid rgba(64,91,112,.22); box-shadow:0 2px 12px rgba(38,61,78,.08); }
.page-books-interior .books-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1rem,2.5vw,1.7rem); margin-top:0; }
.page-books-interior .book-card--catalog { --catalog-accent:#243e50; --catalog-surface:rgba(255,250,242,.92); --catalog-visual:rgba(36,62,80,.08); display:flex; flex-direction:column; min-width:0; height:100%; min-height:0; padding:0; overflow:hidden; background:var(--catalog-visual); border:1px solid color-mix(in srgb,var(--catalog-accent) 26%,transparent); border-top:3px solid color-mix(in srgb,var(--catalog-accent) 62%,transparent); box-shadow:0 3px 10px rgba(38,61,78,.08); color:#243e50; }
/* Catálogo: portada centrada al 75% del ancho; panel editorial superpuesto. */
.page-books-interior .book-card--catalog .book-card__visual.home-work__cover {
  display:block; flex:0 0 440px; width:100%; max-width:none; min-width:0;
  height:440px; min-height:0; margin:0; padding:0; overflow:hidden;
  background:var(--catalog-visual);
}
.page-books-interior .book-card--catalog .book-card__visual.home-work__cover > img {
  display:block; width:75% !important; height:100% !important;
  max-width:none !important; max-height:none !important; min-width:0;
  margin:0 auto; object-fit:cover !important; object-position:center top !important;
  box-shadow:none;
}
.page-books-interior .book-card--catalog .home-work__copy {
  position:relative; z-index:1; display:flex; flex:1; flex-direction:column;
  width:calc(100% - 1.5rem); min-height:0; margin: -20px auto 0;
  padding:clamp(1.15rem,2.25vw,1.55rem); align-self:center;
  background:var(--catalog-surface); backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.page-books-interior .book-card--catalog .book-card__editorial { min-width:0; }
.page-books-interior .book-card--catalog .book-card__commercial { display:flex; flex-direction:column; margin-top:auto; padding-top:1.1rem; border-top:1px solid color-mix(in srgb,var(--catalog-accent) 22%,transparent); }
.page-books-interior .book-card--catalog .home-work__category { color:var(--catalog-accent); }
.page-books-interior .book-card--catalog h3 { color:#243e50; font-size:clamp(1.55rem,2.25vw,2rem); }
.page-books-interior .book-card--catalog p { color:#46545a; }
.page-books-interior .book-card--catalog .book-card__editorial > p { display:-webkit-box; overflow:hidden; min-height:0; -webkit-box-orient:vertical; -webkit-line-clamp:5; }
.page-books-interior .book-card--catalog .book-card__actions { margin-top:0; padding-top:0; }
.page-books-interior .book-card--catalog .home-work__link { border-color:var(--catalog-accent); color:var(--catalog-accent); background:transparent; }
.page-books-interior .book-card--catalog .home-work__link:first-child { background:var(--catalog-accent); color:#fff; }
.page-books-interior .book-card--catalog .home-work__link:hover { background:var(--catalog-accent); border-color:var(--catalog-accent); color:#fff; }
.page-books-interior .book-card--catalog .book-sample-button--compact { border-color:var(--catalog-accent); background:transparent; color:var(--catalog-accent); }
.page-books-interior .book-card--catalog .book-sample-button--compact:hover { background:var(--catalog-accent); border-color:var(--catalog-accent); color:#fff; }
.page-books-interior .book-card--catalog .book-card__availability a { color:var(--catalog-accent); }
.page-books-interior .book-card--catalog.book-card--theme-del-engano { --catalog-accent:#693d43; --catalog-surface:rgba(245,237,227,.96); --catalog-visual:rgba(185,133,101,.18); }
.page-books-interior .book-card--catalog.book-card--theme-entre-penumbras { --catalog-accent:#315a63; --catalog-surface:rgba(239,244,242,.96); --catalog-visual:rgba(89,121,114,.16); }
.page-books-interior .book-card--catalog.book-card--theme-cronicas { --catalog-accent:#8a6731; --catalog-surface:rgba(247,241,226,.96); --catalog-visual:rgba(183,139,76,.17); }
.page-books-interior .book-card--catalog.book-card--theme-prisionero { --catalog-accent:#703b42; --catalog-surface:rgba(247,239,235,.96); --catalog-visual:rgba(112,59,66,.13); }
.page-books-interior .book-card--catalog.book-card--theme-asd-ux { --catalog-accent:#29495c; --catalog-surface:rgba(241,245,246,.96); --catalog-visual:rgba(90,117,130,.15); }
.page-books-interior .book-card--catalog.book-card--theme-arquitectura { --catalog-accent:#243e50; --catalog-surface:rgba(238,243,246,.96); --catalog-visual:rgba(62,91,112,.15); }
.page-books-interior .footer { width:100%; margin:0; padding:clamp(28px,4vw,46px) max(20px,calc((100vw - 1080px)/2)); border:0; background:#344f63; color:#f3e7d5; }
.page-books-interior .footer strong,
.page-books-interior .footer a { color:#f3e7d5; }
.page-books-interior .footer > span,
.page-books-interior .footer small { color:rgba(243,231,213,.82); }
.page-books-interior .footer__publisher img { opacity:1; }

.page-book-interior .lc-breadcrumbs { width:min(1180px,calc(100% - 2rem)); padding:clamp(.55rem,1vw,.8rem) 0 .25rem; }
.page-book-interior .book-page > .quiet-link { display:inline-flex; align-items:center; gap:.45rem; margin:0 0 .55rem; padding:0; background:transparent; color:#fff4e6; text-shadow:0 1px 3px rgba(0,0,0,.8); font-size:.88rem; font-weight:600; letter-spacing:0; text-decoration:none; text-transform:none; }
.page-book-interior .book-page > .quiet-link:hover,
.page-book-interior .book-page > .quiet-link:focus-visible { color:#fff; text-decoration:underline; }
.page-book-interior .book-detail { grid-template-columns:minmax(240px,360px) minmax(0,1fr); gap:clamp(2rem,5vw,5rem); padding:clamp(1.25rem,3vw,2.5rem); }
.page-book-interior .book-detail__content { min-width:0; }
.page-book-interior .book-detail-copy h1 { color:#263d4e; }
.page-book-interior .book-detail-copy p,
.page-book-interior .book-editorial p,
.page-book-interior .book-section > p,
.page-book-interior .book-extras__content { color:#48534e; line-height:1.7; }
.page-book-interior .book-subtitle { color:#70432f; font-weight:500; }
.page-book-interior .book-detail__hook { max-width:38rem; margin:0; color:#263d4e; font-size:clamp(1.08rem,1.8vw,1.28rem); line-height:1.5; }
.page-book-interior .book-detail-copy p,
.page-book-interior .book-editorial p,
.page-book-interior .book-section p { color:#34454a; }
.page-book-interior .book-section { max-width:48rem; margin-top:clamp(1.75rem,3vw,2.5rem); scroll-margin-top:calc(var(--site-header-height,72px) + 24px); }
.page-book-interior .book-section h2 { margin:0 0 1rem; color:#263d4e; font-size:clamp(1.45rem,2.5vw,2rem); font-weight:600; line-height:1.2; }
.page-book-interior .book-section h3 { color:#263d4e; font-size:1rem; font-weight:600; }
.page-book-interior .book-section__lead { font-size:1.08rem; }
.page-book-interior .book-section__highlight { margin:1.75rem 0; padding:.25rem 0 .25rem 1rem; border-left:2px solid #c76b4c; color:#263d4e; font-size:clamp(1.12rem,2vw,1.3rem); font-weight:500; line-height:1.5; }
.page-book-interior .book-primary-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:clamp(1.5rem,3vw,2rem); }
.page-book-interior .book-primary-action { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:44px; padding:.7rem 1rem; border:1px solid #263d4e; background:#263d4e; color:#fff; font:inherit; font-size:.92rem; line-height:1; text-decoration:none; cursor:pointer; }
.page-book-interior .book-primary-action--secondary { background:transparent; color:#263d4e; }
.page-book-interior .book-detail__content > .book-primary-actions { display:none; }
.page-book-interior .book-sticky-actions { display:grid; gap:.65rem; margin-top:1rem; }
.page-book-interior .book-sticky-actions .book-primary-action { width:100%; }
.page-book-interior .book-story-trigger { display:inline-flex; align-items:center; gap:.5rem; margin-top:1.5rem; padding:0; border:0; background:transparent; color:#263d4e; font:inherit; font-weight:600; cursor:pointer; }
.book-story-modal .modal-dialog { max-width:min(720px,calc(100% - 2rem)); }
.book-story-modal .modal-content { border:0; border-radius:0; background:#fffaf2; color:#263d4e; }
.book-story-modal .modal-header { border-bottom:1px solid rgba(64,91,112,.2); }
.book-story-modal .modal-title { color:#263d4e; font-size:clamp(1.35rem,3vw,1.85rem); }
.book-story-modal .btn-close { display:grid; width:2.5rem; height:2.5rem; padding:0; place-items:center; background:none; opacity:1; color:#263d4e; }
.book-story-modal .modal-body p { color:#34454a; line-height:1.7; }
.page-book-interior .book-primary-action--secondary:hover { background:rgba(112,67,47,.12); color:#263d4e; }
.page-book-interior .book-section__facebook-cta { margin-top:1.75rem; padding-top:1rem; border-top:1px solid rgba(64,91,112,.24); }
.page-book-interior .book-section__facebook-cta a { color:#263d4e; }
.page-book-interior .book-availability { margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid rgba(64,91,112,.24); }
.page-book-interior .book-availability h2 { font-size:clamp(1.2rem,2vw,1.45rem); }
.page-book-interior .book-actions-wrap,.page-book-interior .book-actions { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; }
.page-book-interior .book-store-btn { width:160px; height:52px; padding:5px; }
.page-book-interior .book-store-btn img { display:block; max-width:100%; max-height:100%; object-fit:contain; }
.page-book-interior .book-publisher { max-width:48rem; margin-top:1.5rem; padding-top:1rem; border-top:1px solid rgba(64,91,112,.18); }
.page-book-interior .book-publisher a { color:#70432f; }
.page-book-interior .book-publisher p { color:#34454a; }
.page-book-interior .book-complementary { max-width:48rem; margin-top:1.5rem; border-top:1px solid rgba(64,91,112,.24); }
.page-book-interior .book-complementary summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 0; color:#263d4e; cursor:pointer; font-weight:600; list-style:none; }
.page-book-interior .book-complementary summary::-webkit-details-marker { display:none; }
.page-book-interior .book-complementary summary i { transition:transform .2s ease; }
.page-book-interior .book-complementary[open] summary i { transform:rotate(180deg); }
.page-book-interior .book-complementary__content { padding:0 0 1.25rem; }
.page-book-interior .book-complementary__content p { max-width:48rem; margin:0 0 1rem; color:#48534e; line-height:1.7; }
.page-book-interior .book-visual-archive figure { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr); gap:1.5rem; margin:0; }
.page-book-interior .book-visual-archive img { display:block; width:100%; height:auto; }
.page-book-interior .book-visual-archive figcaption { align-self:center; }
.page-book-interior .also-available { margin-top:clamp(2rem,5vw,4rem); padding:clamp(1.25rem,3vw,2.5rem); }
.page-book-interior .also-available h2 { margin:0 0 1.25rem; color:#263d4e; }
.page-book-interior .book-related .home-works__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1rem,2vw,1.5rem); }
.page-book-interior .book-related .book-card--related { --related-accent:#243e50; --related-surface:rgba(255,250,242,.96); --related-visual:rgba(62,91,112,.12); display:grid; grid-template-columns:minmax(118px,34%) minmax(0,1fr); gap:.9rem; min-width:0; min-height:190px; padding:.85rem; overflow:hidden; background:var(--related-surface); border:1px solid color-mix(in srgb,var(--related-accent) 26%,transparent); }
.page-book-interior .book-related .book-card--related .book-card__visual { display:grid; height:100%; min-height:0; padding:.35rem; place-items:center; overflow:hidden; background:var(--related-visual); }
.page-book-interior .book-related .book-card--related .book-card__visual img { width:100%; height:100%; max-width:100%; object-fit:contain; transition:transform .25s ease; }
.page-book-interior .book-related .book-card--related:hover .book-card__visual img { transform:scale(1.04); }
.page-book-interior .book-related .book-card--related .home-work__copy { display:flex; flex:1; flex-direction:column; min-width:0; margin:0; padding:0; background:transparent; }
.page-book-interior .book-related .book-card--related .home-work__category { color:var(--related-accent); font-size:.7rem; }
.page-book-interior .book-related .book-card--related h3 { margin:0 0 .35rem; color:#243e50; font-size:clamp(1.15rem,1.8vw,1.45rem); line-height:1.12; }
.page-book-interior .book-related .book-card--related .book-card__editorial > p { margin:0 0 .65rem; color:#34454a; font-size:.86rem; line-height:1.45; }
.page-book-interior .book-related .book-card--related .book-card__commercial { margin-top:auto; }
.page-book-interior .book-related .book-card--related .home-work__link { border-color:var(--related-accent); color:var(--related-accent); background:transparent; }
.page-book-interior .book-related .book-card--related .home-work__link:hover { background:var(--related-accent); border-color:var(--related-accent); color:#fff; }
.page-book-interior .book-related .book-card--theme-del-engano { --related-accent:#693d43; --related-surface:rgba(245,237,227,.94); --related-visual:rgba(185,133,101,.18); }
.page-book-interior .book-related .book-card--theme-entre-penumbras { --related-accent:#315a63; --related-surface:rgba(239,244,242,.94); --related-visual:rgba(89,121,114,.16); }
.page-book-interior .book-related .book-card--theme-cronicas { --related-accent:#8a6731; --related-surface:rgba(247,241,226,.94); --related-visual:rgba(183,139,76,.17); }
.page-book-interior .book-related .book-card--theme-prisionero { --related-accent:#703b42; --related-surface:rgba(247,239,235,.94); --related-visual:rgba(112,59,66,.13); }
.page-book-interior .book-related .book-card--theme-asd-ux { --related-accent:#29495c; --related-surface:rgba(241,245,246,.94); --related-visual:rgba(90,117,130,.15); }
.page-book-interior .footer { width:100%; margin:0; border:0; background:#344f63; color:#f3e7d5; }
.page-book-interior .footer a,
.page-book-interior .footer strong { color:#f3e7d5; }
.page-book-interior .footer > span,
.page-book-interior .footer small { color:rgba(243,231,213,.86); }
.page-book-interior a:focus-visible,
.page-book-interior button:focus-visible,
.page-books-interior a:focus-visible { outline:3px solid #c76b4c; outline-offset:3px; }

@media(max-width:900px) {
  .page-books-interior .books-catalog { grid-template-columns:1fr; }
  .page-book-interior .book-detail { grid-template-columns:minmax(210px,290px) minmax(0,1fr); gap:clamp(1.5rem,4vw,2.5rem); }
}
@media(max-width:767px) {
  .page-books-interior .books-page,
  .page-book-interior .book-page { width:min(100% - 1.25rem,1180px); padding:1.5rem 0 2rem; }
  .page-book-interior .book-page { padding-top:.4rem; }
  .page-book-interior .book-detail { display:block; }
  .page-book-interior .book-detail__media { width:min(72vw,300px); margin:0 auto 1.5rem; }
  .page-book-interior .book-detail__cover-sticky { position:static; }
  .page-book-interior .book-primary-actions { display:grid; grid-template-columns:1fr; }
  .page-book-interior .book-primary-action { width:100%; }
  .page-book-interior .book-actions-wrap,
  .page-book-interior .book-actions { align-items:stretch; }
  .page-book-interior .book-store-btn { width:min(100%,180px); }
  .page-book-interior .book-visual-archive figure { grid-template-columns:1fr; gap:1rem; }
  .page-book-interior .book-related .home-works__grid { grid-template-columns:1fr; }
  .page-book-interior .book-related .book-card--related { grid-template-columns:minmax(104px,32%) minmax(0,1fr); min-height:170px; }
  .page-books-interior .book-card--catalog .book-card__visual.home-work__cover { flex-basis:350px; height:350px; }
  .page-books-interior .book-card--catalog .home-work__copy { width:calc(100% - 1.25rem); margin-top:0; }
  .page-books-interior .book-card--catalog .book-card__actions { align-items:stretch; }
  .page-books-interior .book-card--catalog .home-work__link,
  .page-books-interior .book-card--catalog .book-sample-button--compact { width:100%; }
}

/* Zoom de portadas en el catálogo */
.page-books-interior .book-card--catalog .home-work__cover img {
    transition: transform 0.5s ease;
    transform-origin: center center;
}

@media (hover: hover) {
    .page-books-interior .book-card--catalog:hover .home-work__cover img {
        transform: scale(1.25);
    }
}
