/* Atlantis PDF Clínico — Public Styles v2 */

.apdf-body-visor { background: #f1f5f9; margin: 0; padding: 0; }

.apdf-visor-pagina { max-width: 1300px; margin: 0 auto; padding: 16px; }

.apdf-visor-cabecera {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 12px; padding: 12px 16px;
    background: #fff; border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.apdf-visor-cabecera h2 { margin: 0; font-size: 1.15rem; flex: 1; color: #1e3a5f; }

.apdf-iframe-wrap { width: 100%; height: calc(100vh - 110px); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.15); }
.apdf-iframe-visor { width: 100%; height: 100%; border: none; display: block; }

.apdf-tag     { background: #dbeafe; color: #1e40af; border-radius: 4px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.apdf-tag-sub { background: #ede9fe; color: #6d28d9; }

.apdf-btn-presentar {
    background: #2563eb; color: #fff; text-decoration: none;
    padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    transition: background .2s; margin-left: auto; white-space: nowrap;
}
.apdf-btn-presentar:hover { background: #1d4ed8; color: #fff; }

.apdf-marca-agua {
    position: fixed; bottom: 16px; right: 16px;
    background: rgba(0,0,0,.35); color: rgba(255,255,255,.7);
    padding: 4px 12px; border-radius: 5px; font-size: 11px;
    pointer-events: none; user-select: none; z-index: 9999;
}

/* Shortcode wrap */
.apdf-wrap { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.12); }
.apdf-iframe { display: block; width: 100%; height: 100%; border: none; }

/* Biblioteca */
.apdf-biblioteca-lista { list-style: none; padding: 0; margin: 0; }
.apdf-biblioteca-item  { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e5e5e5; font-size: 14px; }
.apdf-biblioteca-item:last-child { border-bottom: none; }
.apdf-biblioteca-item a { color: #2563eb; font-weight: 500; }

.apdf-btn-mini {
    background: #16a34a; color: #fff; text-decoration: none;
    padding: 4px 10px; border-radius: 5px; font-size: 12px; margin-left: auto;
}
.apdf-btn-mini:hover { background: #15803d; color: #fff; }

/* Botón presentación desde shortcode */
.apdf-btn-presentacion-wrap { margin: 12px 0; }
.apdf-btn-presentacion {
    display: inline-flex; align-items: center; gap: 6px;
    background: #7c3aed; color: #fff; text-decoration: none;
    padding: 10px 22px; border-radius: 8px; font-size: 15px; font-weight: 600;
    transition: background .2s;
}
.apdf-btn-presentacion:hover { background: #6d28d9; color: #fff; }

.apdf-error { color: #b91c1c; border-left: 3px solid #ef4444; padding: 8px 14px; background: #fef2f2; border-radius: 4px; font-size: 14px; }
