/* Catálogo eclipxa® — visor (mismo criterio que el de ZEMPER)
   Escritorio: un pliego a la vez, centrado y a todo el tamaño, con deslizamiento entre pliegos.
   Celular (≤ 820 px): los pliegos uno debajo de otro, con scroll; cada pliego se parte en sus dos páginas. */
html, body.visor { margin: 0; }
body.visor { background: #2b2b2b; overflow: hidden; color: #e8e8e8; font-family: 'Albert Sans', sans-serif; }
/* la barra del sitio (navegacion.js) va arriba: el visor ocupa el alto restante, menos la barra de abajo */
body.visor .preview { position: relative; height: calc(100vh - 64px - var(--nv-ocupado, 0px)); height: calc(100dvh - 64px - var(--nv-ocupado, 0px)); overflow: hidden; container-type: size; }
body.visor .pages { display: flex; flex-wrap: nowrap; height: 100%; transition: transform .32s cubic-bezier(.3, .7, .3, 1); will-change: transform; }
body.visor .frame { flex: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
/* el pliego cabe entero: ancho libre menos las flechas, o alto libre por la proporción del pliego */
body.visor .frame > .page { width: min(calc(100cqw - 136px), calc((100cqh - 36px) * 1.5454)); margin: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
body.visor .frame > .page.una { width: min(calc(100cqw - 136px), calc((100cqh - 36px) * .7727)); }
body.visor .hueco { width: min(calc(100cqw - 136px), calc((100cqh - 36px) * 1.5454)); aspect-ratio: 1224 / 792; background: #242424; }
body.visor .hueco.una { width: min(calc(100cqw - 136px), calc((100cqh - 36px) * .7727)); aspect-ratio: 612 / 792; }
body.visor .nav, body.visor .swipe { display: none; }

/* barra inferior: la dibuja /visor-barra.css, que es la misma para los tres
   catálogos visuales. Acá no va ninguna regla de .vzb. */
/* flechas laterales */
.vz { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.vz:hover { background: var(--accent); }
.vz:disabled { opacity: .25; cursor: default; background: rgba(255, 255, 255, .12); }
.vz svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vz-prev { left: 16px; } .vz-next { right: 16px; }

/* ===== Celular: pliegos apilados, scroll vertical ===== */
body.visor.movil { height: auto; overflow: visible; }
body.visor.movil .preview { height: auto; overflow: visible; padding: 10px 8px 70px; container-type: normal; }
body.visor.movil .pages { display: block; transform: none !important; transition: none; }
body.visor.movil .frame { display: block; width: 100%; height: auto; max-width: 620px; margin: 0 auto 14px; }
body.visor.movil .vz { display: none; }
/* cada pliego en sus dos páginas, una sobre otra */
.movil .mitad { position: relative; width: 100%; aspect-ratio: 612 / 792; overflow: hidden; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }
.movil .mitad + .mitad { margin-top: 8px; }
.movil .mitad > .page { position: absolute !important; top: 0; left: 0; width: 200% !important; margin: 0 !important; box-shadow: none !important; }
.movil .mitad.r > .page { left: -100%; }
/* pliegos cuyo diseño cruza el lomo (aperturas de sección): enteros, apaisados */
.movil .frame > .page { width: 100% !important; margin: 0; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }
.movil .hueco { width: 100%; aspect-ratio: 612 / 792; background: #242424; }
.movil .hueco.doble { aspect-ratio: 612 / 1592; }
.movil .hueco.ancho { aspect-ratio: 1224 / 792; }
/* índice como lista */
.ixm { --pt: 1.05px; background: #383839; color: #f1f1f1; padding: 22px 18px 26px; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }
.ixm h2 { margin: 0 0 4px; font-family: 'Host Grotesk', sans-serif; font-weight: 300; font-size: 18px; color: #bdbdbd; }
.ixm h2 b { display: block; font-weight: 600; font-size: 30px; line-height: 1; color: #f1f1f1; }
.ixm .grupo + .grupo { margin-top: 30px; padding-top: 22px; border-top: 1px solid #555; }
.ixm .col { position: static !important; width: auto !important; margin-top: 20px; }
.ixm .col .top { display: flex; align-items: center; justify-content: space-between; color: inherit; text-decoration: none; }
.ixm .col .icons { display: flex; gap: 8px; align-items: center; }
.ixm .ir { display: block; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ixm .col .big { font-family: 'Host Grotesk', sans-serif; font-weight: 600; font-size: 34px; color: #8b8b8b; }
.ixm .col .lab { margin: 8px 0 0; font-size: 10px; letter-spacing: .14em; color: #a3a3a4; }
.ixm .col .ttl { margin: 2px 0 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.ixm .col ul { list-style: none; margin: 0; padding: 0; }
.ixm .col li a { display: flex; align-items: baseline; gap: 6px; padding: 7px 0; color: #f1f1f1; text-decoration: none; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ixm .col .dots { flex: 1; }
.ixm .col .no { color: #a3a3a4; }
.movil #vz-prev, .movil #vz-next { font-size: 20px; padding: 4px 10px; }
.movil #vz-n { min-width: 0; font-size: 13px; }
/* las descargas (PDF y PDF personalizado) son solo para la vista web de escritorio */

/* ===== PDF personalizado ===== */
.pm-fondo { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .55); display: none; }
.pm { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001; width: min(420px, 100%); background: #1c1c1c; color: #e8e8e8;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.3, .7, .3, 1); box-shadow: -10px 0 40px rgba(0, 0, 0, .4); }
body.pm-abierto .pm { transform: none; }
body.pm-abierto .pm-fondo { display: block; }
.pm-cab { padding: 20px 22px 14px; border-bottom: 1px solid #333; }
.pm-cab h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.pm-cab p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #a3a3a4; }
.pm-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #2b2b2b; color: #e8e8e8; font-size: 18px; cursor: pointer; }
.pm-x:hover { background: var(--accent); color: #1c1c1c; }
.pm-cuerpo { flex: 1; overflow: auto; padding: 6px 22px 16px; }
.pm-amb { margin: 16px 0 4px; font-size: 11px; letter-spacing: .16em; color: #8b8b8b; }
.pm-cat { margin-top: 10px; }
.pm-cat > label { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.pm-cat ul { list-style: none; margin: 0 0 0 26px; padding: 0; }
.pm-cat li label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.pm-cat li small { margin-left: auto; color: #6e6e6f; font-size: 12px; }
.pm input[type=checkbox] { width: 16px; height: 16px; accent-color: #f08d02; flex: none; margin: 0; }
.pm-pie { padding: 14px 22px 18px; border-top: 1px solid #333; }
.pm-nombre { display: block; font-size: 12px; color: #a3a3a4; margin-bottom: 10px; }
.pm-nombre input { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; padding: 8px 10px; border: 1px solid #444; border-radius: 2px; background: #2b2b2b; color: #e8e8e8; font: inherit; font-size: 14px; }
.pm-resumen { font-size: 13px; color: #a3a3a4; margin: 0 0 12px; line-height: 1.5; }
.pm-acc { display: flex; gap: 10px; }
.pm-acc button { flex: 1; padding: 11px 12px; border-radius: 2px; font: inherit; font-size: 14px; cursor: pointer; border: 1px solid #555; background: none; color: #e8e8e8; }
.pm-acc .pm-gen { background: var(--accent); border-color: var(--accent); color: #1c1c1c; font-weight: 600; }
.pm-acc .pm-gen:disabled { background: #444; border-color: #444; color: #888; cursor: default; }

/* barra en celular angosto: se priorizan flechas, índice y posición */
.pm-marca { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #333; font-size: 12px; line-height: 1.55; color: #8b8b8b; }
.pm-marca a { color: var(--accent); text-decoration: none; }
.pm-marca a:hover { text-decoration: underline; }
.pm-marca b { color: #bdbdbd; font-weight: 600; }
