/*
Theme Name: Prólogo Din - App
Description: Tema mínimo para el WordPress de las plataformas de Prólogo Din en app.<dominio>. Sin web propia: la portada y cualquier página sin plugin muestran solo el logo centrado; las páginas de los plugins (Puntos, cuenta de cliente, reservas…) muestran solo su contenido, sin cabecera ni pie, a página completa o dentro del pop-up del front. Dentro del widget del núcleo (iframe, pd_popup=1) el fondo es transparente para que se vea la web de detrás; abierta directamente, fondo liso con el logo detrás del pop-up del plugin. Todo fuera de buscadores.
Author: Prólogo Din
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: pd-app
*/

html, body { margin: 0; padding: 0; background: #fff; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", Helvetica, Arial, sans-serif; color: #1d2327; }
img { max-width: 100%; height: auto; }

/* Solo el logo */
.pd-app-logo { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 24px; }
.pd-app-logo img, .pd-app-logo .custom-logo { max-width: min(320px, 70vw); max-height: 40vh; width: auto; height: auto; }
.pd-app-logo__texto { font-size: 1.5rem; font-weight: 700; text-align: center; }

/* Páginas de los plugins: el plugin pinta su propio pop-up (capa oscura + tarjeta) */
.pd-app-contenido { position: relative; z-index: 1; box-sizing: border-box; min-height: 100vh; min-height: 100dvh; }
/* Abierta directamente: fondo liso con el logo, detrás del pop-up */
.pd-app-fondo { position: fixed; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; background: #f3f5f7; }
.pd-app-fondo img, .pd-app-fondo .custom-logo { max-width: min(320px, 70vw); max-height: 40vh; width: auto; height: auto; opacity: .9; }
/* Dentro del widget (iframe, pd_popup=1): transparente, sin fondo ni logo */
html.pd-popup, html.pd-popup body, html.pd-en-popup, html.pd-en-popup body { background: transparent !important; }
html.pd-popup .pd-app-fondo, html.pd-en-popup .pd-app-fondo { display: none; }
html.pd-popup .pd-app-contenido, html.pd-en-popup .pd-app-contenido { min-height: 0; }
