/* ─── Secure PDF Viewer — Estilos frontend ─── */

/* Wrapper general */
.spv-wrapper {
    margin: 1.5rem 0;
    font-family: inherit;
}

.spv-description {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Visor */
.spv-viewer {
    width: 100%;
    min-height: 700px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

/* Gate (acceso denegado) */
.spv-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    background: #fafafa;
    margin: 1.5rem 0;
}

.spv-gate-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.spv-gate h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

.spv-gate p {
    margin: 0 0 1.25rem;
    color: #666;
    font-size: 0.95rem;
}

.spv-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: #0073aa;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.spv-btn:hover {
    background: #005a87;
}

/* Error inline */
.spv-error {
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
    .spv-viewer {
        min-height: 480px;
    }

    .spv-gate {
        padding: 2rem 1rem;
    }
}
