/* Visor tipo revista de los dossiers de socios. Ver revista.js. */
@font-face {
    font-family: 'Manrope';
    src: url('/revista/manrope-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-display: swap;
}
:root {
    --azul: #0d3d9e;
    --azul-hondo: #072a72;
    --noche: #04173f;
    --celeste: #d1e2ff;
    --verde: #73ffa0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Manrope', system-ui, sans-serif;
    color: #fff;
    background: radial-gradient(ellipse at 50% 35%, #0f3f9c 0%, var(--azul-hondo) 45%, var(--noche) 100%);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Barra de arriba */
.barra {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; flex-shrink: 0;
}
.barra .marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.barra .marca img { height: 22px; flex-shrink: 0; }
.barra .marca span {
    font-size: 12px; font-weight: 700; color: var(--celeste); opacity: .8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-left: 1px solid rgba(209,226,255,.3); padding-left: 12px;
}
.barra .acciones { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.boton {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    font-size: 13px; font-weight: 800; border-radius: 99px; padding: 9px 15px;
    transition: transform .15s ease, background .15s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton svg { width: 16px; height: 16px; flex-shrink: 0; }
.boton.claro { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.boton.claro:hover { background: rgba(255,255,255,.18); }
.boton.verde { background: var(--verde); color: var(--azul); box-shadow: 0 10px 24px -10px rgba(115,255,160,.7); }

/* Las barras van por encima del libro: StPageFlip arma una capa (.stf__block) que en el
   celular puede pasarse del escenario y se tragaba los toques de los botones. */
.barra, .pie { position: relative; z-index: 10; }

/* El libro */
.escenario {
    flex: 1; min-height: 0; position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 6px 16px; overflow: hidden;
}
/* Los links de cada hoja (enlaces.json), encima de la imagen: no se ven, se tocan.
   (La hoja ya es position: absolute por StPageFlip.) */
#libro .enlace { position: absolute; z-index: 2; border-radius: 12px; -webkit-tap-highlight-color: rgba(115,255,160,.25); }
#libro .enlace:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }
.marco { width: 100%; flex-shrink: 0; }
#libro { margin: 0 auto; }
#libro { transition: transform .6s cubic-bezier(.4,0,.2,1); }
#libro .hoja { background: #fff; overflow: hidden; }
#libro img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.sombra-libro { filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }

.flecha {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, opacity .2s ease;
    z-index: 5;
}
.flecha:hover { background: rgba(255,255,255,.2); }
.flecha svg { width: 22px; height: 22px; }
.flecha.izq { left: 20px; }
.flecha.der { right: 20px; }
.flecha[disabled] { opacity: .25; pointer-events: none; }

/* Barra de abajo */
.pie {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 10px 20px 18px; flex-shrink: 0;
}
.paginas { display: flex; align-items: center; gap: 6px; }
.paso { display: none; }
.contador { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--celeste); min-width: 64px; text-align: center; }
.puntos { display: flex; gap: 6px; }
.puntos button { width: 7px; height: 7px; border-radius: 99px; background: rgba(209,226,255,.3); transition: all .25s ease; }
.puntos button.activo { width: 22px; background: var(--verde); }
.ayuda { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 11px; color: rgba(209,226,255,.55); pointer-events: none; transition: opacity .6s ease; }

/* Carga */
.cargando { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cargando::after { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(209,226,255,.25); border-top-color: var(--verde); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Celular. Los puntos de página no entran (son hasta 15) y empujaban el botón verde
   fuera de la pantalla: en celular queda el contador a la izquierda y el botón a la derecha. */
@media (max-width: 640px) {
    .barra { padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
    .barra .marca span { display: none; }
    .barra .boton.claro .txt { display: none; }
    .barra .boton.claro { padding: 9px 11px; }
    .flecha { display: none; }
    .escenario { padding: 2px 10px; }
    .pie { justify-content: space-between; padding: 8px 12px max(14px, env(safe-area-inset-bottom)); gap: 10px; }
    .puntos { display: none; }
    .contador { min-width: 46px; letter-spacing: .08em; }
    .paso {
        display: flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: 50%;
        background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
    }
    .paso svg { width: 18px; height: 18px; }
    .paso[disabled] { opacity: .3; }
}
@media (max-width: 359px) {
    .pie .boton.verde .txt-largo { display: none; }
    .barra [data-landing] span { display: none; }
    .barra [data-landing] { padding: 9px 11px; }
}
@media (min-width: 360px) { .pie .boton.verde .txt-corto { display: none; } }

/* Pedido de email para bajar el PDF (ver seguimiento.js) */
.pedido-fondo {
    position: fixed; inset: 0; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(4,23,63,.72); backdrop-filter: blur(6px);
    overflow-y: auto;
}
.pedido-fondo[hidden] { display: none; }
.pedido {
    position: relative; width: 100%; max-width: 420px; margin: auto;
    background: #fff; color: #0f1b3d; border-radius: 22px; padding: 26px 24px 20px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.pedido h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; padding-right: 28px; }
.pedido-bajada { font-size: 14px; color: #5b6478; margin-bottom: 16px; }
.pedido-cerrar {
    position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
    font-size: 24px; line-height: 1; color: #5b6478; display: flex; align-items: center; justify-content: center;
}
.pedido-cerrar:hover { background: #eef1f8; }
.pedido-campo { display: block; margin-bottom: 12px; }
.pedido-campo span { display: block; font-size: 12px; font-weight: 700; color: #5b6478; margin-bottom: 5px; }
.pedido-campo input {
    width: 100%; font: inherit; font-size: 16px; color: #0f1b3d; background: #fff;
    border: 1px solid #d5dbe8; border-radius: 12px; padding: 12px 14px;
}
.pedido-campo input:focus { outline: 2px solid #0d3d9e; outline-offset: 1px; border-color: #0d3d9e; }
.pedido-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pedido-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #3d4760; margin-bottom: 14px; cursor: pointer; }
.pedido-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: #0d3d9e; }
.pedido-error { font-size: 13px; font-weight: 700; color: #b4232a; margin-bottom: 10px; }
.pedido-error[hidden] { display: none; }
.pedido .pedido-enviar {
    width: 100%; justify-content: center; padding: 13px 16px; font-size: 15px;
    background: #0d3d9e; color: #fff; box-shadow: 0 10px 24px -10px rgba(13,61,158,.6);
}
.pedido .pedido-enviar:hover { background: #0a3080; }
.pedido .pedido-enviar[disabled] { opacity: .6; pointer-events: none; }
.pedido-legal { margin-top: 12px; font-size: 11px; line-height: 1.45; color: #8a93a8; }
.pedido-legal a { color: #5b6478; text-decoration: underline; }
.pedido-mas { margin-top: 6px; }
.pedido-mas summary { cursor: pointer; font-weight: 700; color: #5b6478; width: fit-content; list-style: none; }
.pedido-mas summary::-webkit-details-marker { display: none; }
.pedido-mas summary::after { content: ' ▾'; }
.pedido-mas[open] summary::after { content: ' ▴'; }
.pedido-completo { margin-top: 8px; font-size: 10.5px; }
.pedido-listo[hidden] { display: none; }
