/* Catálogos: formulario de descarga y libro online */
html.gzd-bloqueado { overflow: hidden; }

/* ===== Formulario ===== */
.gzd { position: fixed; inset: 0; z-index: 100010; display: flex; align-items: flex-start; justify-content: center; padding: 24px 14px; overflow-y: auto; background: rgba(23,23,21,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #171715; }
.gzd .gzd-caja { position: relative; width: min(460px, 100%); margin: auto; padding: 34px 32px 30px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.gzd h2 { margin: 0 30px 8px 0; font-family: inherit; font-size: 24px; font-weight: 400; line-height: 1.25; color: #171715; }
.gzd .gzd-intro { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #6f6b64; }
.gzd form { margin: 0; }
.gzd label { display: block; margin: 0 0 12px; font-size: 13px; line-height: 1.4; color: #171715; }
.gzd input[type="text"], .gzd input[type="tel"], .gzd input[type="email"] { display: block; width: 100%; height: 44px; margin-top: 5px; padding: 8px 12px; border: 1px solid #c9c5bd; border-radius: 3px; background: #fff; color: #171715; font-size: 16px; box-shadow: none; }
.gzd input:focus { border-color: #171715; outline: 2px solid #B2A18D; outline-offset: 1px; }
.gzd .gzd-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gzd .gzd-casilla { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.gzd .gzd-casilla input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #171715; }
.gzd .gzd-casilla a { color: #171715; text-decoration: underline; }
.gzd .gzd-info { margin: 6px 0 14px; font-size: 11px; line-height: 1.55; color: #6f6b64; }
.gzd .gzd-error { margin: 0 0 12px; padding: 10px 12px; background: #F9ECEA; color: #8d2318; font-size: 13px; line-height: 1.45; }
.gzd [hidden] { display: none !important; }
.gzd button.gzd-enviar { display: block; width: 100%; padding: 15px 20px; border: 1px solid #171715; border-radius: 3px; background: #171715; color: #fff; font-family: inherit; font-size: 14px; letter-spacing: normal; text-transform: none; cursor: pointer; }
.gzd button.gzd-enviar:hover, .gzd button.gzd-enviar:focus { background: #3a3a36; color: #fff; }
.gzd button.gzd-enviar:disabled { opacity: .6; cursor: default; }
.gzd .gzd-hecho { margin: 6px 0 22px; font-size: 16px; line-height: 1.6; }
.gzd .gzd-caja > button.gzd-cerrar { position: absolute; top: 14px; right: 14px; min-height: 0; padding: 8px; border: 0; background: none; color: #171715; font-size: 17px; line-height: 1; cursor: pointer; }
@media (max-width: 480px) { .gzd .gzd-caja { padding: 28px 20px 22px; } }

/* ===== Libro online ===== */
.gzl { position: fixed; inset: 0; z-index: 100020; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 40%, #3b3a36 0%, #1b1b19 75%); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #fff; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gzl button { min-height: 0; margin: 0; font-family: inherit; letter-spacing: normal; text-transform: none; line-height: 1.2; cursor: pointer; }
.gzl-cab { display: flex; align-items: center; gap: 18px; padding: calc(12px + var(--wp-admin--admin-bar--height, 0px)) 18px 8px; }
.gzl-titulo { font-size: 16px; white-space: nowrap; }
.gzl-tomos { display: flex; gap: 6px; }
.gzl .gzl-tomos button, .gzl .gzl-acciones button { padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 30px; background: transparent; color: #fff; font-size: 13px; }
.gzl .gzl-tomos button:hover, .gzl .gzl-acciones button:hover { background: rgba(255,255,255,.14); color: #fff; }
.gzl .gzl-tomos button.activo { background: #fff; border-color: #fff; color: #171715; }
.gzl-acciones { display: flex; gap: 8px; margin-left: auto; }
.gzl-medio { position: relative; flex: 1 1 auto; display: flex; align-items: stretch; min-height: 0; }
.gzl-escena { flex: 1 1 auto; min-width: 0; display: flex; overflow: hidden; touch-action: pan-y; cursor: pointer; }
.gzl-marco { margin: auto; padding: 8px 0; }
.gzl-libro { position: relative; perspective: 2800px; transition: transform .9s cubic-bezier(.4,.1,.2,1); }
.gzl-hoja { position: absolute; top: 0; left: var(--ancho); width: var(--ancho); height: var(--lado); transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.4,.1,.2,1); will-change: transform; }
.gzl-hoja.pasada { transform: rotateY(-180deg); }
.gzl-cara { position: absolute; inset: 0; overflow: hidden; background: #f4f2ee center / 100% 100% no-repeat; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.gzl-cara.reverso { transform: rotateY(180deg); }
.gzl-cara[data-pagina="0"] { background-color: #e9e6e0; }
.gzl-cara:not(.lista):not([data-pagina="0"])::before { content: "Cargando…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8b877f; font-size: 13px; z-index: -1; }
/* sombra del lomo y brillo del papel */
.gzl-cara::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.gzl-cara.anverso::after { background: linear-gradient(to right, rgba(0,0,0,.28) 0, rgba(0,0,0,.08) 2.5%, rgba(255,255,255,.07) 5%, rgba(0,0,0,0) 11%); }
.gzl-cara.reverso::after { background: linear-gradient(to left, rgba(0,0,0,.28) 0, rgba(0,0,0,.08) 2.5%, rgba(255,255,255,.07) 5%, rgba(0,0,0,0) 11%); }
.gzl-hoja.girando .gzl-cara::after { animation: gzl-sombra .9s ease-in-out; }
@keyframes gzl-sombra { 50% { box-shadow: inset 0 0 calc(var(--lado) / 3) rgba(0,0,0,.34); } }
.gzl-libro.sin-animar, .gzl-libro.sin-animar .gzl-hoja { transition: none; }
.gzl.simple .gzl-hoja { left: 0; transition: transform .8s cubic-bezier(.4,.1,.2,1), visibility 0s linear 0s; }
.gzl.simple .gzl-hoja.pasada { visibility: hidden; transition: transform .8s cubic-bezier(.4,.1,.2,1), visibility 0s linear .8s; }
.gzl.simple .gzl-cara.reverso::after { background: none; }
.gzl.simple .gzl-libro.sin-animar .gzl-hoja { transition: none; }
.gzl.ampliado .gzl-escena { overflow: auto; cursor: grab; touch-action: auto; }
.gzl.ampliado .gzl-escena:active { cursor: grabbing; }
.gzl .gzl-flecha { align-self: center; flex: 0 0 auto; width: 46px; height: 46px; margin: 0 10px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; }
.gzl .gzl-flecha:hover { background: rgba(255,255,255,.3); color: #fff; }
.gzl .gzl-flecha:disabled { opacity: .22; cursor: default; }
.gzl-pie { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 18px 16px; }
.gzl-pie input[type="range"] { width: min(460px, 56vw); accent-color: #B2A18D; cursor: pointer; }
.gzl-num { min-width: 160px; font-size: 13px; color: rgba(255,255,255,.8); }
@media (max-width: 760px) {
	.gzl-cab { flex-wrap: wrap; gap: 8px; padding-left: 10px; padding-right: 10px; }
	.gzl-tomos { order: 3; width: 100%; }
	.gzl .gzl-tomos button { flex: 1; }
	.gzl .gzl-completa { display: none; }
	.gzl-medio .gzl-flecha { position: absolute; bottom: 4px; z-index: 600; width: 42px; height: 42px; margin: 0; background: rgba(0,0,0,.45); }
	.gzl-medio .gzl-flecha.ant { left: 10px; }
	.gzl-medio .gzl-flecha.sig { right: 10px; }
	.gzl-pie { flex-direction: column; gap: 6px; }
	.gzl-pie input[type="range"] { width: 80vw; }
	.gzl-num { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.gzl-libro, .gzl-hoja, .gzl.simple .gzl-hoja { transition-duration: .01s !important; }
	.gzl-hoja.girando .gzl-cara::after { animation: none; }
}
/* el catálogo no se imprime */
@media print {
	html.gzl-abierto body { display: none !important; }
	.gzl { display: none !important; }
}

/* ===== Suscripción a novedades ===== */
.gzn { width: 100%; margin: 0; text-align: left; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #171715; }
.gzn .gzn-campo { display: flex; align-items: stretch; border: 1px solid #171715; border-radius: 2px; background: #F8F7F4; }
.gzn .gzn-campo:focus-within { box-shadow: 0 0 0 2px #B2A18D; }
.gzn .gzn-campo input[type="email"] { flex: 1 1 auto; min-width: 0; height: 46px; margin: 0; padding: 0 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: #171715; font-size: 15px; }
.gzn .gzn-campo input::placeholder { color: #171715; opacity: .65; }
.gzn .gzn-campo button { flex: 0 0 auto; width: 52px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #171715; font-size: 20px; line-height: 1; cursor: pointer; }
.gzn .gzn-campo button:hover, .gzn .gzn-campo button:focus { background: #171715; color: #fff; }
.gzn .gzn-campo button:disabled { opacity: .5; }
.gzn .gzn-acepto { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #6f6b64; cursor: pointer; }
.gzn .gzn-acepto input { flex: 0 0 auto; width: 15px; height: 15px; margin: 1px 0 0; accent-color: #171715; }
.gzn .gzn-acepto a { color: #171715; text-decoration: underline; }
.gzn .gzn-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gzn .gzn-mensaje { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #8d2318; }
.gzn .gzn-mensaje.bien { color: #2f6b3a; }
.gzn [hidden] { display: none; }
